Intermittent error – Uncaught Error: Class “WPSEO_Rewrite”
-
We are using the free version of Yoast SEO are seeing an intermittent error that occurs regardless of whether the plugin is active or has been deactivated.
When this error occurs we see a large number of 403 errors triggered which appears to affect visitors to the website as well as Jetpack REST-API access.
Our website is hosted on wordpress.com and wordpress.com support have advised that we reach out to Yoast support regarding this issue.
We have uninstalled and reinstalled Yoast v25.8 on our website, however the plugin is flagged as “Updates managed by WordPress.com” and we are unable to verify any of the files installed.
When logged in to https://my.wordpress.com/sites/(our-url), the following error has been repeatedly appearing for the last 48 hours:
Your site cannot currently be reached
There has been a critical error on this website. Here is what we know and what you can do next.
Suspected plugin
⚠️ wordpress-seo (v28.2)
Uncaught Error: Class "WPSEO_Rewrite" not found in /srv/htdocs/wp-content/plugins/wordpress-seo/wp-seo-main.php:354 Stack trace: #0 /wordpress/core/7.0.4/wp-includes/class-wp-hook.php(341): wpseo_init('') #1 /wordpress/core/7.0.4/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /wordpress/core/7.0.4/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /wordpress/core/7.0.4/wp-settings.php(622): do_action('plugins_loaded') #4 /srv/htdocs/wp-config.php(84): require_once('/wordpress/core…') #5 /wordpress/core/7.0.4/wp-load.php(55): require_once('/srv/htdocs/wp-…') #6 /wordpress/core/7.0.4/wp-login.php(12): require('/wordpress/core…') #7 {main} thrownThere appears to be a mismatch between the plugin version we can see is installed (v28.5) and the version flagged in the error (v28.2). The error also references /wordpress/core/7.0.4/, while we are on WordPress v7.1.
We have ruled out any plugin conflicts as this error occurs even if all other plugins are deactivated.
You must be logged in to reply to this topic.