Yes, even though our plugins are tested, they can still crash. This is a shame and we are happy to fix these problems! This specific error means that the plugin can't communicate with the public AJAX endpoint of WordPress, or that there are javascript errors in the page that prevent the plugin from launching properly.
First: Update + Clear Cache
Start here: update the plugin to the latest version and clear the cache of your caching plugin or CDN. That often solves it: the issue may be a bug that is already fixed, and clearing the cache makes sure your site loads no old files.
Causes and Solutions
-
Cause: Caching or CDN Aggressively Caching JavaScript Files
If you're using caching or CDN systems/plugins that aggressively cache JavaScript files, outdated versions may be loaded.
Solution: Purge the cache to ensure the latest JavaScript files from the plugin are used.
-
Cause: ReCaptcha Integration Conflicts
The ReCaptcha feature in the plugin might be causing the issue in cases when invalid keys are used.
Solution: Disable the ReCaptcha integration temporarily to see if it resolves the problem. If it does, you may need to adjust the settings.
-
Cause: JavaScript Errors in the Browser
Sometimes, JavaScript errors on the page can prevent the plugin from initializing properly.
Solution: Open the browser’s developer console, reload the page, and check for any JavaScript errors in the log.
-
Cause: GZIP Compression Enabled in Plugin
Enabling GZIP compression in the plugin can cause encoding issues on some servers preventing the browser to understand the data it receives.
Solution: Disable the 'Enable GZIP Compression' setting in the 'Advanced' tab of the plugin's options page.
-
Cause: Security/Firewall Plugin Blocking AJAX Requests
Some security or firewall plugins may block access to WordPress’s public AJAX endpoint.
Solution: Temporarily disable the security or firewall plugin. If the issue is resolved, adjust the plugin settings to allow access to the AJAX endpoint.
-
Cause: Custom Code in functions.php Redirecting Users
Custom code using e.g. theadmin_inithook for non-admin roles can interfere with public AJAX calls. For example, some custom code is added to block subscriber roles from anything related to admin functionality and inadvertently blocks the public endpoint of/wp-admin/admin-ajax.phpas well.
Solution: Check yourfunctions.phpfile for any code that redirects users based on theadmin_inithook. Ensure it also checks forwp_doing_ajax()and allows public requests if necessary.
If this all doesn't help, please enable the WP_DEBUG setting in the wp-config.php file of your WordPress installation with the following settings:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false);
define( 'WP_DEBUG_LOG', true );Make sure WP_DEBUG appears only once in wp-config.php. Set it back to false when you're done.
After this, please trigger the same issue again and take a look at the wp-content/debug.log file. Are there any errors logged caused by the plugin?