You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every now and then I get the following fatal error in Query Monitor. It's rather benign, but I figured I would share anyway. I took a quick through existing issues and didn't see anything. Apologies if it's a duplicate.
Uncaught Error: count(): Argument #1 ($value) must be of type Countable|array, null given
in /srv/htdocs/wp-content/plugins/query-monitor/collectors/db_queries.php on line 231
Call stack:
QM_Collector_DB_Queries::process_db_object()
wp-content/plugins/query-monitor/collectors/db_queries.php:77
QM_Collector_DB_Queries::process()
wp-content/plugins/query-monitor/classes/Collectors.php:84
QM_Collectors::process()
wp-content/plugins/query-monitor/classes/Dispatcher.php:123
QM_Dispatcher::get_outputters('html')
wp-content/plugins/query-monitor/dispatchers/Html.php:358
QM_Dispatcher_Html::before_output()
wp-content/plugins/query-monitor/dispatchers/Html.php:322
QM_Dispatcher_Html::dispatch('')
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters(NULL, array)
wp-includes/class-wp-hook.php:348
WP_Hook::do_action(array)
wp-includes/plugin.php:517
do_action('shutdown')
wp-includes/load.php:1279
shutdown_action_hook()
Every now and then I get the following fatal error in Query Monitor. It's rather benign, but I figured I would share anyway. I took a quick through existing issues and didn't see anything. Apologies if it's a duplicate.
This appears to be happening at:
query-monitor/collectors/db_queries.php
Line 231 in 482c5f5
I'm sure a quick
is_countable()
or array casting would "fix" it but not necessarily the underling reason why.A refresh of the page always returns it back to working order.
The text was updated successfully, but these errors were encountered: