• 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} thrown

    There 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.

Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @essentialj,

    Thanks for providing the full error. There are two inconsistencies in the error that need to be investigated first:

    • The site currently reports Yoast SEO 28.5, but the failing request reports Yoast SEO 28.2.
    • The site is reported as running WordPress 7.1, but the stack trace is loading WordPress core from /wordpress/core/7.0.4/.

    The WPSEO_Rewrite fatal means that the Yoast initialization code is trying to instantiate a class that is not available during that particular request. Since WordPress.com manages the plugin installation and the WordPress environment on your site, we recommend asking WordPress.com to investigate why the failing request is loading these older versions.

    In particular, they should verify which Yoast SEO files and WordPress core version are actually being loaded by the requests that produce the fatal error.

    We would also recommend having WordPress.com investigate the 403 responses separately. The fatal error does not, by itself, establish that Yoast SEO is responsible for those 403s or the Jetpack REST API failures. If WordPress.com confirms that the failing request is executing the current Yoast SEO 28.5 files and WordPress 7.1 core, please let us know. At that point, we can investigate the WPSEO_Rewrite error further from the Yoast side.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.