Viewing 1 post (of 1 total)
  • Author
    Posts
  • #162108 Reply
    Gavin Whitson
    Guest

    We are running an Azure WordPress instance that has been having stability issues since configuring W3 Total Cache. Having reached out to Microsoft Support, they identified an issue with W3 Total Cache that is producing a PHP Fatal error. Based on the following log excerpt, can you provide any potential troubleshooting steps that we can try?

    [20-Aug-2025 09:25:09 UTC] PHP Fatal error: Uncaught TypeError: mysqli_num_fields(): Argument #1 ($result) must be of type mysqli_result, false given in /home/site/wwwroot/wp-includes/class-wpdb.php:3859
    Stack trace:
    #0 /home/site/wwwroot/wp-includes/class-wpdb.php(3859): mysqli_num_fields(false)
    #1 /home/site/wwwroot/wp-includes/class-wpdb.php(780): wpdb->load_col_info()
    #2 /home/site/wwwroot/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(230): wpdb->__get(‘col_info’)
    #3 /home/site/wwwroot/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(217): W3TC\DbCache_WpdbInjection_QueryCaching->query(‘DESCRIBE wp_3_s…’)
    #4 /home/site/wwwroot/wp-includes/class-wpdb.php(3142): W3TC\DbCache_WpdbNew->query(‘DESCRIBE wp_3_s…’)
    #5 /home/site/wwwroot/wp-admin/includes/upgrade.php(2945): wpdb->get_results(‘DESCRIBE wp_3_s…’)
    #6 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/db/src/DB/DB.php(78): dbDelta(Array)
    #7 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/db/src/DB/DB.php(279): TEC\Common\StellarWP\DB\DB::TEC\Common\StellarWP\DB\{closure}()
    #8 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/db/src/DB/DB.php(76): TEC\Common\StellarWP\DB\DB::runQueryWithErrorChecking(Object(Closure))
    #9 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/schema/src/Schema/Tables/Contracts/Table.php(534): TEC\Common\StellarWP\DB\DB::delta(‘\n\t\t\tCREATE TABL…’)
    #10 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/schema/src/Schema/Builder.php(270): TEC\Common\StellarWP\Schema\Tables\Contracts\Table->update()
    #11 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/schema/src/Schema/Register.php(144): TEC\Common\StellarWP\Schema\Builder->up()
    #12 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/shepherd/src/Tables/Provider.php(44): TEC\Common\StellarWP\Schema\Register::table(Object(TEC\Common\StellarWP\Shepherd\Tables\Tasks))
    #13 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/stellarwp/shepherd/src/Provider.php(74): TEC\Common\StellarWP\Shepherd\Tables\Provider->register()
    #14 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(427): TEC\Common\StellarWP\Shepherd\Provider->register()
    #15 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php(63): TEC\Common\lucatume\DI52\Container->register(‘TEC\\Common\\Stel…’)
    #16 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Libraries/Shepherd.php(30): TEC\Common\Contracts\Container->register(‘TEC\\Common\\Stel…’)
    #17 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Provider/Controller.php(48): TEC\Common\Libraries\Shepherd->do_register()
    #18 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(427): TEC\Common\Contracts\Provider\Controller->register()
    #19 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php(63): TEC\Common\lucatume\DI52\Container->register(‘TEC\\Common\\Libr…’)
    #20 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Libraries/Provider.php(50): TEC\Common\Contracts\Container->register(‘TEC\\Common\\Libr…’)
    #21 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(427): TEC\Common\Libraries\Provider->register()
    #22 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php(63): TEC\Common\lucatume\DI52\Container->register(‘TEC\\Common\\Libr…’)
    #23 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(306): TEC\Common\Contracts\Container->register(‘TEC\\Common\\Libr…’)
    #24 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Tribe/Main.php(821): tribe_register_provider(‘TEC\\Common\\Libr…’)
    #25 /home/site/wwwroot/wp-content/plugins/the-events-calendar/common/src/Tribe/Main.php(123): Tribe__Main->bind_implementations()
    #26 /home/site/wwwroot/wp-includes/class-wp-hook.php(324): Tribe__Main->plugins_loaded(”)
    #27 /home/site/wwwroot/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #28 /home/site/wwwroot/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #29 /home/site/wwwroot/wp-settings.php(559): do_action(‘plugins_loaded’)
    #30 /home/site/wwwroot/wp-config.php(159): require_once(‘/home/site/wwwr…’)
    #31 /home/site/wwwroot/wp-load.php(50): require_once(‘/home/site/wwwr…’)
    #32 /home/site/wwwroot/wp-blog-header.php(13): require_once(‘/home/site/wwwr…’)
    #33 /home/site/wwwroot/index.php(17): require(‘/home/site/wwwr…’)
    #34 {main}
    thrown in /home/site/wwwroot/wp-includes/class-wpdb.php on line 3859

Viewing 1 post (of 1 total)
Reply To: W3 Total Cache – PHP Fatal error: Uncaught TypeError: mysqli_num_fields()
Your information: