Fatal error mysqli_sql_exception in wp-maintenance-mode
-
We got fatal error on updating to PHP 8.1
WordPress version: 6.1.1
PHP version: 8.1Error message:
Got error ‘PHP message: PHP 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 ……/frontend/wp-content/db.php:1201\nStack trace:\n#0 ……/frontend/wp-content/db.php(1201): mysqli_query()\n#1 ……/frontend/wp-content/db.php(838): hyperdb->ex_mysql_query()\n#2 ……/frontend/wp/wp-includes/class-wpdb.php(2854): hyperdb->query()\n#3 ……/frontend/wp/wp-admin/includes/upgrade.php(2792): wpdb->get_results()\n#4 ……/frontend/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php(412): dbDelta()\n#5 ……/frontend/wp-content/plugins/wp-maintenance-mode/includ…’,
- The topic ‘Fatal error mysqli_sql_exception in wp-maintenance-mode’ is closed to new replies.