Title: Fatal Error
Last modified: July 11, 2026

---

# Fatal Error

 *  Resolved [mikeemesser](https://wordpress.org/support/users/mikeemesser/)
 * (@mikeemesser)
 * [3 days, 19 hours ago](https://wordpress.org/support/topic/fatal-error-4992/)
 * We just had a fatal error showing, apparently caused by wordpress-seo. The server
   works again after a restart, but god knows for how long.
 * This is what the PHP Errors log said:
 * [11-Jul-2026 07:30:26 UTC] PHP Fatal error: Uncaught Error: Class “WPSEO_Admin_Bar_Menu”
   not found in /home/web_blackbox/web/www/app/public/wp-content/plugins/wordpress-
   seo/inc/wpseo-non-ajax-functions.php:20
   Stack trace: #0 /home/web_blackbox/web/
   www/app/public/wp-includes/class-wp-hook.php(341): wpseo_initialize_admin_bar()#
   1 /home/web_blackbox/web/www/app/public/wp-includes/class-wp-hook.php(365): WP_Hook-
   >apply_filters() #2 /home/web_blackbox/web/www/app/public/wp-includes/plugin.
   php(522): WP_Hook->do_action() #3 /home/web_blackbox/web/www/app/public/wp-settings.
   php(793): do_action()#4 /home/web_blackbox/web/www/app/public/wp-config.php(118):
   require_once(‘…’)#5 /home/web_blackbox/web/www/app/public/wp-load.php(50): require_once(‘…’)#
   6 /home/web_blackbox/web/www/app/public/wp-blog-header.php(13): require_once(‘…’)#
   7 /home/web_blackbox/web/www/app/public/index.php(17): require(‘…’)#8 {main}thrown
   in /home/web_blackbox/web/www/app/public/wp-content/plugins/wordpress-seo/inc/
   wpseo-non-ajax-functions.php on line 20
 * The Query Strings plugin showed the following:
 * work_admin() && WPSEO_Capability_Utils: current_user_can( ‘wpseo_manage_options’));}/**
    - Add submenu items to a menu item. ** [@param](https://wordpress.org/support/users/param/)
      array $submenu_items Submenu items array.
    - [@param](https://wordpress.org/support/users/param/) WP_Admin_Bar $wp_admin_bar
      Admin bar object. * [@param](https://wordpress.org/support/users/param/) string
      $parent_id Parent
 * menu item ID. **@return void */ protected function add_submenu_items ( array
 * $submenu_items, WP_Admin_Bar $wp_admin_bar, $parent_id ) { foreach ( $submenu_items
   as
 * $menu_item ) {$menu_args = [ ‘parent’ => $parent_id, ‘id’ => $menu_item[‘id’],‘
   title’ =>
 * $menu_item[‘title’], ‘href’ => $menu_item[‘href’], ‘meta’ => [ ‘target’ => ‘_blank’],];
 * $wp_admin_bar->add_menu($menu_args ); } } }
 * Any advice?
 * Regards,
 * Michael

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

 *  [Nuhman Nathly](https://wordpress.org/support/users/ahnuhmannathly/)
 * (@ahnuhmannathly)
 * [2 days, 21 hours ago](https://wordpress.org/support/topic/fatal-error-4992/#post-18962809)
 * Hi [@mikeemesser](https://wordpress.org/support/users/mikeemesser/)
 * Thanks for sharing the error log.
 * The error indicates that WordPress is unable to load the WPSEO_Admin_Bar_Menu
   class. This can happen if the Yoast SEO plugin files are incomplete or corrupted,
   or if there’s an issue with a cached version of the plugin after an update.
 * As a first step, could you please let us know:
    - Which version of Yoast SEO you’re using?
    - Which PHP version you’re running?
    - Whether the issue started after updating Yoast SEO, WordPress, or another 
      plugin?
 * I’d also recommend:
    - Reinstalling the Yoast SEO plugin (without deleting its data) to ensure all
      plugin files are intact.
    - Clearing any server-side caches and OPcache after the reinstall, if your hosting
      provider has OPcache enabled.
    - Checking whether the issue persists with all other plugins temporarily deactivated
      and a default WordPress theme enabled. This will help determine whether there’s
      a plugin or theme conflict.
 * If the problem continues after these steps, please let us know the answers to
   the questions above, and we’ll be happy to investigate further.
 * Thanks
 * Nuhman
 *  Thread Starter [mikeemesser](https://wordpress.org/support/users/mikeemesser/)
 * (@mikeemesser)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/fatal-error-4992/#post-18962838)
 * The Yoast version is 28.0
 * PHP Version is 8.4.14
 * It definitely did not start immediately after an update, but there were WordPress
   and Yoast-updates in the days before, yes.
 * In the last 24 hrs the server worked fine, so I think your theory about server
   caches and especially OPcache might hold some truth. We are running Litespeed
   server with various caches. We will further observe this issue.
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [12 hours, 10 minutes ago](https://wordpress.org/support/topic/fatal-error-4992/#post-18965009)
 * Thanks for the update, Michael.
 * It’s good to hear that the server has been stable over the last 24 hours. Since
   the issue didn’t begin immediately after an update and hasn’t recurred since 
   the server restart, it does seem more consistent with a temporary environment
   issue than with a persistent bug in Yoast SEO. In environments using LiteSpeed
   and OPcache, it’s possible for stale cached PHP code to cause class loading issues
   after updates, although we can’t confirm that was the cause in this case.
 * For now, we’d recommend continuing to monitor the site. Please keep us posted
   if the issue returns.
 *  Thread Starter [mikeemesser](https://wordpress.org/support/users/mikeemesser/)
 * (@mikeemesser)
 * [11 hours, 55 minutes ago](https://wordpress.org/support/topic/fatal-error-4992/#post-18965022)
 * O.K., thank you!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-4992%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

## Tags

 * [seo](https://wordpress.org/support/topic-tag/seo/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 4 replies
 * 3 participants
 * Last reply from: [mikeemesser](https://wordpress.org/support/users/mikeemesser/)
 * Last activity: [11 hours, 55 minutes ago](https://wordpress.org/support/topic/fatal-error-4992/#post-18965022)
 * Status: resolved