• Resolved jimleeder123

    (@jimleeder123)


    I have tested updating a website to PHP 8.1 and the only plugin that breaks is Yoast.

    It works fine as it is on php 8 and I have tried updating all plugins and the WP.

    The WP admin works but the front end breaks.

    There is a php fatal error code in the title tag… (commented out site name)

    Fatal error: Uncaught mysqli_sql_exception: Table ‘[db-name-here].yoast_wp_seo_models_indexable’ doesn’t exist in /home/vagrant/sites/[site-name-here]/wp-includes/wp-db.php on line <i>2056</i>

    I’ve tried installing the Yoast test Helper plugin and running the “Reset Indexables tables & migrations” command but this ends up with a few fatal errors…

    Fatal error: Uncaught mysqli_sql_exception: Table ‘[site-name-here].wp_yoast_prominent_words’ doesn’t exist in /home/vagrant/sites/[site-name-here]/wp-includes/wp-db.php on line 2056
    ( ! ) mysqli_sql_exception: Table ‘aatcentraltheme.wp_yoast_prominent_words’ doesn’t exist in /home/vagrant/sites/[site-name-here]/wp-includes/wp-db.php on line 2056

    I’m running the sites locally on Laravel Homestead latest version.

    Any help/ideas would be great thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jimleeder123

    (@jimleeder123)

    I have tried installing a blank version of WordPress on my local machine as it is on the WordPress website. It failed to do anything with the database during the installation process on php 8.1 but worked on php 8.0.

    So once installed I switched it back to 8.1 and it works fine. Then I try installing Yoast from the plugin menu and the same fatal error as described earlier appears.

    Any help would be great, thanks.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @jimleeder123

    We understand there are some errors related to the Yoast SEO plugin appearing on your website that is using PHP 8.1.

    We do know that the Yoast SEO plugin should work with a minimum version of PHP 5.6.20 and we do recommend PHP 7.3 or greater – https://yoast.com/help/plugin-requirements/#php

    It looks like PHP 8.1 also just recently released last November 25, 2021. We’re not sure of the compatibility of PHP 8.1 and WordPress (in general) and the major plugins and themes as of yet.

    With regards to this error you are encountering with PHP 8.1, (but working fine with PHP 8.0), if this occurs with a site with a default WP theme (such as TwentyTwenty) and only Yoast SEO v17.6 as the plugin activated, we invite you to please log a bug report on GitHub by following the steps in this article – https://yoast.com/help/how-to-write-a-good-bug-report/

    Thank you!

    • This reply was modified 3 years, 3 months ago by Michael Ti?a.
    Thread Starter jimleeder123

    (@jimleeder123)

    Hi,

    Yes this is happening with the latest WP default theme on PHP 8.1. I will submit a bug.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    Thanks for confirming that this still occurs with a default WP theme and only the Yoast SEO v17.7.1 plugin enabled on PHP 8.1.

    Please do log the bug report and our developers will get back to you and provide further feedback. Thanks!

    Thread Starter jimleeder123

    (@jimleeder123)

    It looks like it’s already been reported and your team are aware. Posting the link below for anyone else who comes across this.

    https://github.com/Yoast/wordpress-seo/issues/17772

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @jimleeder123

    Thanks for letting us know. Based on the reply from our developers in this issue, a fix is already in the works. Please do subscribe to the issue for any updates and as to when the issue would eventually be addressed and closed.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP 8.1 Problems’ is closed to new replies.