Title: Error mysqli_sql_exception with php 8.1
Last modified: December 10, 2021

---

# Error mysqli_sql_exception with php 8.1

 *  Resolved [Łukasz](https://wordpress.org/support/users/lumay/)
 * (@lumay)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-mysqli_sql_exception-with-php-8-1/)
 * Hi, after switching on php 8.1 there is Fatal error with Yoast plugin
 * Fatal error: Uncaught mysqli_sql_exception: Table….
 * Could you please check it, Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-mysqli_sql_exception-with-php-8-1%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-mysqli_sql_exception-with-php-8-1/#post-15151186)
 * Hello Łukasz,
 * We are sorry about the error you experienced with Yoast SEO and your PHP version.
   Unfortunately, **we haven’t yet fully tested the plugin with PHP version 8**.
   The entire WordPress community is still working on it. You can read the [https://developer.yoast.com/blog/the-2020-wordpress-and-php-8-compatibility-report/](https://developer.yoast.com/blog/the-2020-wordpress-and-php-8-compatibility-report/).
 * For Yoast SEO to run properly, you should have a PHP version of 5.6.20 or higher.
   In fact, we recommend PHP version 7.3 or above. Before you upgrade to a higher
   PHP version, [check if your WordPress site is ready](https://yoast.com/help/site-ready-php-7/)
   for it. Read [this helpful article](https://yoast.com/help/how-to-update-your-php-version/)
   to learn how to update your PHP version. Also, your [PHP memory](https://yoast.com/help/fatal-error-allowed-memory-exhausted/)
   should be 256M or greater.
 * Thank you.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-mysqli_sql_exception-with-php-8-1/#post-15173753)
 * 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 2 replies - 1 through 2 (of 2 total)

The topic ‘Error mysqli_sql_exception with php 8.1’ 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/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/error-mysqli_sql_exception-with-php-8-1/#post-15173753)
 * Status: resolved