I’m unable to reproduce this on any of my WordPress installs.
I have three small things to try, for whoever would like to try them. Willing volunteers will get a free copy of Query Monitor from me ??
1. Open up the wp-content/db.php
file that’s included in the Query Monitor plugin. Remove the line at the top starting with “Plugin Name”, save the file, and try activating Query Monitor again.
2. Failing that, open up query-monitor.php
and delete lines 235-239 (see source code here). Save the file and try activating Query Monitor again.
3. Failing that, open up wp-admin/includes/plugin.php
in your WordPress install. Line 872 should contain this:
$installed_plugins = get_plugins();
Immediately after that line, paste this in and save the file:
var_dump( $plugin );
var_dump( $installed_plugins );
die();
Activate Query Monitor again and paste here the contents of whatever is dumped to your screen.
If any of these three things work for you, please let me know, along with what PHP versions and operating system you’re running.