Database Cache doesn’t work with PHP 8.0
-
Hey,
After upgrading to PHP 8.0 from PHP 7.4, the Database Cache feature doesn’t work. We use Memcached as the Cache Method. We are on WordPress Version 5.8.1 and using 10.4.20-MariaDB.The site displays the following message – There has been a critical error on this website. Here are the errors from the log file,
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: mysqli_num_fields(): Argument #1 ($result) must be of type mysqli_result, bool given in /public_html/wp-includes/wp-db.php:3402\nStack trace:\n#0 /public_html/wp-includes/wp-db.php(3402): mysqli_num_fields()\n#1 /public_html/wp-includes/wp-db.php(645): wpdb->load_col_info()\n#2 /public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(176): wpdb->__get()\n#3 /public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(119): W3TC\\DbCache_WpdbInjection_QueryCaching->query()\n#4 /public_html/wp-includes/wp-db.php(2695): W3TC\\DbCache_WpdbNew->query()\n#5 /public_html/wp-admin/includes/upgrade.php(2749): wpdb->get_results()\n#6 /public_html/...
Appreciate the support.
Thanks
Asif
- The topic ‘Database Cache doesn’t work with PHP 8.0’ is closed to new replies.