Title: PHP 8.1 activate =&gt; Fatal error
Last modified: January 20, 2022

---

# PHP 8.1 activate => Fatal error

 *  Resolved [psychomann](https://wordpress.org/support/users/psychomann/)
 * (@psychomann)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-1-activate-fatal-error/)
 * Hi, I try to activate the extension on a new site with PHP 8.1 activate.
    Seems
   work with 8.0 … Should I stick to 8.0 ?
 * Fatal error: Uncaught mysqli_sql_exception: Table ‘xxx_xxx.xx_mo2f_user_details’
   doesn’t exist in /home/xxx/www/wp-includes/wp-db.php:2056
    Stack trace: #0 /home/
   xxx/www/wp-includes/wp-db.php(2056): mysqli_query() #1 /home/xxx/www/wp-includes/
   wp-db.php(1945): wpdb->_do_query() #2 /home/xxx/www/wp-content/plugins/miniorange-
   2-factor-authentication/database/database_functions_2fa.php(210): wpdb->query()#
   3 /home/xxx/www/wp-content/plugins/miniorange-2-factor-authentication/miniorange_2_factor_settings.
   php(324): Mo2fDB->get_no_of_2fa_users() #4 /home/xxx/www/wp-includes/class-wp-
   hook.php(303): Miniorange_twoFactor->mo_wpns_activate() #5 /home/xxx/www/wp-includes/
   class-wp-hook.php(327): WP_Hook->apply_filters() #6 /home/xxx/www/wp-includes/
   plugin.php(470): WP_Hook->do_action() #7 /home/xxx/www/wp-admin/plugins.php(193):
   do_action() #8 {main} thrown in /home/xxx/www/wp-includes/wp-db.php on line 2056

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

 *  Plugin Contributor [twofactorauthentication](https://wordpress.org/support/users/twofactorauthentication/)
 * (@twofactorauthentication)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-1-activate-fatal-error/#post-15310253)
 * Hi there,
 * Thank you for reaching out to us.
 * We have looked into the issue that you are facing.
    We would like to inform you
   that WordPress is not compatible with PHP version 8.1. This main issue is that
   tables are not getting created in PHP 8.1. This also includes default tables 
   that get created on WordPress.
 * For now, we would recommend you roll back to the previous PHP version 8.0.
    If
   you want to keep the PHP version as it then we can manually create the tables
   of our Google Authenticator plugin by running the database queries.
 * If you are interested then please raise a support query through the plugin so
   that we can arrange a meeting.
 * Thank you,
    miniOrange Team
 *  Plugin Contributor [twofactorauthentication](https://wordpress.org/support/users/twofactorauthentication/)
 * (@twofactorauthentication)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-1-activate-fatal-error/#post-15362453)
 * Hi,
 * We haven’t heard back from you.
 * Were you able to resolve this issue in our Google Authenticator[2FA/OTP] plugin?
 * If not, you can raise a query through the support form and we will reach out 
   to you for further assistance.
 * We are closing this ticket as of now.
 * Thank you,
    miniOrange Team

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

The topic ‘PHP 8.1 activate => Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/miniorange-2-factor-authentication/assets/icon-256x256.gif?
   rev=2652528)
 * [miniOrange 2FA – Two Factor Authentication for WordPress (OTP, SMS, Email, Google Authenticator)](https://wordpress.org/plugins/miniorange-2-factor-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/miniorange-2-factor-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/miniorange-2-factor-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/miniorange-2-factor-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/miniorange-2-factor-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/miniorange-2-factor-authentication/reviews/)

## Tags

 * [2fa](https://wordpress.org/support/topic-tag/2fa/)
 * [OTP](https://wordpress.org/support/topic-tag/otp/)

 * 2 replies
 * 2 participants
 * Last reply from: [twofactorauthentication](https://wordpress.org/support/users/twofactorauthentication/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-1-activate-fatal-error/#post-15362453)
 * Status: resolved