• Resolved milsa

    (@milsa)


    Hello. WordPress 5.8.2
    Error when activating on PHP 8.1.0:
    Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF' at line 1 in /home/s/**/***/public_html/wp-includes/wp-db.php:2056 Stack trace: #0 /home/s/**/***/public_html/wp-includes/wp-db.php(2056): mysqli_query(Object(mysqli), 'DESCRIBE IF;') #1 /home/s/***/***/public_html/wp-includes/wp-db.php(1945): wpdb->_do_query('DESCRIBE IF;') #2 /home/s/***/***/public_html/wp-includes/wp-db.php(2695): wpdb->query('DESCRIBE IF;') #3 /home/s/***/***/public_html/wp-admin/includes/upgrade.php(2749): wpdb->get_results('DESCRIBE IF;') #4 /home/s/***/***/public_html/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(303): dbDelta(Array) #5 /home/s/***/***/public_html/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(220): WP_Maintenance_Mode::single_activate() #6 [internal function]: WP_Maintenance_Mode::activate('') #7 /home/s/***/***/public_html/wp-includes/class-wp-hook.php(303): call_user_func_array(Array, Array) #8 /home/s/***/***/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #9 /home/s/***/***/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #10 /home/s/***/***/public_html/wp-admin/plugins.php(193): do_action('activate_wp-mai...') #11 {main} thrown in /home/s/***/***/public_html/wp-includes/wp-db.php on line 2056

    Everything is good on php 7.4.

    • This topic was modified 3 years, 2 months ago by milsa.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem PHP 8.1.0’ is closed to new replies.