Conflict with the W3 Total Cache
-
Hello. Installed your plugin to the multisite instance and activated it by network. The problem is with work of your plugin and w3 total cache plugin.
I have this fatal error when w3 total cache database cache is enabled
Fatal error: Uncaught TypeError: mysqli_num_fields(): Argument #1 ($result) must be of type mysqli_result, bool given in /var/www/mysite.local/wp-includes/class-wpdb.php:3868 Stack trace: #0 /var/www/mysite.local/wp-includes/class-wpdb.php(3868): mysqli_num_fields() #1 /var/www/mysite.local/wp-includes/class-wpdb.php(780): wpdb->load_col_info() #2 /var/www/mysite.local/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(218): wpdb->__get() #3 /var/www/mysite.local/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(122): W3TC\DbCache_WpdbInjection_QueryCaching->query() #4 /var/www/mysite.local/wp-includes/class-wpdb.php(3146): W3TC\DbCache_WpdbNew->query() #5 /var/www/mysite.local/wp-admin/includes/upgrade.php(2864): wpdb->get_results() #6 /var/www/mysite.local/wp-content/plugins/contact-form-to-any-api/admin/class-cf7-to-any-api-admin.php(422): dbDelta() #7 /var/www/mysite.local/wp-includes/class-wp-hook.php(324): Cf7_To_Any_Api_Admin->cf7toanyapi_add_new_table() #8 /var/www/mysite.local/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/mysite.local/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /var/www/mysite.local/wp-settings.php(506): do_action() #11 /var/www/mysite.local/wp-config.php(106): require_once(‘…’) #12 /var/www/mysite.local/wp-load.php(50): require_once(‘…’) #13 /var/www/mysite.local/wp-blog-header.php(13): require_once(‘…’) #14 /var/www/mysite.local/index.php(17): require(‘…’) #15 {main} thrown in?/var/www/mysite.local/wp-includes/class-wpdb.php?on line?3868
Right now I solved this by adding cf7anyapi_entries instead of cf_entries to the
wp-content/plugins/contact-form-to-any-api/admin/class-cf7-to-any-api-admin.php to line 410.
Adding wp_cf7anyapi_ to w3 total cache option Ignored query stems didn’t help.
- The topic ‘Conflict with the W3 Total Cache’ is closed to new replies.