• Resolved urbanheather

    (@urbanheather)


    I’m getting a critical error when activating Yoast (free) on my site. The site is a brand new fresh install of wordpress and the only theme and plugins on there are all plugins i’ve used in the past with Yoast, and have worked. Could anyone help?

    WordPress version 6.2
    
    Active theme: Salient Child Theme (version 1.0)
    
    Current plugin:  (version )
    
    PHP version 8.0.28
    
    Error Details
    
    =============
    
    An error of type E_ERROR was caused in line 19 of the file /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php. Error message: Uncaught Error: Class "YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container" not found in /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php:19
    
    Stack trace:
    
    #0 /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/src/main.php(57): require_once()
    
    #1 /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/lib/abstract-main.php(41): Yoast\WP\SEO\Main->get_container()
    
    #2 /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/src/functions.php(36): Yoast\WP\Lib\Abstract_Main->load()
    
    #3 /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(433): YoastSEO()
    
    #4 /home/anvilstonedogtra/public_html/wp-content/plugins/wordpress-seo/wp-seo.php(50): require_once('/home/anvilston...')
    
    #5 /home/anvilstonedogtra/public_html/wp-settings.php(453): include_once('/home/anvilston...')
    
    #6 /home/anvilstonedogtra/public_html/wp-config.php(96): require_once('/home/anvilston...')
    
    #7 /home/anvilstonedogtra/public_html/wp-load.php(50): require_once('/home/anvilston...')
    
    #8 /home/anvilstonedogtra/public_html/wp-login.php(12): require('/home/anvilston...')
    
    #9 {main}
    
      thrown
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter urbanheather

    (@urbanheather)

    Update on this: I think I’ve narrowed it down to three plugins possibly conflicting with each other when all three are live together – Yoast, Smush and Salient WPBakery Page Builder. I have used all these 3 plugins together in the past and they’ve worked before.

    I deactivated all plugins and tried reactivating one by one and got the following results…

    When deactivating Yoast and keeping everything else active and as it was, the site works fine.

    When using my theme Salient, with Salient’s plugins, Yoast and Smush by WPMU Dev I get the critical error.

    When deactivating Smush and just having Salient and Yoast active, I get a completely white screen on the frontend.

    When deactivating Salient’s plugins (specifically Salient WPBakery Page Builder) but keeping Yoast and Smush active, the site works but obviously doesn’t display correctly because it needs the page builder.

    Any advice on this would be much appreciated!

    Plugin Support devnihil

    (@devnihil)

    @urbanheather We’re sorry to hear you are experiencing this issue on your site.

    Looking at the error details, we observe that a class that is no longer available in the plugin, although “YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container” is still being referenced. This usually happens when the plugin files are cached and some old files are still used after updating the plugin. On occasions, this causes temporary errors that resolve themselves once the cache has been cleared.

    If the problem doesn’t resolve for you automatically, can you please try clearing the cache from your theme, plugin, server and CDN (e.g. CloudFlare) before and after updating Yoast SEO? If you are not sure how to clear the cache from a theme or plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider.

    Also, can you please confirm whether the installation of WordPress meets all of the plugin requirements listed here?: https://yoast.com/help/plugin-requirements/

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical error when activating Yoast’ is closed to new replies.