• Resolved mikeemesser

    (@mikeemesser)


    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 array $submenu_items Submenu items array.
    • @param WP_Admin_Bar $wp_admin_bar Admin bar object. * @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)
  • Hi @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

    (@mikeemesser)

    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

    (@maybellyne)

    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

    (@mikeemesser)

    O.K., thank you!

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

You must be logged in to reply to this topic.