Title: Plugin throwing PHP errors
Last modified: November 3, 2022

---

# Plugin throwing PHP errors

 *  Resolved Anonymous User 18721493
 * (@anonymized-18721493)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/plugin-throwing-php-errors/)
 * Hello Jordy!
 * Using PHP 8.0
 * The plugin keeps throwing this erros in my log:
 * [02-Nov-2022 09:36:51 UTC] PHP Warning: Undefined property: stdClass::$score 
   in /home/arquisp/public_html/wp-content/plugins/contact-form-block/classes/addons/
   recaptcha_v3.php on line 52
    [02-Nov-2022 15:57:14 UTC] PHP Warning: Undefined
   property: stdClass::$score in /home/arquisp/public_html/wp-content/plugins/contact-
   form-block/classes/addons/recaptcha_v3.php on line 52
 * I’m using the recaptcha add-on, and it seems that i am not having any problems
   receiving messages.
 * Any idea on that? Should I ignore these warnings?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-throwing-php-errors/#post-16192866)
 * Hi @osaopaulo,
 * I am not sure it’s a good news though; it seems like ReCaptcha is not returning
   the result, and it’s ignored.
 * What happens if you replace this:
 *     ```
       if ( $recaptcha->score >= 0.5 )
         return $error;
       ```
   
 * By this:
 *     ```
       if ( property_exists( $recaptcha, 'score' ) ) {
       	if ( $recaptcha->score >= 0.5 ) {
       		return $error;
       	}
       }
       else {
       	error_log( "The 'score' property was not returned by Google ReCaptcha. This is what was received instead: " . print_r( $recaptcha, true ) );
       }
       ```
   
 * `

Viewing 1 replies (of 1 total)

The topic ‘Plugin throwing PHP errors’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-block/assets/icon-256x256.png?rev=2548148)
 * [Contact Form Block](https://wordpress.org/plugins/contact-form-block/)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-block/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-block/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/plugin-throwing-php-errors/#post-16192866)
 * Status: resolved