Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HyperDB - Undefined offset 0 #800

Open
shivapoudel opened this issue Jul 25, 2023 · 2 comments
Open

HyperDB - Undefined offset 0 #800

shivapoudel opened this issue Jul 25, 2023 · 2 comments

Comments

@shivapoudel
Copy link

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
Copy link

Getting the same

@jschramm-ta
Copy link

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 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants