ERROR: Invalid call (typo?) to GoodByeCaptcha::PLUGIN_SLUG
-
This problem is in the file
/engine/modules/wordpress/WordPressPublicModule.php
in the methodWordPressPublicModule::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 callingInvisibleReCaptcha::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.
- The topic ‘ERROR: Invalid call (typo?) to GoodByeCaptcha::PLUGIN_SLUG’ is closed to new replies.