Title: PHP Fatal Error during deployment
Last modified: October 8, 2025

---

# PHP Fatal Error during deployment

 *  Resolved [ismael104](https://wordpress.org/support/users/ismael104/)
 * (@ismael104)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-during-deployment/)
 * 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](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [7 months, 4 weeks ago](https://wordpress.org/support/topic/php-fatal-error-during-deployment/#post-18682428)
 * Hello [@ismael104](https://wordpress.org/support/users/ismael104/),
 * I’m sorry about the error. Is anything in the frontend impacted? Also, ensure
   that your production site meets our [plugin requirements](https://yoast.com/help/plugin-requirements/).
 *  Thread Starter [ismael104](https://wordpress.org/support/users/ismael104/)
 * (@ismael104)
 * [7 months, 4 weeks ago](https://wordpress.org/support/topic/php-fatal-error-during-deployment/#post-18682637)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ismael104](https://wordpress.org/support/users/ismael104/)
 * Last activity: [7 months, 4 weeks ago](https://wordpress.org/support/topic/php-fatal-error-during-deployment/#post-18682637)
 * Status: resolved