close

May 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

Fatal error in Yoast SEO plugin “Uncaught mysqli_sql_exception”

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8855 Reply
    Lori
    Guest

    migrated to new SlickStack server and

    [06-Nov-2023 09:44:50 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: Table 'production.yoast_wp_seo_models_indexable' doesn't exist in /var/www/html/wp-includes/wp-db.php:2056
    Stack trace:
    #0 /var/www/html/wp-includes/wp-db.php(2056): mysqli_query()
    #1 /var/www/html/wp-includes/wp-db.php(1945): wpdb->_do_query()
    #2 /var/www/html/wp-content/plugins/wordpress-seo/lib/orm.php(285): wpdb->query()
    #3 /var/www/html/wp-content/plugins/wordpress-seo/lib/orm.php(1946): Yoast\WP\Lib\ORM::execute()
    #4 /var/www/html/wp-content/plugins/wordpress-seo/lib/orm.php(383): Yoast\WP\Lib\ORM->run()
    #5 /var/www/html/wp-content/plugins/wordpress-seo/src/repositories/indexable-repository.php(327): Yoast\WP\Lib\ORM->find_one()
    #6 /var/www/html/wp-content/plugins/wordpress-seo/src/repositories/indexable-repository.php(117): Yoast\WP\SEO\Repositories\Indexable_Repository->find_by_id_and_type()
    #7 /var/www/html/wp-content/plugins/wordpress-seo/src/memoizers/meta-tags-context-memoizer.php(89): Yoast\WP\SEO\Repositories\Indexable_Repository->for_current_page()
    #8 /var/www/html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(260): Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer->for_current_page()
    #9 /var/www/html/wp-includes/class-wp-hook.php(292): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head()
    #10 /var/www/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #11 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #12 /var/www/html/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(251): do_action()
    #13 /var/www/html/wp-includes/class-wp-hook.php(292): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head()
    #14 /var/www/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #15 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action()
    #16 /var/www/html/wp-includes/general-template.php(3009): do_action()
    #17 /var/www/html/wp-content/themes/kadence/header.php(21): wp_head()
    #18 /var/www/html/wp-includes/template.php(730): require_once('...')
    #19 /var/www/html/wp-includes/template.php(676): load_template()
    #20 /var/www/html/wp-includes/general-template.php(48): locate_template()
    #21 /var/www/html/wp-content/themes/kadence/page.php(10): get_header()
    #22 /var/www/html/wp-includes/template-loader.php(106): include('...')
    #23 /var/www/html/wp-blog-header.php(19): require_once('...')
    #24 /var/www/html/index.php(17): require('...')
    #25 {main}
      thrown in /var/www/html/wp-includes/wp-db.php on line 2056
    #8856 Reply
    Dorothy
    Guest

    Does anyone know what causes this? I never saw it before.

    Cannot open my site without renaming the /wordpress-seo/ folder….

    #8857 Reply
    Frances
    Guest

    Version 15.7… isn’t that the latest version?

    #8858 Reply
    Tyler
    Guest

    noooo very outdated. After you disable Yoast by renaming the folder, login to WP Admin and go to Plugins page, Yoast should then deactivate.

    After that rename the folder back to normal, and then update the plugin. Lastly reactivate Yoast SEO.

    #21452 Reply
    Alice
    Guest

    After that rename the folder back to normal, and then update the plugin. Lastly reactivate Yoast SEO.

    This works 🙂

    apparently client didn’t update Yoast for like a decade 😅

    #21455 Reply
    Sandra
    Guest

    Does anyone seriously still use Yoast? pretty sure that plugin has destroyed more WP sites than any other plugin…

    #21456 Reply
    Anna
    Guest
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Fatal error in Yoast SEO plugin “Uncaught mysqli_sql_exception”

Thanks to our generous sponsors for their support!