-
-
Notifications
You must be signed in to change notification settings - Fork 219
Infinite loop in Query Monitor when handling translations causing XDebug stack overflow #972
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
Comments
More details about this issue. If xDebug disabled we get memory limit fatal error:
The issue arises due to a recursive loop: The trace maybe will be helpfull:
|
Description
Query Monitor is triggering an infinite recursion loop during translation loading, causing XDebug to abort script execution after reaching the maximum stack depth of 512 frames.
Issue Details
PHP Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '512' frames
Steps to Reproduce
Stack Trace Analysis
The error occurs in a circular dependency between WordPress translation functions and Query Monitor capability checks. The stack trace shows a repeating pattern where:
Possible Causes
QM_Collector_Doing_It_Wrong->maybe_prevent_doing_it_wrong_error()
method seems to be in the recursion path https://github.com/johnbillion/query-monitor/blob/develop/collectors/doing_it_wrong.php#L96-L102Impact
This issue causes sites with XDebug enabled to crash during plugin activation, making debugging difficult and potentially affecting development environments.
Screenshots
The text was updated successfully, but these errors were encountered: