Opened 3 months ago
Closed 3 months ago
#62878 closed defect (bug) (invalid)
Uncaught TypeError: mysqli_get_server_info() 6.7.1
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
I have been optimalizing wp + woo combo of one of my sites when I encounter a PHP Fatal Error in logs.
[28-Jan-2025 19:09:33 UTC] PHP Fatal error: Uncaught TypeError: mysqli_get_server_info(): Argument #1 ($mysql) must be of type mysqli, null given in /var/www/site/web/wp-includes/class-wpdb.php:4132
Stack trace:
#0 /var/www/site/web/wp-includes/class-wpdb.php(4132): mysqli_get_server_info()
#1 /var/www/site/web/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(455): wpdb->db_server_info()
#2 /var/www/site/web/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(644): ActionScheduler_DBStore->get_query_actions_sql()
#3 /var/www/site/web/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Store.php(131): ActionScheduler_DBStore->query_actions()
#4 /var/www/site/web/wp-content/plugins/woocommerce/packages/action-scheduler/functions.php(412): ActionScheduler_Store->query_action()
#5 [internal function]: as_has_scheduled_action()
#6 /var/www/site/web/wp-content/plugins/woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php(554): call_user_func()
#7 /var/www/site/web/wp-content/plugins/woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php(86): Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->remove_or_retry_failed_processors()
#8 /var/www/site/web/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\BatchProcessing\BatchProcessingController->Automattic\WooCommerce\Internal\BatchProcessing\{closure}()
#9 /var/www/site/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/site/web/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/site/web/wp-includes/load.php(1279): do_action()
#12 [internal function]: shutdown_action_hook()
#13 {main}
thrown in /var/www/site/web/wp-includes/class-wpdb.php on line 4132
same error was notice in logs few times.
hi @polishdreamer, welcome to WordPress Trac. I'm sorry to hear you are having difficulty with your site, however this Trac is used for the development of the WordPress software, not for assistance with individual sites or plugins.
Based on the stacktrace, I would suggest reaching out to the Woocommerce Support Forums for further assistance.
I've closed this ticket with the term
invalid
, in this case it's the term trac uses to indicate that I've referred you to somewhere where you can find people better able to assist you. Best of luck.