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

Undefined index errors filling log after purging object cache #500

Open
afragen opened this issue Feb 22, 2020 · 9 comments · May be fixed by #501
Open

Undefined index errors filling log after purging object cache #500

afragen opened this issue Feb 22, 2020 · 9 comments · May be fixed by #501

Comments

@afragen
Copy link

afragen commented Feb 22, 2020

I'm using SpinupWP and when I purge the cache my error.log if filled with the following PHP notices.

[22-Feb-2020 01:22:56 UTC] PHP Notice Undefined index: ltime in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 73
[22-Feb-2020 01:22:56 UTC] PHP Notice Undefined index: component in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 119
[22-Feb-2020 01:22:56 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 156
[22-Feb-2020 01:22:56 UTC] PHP Notice Undefined index: type in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 157
[22-Feb-2020 01:22:56 UTC] PHP Notice Undefined index: ltime in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 158
[22-Feb-2020 01:22:56 UTC] PHP Notice Trying to get property 'context' of non-object in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 160
[22-Feb-2020 01:22:56 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/losrobleshoa.org/files/wp-content/plugins/query-monitor/output/html/http.php on line 292

This is reproducible for me every time I purge the object cache.

afragen added a commit to afragen/query-monitor that referenced this issue Feb 22, 2020
Exit foreach loop early if certain data are not defined. When undefined they cause many PHP notices.

Fixes johnbillion#500
@afragen afragen linked a pull request Feb 22, 2020 that will close this issue
@johnbillion
Copy link
Owner

Thanks for the PR. I wonder what the root cause is. I'll do some investigation.

@afragen
Copy link
Author

afragen commented Mar 2, 2020

As this happens on the server I can't really test locally. I don't have a similar cache present. I'll see if I can't write some stuff to the error logs.

@afragen
Copy link
Author

afragen commented Mar 3, 2020

I'm sorry for the dump but...

With the following code in /output/html/http.php

foreach ( $data['http'] as $key => $row ) {
	if ( ! isset( $row['ltime'], $row['component'] ) ){
		error_log('cache purge: ' . var_export($row,true) );
		//continue;
	}

[03-Mar-2020 19:32:23 UTC] cache purge: array ( 'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=query-monitor', 'args' => array ( 'method' => 'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'user-agent' => 'WordPress/5.3.2; https://thefragens.com', 'reject_unsafe_urls' => false, 'blocking' => true, 'headers' => array ( ), 'cookies' => array ( ), 'body' => NULL, 'compress' => false, 'decompress' => true, 'sslverify' => true, 'sslcertificates' => '/sites/thefragens.com/files/wp-includes/certificates/ca-bundle.crt', 'stream' => false, 'filename' => NULL, 'limit_response_size' => NULL, '_qm_key' => '1583263942.836https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=query-monitor', '_redirection' => 5, ), 'start' => 1583263942.835993, 'trace' => QM_Backtrace::__set_state(array( 'trace' => array ( 0 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-http.php', 'line' => 622, 'function' => 'request', 'class' => 'WP_Http', 'type' => '->', ), 1 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/http.php', 'line' => 164, 'function' => 'get', 'class' => 'WP_Http', 'type' => '->', ), 2 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 253, 'function' => 'wp_remote_get', ), 3 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 207, 'function' => 'get_dot_org_latest_download', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 4 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 270, 'function' => 'apply_config', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 5 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-wp-hook.php', 'line' => 288, 'function' => 'admin_init', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 6 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-wp-hook.php', 'line' => 312, 'function' => 'apply_filters', 'class' => 'WP_Hook', 'type' => '->', 'args' => array ( 0 => NULL, ), ), 7 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/plugin.php', 'line' => 478, 'function' => 'do_action', 'class' => 'WP_Hook', 'type' => '->', 'args' => array ( 0 => array ( 0 => '', ), ), ), 8 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/admin.php', 'line' => 170, 'function' => 'do_action', 'args' => array ( 0 => 'admin_init', ), ), 9 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/index.php', 'line' => 10, 'function' => 'require_once', ), ), 'filtered_trace' => NULL, 'calling_line' => 0, 'calling_file' => '', )), 'transport' => 'curl', 'end' => 1583263943.020595, 'response' => array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'server' => 'nginx', 'date' => 'Tue, 03 Mar 2020 19:32:22 GMT', 'content-type' => 'application/json', 'vary' => 'Accept-Encoding', 'access-control-allow-origin' => '*', 'x-frame-options' => 'SAMEORIGIN', 'content-encoding' => 'gzip', ), )), 'body' => '{"name":"Query Monitor","slug":"query-monitor","version":"3.5.2","author":"John Blackbourn<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/johnbillion","requires":"3.7","tested":"5.3.2","requires_php":"5.3.6","compatibility":[],"rating":98,"ratings":{"5":319,"4":2,"3":1,"2":0,"1":5},"num_ratings":327,"support_threads":16,"support_threads_resolved":11,"downloaded":2056832,"last_updated":"2019-12-02 10:52pm GMT","added":"2013-11-19","homepage":"https:\/\/querymonitor.com\/","sections":{"description":"
Query Monitor is the developer tools panel for WordPress. It enables debugging of database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.<\/p>\n
It includes some advanced features such as debugging of Ajax calls, REST API calls, and user capability checks. It includes the ability to narrow down much of its output by plugin or theme, allowing you to quickly determine poorly performing plugins, themes, or functions.<\/p>\n
Query Monitor focuses heavily on presenting its information in a useful manner, for example by showing aggregate database queries grouped by the plugins, themes, or functions that are responsible for them. It adds an admin toolbar menu showing an overview of the current page, with complete debugging information shown in panels once you select a menu item.<\/p>\n
For complete information, please see the Query Monitor website<\/a>.<\/p>\n
Here’s an overview of what’s shown for each page load:<\/p>\n
\n
Database queries, including notifications for slow, duplicate, or erroneous queries. Allows filtering by query type (SELECT<\/code>, UPDATE<\/code>, DELETE<\/code>, etc), responsible component (plugin, theme, WordPress core), and calling function, and provides separate aggregate views for each.<\/li>\n
The template filename, the complete template hierarchy, and names of all template parts that were loaded or not loaded.<\/li>\n
PHP errors presented nicely along with their responsible component and call stack, and a visible warning in the admin toolbar.<\/li>\n
Blocks and associated properties in post content when using WordPress 5.0+ or the Gutenberg plugin.<\/li>\n
Matched rewrite rules, associated query strings, and query vars.<\/li>\n
Enqueued scripts and stylesheets, along with their dependencies, dependents, and alerts for broken dependencies.<\/li>\n
Language settings and loaded translation files (MO files) for each text domain.<\/li>\n
HTTP API requests, with response code, responsible component, and time taken, with alerts for failed or erroneous requests.<\/li>\n
User capability checks, along with the result and any parameters passed to the capability check.<\/li>\n
Environment information, including detailed information about PHP, the database, WordPress, and the web server.<\/li>\n
The values of all WordPress conditional functions such as is_single()<\/code>, is_home()<\/code>, etc.<\/li>\n
Transients that were updated.<\/li>\n<\/ul>\n
In addition:<\/p>\n
\n
Whenever a redirect occurs, Query Monitor adds an HTTP header containing the call stack, so you can use your favourite HTTP inspector or browser developer tools to trace what triggered the redirect.<\/li>\n
The response from any jQuery-initiated Ajax request on the page will contain various debugging information in its headers. PHP errors also get output to the browser’s developer console.<\/li>\n
The response from an authenticated WordPress REST API request will contain various debugging information in its headers, as long as the authenticated user has permission to view Query Monitor’s output.<\/li>\n<\/ul>\n
By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n
In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n
Privacy Statement<\/h4>\n
Query Monitor is private by default and always will be. It does not persistently store any of the data that it collects. It does not send data to any third party, nor does it include any third party resources.<\/p>\n
Query Monitor’s full privacy statement can be found here<\/a>.<\/p>\n","faq":"\n
Who can see Query Monitor’s output?<\/h4>\n
\n
By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n
In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n<\/p>\n
Does Query Monitor itself impact the page generation time or memory usage?<\/h4>\n
\n
Short answer: Yes, but only a little.<\/p>\n
Long answer: Query Monitor has a small impact on page generation time because it hooks into WordPress in the same way that other plugins do. The impact is low; typically between 10ms and 100ms depending on the complexity of your site.<\/p>\n
Query Monitor’s memory usage typically accounts for around 10% of the total memory used to generate the page.<\/p>\n<\/p>\n
Are there any add-on plugins for Query Monitor?<\/h4>\n
\n
A list of add-on plugins for Query Monitor can be found here.<\/a><\/p>\n
In addition, Query Monitor transparently supports add-ons for the Debug Bar plugin. If you have any Debug Bar add-ons installed, just deactivate Debug Bar and the add-ons will show up in Query Monitor’s menu.<\/p>\n<\/p>\n
Where can I suggest a new feature or report a bug?<\/h4>\n
\n
Please use the issue tracker on Query Monitor’s GitHub repo<\/a> as it’s easier to keep track of issues there, rather than on the wordpress.org support forums.<\/p>\n<\/p>\n
Is Query Monitor available on WordPress.com VIP Go?<\/h4>\n
\n
Yep! However, a user needs to be granted the view_query_monitor<\/code> capability to see Query Monitor even if they’re an administrator.<\/p>\n<\/p>\n
I’m using multiple instances of wpdb. How do I get my additional instances to show up in Query Monitor?<\/h4>\n
\n
You’ll need to hook into the qm\/collect\/db_objects<\/code> filter and add an item to the array containing your wpdb<\/code> instance. For example:<\/p>\n
add_filter( 'qm\/collect\/db_objects', function( $objects ) {\n $objects['my_db'] = $GLOBALS['my_db'];\n return $objects;\n} );\n<\/code><\/pre>\n

Your wpdb<\/code> instance will then show up as a separate panel, and the query time and query count will show up separately in the admin toolbar menu. Aggregate information (queries by caller and component) will not be separated.<\/p>\n<\/p>\n

Can I click on stack traces to open the file in my editor?<\/h4>\n

\n

Yes! You can enable this on the Settings panel.<\/p>\n<\/p>\n

Do you accept donations?<\/h4>\n

\n

No, I do not accept donations. If you like the plugin, I’d love for you to leave a review<\/a>. Tell all your friends about the plugin too!<\/p>\n<\/p>\n\n","changelog":"

For Query Monitor’s changelog, please see the Releases page on GitHub<\/a>.<\/p>\n","screenshots":"

\"Admin<\/a>
Admin Toolbar Menu<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Component<\/p><\/li>

\"Capability<\/a>
Capability Checks<\/p><\/li>

\"Database<\/a>
Database Queries<\/p><\/li>

\"Hooks<\/a>
Hooks and Actions<\/p><\/li>

\"HTTP<\/a>
HTTP API Requests<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Calling Function<\/p><\/li><\/ol>"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","screenshots":{"1":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-1.png?rev=1856844","caption":"Admin Toolbar Menu"},"2":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-2.png?rev=1856844","caption":"Aggregate Database Queries by Component"},"3":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-3.png?rev=1856844","caption":"Capability Checks"},"4":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-4.png?rev=1856844","caption":"Database Queries"},"5":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-5.png?rev=1856844","caption":"Hooks and Actions"},"6":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-6.png?rev=1856844","caption":"HTTP API Requests"},"7":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-7.png?rev=1856844","caption":"Aggregate Database Queries by Calling Function"}},"tags":{"debug":"debug","debug-bar":"debug bar","debugging":"debugging","developer":"developer","development":"development"},"versions":{"2.10.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.10.0.zip","2.11.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.0.zip","2.11.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.1.zip","2.11.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.2.zip","2.11.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.3.zip","2.11.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.4.zip","2.12.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.12.0.zip","2.13.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.0.zip","2.13.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.1.zip","2.13.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.2.zip","2.13.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.3.zip","2.13.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.4.zip","2.14.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.14.0.zip","2.15.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.15.0.zip","2.16.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.1.zip","2.16.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.2.zip","2.17.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.17.0.zip","2.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.2.zip","2.5.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.3.zip","2.5.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.4.zip","2.5.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.5.zip","2.5.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.6.zip","2.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.zip","2.6.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.1.zip","2.6.10":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.10.zip","2.6.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.2.zip","2.6.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.3.zip","2.6.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.4.zip","2.6.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.5.zip","2.6.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.6.zip","2.6.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.7.zip","2.6.8":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.8.zip","2.6.9":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.9.zip","2.7.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.0.zip","2.7.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.1.zip","2.7.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.2.zip","2.7.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.3.zip","2.7.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.4.zip","2.8.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.0.zip","2.8.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.1.zip","2.9.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.0.zip","2.9.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.1.zip","3.0.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.0.zip","3.0.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.1.zip","3.1.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.0.zip","3.1.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.1.zip","3.2.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.0.zip","3.2.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.1.zip","3.2.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.2.zip","3.3.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.0.zip","3.3.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.1.zip","3.3.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.2.zip","3.3.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.3.zip","3.3.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.4.zip","3.3.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.5.zip","3.3.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.6.zip","3.3.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.7.zip","3.4.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.4.0.zip","3.5.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.0.zip","3.5.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.1.zip","3.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.zip"},"donate_link":"","author_block_count":0,"author_block_rating":98,"contributors":[]}',
'response' =>
array (
'code' => 200,
'message' => 'OK',
),
'cookies' =>
array (
),
'filename' => NULL,
'http_response' =>
WP_HTTP_Requests_Response::__set_state(array(
'response' =>
Requests_Response::__set_state(array(
'body' => '{"name":"Query Monitor","slug":"query-monitor","version":"3.5.2","author":"John Blackbourn<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/johnbillion","requires":"3.7","tested":"5.3.2","requires_php":"5.3.6","compatibility":[],"rating":98,"ratings":{"5":319,"4":2,"3":1,"2":0,"1":5},"num_ratings":327,"support_threads":16,"support_threads_resolved":11,"downloaded":2056832,"last_updated":"2019-12-02 10:52pm GMT","added":"2013-11-19","homepage":"https:\/\/querymonitor.com\/","sections":{"description":"

Query Monitor is the developer tools panel for WordPress. It enables debugging of database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.<\/p>\n

It includes some advanced features such as debugging of Ajax calls, REST API calls, and user capability checks. It includes the ability to narrow down much of its output by plugin or theme, allowing you to quickly determine poorly performing plugins, themes, or functions.<\/p>\n

Query Monitor focuses heavily on presenting its information in a useful manner, for example by showing aggregate database queries grouped by the plugins, themes, or functions that are responsible for them. It adds an admin toolbar menu showing an overview of the current page, with complete debugging information shown in panels once you select a menu item.<\/p>\n

For complete information, please see the Query Monitor website<\/a>.<\/p>\n

Here’s an overview of what’s shown for each page load:<\/p>\n

\n

Database queries, including notifications for slow, duplicate, or erroneous queries. Allows filtering by query type (SELECT<\/code>, UPDATE<\/code>, DELETE<\/code>, etc), responsible component (plugin, theme, WordPress core), and calling function, and provides separate aggregate views for each.<\/li>\n
The template filename, the complete template hierarchy, and names of all template parts that were loaded or not loaded.<\/li>\n
PHP errors presented nicely along with their responsible component and call stack, and a visible warning in the admin toolbar.<\/li>\n
Blocks and associated properties in post content when using WordPress 5.0+ or the Gutenberg plugin.<\/li>\n
Matched rewrite rules, associated query strings, and query vars.<\/li>\n
Enqueued scripts and stylesheets, along with their dependencies, dependents, and alerts for broken dependencies.<\/li>\n
Language settings and loaded translation files (MO files) for each text domain.<\/li>\n
HTTP API requests, with response code, responsible component, and time taken, with alerts for failed or erroneous requests.<\/li>\n
User capability checks, along with the result and any parameters passed to the capability check.<\/li>\n
Environment information, including detailed information about PHP, the database, WordPress, and the web server.<\/li>\n
The values of all WordPress conditional functions such as is_single()<\/code>, is_home()<\/code>, etc.<\/li>\n
Transients that were updated.<\/li>\n<\/ul>\n
In addition:<\/p>\n

\n

Whenever a redirect occurs, Query Monitor adds an HTTP header containing the call stack, so you can use your favourite HTTP inspector or browser developer tools to trace what triggered the redirect.<\/li>\n
The response from any jQuery-initiated Ajax request on the page will contain various debugging information in its headers. PHP errors also get output to the browser’s developer console.<\/li>\n
The response from an authenticated WordPress REST API request will contain various debugging information in its headers, as long as the authenticated user has permission to view Query Monitor’s output.<\/li>\n<\/ul>\n
By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n

In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n

Privacy Statement<\/h4>\n

Query Monitor is private by default and always will be. It does not persistently store any of the data that it collects. It does not send data to any third party, nor does it include any third party resources.<\/p>\n

Query Monitor’s full privacy statement can be found here<\/a>.<\/p>\n","faq":"\n

Who can see Query Monitor’s output?<\/h4>\n

\n

By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n

In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n<\/p>\n

Does Query Monitor itself impact the page generation time or memory usage?<\/h4>\n

\n

Short answer: Yes, but only a little.<\/p>\n

Long answer: Query Monitor has a small impact on page generation time because it hooks into WordPress in the same way that other plugins do. The impact is low; typically between 10ms and 100ms depending on the complexity of your site.<\/p>\n

Query Monitor’s memory usage typically accounts for around 10% of the total memory used to generate the page.<\/p>\n<\/p>\n

Are there any add-on plugins for Query Monitor?<\/h4>\n

\n

A list of add-on plugins for Query Monitor can be found here.<\/a><\/p>\n

In addition, Query Monitor transparently supports add-ons for the Debug Bar plugin. If you have any Debug Bar add-ons installed, just deactivate Debug Bar and the add-ons will show up in Query Monitor’s menu.<\/p>\n<\/p>\n

Where can I suggest a new feature or report a bug?<\/h4>\n

\n

Please use the issue tracker on Query Monitor’s GitHub repo<\/a> as it’s easier to keep track of issues there, rather than on the wordpress.org support forums.<\/p>\n<\/p>\n

Is Query Monitor available on WordPress.com VIP Go?<\/h4>\n

\n

Yep! However, a user needs to be granted the view_query_monitor<\/code> capability to see Query Monitor even if they’re an administrator.<\/p>\n<\/p>\n

I’m using multiple instances of wpdb. How do I get my additional instances to show up in Query Monitor?<\/h4>\n

\n

You’ll need to hook into the qm\/collect\/db_objects<\/code> filter and add an item to the array containing your wpdb<\/code> instance. For example:<\/p>\n

add_filter( 'qm\/collect\/db_objects', function( $objects ) {\n $objects['my_db'] = $GLOBALS['my_db'];\n return $objects;\n} );\n<\/code><\/pre>\n

Your wpdb<\/code> instance will then show up as a separate panel, and the query time and query count will show up separately in the admin toolbar menu. Aggregate information (queries by caller and component) will not be separated.<\/p>\n<\/p>\n

Can I click on stack traces to open the file in my editor?<\/h4>\n

\n

Yes! You can enable this on the Settings panel.<\/p>\n<\/p>\n

Do you accept donations?<\/h4>\n

\n

No, I do not accept donations. If you like the plugin, I’d love for you to leave a review<\/a>. Tell all your friends about the plugin too!<\/p>\n<\/p>\n\n","changelog":"

For Query Monitor’s changelog, please see the Releases page on GitHub<\/a>.<\/p>\n","screenshots":"

\"Admin<\/a>
Admin Toolbar Menu<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Component<\/p><\/li>

\"Capability<\/a>
Capability Checks<\/p><\/li>

\"Database<\/a>
Database Queries<\/p><\/li>

\"Hooks<\/a>
Hooks and Actions<\/p><\/li>

\"HTTP<\/a>
HTTP API Requests<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Calling Function<\/p><\/li><\/ol>"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","screenshots":{"1":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-1.png?rev=1856844","caption":"Admin Toolbar Menu"},"2":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-2.png?rev=1856844","caption":"Aggregate Database Queries by Component"},"3":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-3.png?rev=1856844","caption":"Capability Checks"},"4":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-4.png?rev=1856844","caption":"Database Queries"},"5":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-5.png?rev=1856844","caption":"Hooks and Actions"},"6":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-6.png?rev=1856844","caption":"HTTP API Requests"},"7":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-7.png?rev=1856844","caption":"Aggregate Database Queries by Calling Function"}},"tags":{"debug":"debug","debug-bar":"debug bar","debugging":"debugging","developer":"developer","development":"development"},"versions":{"2.10.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.10.0.zip","2.11.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.0.zip","2.11.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.1.zip","2.11.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.2.zip","2.11.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.3.zip","2.11.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.4.zip","2.12.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.12.0.zip","2.13.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.0.zip","2.13.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.1.zip","2.13.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.2.zip","2.13.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.3.zip","2.13.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.4.zip","2.14.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.14.0.zip","2.15.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.15.0.zip","2.16.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.1.zip","2.16.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.2.zip","2.17.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.17.0.zip","2.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.2.zip","2.5.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.3.zip","2.5.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.4.zip","2.5.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.5.zip","2.5.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.6.zip","2.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.zip","2.6.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.1.zip","2.6.10":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.10.zip","2.6.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.2.zip","2.6.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.3.zip","2.6.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.4.zip","2.6.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.5.zip","2.6.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.6.zip","2.6.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.7.zip","2.6.8":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.8.zip","2.6.9":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.9.zip","2.7.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.0.zip","2.7.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.1.zip","2.7.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.2.zip","2.7.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.3.zip","2.7.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.4.zip","2.8.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.0.zip","2.8.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.1.zip","2.9.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.0.zip","2.9.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.1.zip","3.0.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.0.zip","3.0.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.1.zip","3.1.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.0.zip","3.1.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.1.zip","3.2.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.0.zip","3.2.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.1.zip","3.2.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.2.zip","3.3.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.0.zip","3.3.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.1.zip","3.3.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.2.zip","3.3.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.3.zip","3.3.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.4.zip","3.3.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.5.zip","3.3.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.6.zip","3.3.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.7.zip","3.4.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.4.0.zip","3.5.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.0.zip","3.5.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.1.zip","3.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.zip"},"donate_link":"","author_block_count":0,"author_block_rating":98,"contributors":[]}',
'raw' => 'HTTP/1.1 200 OK
Server: nginx
Date: Tue, 03 Mar 2020 19:32:22 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
X-Frame-Options: SAMEORIGIN
Content-Encoding: gzip
{"name":"Query Monitor","slug":"query-monitor","version":"3.5.2","author":"John Blackbourn<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/johnbillion","requires":"3.7","tested":"5.3.2","requires_php":"5.3.6","compatibility":[],"rating":98,"ratings":{"5":319,"4":2,"3":1,"2":0,"1":5},"num_ratings":327,"support_threads":16,"support_threads_resolved":11,"downloaded":2056832,"last_updated":"2019-12-02 10:52pm GMT","added":"2013-11-19","homepage":"https:\/\/querymonitor.com\/","sections":{"description":"

Query Monitor is the developer tools panel for WordPress. It enables debugging of database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.<\/p>\n

It includes some advanced features such as debugging of Ajax calls, REST API calls, and user capability checks. It includes the ability to narrow down much of its output by plugin or theme, allowing you to quickly determine poorly performing plugins, themes, or functions.<\/p>\n

Query Monitor focuses heavily on presenting its information in a useful manner, for example by showing aggregate database queries grouped by the plugins, themes, or functions that are responsible for them. It adds an admin toolbar menu showing an overview of the current page, with complete debugging information shown in panels once you select a menu item.<\/p>\n

For complete information, please see the Query Monitor website<\/a>.<\/p>\n

Here’s an overview of what’s shown for each page load:<\/p>\n

\n

Database queries, including notifications for slow, duplicate, or erroneous queries. Allows filtering by query type (SELECT<\/code>, UPDATE<\/code>, DELETE<\/code>, etc), responsible component (plugin, theme, WordPress core), and calling function, and provides separate aggregate views for each.<\/li>\n
The template filename, the complete template hierarchy, and names of all template parts that were loaded or not loaded.<\/li>\n
PHP errors presented nicely along with their responsible component and call stack, and a visible warning in the admin toolbar.<\/li>\n
Blocks and associated properties in post content when using WordPress 5.0+ or the Gutenberg plugin.<\/li>\n
Matched rewrite rules, associated query strings, and query vars.<\/li>\n
Enqueued scripts and stylesheets, along with their dependencies, dependents, and alerts for broken dependencies.<\/li>\n
Language settings and loaded translation files (MO files) for each text domain.<\/li>\n
HTTP API requests, with response code, responsible component, and time taken, with alerts for failed or erroneous requests.<\/li>\n
User capability checks, along with the result and any parameters passed to the capability check.<\/li>\n
Environment information, including detailed information about PHP, the database, WordPress, and the web server.<\/li>\n
The values of all WordPress conditional functions such as is_single()<\/code>, is_home()<\/code>, etc.<\/li>\n
Transients that were updated.<\/li>\n<\/ul>\n
In addition:<\/p>\n

\n

Whenever a redirect occurs, Query Monitor adds an HTTP header containing the call stack, so you can use your favourite HTTP inspector or browser developer tools to trace what triggered the redirect.<\/li>\n
The response from any jQuery-initiated Ajax request on the page will contain various debugging information in its headers. PHP errors also get output to the browser’s developer console.<\/li>\n
The response from an authenticated WordPress REST API request will contain various debugging information in its headers, as long as the authenticated user has permission to view Query Monitor’s output.<\/li>\n<\/ul>\n
By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n

In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n

Privacy Statement<\/h4>\n

Query Monitor is private by default and always will be. It does not persistently store any of the data that it collects. It does not send data to any third party, nor does it include any third party resources.<\/p>\n

Query Monitor’s full privacy statement can be found here<\/a>.<\/p>\n","faq":"\n

Who can see Query Monitor’s output?<\/h4>\n

\n

By default, Query Monitor’s output is only shown to Administrators on single-site installations, and Super Admins on Multisite installations.<\/p>\n

In addition to this, you can set an authentication cookie which allows you to view Query Monitor output when you’re not logged in (or if you’re logged in as a non-Administrator). See the Settings panel for details.<\/p>\n<\/p>\n

Does Query Monitor itself impact the page generation time or memory usage?<\/h4>\n

\n

Short answer: Yes, but only a little.<\/p>\n

Long answer: Query Monitor has a small impact on page generation time because it hooks into WordPress in the same way that other plugins do. The impact is low; typically between 10ms and 100ms depending on the complexity of your site.<\/p>\n

Query Monitor’s memory usage typically accounts for around 10% of the total memory used to generate the page.<\/p>\n<\/p>\n

Are there any add-on plugins for Query Monitor?<\/h4>\n

\n

A list of add-on plugins for Query Monitor can be found here.<\/a><\/p>\n

In addition, Query Monitor transparently supports add-ons for the Debug Bar plugin. If you have any Debug Bar add-ons installed, just deactivate Debug Bar and the add-ons will show up in Query Monitor’s menu.<\/p>\n<\/p>\n

Where can I suggest a new feature or report a bug?<\/h4>\n

\n

Please use the issue tracker on Query Monitor’s GitHub repo<\/a> as it’s easier to keep track of issues there, rather than on the wordpress.org support forums.<\/p>\n<\/p>\n

Is Query Monitor available on WordPress.com VIP Go?<\/h4>\n

\n

Yep! However, a user needs to be granted the view_query_monitor<\/code> capability to see Query Monitor even if they’re an administrator.<\/p>\n<\/p>\n

I’m using multiple instances of wpdb. How do I get my additional instances to show up in Query Monitor?<\/h4>\n

\n

You’ll need to hook into the qm\/collect\/db_objects<\/code> filter and add an item to the array containing your wpdb<\/code> instance. For example:<\/p>\n

add_filter( 'qm\/collect\/db_objects', function( $objects ) {\n $objects['my_db'] = $GLOBALS['my_db'];\n return $objects;\n} );\n<\/code><\/pre>\n

Your wpdb<\/code> instance will then show up as a separate panel, and the query time and query count will show up separately in the admin toolbar menu. Aggregate information (queries by caller and component) will not be separated.<\/p>\n<\/p>\n

Can I click on stack traces to open the file in my editor?<\/h4>\n

\n

Yes! You can enable this on the Settings panel.<\/p>\n<\/p>\n

Do you accept donations?<\/h4>\n

\n

No, I do not accept donations. If you like the plugin, I’d love for you to leave a review<\/a>. Tell all your friends about the plugin too!<\/p>\n<\/p>\n\n","changelog":"

For Query Monitor’s changelog, please see the Releases page on GitHub<\/a>.<\/p>\n","screenshots":"

\"Admin<\/a>
Admin Toolbar Menu<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Component<\/p><\/li>

\"Capability<\/a>
Capability Checks<\/p><\/li>

\"Database<\/a>
Database Queries<\/p><\/li>

\"Hooks<\/a>
Hooks and Actions<\/p><\/li>

\"HTTP<\/a>
HTTP API Requests<\/p><\/li>

\"Aggregate<\/a>
Aggregate Database Queries by Calling Function<\/p><\/li><\/ol>"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","screenshots":{"1":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-1.png?rev=1856844","caption":"Admin Toolbar Menu"},"2":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-2.png?rev=1856844","caption":"Aggregate Database Queries by Component"},"3":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-3.png?rev=1856844","caption":"Capability Checks"},"4":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-4.png?rev=1856844","caption":"Database Queries"},"5":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-5.png?rev=1856844","caption":"Hooks and Actions"},"6":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-6.png?rev=1856844","caption":"HTTP API Requests"},"7":{"src":"https:\/\/ps.w.org\/query-monitor\/assets\/screenshot-7.png?rev=1856844","caption":"Aggregate Database Queries by Calling Function"}},"tags":{"debug":"debug","debug-bar":"debug bar","debugging":"debugging","developer":"developer","development":"development"},"versions":{"2.10.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.10.0.zip","2.11.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.0.zip","2.11.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.1.zip","2.11.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.2.zip","2.11.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.3.zip","2.11.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.11.4.zip","2.12.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.12.0.zip","2.13.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.0.zip","2.13.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.1.zip","2.13.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.2.zip","2.13.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.3.zip","2.13.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.13.4.zip","2.14.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.14.0.zip","2.15.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.15.0.zip","2.16.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.1.zip","2.16.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.16.2.zip","2.17.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.17.0.zip","2.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.2.zip","2.5.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.3.zip","2.5.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.4.zip","2.5.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.5.zip","2.5.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.5.6.zip","2.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.zip","2.6.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.1.zip","2.6.10":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.10.zip","2.6.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.2.zip","2.6.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.3.zip","2.6.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.4.zip","2.6.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.5.zip","2.6.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.6.zip","2.6.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.7.zip","2.6.8":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.8.zip","2.6.9":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.6.9.zip","2.7.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.0.zip","2.7.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.1.zip","2.7.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.2.zip","2.7.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.3.zip","2.7.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.7.4.zip","2.8.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.0.zip","2.8.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.8.1.zip","2.9.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.0.zip","2.9.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.2.9.1.zip","3.0.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.0.zip","3.0.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.0.1.zip","3.1.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.0.zip","3.1.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.1.1.zip","3.2.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.0.zip","3.2.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.1.zip","3.2.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.2.2.zip","3.3.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.0.zip","3.3.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.1.zip","3.3.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.2.zip","3.3.3":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.3.zip","3.3.4":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.4.zip","3.3.5":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.5.zip","3.3.6":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.6.zip","3.3.7":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.3.7.zip","3.4.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.4.0.zip","3.5.0":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.0.zip","3.5.1":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.1.zip","3.5.2":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.3.5.2.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/query-monitor.zip"},"donate_link":"","author_block_count":0,"author_block_rating":98,"contributors":[]}',
'headers' =>
Requests_Response_Headers::__set_state(array(
'data' =>
array (
'server' =>
array (
0 => 'nginx',
),
'date' =>
array (
0 => 'Tue, 03 Mar 2020 19:32:22 GMT',
),
'content-type' =>
array (
0 => 'application/json',
),
'vary' =>
array (
0 => 'Accept-Encoding',
),
'access-control-allow-origin' =>
array (
0 => '*',
),
'x-frame-options' =>
array (
0 => 'SAMEORIGIN',
),
'content-encoding' =>
array (
0 => 'gzip',
),
),
)),
'status_code' => 200,
'protocol_version' => 1.1,
'success' => true,
'redirects' => 0,
'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=query-monitor',
'history' =>
array (
),
'cookies' =>
Requests_Cookie_Jar::__set_state(array(
'cookies' =>
array (
),
)),
)),
'filename' => NULL,
'data' => NULL,
'headers' => NULL,
'status' => NULL,
)),
),
'info' =>
array (
'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=query-monitor',
'content_type' => 'application/json',
'http_code' => 200,
'header_size' => 258,
'request_size' => 347,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.180286,
'namelookup_time' => 0.004298,
'connect_time' => 0.054741,
'pretransfer_time' => 0.125398,
'size_upload' => 0.0,
'size_download' => 3888.0,
'speed_download' => 21600.0,
'speed_upload' => 0.0,
'download_content_length' => -1.0,
'upload_content_length' => -1.0,
'starttransfer_time' => 0.179688,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '198.143.164.251',
'certinfo' =>
array (
),
'primary_port' => 443,
'local_ip' => '167.71.126.23',
'local_port' => 57180,
'http_version' => 2,
'protocol' => 2,
'ssl_verifyresult' => 0,
'scheme' => 'HTTPS',
),
)

[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 77
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: component in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 123
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 160
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: type in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 161
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 162
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'context' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 164
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 296
[03-Mar-2020 19:32:23 UTC] cache purge: array ( 'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=debug-bar', 'args' => array ( 'method' => 'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'user-agent' => 'WordPress/5.3.2; https://thefragens.com', 'reject_unsafe_urls' => false, 'blocking' => true, 'headers' => array ( ), 'cookies' => array ( ), 'body' => NULL, 'compress' => false, 'decompress' => true, 'sslverify' => true, 'sslcertificates' => '/sites/thefragens.com/files/wp-includes/certificates/ca-bundle.crt', 'stream' => false, 'filename' => NULL, 'limit_response_size' => NULL, '_qm_key' => '1583263943.0232https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=debug-bar', '_redirection' => 5, ), 'start' => 1583263943.023237, 'trace' => QM_Backtrace::__set_state(array( 'trace' => array ( 0 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-http.php', 'line' => 622, 'function' => 'request', 'class' => 'WP_Http', 'type' => '->', ), 1 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/http.php', 'line' => 164, 'function' => 'get', 'class' => 'WP_Http', 'type' => '->', ), 2 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 253, 'function' => 'wp_remote_get', ), 3 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 207, 'function' => 'get_dot_org_latest_download', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 4 => array ( 'file' => '/sites/thefragens.com/files/wp-content/plugins/wp-debugging/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php', 'line' => 270, 'function' => 'apply_config', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 5 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-wp-hook.php', 'line' => 288, 'function' => 'admin_init', 'class' => 'WP_Dependency_Installer', 'type' => '->', ), 6 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-wp-hook.php', 'line' => 312, 'function' => 'apply_filters', 'class' => 'WP_Hook', 'type' => '->', 'args' => array ( 0 => NULL, ), ), 7 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/plugin.php', 'line' => 478, 'function' => 'do_action', 'class' => 'WP_Hook', 'type' => '->', 'args' => array ( 0 => array ( 0 => '', ), ), ), 8 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/admin.php', 'line' => 170, 'function' => 'do_action', 'args' => array ( 0 => 'admin_init', ), ), 9 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/index.php', 'line' => 10, 'function' => 'require_once', ), ), 'filtered_trace' => NULL, 'calling_line' => 0, 'calling_file' => '', )), 'transport' => 'curl', 'end' => 1583263943.196546, 'response' => array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'server' => 'nginx', 'date' => 'Tue, 03 Mar 2020 19:32:23 GMT', 'content-type' => 'application/json', 'vary' => 'Accept-Encoding', 'access-control-allow-origin' => '*', 'x-frame-options' => 'SAMEORIGIN', 'content-encoding' => 'gzip', ), )), 'body' => '{"name":"Debug Bar","slug":"debug-bar","version":"1.0","author":"wordpressdotorg<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/westi","requires":"3.4","tested":"4.9.13","requires_php":false,"compatibility":[],"rating":84,"ratings":{"5":43,"4":3,"3":1,"2":0,"1":11},"num_ratings":58,"support_threads":1,"support_threads_resolved":0,"downloaded":792169,"last_updated":"2018-11-27 12:31am GMT","added":"2010-11-04","homepage":"https:\/\/wordpress.org\/plugins\/debug-bar\/","sections":{"description":"
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.<\/p>\n
A must for developers!<\/p>\n
When WP_DEBUG<\/code> is enabled it also tracks PHP Warnings and Notices to make them easier to find.<\/p>\n
When SAVEQUERIES<\/code> is enabled the mysql queries are tracked and displayed.<\/p>\n
To enable these options, add the following code to your wp-config.php<\/code> file:<\/p>\n
define( 'WP_DEBUG', true );\ndefine( 'SAVEQUERIES', true );\n<\/code><\/pre>\n

Add a PHP\/MySQL console with the Debug Bar Console plugin<\/a>.<\/p>\n

There are numerous other add-ons available to get more insight into, for instance, the registered Post Types, Shortcodes, WP Cron, Language file loading, Actions and Filters and so on. Just search the plugin directory for ‘Debug Bar’<\/a>.<\/p>\n","installation":"

Use automatic installer.<\/p>\n","changelog":"

0.9<\/h4>\n

Added panel navigation to toolbar.
\nImproved localization support.
\nSecurity fixes.<\/p>\n

0.8.4<\/h4>\n

Updated to avoid incompatibilities with some extensions.<\/p>\n

0.8.3<\/h4>\n

Updated to avoid PHP7 Deprecated notices.<\/p>\n

0.8.2<\/h4>\n

Updated to handle a new deprecated message in WordPress 4.0.<\/p>\n

0.8.1<\/h4>\n

Minor security fix.<\/p>\n

0.8<\/h4>\n

WordPress 3.3 compatibility
\nUI refresh
\nRemoved jQuery UI requirement
\nFull screen by default
\nNew debug-bar query parameter to show on page load
\nRemoved display cookies
\nJavaScript error tracking (disabled by default)<\/p>\n

0.7<\/h4>\n

Made compatible with PHP < 5.2.0
\nCSS Tweaks
\nLoad JavaScript in Footer
\nFixed display issues for WP_Query debug on CPT archives pages
\nSQL\/DB error tracking<\/p>\n

0.6<\/h4>\n

Added maximize\/restore button
\nAdded cookie to keep track of debug bar state
\nAdded post type information to WP_Query tab
\nBug fix where bottom of page was obscured in the admin<\/p>\n

0.5<\/h4>\n

New UI
\nBackend rewritten with a class for each panel
\nMany miscellaneous improvements<\/p>\n

0.4.1<\/h4>\n

Compatibility updates for trunk<\/p>\n

0.4<\/h4>\n

Added DB Version information
\nUpdated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
\nCompatibility updates for trunk<\/p>\n

0.3<\/h4>\n

Added WordPress Query infomation
\nAdded Request parsing information<\/p>\n

0.2<\/h4>\n

Added PHP Notice \/ Warning tracking when WP_DEBUG enabled
\nAdded deprecated function usage tracking<\/p>\n

0.1<\/h4>\n

Initial Release<\/p>\n"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","screenshots":[],"tags":{"debug":"debug"},"versions":{"0.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.1.zip","0.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.2.zip","0.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.3.zip","0.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.zip","0.4.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.1.zip","0.5":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.5.zip","0.6":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.6.zip","0.7":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.7.zip","0.8":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.zip","0.8.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.1.zip","0.8.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.2.zip","0.8.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.3.zip","0.8.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.4.zip","0.9":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.9.zip","1.0":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.zip"},"donate_link":"","author_block_count":0,"author_block_rating":84,"contributors":[]}',
'response' =>
array (
'code' => 200,
'message' => 'OK',
),
'cookies' =>
array (
),
'filename' => NULL,
'http_response' =>
WP_HTTP_Requests_Response::__set_state(array(
'response' =>
Requests_Response::__set_state(array(
'body' => '{"name":"Debug Bar","slug":"debug-bar","version":"1.0","author":"wordpressdotorg<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/westi","requires":"3.4","tested":"4.9.13","requires_php":false,"compatibility":[],"rating":84,"ratings":{"5":43,"4":3,"3":1,"2":0,"1":11},"num_ratings":58,"support_threads":1,"support_threads_resolved":0,"downloaded":792169,"last_updated":"2018-11-27 12:31am GMT","added":"2010-11-04","homepage":"https:\/\/wordpress.org\/plugins\/debug-bar\/","sections":{"description":"

Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.<\/p>\n

A must for developers!<\/p>\n

When WP_DEBUG<\/code> is enabled it also tracks PHP Warnings and Notices to make them easier to find.<\/p>\n

When SAVEQUERIES<\/code> is enabled the mysql queries are tracked and displayed.<\/p>\n

To enable these options, add the following code to your wp-config.php<\/code> file:<\/p>\n

define( 'WP_DEBUG', true );\ndefine( 'SAVEQUERIES', true );\n<\/code><\/pre>\n

Add a PHP\/MySQL console with the Debug Bar Console plugin<\/a>.<\/p>\n

There are numerous other add-ons available to get more insight into, for instance, the registered Post Types, Shortcodes, WP Cron, Language file loading, Actions and Filters and so on. Just search the plugin directory for ‘Debug Bar’<\/a>.<\/p>\n","installation":"

Use automatic installer.<\/p>\n","changelog":"

0.9<\/h4>\n

Added panel navigation to toolbar.
\nImproved localization support.
\nSecurity fixes.<\/p>\n

0.8.4<\/h4>\n

Updated to avoid incompatibilities with some extensions.<\/p>\n

0.8.3<\/h4>\n

Updated to avoid PHP7 Deprecated notices.<\/p>\n

0.8.2<\/h4>\n

Updated to handle a new deprecated message in WordPress 4.0.<\/p>\n

0.8.1<\/h4>\n

Minor security fix.<\/p>\n

0.8<\/h4>\n

WordPress 3.3 compatibility
\nUI refresh
\nRemoved jQuery UI requirement
\nFull screen by default
\nNew debug-bar query parameter to show on page load
\nRemoved display cookies
\nJavaScript error tracking (disabled by default)<\/p>\n

0.7<\/h4>\n

Made compatible with PHP < 5.2.0
\nCSS Tweaks
\nLoad JavaScript in Footer
\nFixed display issues for WP_Query debug on CPT archives pages
\nSQL\/DB error tracking<\/p>\n

0.6<\/h4>\n

Added maximize\/restore button
\nAdded cookie to keep track of debug bar state
\nAdded post type information to WP_Query tab
\nBug fix where bottom of page was obscured in the admin<\/p>\n

0.5<\/h4>\n

New UI
\nBackend rewritten with a class for each panel
\nMany miscellaneous improvements<\/p>\n

0.4.1<\/h4>\n

Compatibility updates for trunk<\/p>\n

0.4<\/h4>\n

Added DB Version information
\nUpdated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
\nCompatibility updates for trunk<\/p>\n

0.3<\/h4>\n

Added WordPress Query infomation
\nAdded Request parsing information<\/p>\n

0.2<\/h4>\n

Added PHP Notice \/ Warning tracking when WP_DEBUG enabled
\nAdded deprecated function usage tracking<\/p>\n

0.1<\/h4>\n

Initial Release<\/p>\n"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","screenshots":[],"tags":{"debug":"debug"},"versions":{"0.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.1.zip","0.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.2.zip","0.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.3.zip","0.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.zip","0.4.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.1.zip","0.5":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.5.zip","0.6":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.6.zip","0.7":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.7.zip","0.8":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.zip","0.8.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.1.zip","0.8.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.2.zip","0.8.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.3.zip","0.8.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.4.zip","0.9":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.9.zip","1.0":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.zip"},"donate_link":"","author_block_count":0,"author_block_rating":84,"contributors":[]}',
'raw' => 'HTTP/1.1 200 OK
Server: nginx
Date: Tue, 03 Mar 2020 19:32:23 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
X-Frame-Options: SAMEORIGIN
Content-Encoding: gzip
{"name":"Debug Bar","slug":"debug-bar","version":"1.0","author":"wordpressdotorg<\/a>","author_profile":"https:\/\/profiles.wordpress.org\/westi","requires":"3.4","tested":"4.9.13","requires_php":false,"compatibility":[],"rating":84,"ratings":{"5":43,"4":3,"3":1,"2":0,"1":11},"num_ratings":58,"support_threads":1,"support_threads_resolved":0,"downloaded":792169,"last_updated":"2018-11-27 12:31am GMT","added":"2010-11-04","homepage":"https:\/\/wordpress.org\/plugins\/debug-bar\/","sections":{"description":"

Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.<\/p>\n

A must for developers!<\/p>\n

When WP_DEBUG<\/code> is enabled it also tracks PHP Warnings and Notices to make them easier to find.<\/p>\n

When SAVEQUERIES<\/code> is enabled the mysql queries are tracked and displayed.<\/p>\n

To enable these options, add the following code to your wp-config.php<\/code> file:<\/p>\n

define( 'WP_DEBUG', true );\ndefine( 'SAVEQUERIES', true );\n<\/code><\/pre>\n

Add a PHP\/MySQL console with the Debug Bar Console plugin<\/a>.<\/p>\n

There are numerous other add-ons available to get more insight into, for instance, the registered Post Types, Shortcodes, WP Cron, Language file loading, Actions and Filters and so on. Just search the plugin directory for ‘Debug Bar’<\/a>.<\/p>\n","installation":"

Use automatic installer.<\/p>\n","changelog":"

0.9<\/h4>\n

Added panel navigation to toolbar.
\nImproved localization support.
\nSecurity fixes.<\/p>\n

0.8.4<\/h4>\n

Updated to avoid incompatibilities with some extensions.<\/p>\n

0.8.3<\/h4>\n

Updated to avoid PHP7 Deprecated notices.<\/p>\n

0.8.2<\/h4>\n

Updated to handle a new deprecated message in WordPress 4.0.<\/p>\n

0.8.1<\/h4>\n

Minor security fix.<\/p>\n

0.8<\/h4>\n

WordPress 3.3 compatibility
\nUI refresh
\nRemoved jQuery UI requirement
\nFull screen by default
\nNew debug-bar query parameter to show on page load
\nRemoved display cookies
\nJavaScript error tracking (disabled by default)<\/p>\n

0.7<\/h4>\n

Made compatible with PHP < 5.2.0
\nCSS Tweaks
\nLoad JavaScript in Footer
\nFixed display issues for WP_Query debug on CPT archives pages
\nSQL\/DB error tracking<\/p>\n

0.6<\/h4>\n

Added maximize\/restore button
\nAdded cookie to keep track of debug bar state
\nAdded post type information to WP_Query tab
\nBug fix where bottom of page was obscured in the admin<\/p>\n

0.5<\/h4>\n

New UI
\nBackend rewritten with a class for each panel
\nMany miscellaneous improvements<\/p>\n

0.4.1<\/h4>\n

Compatibility updates for trunk<\/p>\n

0.4<\/h4>\n

Added DB Version information
\nUpdated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
\nCompatibility updates for trunk<\/p>\n

0.3<\/h4>\n

Added WordPress Query infomation
\nAdded Request parsing information<\/p>\n

0.2<\/h4>\n

Added PHP Notice \/ Warning tracking when WP_DEBUG enabled
\nAdded deprecated function usage tracking<\/p>\n

0.1<\/h4>\n

Initial Release<\/p>\n"},"download_link":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","screenshots":[],"tags":{"debug":"debug"},"versions":{"0.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.1.zip","0.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.2.zip","0.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.3.zip","0.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.zip","0.4.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.4.1.zip","0.5":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.5.zip","0.6":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.6.zip","0.7":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.7.zip","0.8":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.zip","0.8.1":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.1.zip","0.8.2":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.2.zip","0.8.3":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.3.zip","0.8.4":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.8.4.zip","0.9":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.0.9.zip","1.0":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.1.0.zip","trunk":"https:\/\/downloads.wordpress.org\/plugin\/debug-bar.zip"},"donate_link":"","author_block_count":0,"author_block_rating":84,"contributors":[]}',
'headers' =>
Requests_Response_Headers::__set_state(array(
'data' =>
array (
'server' =>
array (
0 => 'nginx',
),
'date' =>
array (
0 => 'Tue, 03 Mar 2020 19:32:23 GMT',
),
'content-type' =>
array (
0 => 'application/json',
),
'vary' =>
array (
0 => 'Accept-Encoding',
),
'access-control-allow-origin' =>
array (
0 => '*',
),
'x-frame-options' =>
array (
0 => 'SAMEORIGIN',
),
'content-encoding' =>
array (
0 => 'gzip',
),
),
)),
'status_code' => 200,
'protocol_version' => 1.1,
'success' => true,
'redirects' => 0,
'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=debug-bar',
'history' =>
array (
),
'cookies' =>
Requests_Cookie_Jar::__set_state(array(
'cookies' =>
array (
),
)),
)),
'filename' => NULL,
'data' => NULL,
'headers' => NULL,
'status' => NULL,
)),
),
'info' =>
array (
'url' => 'https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=debug-bar',
'content_type' => 'application/json',
'http_code' => 200,
'header_size' => 258,
'request_size' => 339,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.17177,
'namelookup_time' => 4.0E-5,
'connect_time' => 0.05046,
'pretransfer_time' => 0.118653,
'size_upload' => 0.0,
'size_download' => 1735.0,
'speed_download' => 10146.0,
'speed_upload' => 0.0,
'download_content_length' => -1.0,
'upload_content_length' => -1.0,
'starttransfer_time' => 0.171625,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '198.143.164.251',
'certinfo' =>
array (
),
'primary_port' => 443,
'local_ip' => '167.71.126.23',
'local_port' => 57182,
'http_version' => 2,
'protocol' => 2,
'ssl_verifyresult' => 0,
'scheme' => 'HTTPS',
),
)

[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 77
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: component in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 123
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 160
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: type in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 161
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 162
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'context' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 164
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 296
[03-Mar-2020 19:32:23 UTC] cache purge: array ( 'url' => 'https://api.wordpress.org/core/browse-happy/1.1/', 'args' => array ( 'method' => 'POST', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'user-agent' => 'WordPress/5.3.2; https://thefragens.com/', 'reject_unsafe_urls' => false, 'blocking' => true, 'headers' => array ( ), 'cookies' => array ( ), 'body' => array ( 'useragent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15', ), 'compress' => false, 'decompress' => true, 'sslverify' => true, 'sslcertificates' => '/sites/thefragens.com/files/wp-includes/certificates/ca-bundle.crt', 'stream' => false, 'filename' => NULL, 'limit_response_size' => NULL, '_qm_key' => '1583263943.2081https://api.wordpress.org/core/browse-happy/1.1/', '_redirection' => 5, ), 'start' => 1583263943.208114, 'trace' => QM_Backtrace::__set_state(array( 'trace' => array ( 0 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-http.php', 'line' => 605, 'function' => 'request', 'class' => 'WP_Http', 'type' => '->', ), 1 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/http.php', 'line' => 181, 'function' => 'post', 'class' => 'WP_Http', 'type' => '->', ), 2 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/includes/dashboard.php', 'line' => 1658, 'function' => 'wp_remote_post', ), 3 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/includes/dashboard.php', 'line' => 27, 'function' => 'wp_check_browser_version', ), 4 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/index.php', 'line' => 15, 'function' => 'wp_dashboard_setup', ), ), 'filtered_trace' => NULL, 'calling_line' => 0, 'calling_file' => '', )), 'transport' => 'curl', 'end' => 1583263943.377961, 'response' => array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'server' => 'nginx', 'date' => 'Tue, 03 Mar 2020 19:32:23 GMT', 'content-type' => 'text/html; charset=utf-8', 'vary' => 'Accept-Encoding', 'x-frame-options' => 'SAMEORIGIN', 'content-encoding' => 'gzip', ), )), 'body' => '
name => Safari
version => 13.0.5
platform => Macintosh
update_url => https://www.apple.com/safari/
img_src => http://s.w.org/images/browsers/safari.png?1
img_src_ssl => https://s.w.org/images/browsers/safari.png?1
current_version => 11
upgrade => false
insecure => false
mobile => false
', 'response' => array ( 'code' => 200, 'message' => 'OK', ), 'cookies' => array ( ), 'filename' => NULL, 'http_response' => WP_HTTP_Requests_Response::__set_state(array( 'response' => Requests_Response::__set_state(array( 'body' => '
name => Safari
version => 13.0.5
platform => Macintosh
update_url => https://www.apple.com/safari/
img_src => http://s.w.org/images/browsers/safari.png?1
img_src_ssl => https://s.w.org/images/browsers/safari.png?1
current_version => 11
upgrade => false
insecure => false
mobile => false
', 'raw' => 'HTTP/1.1 200 OK Server: nginx Date: Tue, 03 Mar 2020 19:32:23 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding X-Frame-Options: SAMEORIGIN Content-Encoding: gzip
name => Safari
version => 13.0.5
platform => Macintosh
update_url => https://www.apple.com/safari/
img_src => http://s.w.org/images/browsers/safari.png?1
img_src_ssl => https://s.w.org/images/browsers/safari.png?1
current_version => 11
upgrade => false
insecure => false
mobile => false
', 'headers' => Requests_Response_Headers::__set_state(array( 'data' => array ( 'server' => array ( 0 => 'nginx', ), 'date' => array ( 0 => 'Tue, 03 Mar 2020 19:32:23 GMT', ), 'content-type' => array ( 0 => 'text/html; charset=utf-8', ), 'vary' => array ( 0 => 'Accept-Encoding', ), 'x-frame-options' => array ( 0 => 'SAMEORIGIN', ), 'content-encoding' => array ( 0 => 'gzip', ), ), )), 'status_code' => 200, 'protocol_version' => 1.1, 'success' => true, 'redirects' => 0, 'url' => 'https://api.wordpress.org/core/browse-happy/1.1/', 'history' => array ( ), 'cookies' => Requests_Cookie_Jar::__set_state(array( 'cookies' => array ( ), )), )), 'filename' => NULL, 'data' => NULL, 'headers' => NULL, 'status' => NULL, )), ), 'info' => array ( 'url' => 'https://api.wordpress.org/core/browse-happy/1.1/', 'content_type' => 'text/html; charset=utf-8', 'http_code' => 200, 'header_size' => 234, 'request_size' => 462, 'filetime' => -1, 'ssl_verify_result' => 0, 'redirect_count' => 0, 'total_time' => 0.167373, 'namelookup_time' => 3.4E-5, 'connect_time' => 0.050238, 'pretransfer_time' => 0.115476, 'size_upload' => 149.0, 'size_download' => 191.0, 'speed_download' => 1143.0, 'speed_upload' => 892.0, 'download_content_length' => -1.0, 'upload_content_length' => 149.0, 'starttransfer_time' => 0.167236, 'redirect_time' => 0.0, 'redirect_url' => '', 'primary_ip' => '198.143.164.251', 'certinfo' => array ( ), 'primary_port' => 443, 'local_ip' => '167.71.126.23', 'local_port' => 57184, 'http_version' => 2, 'protocol' => 2, 'ssl_verifyresult' => 0, 'scheme' => 'HTTPS', ), )
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 77
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: component in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 123
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 160
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: type in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 161
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 162
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'context' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 164
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 296
[03-Mar-2020 19:32:23 UTC] cache purge: array ( 'url' => 'https://api.wordpress.org/core/serve-happy/1.0/?php_version=7.4.2', 'args' => array ( 'method' => 'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'user-agent' => 'WordPress/5.3.2; https://thefragens.com', 'reject_unsafe_urls' => false, 'blocking' => true, 'headers' => array ( ), 'cookies' => array ( ), 'body' => NULL, 'compress' => false, 'decompress' => true, 'sslverify' => true, 'sslcertificates' => '/sites/thefragens.com/files/wp-includes/certificates/ca-bundle.crt', 'stream' => false, 'filename' => NULL, 'limit_response_size' => NULL, '_qm_key' => '1583263943.3791https://api.wordpress.org/core/serve-happy/1.0/?php_version=7.4.2', '_redirection' => 5, ), 'start' => 1583263943.379074, 'trace' => QM_Backtrace::__set_state(array( 'trace' => array ( 0 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/class-http.php', 'line' => 622, 'function' => 'request', 'class' => 'WP_Http', 'type' => '->', ), 1 => array ( 'file' => '/sites/thefragens.com/files/wp-includes/http.php', 'line' => 164, 'function' => 'get', 'class' => 'WP_Http', 'type' => '->', ), 2 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/includes/misc.php', 'line' => 1405, 'function' => 'wp_remote_get', ), 3 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/includes/dashboard.php', 'line' => 39, 'function' => 'wp_check_php_version', ), 4 => array ( 'file' => '/sites/thefragens.com/files/wp-admin/index.php', 'line' => 15, 'function' => 'wp_dashboard_setup', ), ), 'filtered_trace' => NULL, 'calling_line' => 0, 'calling_file' => '', )), 'transport' => 'curl', 'end' => 1583263943.552964, 'response' => array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'server' => 'nginx', 'date' => 'Tue, 03 Mar 2020 19:32:23 GMT', 'content-type' => 'application/json; charset=utf-8', 'vary' => 'Accept-Encoding', 'x-frame-options' => 'SAMEORIGIN', 'content-encoding' => 'gzip', ), )), 'body' => '
recommended_version => 7.3
minimum_version => 5.6.20
is_supported => true
is_secure => true
is_acceptable => true
', 'response' => array ( 'code' => 200, 'message' => 'OK', ), 'cookies' => array ( ), 'filename' => NULL, 'http_response' => WP_HTTP_Requests_Response::__set_state(array( 'response' => Requests_Response::__set_state(array( 'body' => '
recommended_version => 7.3
minimum_version => 5.6.20
is_supported => true
is_secure => true
is_acceptable => true
', 'raw' => 'HTTP/1.1 200 OK Server: nginx Date: Tue, 03 Mar 2020 19:32:23 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding X-Frame-Options: SAMEORIGIN Content-Encoding: gzip
recommended_version => 7.3
minimum_version => 5.6.20
is_supported => true
is_secure => true
is_acceptable => true
', 'headers' => Requests_Response_Headers::__set_state(array( 'data' => array ( 'server' => array ( 0 => 'nginx', ), 'date' => array ( 0 => 'Tue, 03 Mar 2020 19:32:23 GMT', ), 'content-type' => array ( 0 => 'application/json; charset=utf-8', ), 'vary' => array ( 0 => 'Accept-Encoding', ), 'x-frame-options' => array ( 0 => 'SAMEORIGIN', ), 'content-encoding' => array ( 0 => 'gzip', ), ), )), 'status_code' => 200, 'protocol_version' => 1.1, 'success' => true, 'redirects' => 0, 'url' => 'https://api.wordpress.org/core/serve-happy/1.0/?php_version=7.4.2', 'history' => array ( ), 'cookies' => Requests_Cookie_Jar::__set_state(array( 'cookies' => array ( ), )), )), 'filename' => NULL, 'data' => NULL, 'headers' => NULL, 'status' => NULL, )), ), 'info' => array ( 'url' => 'https://api.wordpress.org/core/serve-happy/1.0/?php_version=7.4.2', 'content_type' => 'application/json; charset=utf-8', 'http_code' => 200, 'header_size' => 241, 'request_size' => 275, 'filetime' => -1, 'ssl_verify_result' => 0, 'redirect_count' => 0, 'total_time' => 0.171669, 'namelookup_time' => 3.9E-5, 'connect_time' => 0.050428, 'pretransfer_time' => 0.120111, 'size_upload' => 0.0, 'size_download' => 102.0, 'speed_download' => 596.0, 'speed_upload' => 0.0, 'download_content_length' => -1.0, 'upload_content_length' => -1.0, 'starttransfer_time' => 0.17159, 'redirect_time' => 0.0, 'redirect_url' => '', 'primary_ip' => '198.143.164.251', 'certinfo' => array ( ), 'primary_port' => 443, 'local_ip' => '167.71.126.23', 'local_port' => 57186, 'http_version' => 2, 'protocol' => 2, 'ssl_verifyresult' => 0, 'scheme' => 'HTTPS', ), )
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 77
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: component in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 123
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 160
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: type in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 161
[03-Mar-2020 19:32:23 UTC] PHP Notice Undefined index: ltime in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 162
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'context' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 164
[03-Mar-2020 19:32:23 UTC] PHP Notice Trying to get property 'name' of non-object in /sites/thefragens.com/files/wp-content/plugins/query-monitor/output/html/http.php on line 296
Query Monitor
The message above was triggered by wp-debugging.

Call stack:

wp_die()
wp-content/plugins/wp-debugging/vendor/norcross/debug-quick-look/includes/parser.php:54
DebugQuickLook\P\run_parse()
wp-content/plugins/wp-debugging/vendor/norcross/debug-quick-look/includes/actions.php:59
DebugQuickLook\A\run_quicklook_action()
wp-includes/class-wp-hook.php:288
do_action('admin_init')
wp-admin/admin.php:17n

@afragen
Copy link
Author

afragen commented Mar 3, 2020

Seems to be related to WordPress API calls. Each entry starts with cache purge for searching.

@afragen
Copy link
Author

afragen commented Mar 3, 2020

These are the respective $key(s)

[03-Mar-2020 19:44:01 UTC] '1583264640.5742https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=query-monitor'
[03-Mar-2020 19:44:01 UTC] '1583264640.7525https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request%5Bslug%5D=debug-bar'
[03-Mar-2020 19:44:01 UTC] '1583264640.9413https://api.wordpress.org/core/browse-happy/1.1/'
[03-Mar-2020 19:44:01 UTC] '1583264641.1142https://api.wordpress.org/core/serve-happy/1.0/?php_version=7.4.2'

@afragen
Copy link
Author

afragen commented Mar 3, 2020

So far adding this as a check also seems to solve the issue.

if (false !== strpos($key, 'api.wordpress.org') ){
	error_log( var_export( $key, true));
	//error_log('cache purge: ' . var_export($row,true) );
	continue;
}

@afragen
Copy link
Author

afragen commented Mar 5, 2020

It appears that the last 3 elements of the array $row are missing. These are $row['type'], $row['ltime'], and $row['component'].

@tristanleboss
Copy link

tristanleboss commented Aug 1, 2020

I have the exact same problem: the last 3 elements of the array $row are indeed missing ($row['type'], $row['ltime'], and $row['component']).

These missing keys are added by method process of file collectors/http.php.

The reason comes from the fact this method is called once but, at the time it's called, the rows which will later exhibit the problem are not in the $this->data['http'] array. They are added to this array later and the process method is not called again.

I discovered this by adding a echo count($this->data['http']); in the process method and an echo count($data['http']); in the output/html/http.php file.

But it's weird, because this method is called during shutdown action so I see no reason for some HTTP calls to be made after...

  | #0  QM_Collector_HTTP->process() called at [wp-content/plugins/query-monitor/classes/Collectors.php:60]
  | #1  QM_Collectors->process() called at [wp-content/plugins/query-monitor/classes/Dispatcher.php:75]
  | #2  QM_Dispatcher->get_outputters(html) called at [wp-content/plugins/query-monitor/dispatchers/Html.php:276]
  | #3  QM_Dispatcher_Html->before_output() called at [wp-content/plugins/query-monitor/dispatchers/Html.php:241]
  | #4  QM_Dispatcher_Html->dispatch() called at [wp-includes/class-wp-hook.php:287]
  | #5  WP_Hook->apply_filters(, Array ([0] => )) called at [wp-includes/class-wp-hook.php:311]
  | #6  WP_Hook->do_action(Array ([0] => )) called at [wp-includes/plugin.php:478]
  | #7  do_action(shutdown) called at [wp-includes/load.php:960]
  | #8  shutdown_action_hook()

@tristanleboss
Copy link

tristanleboss commented Aug 1, 2020

The reason I give in my previous comment explaining the notices is probably the same for everyone: HTTP requests are made during the shutdown process in between the execution of the process method and the display of the html table displaying HTTP requests data.

For me, the culprit was a caching plugin hooked on the style_loader_src filter. Indeed, this filter is normally only called in the header of the page by WordPress but Query Monitor also calls it during the shutdown when it prepares the data to show for styles in method get_dependency_data of file collectors/assets.php.

Solution: The error would not happen if the http collector was the latest to be "processed" in the process method of file classes/Collectors.php.

#0  QM_Collector_Assets->get_dependency_data(_WP_Dependency Object ([handle] => jquery-core,[src] => /wp-includes/js/jquery/jquery.js,[deps] => Array (),[ver] => 1.12.4-wp,[args] => ,[extra] => Array (),[textdomain] => ,[translations_path] => )) called at [wp-content/plugins/query-monitor/collectors/assets.php:125]
#1  QM_Collector_Assets->process() called at [wp-content/plugins/query-monitor/classes/Collectors.php:60]
#2  QM_Collectors->process() called at [wp-content/plugins/query-monitor/classes/Dispatcher.php:75]
#3  QM_Dispatcher->get_outputters(html) called at [wp-content/plugins/query-monitor/dispatchers/Html.php:276]
#4  QM_Dispatcher_Html->before_output() called at [wp-content/plugins/query-monitor/dispatchers/Html.php:241]
#5  QM_Dispatcher_Html->dispatch() called at [wp-includes/class-wp-hook.php:287]
#6  WP_Hook->apply_filters(, Array ([0] => )) called at [wp-includes/class-wp-hook.php:311]
#7  WP_Hook->do_action(Array ([0] => )) called at [wp-includes/plugin.php:478]
#8  do_action(shutdown) called at [wp-includes/load.php:960]
#9  shutdown_action_hook()

@johnbillion johnbillion added the bug label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants