johnbillion / query-monitor

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

do_action ('qm/... never does anything #872

Open kupietools opened 2 months ago

kupietools commented 2 months ago

I'm trying to use QM to log from some plugins I'm developing and it never logs anything. In fact it appears to be silently causing the plugin functions to fail. I know because adding BugFu logging steps immediately before do_action('qm/start','foo') or do_action('qm/stop','foo') works, but when I move the logging immediately after the do_action it never logs. 'qm/notice' doesn't do anything either.

My logs are also filling with these: [16-Jun-2024 06:46:09 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 970752 bytes) in /path/to/plugins/query-monitor/collectors/db_queries.php on line 246

montchr commented 1 month ago

I am also seeing nothing logged when using the actions. Though I am not running into memory allocation issues.

montchr commented 1 month ago

QM::debug(...) also results in no output.

crstauf commented 1 month ago

@kupietools @montchr What version of QM are you using?

montchr commented 1 month ago

@crstauf v3.16.3