• Resolved ismael104

    (@ismael104)


    Hello, I am trying to deploy a staging site to production using a tool from SolidWP and they gave me the following the error log:

    [08-Oct-2025 18:34:26 UTC] PHP Fatal error: Uncaught Error: Class "Yoast\WP\SEO\Surfaces\Classes_Surface" not found in /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php:6196 Stack trace: #0 /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\WP\SEO\Generated\Cached_Container->getClassesSurfaceService() #1 /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/lib/abstract-main.php(80): YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container->get('Yoast\\WP\\SEO\\Su...') #2 /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-router.php(20): Yoast\WP\Lib\Abstract_Main->__get('classes') #3 /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php(105): WPSEO_Sitemaps_Router->__construct() #4 /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(355): WPSEO_Sitemaps->__construct() #5 /home/wagesolutionsres/public_html/wp-includes/class-wp-hook.php(324): wpseo_init('') #6 /home/wagesolutionsres/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /home/wagesolutionsres/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home/wagesolutionsres/public_html/wp-settings.php(578): do_action('plugins_loaded') #9 /home/wagesolutionsres/public_html/wp-config.php(100): require_once('/home/wagesolut...') #10 /home/wagesolutionsres/public_html/wp-load.php(50): require_once('/home/wagesolut...') #11 /home/wagesolutionsres/public_html/wp-login.php(12): require('/home/wagesolut...') #12 {main} thrown in /home/wagesolutionsres/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 6196

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @ismael104,

    I’m sorry about the error. Is anything in the frontend impacted? Also, ensure that your production site meets our plugin requirements.

    Thread Starter ismael104

    (@ismael104)

    Hi Maybellyne,

    Yes unfortunately it crashed both our staging and production sites. We’ve been using Yoast on our sites for years and this is the first time we’ve run into this particular php error. Solid WP’s support was able to restore our sites, but they needed to disable Yoast.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal Error during deployment’ is closed to new replies.