• Resolved Jer Clarke

    (@jeremyclarke)


    This problem is in the file /engine/modules/wordpress/WordPressPublicModule.php in the method WordPressPublicModule::validateCommentsRequest()

    Here’s the line you have, and the line that fixes the problem:

    	
    //wp_die( '<p>' . __( 'Link Notifications are disabled!', GoodByeCaptcha::PLUGIN_SLUG ) . '</p>', __( 'Comment Submission Failure' ), array( 'response' => 200 ) );
    	wp_die( '<p>' . __( 'Link Notifications are disabled!', \InvisibleReCaptcha::PLUGIN_SLUG ) . '</p>', __( 'Comment Submission Failure' ), array( 'response' => 200 ) );
    

    It seems to be triggered when someone fails a captcha or something, in the background, but the errors it causes were filling our logs with garbage. The actual error screens are no big deal because I’m pretty sure just bots are seeing them, but still, logs full of errors make it impossible to debug anything else.

    The actual error is just that you call GoodByeCaptcha::PLUGIN_SLUG when you should be calling InvisibleReCaptcha::PLUGIN_SLUG. I’m 99% sure this is just a typo based on cloning your plugin structure from someone else’s plugin. It slipped through because the error is only visible if you fail a captcha.

    Please fix this upstream ASAP so we don’t have to keep a forked version of the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jer Clarke

    (@jeremyclarke)

    Here’s an example of what we see in our logs:

    
    PHP Fatal error:  Uncaught Error: Class 'InvisibleReCaptcha\Modules\WordPress\GoodByeCaptcha' not found in /[...]/invisible-recaptcha/engine/Modules/WordPress/WordPressPublicModule.php:172
    
    Plugin Author MihChe

    (@mihche)

    Hi @jeremyclarke,
    Thanks for letting me know. I’ll fix this and a new version will be available soon.

    ~Mihai

    Thread Starter Jer Clarke

    (@jeremyclarke)

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ERROR: Invalid call (typo?) to GoodByeCaptcha::PLUGIN_SLUG’ is closed to new replies.