hello can you help me after I did delete plugin file db.php symlink still on my server https://prnt.sc/81Gdw4nBxmbL how i can delete this file?
]]>This plugin has always been great for me. WP:6.6.2. However, I now have problem editing pages when it’s active – the page edit screen mostly times out and CPU goes 100%. I tried deactivating all plugins, eventually figuring out that Query Monitor (3.16.4) might be part of the issue. The other part of the issue appears to be Woocommerce (9.3.3). If both of these plugins are active, the page edit screen often never loads, even with ALL other plugins disabled. If Query Monitor is deactive and Woocommerce is active, page edit loads really fast. If Query Monitor is active and Woocommerce is deactive, page edit loads, but it’s really slow.
If I turn back on ALL the other plugins (and there are a lot of heavy ones like Learndash and buddypress) and leave Query Monitor deactive, the page edits load fine, but (as expected given the above tests with all plugins off), if I then turn QM back on with all other plugins already on, the page edits fail.
So maybe something is conflicting for me between woocommerce and Query Monitor?
]]>Hi there,
I’ve noticed while reporting an issue to WPForms, thanks to Query Monitor, that WPForms was blamed for an error that was actually due to another plugin (TranslatePress). More precisely, it points to ErrorHandler.php from WPForms, while this script didn’t cause the original error.
Here is an example:
Deprecated
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated
wp-includes/formatting.php:2819
WPForms\ErrorHandler->error_handler()
wp-content/plugins/wpforms-lite/src/ErrorHandler.php:171
rtrim()
wp-includes/formatting.php:2819
untrailingslashit()
wp-includes/formatting.php:2804
trailingslashit()
wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php:437
TRP_Url_Converter->get_url_for_language()
wp-content/plugins/translatepress-multilingual/partials/language-switcher-shortcode.php:22
TRP_Language_Switcher->language_switcher()
wp-includes/shortcodes.php:434
do_shortcode_tag()
wp-includes/shortcodes.php:434
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/translatepress-multilingual/includes/gutenberg-blocks/ls-shortcode/ls-shortcode.php:142
TRP_Gutenberg_Blocks->{closure}()
wp-includes/class-wp-hook.php:324
do_action('trp/language-switcher/render_callback')
wp-content/plugins/translatepress-multilingual/includes/gutenberg-blocks/ls-shortcode/ls-shortcode.php:24
TRP_Gutenberg_Blocks->{closure}()
wp-includes/class-wp-block.php:519
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/blocks.php:2061
render_block()
wp-includes/blocks.php:2113
do_blocks()
wp-includes/blocks/template-part.php:154
render_block_core_template_part()
wp-includes/class-wp-block.php:519
WP_Block->render()
wp-includes/blocks.php:2061
render_block()
wp-includes/blocks.php:2113
do_blocks()
wp-includes/block-template.php:260
get_the_block_template_html()
wp-includes/template-canvas.php:12
Extension : wpforms-lite
Upon disabling WPForms, the error becomes:
Deprecated
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated
wp-includes/formatting.php:2819
rtrim()
wp-includes/formatting.php:2819
untrailingslashit()
wp-includes/formatting.php:2804
trailingslashit()
wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php:437
TRP_Url_Converter->get_url_for_language()
wp-content/plugins/translatepress-multilingual/partials/language-switcher-shortcode.php:22
TRP_Language_Switcher->language_switcher()
wp-includes/shortcodes.php:434
do_shortcode_tag()
wp-includes/shortcodes.php:434
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/translatepress-multilingual/includes/gutenberg-blocks/ls-shortcode/ls-shortcode.php:142
TRP_Gutenberg_Blocks->{closure}()
wp-includes/class-wp-hook.php:324
do_action('trp/language-switcher/render_callback')
wp-content/plugins/translatepress-multilingual/includes/gutenberg-blocks/ls-shortcode/ls-shortcode.php:24
TRP_Gutenberg_Blocks->{closure}()
wp-includes/class-wp-block.php:519
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/class-wp-block.php:499
WP_Block->render()
wp-includes/blocks.php:2061
render_block()
wp-includes/blocks.php:2113
do_blocks()
wp-includes/blocks/template-part.php:154
render_block_core_template_part()
wp-includes/class-wp-block.php:519
WP_Block->render()
wp-includes/blocks.php:2061
render_block()
wp-includes/blocks.php:2113
do_blocks()
wp-includes/block-template.php:260
get_the_block_template_html()
wp-includes/template-canvas.php:12
Extension : translatepress-multilingual
So the WPForms support is interested in knowing your thoughts on the unexpected issue of reporting alerts for a different plugin. I’m interested too!
Do you think this is an issue with Query Monitor, or an issue with error handling from WPForms?
The original topic where we discovered this is here: https://www.ads-software.com/support/topic/code-deprecation-may-be-related-to-core-wp/
You may want to comment out there directly if you have useful insight to provide to WPForms. This is popular plugin, helping them would help the whole community!
(PS : I’m a long time Query Monitor user, it’s awesome and I keep recommending it all around. Thank you for your work for the WordPress community!
]]>Hello.
I recently enabled Redis.
In the overview I see “Persistent object cache plugin in use” but I don’t see the hit rate.
What could be the cause?
Thanks.
]]>I have just updated my wordpress website and find that when this plugin is active, it creates a big window on top of the actual visible website. I do not know how to prevent that from happening. I had to deactivate it, that solved it but of course then I can’t use that plugin.
Note, I am not a ‘developer.’ Doing any kind of actual management, so to speak, of this plugin is much beyond my skillset or my interesting in developing an extensive skillset.
I really just want to do my art and design work! Perhaps, however, there is a simple and direct solution that, if described to me, I could implement and make this problem disappear. Maybe someone has an idea about this!
I am using an updated wordpress version, everything is up to date. Maybe this issue is due to specific settings but I have no idea what to do with it. As far as I know, since this New site just was taking over for the prior site I”ve had for years, I think this plugin kind of came along with it but now it’s a problem.
Thanks!
]]>This error was triggered:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the query-monitor domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.)
]]>Hi,
when I paste a link to one of my own posts directly into an article (oEmbed), the console shows the following error – but only in the backend with the Query Monitor jQuery monitor enabled:
/wp-content/plugins/query-monitor/assets/query-monitor.js?ver=3.16.4 query-monitor.js?ver=3.16.4:788 QM error from JS: QM output does not exist (anonymous) @ query-monitor.js?ver=3.16.4:788 load (anonymous) @ query-monitor.js?ver=3.16.4:752
The plugin itself shows no errors in the admin bar.
When I deactivate the Query Monitor plugin, the error goes away. On the frontend, if I am not logged in, everything works fine, regardless of whether the plugin is active or deactivated.
Anyway – the plugin is great and helpful ??
]]>Hello,
I am running the latest version of WordPress (6.6.2), BuddyBoss theme (2.6.60), BuddyBoss Platform (2.7.00), BuddyBoss Platform Pro (2.6.10), and Query Monitor (3.16.4). PHP version 8.3.
On some pages of the WordPress back-end, Query Monitor isn’t working properly: the panel isn’t showing, neither is the menu in the admin bar.
The Javascript error I’m getting in the console is: QM error from JS: QM output does not exist.
The error is happening in query-monitor.js:788:12. The error is happening only in the admin back-end, and only on one page (that I could find): it’s happening only on Plugins > Installed Plugins (/wp-admin/plugins.php).
There is no error in the web server logs.
Any idea? Thanks a million.
]]>Hey! While I was developing another plugin, I noticed an error with QM + PHP 8.x when using wp_safe_redirect() or wp_redirect().
I have tested this with PHP 7.4 and I do not get this error with QM active.
As soon as PHP 8.x is being used, the error starts to happen whenever we are calling wp_safe_redirect() or wp_redirect().
Fatal error: Uncaught Error: count(): Argument #1 ($value) must be of type Countable|array, null given
in /home/cloudways.app/cjbrhxmcev/public_html/wp-content/plugins/query-monitor/collectors/db_queries.php on line 231
Could you please take a look at this for me?
Thank you,
Hello there ??
First of all, thank you for your great plugin.
I’m trying to debug a NinjaForms submission, being very slow. Unfortunately, I can’t since there is a redirection after the success submit. Is there a way to do that with your plugin?
Thank you,
Cedric
]]>Hello,
I just wanted some clarification on the load time the plugin shows. I clicked on add new product for woocommerce and it showed 2.3 second of load time while it took over 20 seconds for the page to properly load for me. Is it really load time or that does mean something else?
]]>Hi John, first of all, thank you for this beautiful plugin.
I wanted to let you know that I just upgraded to woocommerce | active | none | 9.3.2
with HPOS disabled and I still get the describe missing table issues. Saw an other thread being closed with a solution in an updated version, but I still see them.
HPOS enabled?: no
Compatibility mode enabled?: no
Unsynced orders: 40
Orders subject to cleanup: 0
query-monitor | active | none | 3.16.4
wp core 6.6.2
Kind regards,
Jaime!
]]>I’m seeing a strange result when trying to log something via QM. I suspect it’s something I’m doing wrong, but I just want to double check with yourself first.
I’m trying to log some debug data into QM using the example code supplied from the QM site…
do_action( 'qm/debug', 'This happened!' );
This is the first line a function called by an add_action
hook into ‘save_post’. But it never logs anything. I’ve used the same line elsewhere and I get logs, so it’s not my syntax.
Are you aware of any reason why this might not happen? Is there something odd about the save_post
action that would prevent QM from logging?
FYI, Query Monitor breaks the Kirki Customiser plugin. Many wordpress themes I use extend the wordpress customiser with this plugin. Can easliy deactivate Query Monitor to make updates but I thought it was worthwhile to let you know. Thanks.
]]>Hello everyone, I haven’t paid attention to what’s happening for a long time, today I went into the admin area and saw this. I didn’t add plugins, but I didn’t change them. I changed PHP 8.3 to 8.2 and everything was fine.
Fatal error: Uncaught Error: parse_url(): Argument #1 ($url) must be of type string, null given
in /home/user/web/quantumtransition.angellive.ru/public_html/wp-content/plugins/query-monitor/classes/Collector_Assets.php on line 98
Call stack:
parse_url()
QM_Collector_Assets::process()
QM_Collectors::process()
QM_Dispatcher::get_outputters()
QM_Dispatcher_Html::before_output()
QM_Dispatcher_Html::dispatch()
WP_Hook::apply_filters()
WP_Hook::do_action()
do_action()
shutdown_action_hook()
Query Monitor
Server architecturelinux 6.1.0-25-cloud-AMD64 X86_64 on the webserverpinx / 1.27.1 PHP8 version.2.23 (Supports 64-bit values)PHP SAPIfpm-fcgiPHP max input variables4000PHP time limit60PHP memory limit (memory limit for scripts)128m PHP memory limit (only for administration screens)256MMax input time60Upload max filesize (maximum upload size)100MPHP post max size (maximum size of the POST request)100mversion cURL7. 88. 1 OpenSSL / 3.0.14 SUHOSIN extension installed?NotImadisk available?dapsupport of a private company is correct .HTACCESS user rules have been added to the file .HTACCESS Current time2024-09-13T19:37:47+00: 00 Current time UTCFriday, 13-Sep-24 19: 37: 47 UTC Current server time2024-09-13T22:37: 46+03: 00
]]>Not sure if this is the right place to post this but I have not been able to find help anywhere else for this issue.
When using Query Monitor, I get this result in Styles:
Missing Dependencies core-block-supports-duotone
As far as I can tell, this is not an issue with my theme or plugins as I have tried changing themes and disabling plugins to troubleshoot with no success.
Any advice is appreciated!
]]>I am currently debugging something for my plugin, and I was wondering if the “Hooks and Actions” tab shows all the hooks and actions called in order?
If so, then that helps a lot!
Thank you!
]]>Hey everyone,
I’ve created a custom post type, and am receiving the following error every minute or so.
PHP Warning: Attempt to read property "post_content" on null in XXX\wp-content\plugins\query-monitor\collectors\block_editor.php on line 138
My hunch is that it is struggling to find the get_queried_object_id() on posts after the initial load. It can log get_post(get_queried_object_id()) on initial page load, but then can’t when your process() function is run. Do you have any idea what is causing that?
Thanks in advance,
Ben Roberts
]]>I’m trying to find the cause for a slow initial load on a website…the load time can sometimes be 10 seconds initially and even after object caching kicks in and it’s cut by half, I still find it to be a bit slow.
I’m wondering if the duplicate queries have a part to play. When I clicked the option it showed me that Astra was causing some duplicate queries but I don’t know if the time shown in the time column is per call or if it’s a cumulative number of how long it took for all those duplicate queries to ran:
See this screenshot: https://prnt.sc/6f1EZV-Ayv9W
Hi my peak memory use is sometimes much higher while the queries remain the same.
Can you tell me what this might signify ?
(wp-admin pages become slower, the increase is from around 50mb to 150mb and the number of queries does not change)
]]>So I enabled this and I understand QM supports it, but now that it’s enabled, how can I see the results of it in the tool?
To give a bit of background, the scenario I have is that I have very slow updates to post saving and when the post does eventually save after 30 seconds and the edit page of WP reloads, QM by default shows the performance of the loading of that page, which doesn’t help me as that is quick and without issue.
Hi,
First of all, awesome plugin, use it every day in my workjob ??
An annoying issue i’ve found is that QM is spamming my debug.log with this when i go to the frontend:
[31-Aug-2024 00:51:38 UTC] PHP Warning: Undefined array key "C:/laragon_new/www/XXX/wp-content/themes/XXX/parts/header.html" in C:\laragon_new\www\XXX\wp-content\plugins\query-monitor\output\html\theme.php on line 163
[31-Aug-2024 00:51:38 UTC] PHP Warning: Undefined array key "C:/laragon_new/www/XXX/wp-content/themes/XXX/parts/footer.html" in C:\laragon_new\www\XXX\wp-content\plugins\query-monitor\output\html\theme.php on line 163
For info, i use PHP 8.3 at the moment but i don’t think (not quite sure) that’s it’s related.
What i found out is that QM seems to be collecting data differently about “paths” on Windows (which is causing the PHP Warnings.
When i log $parts and $data->count_template_parts, i can clearly see that one is using forward slashes but the other one is using a mix, the logs:
[31-Aug-2024 00:59:27 UTC] DEBUG: $parts Array
(
[C:/laragon_new/www/XXX/wp-content/themes/XXX/parts/header.html] => parts/header.html
[C:/laragon_new/www/XXX/wp-content/themes/XXX/parts/footer.html] => parts/footer.html
)
[31-Aug-2024 00:59:27 UTC] DEBUG: $data->count_template_parts Array
(
[C:\laragon_new\www\XXX/wp-content/themes/XXX/parts/header.html] => 1
[C:\laragon_new\www\XXX/wp-content/themes/XXX/parts/footer.html] => 1
)
If you have an idea on how to fix this, that would be great ??
Have a good day,
Damien
Hi,
I have a staging environment and the plugin works fine but in my production environment, it immediately throws 500 server error when activated. Both staging and production have the same plugins and theme files. What could be causing this?
Thank you!
]]>Hey! I’m having an issue where query monitor is breaking some ajax requests on the frontend.
Essentially I’m serving a JSON object from a frontend URL, so not admin-ajax.php
, with a specific param added to the URL to flag this, and query monitor appends its usual output the to the request after my JSON object breaking my JS.
Is there a way to disable this conditionally?
I tried returning an empty array in this filter qm/dispatchers
with a priority of 100
but that didn’t seem to do anything.
Thanks!
]]>The question is solved already.
]]>There was an issue with the plugin causing my checkout page unable to load or calculate payment. I have disabled the plugin. Not sure what happened.
]]>Hello
I recently installed your plugin because it was recommended to me because the server is using too much CPU. I find a lot of duplicate queries and I don’t understand why it happens. Here is an image of a post report:
Why does WP_Post::get_instance have so many instances?
I have already optimized my database with WP-Optimize, I have CDN, Cache, light template (Generatepress), webp images, etc. What can I do to solve this problem?
Regards,
]]>Hey guys,
So, it would appear that my membership plugin is regularly writing and deleting MASSIVE entries in the wp-options table. I have no idea why.
My problem is that these entries are so freakin huge that I can’t even scroll past them to see what the other slow queries are… I’d like to cache them with Redis, but I have no idea if that’s possible because it’s seemingly an infinite scroll.
I made a video if you want to see what I’m dealing with:
https://www.dropbox.com/s/eqmdxx6de9z3c3v/for%20query%20monitor%20support.mkv?dl=0
Is there ANY way that I can minimize or skip this query to see what the other slow queries are… in case I can actually cache them and improve the load speed of this page?
As a coding guru yourself, do you have any idea what kind of diabolical maniac would be inserting something like this into the wp options table on every page load??? It seems… insane.
Anyhow, thank you for your time and help.
]]>Hi,
Query monitor is not loaded correctly on all pages inside GravityForm plugin but it’s loaded in all other pages:
]]>Hey, thanks for making such a useful plugin!
I’m trying to troubleshoot a specific page, and it doesn’t seems like there’s any obvious way to clear query monitors logs so that I can only load the slow queries from this page. I feel like there has to be a way, but I can’t find it. Am I missing something?
Thanks in advance for your help!
]]>