johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

HyperDB - Undefined offset 0 #800

Open shivapoudel opened 1 year ago

shivapoudel commented 1 year ago

Notice thrown after HyperDB implementation.

[25-Jul-2023 08:27:11 UTC] PHP Notice:  Undefined offset: 0 in D:\...\wp-content\plugins\query-monitor\collectors\db_dupes.php on line 76
sethrubenstein commented 1 year ago

Getting the same

jschramm-ta commented 3 months ago

I got around this error by adding this code snippet either in db-config.php, a theme, or plugin:

add_action( 'plugins_loaded', function() {
    remove_filter( 'qm/collectors', 'register_qm_collector_db_dupes', 25 );
}, 9 );