-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Admin cannot complete page saving when Xdebug enabled #2401
Comments
From what you describe it does sound like an issue somewhat related to xdebug.. However I use xdebug every day and have never had an issue. Can you confirm you have no JavaScript errors on the page (via the console in your browsers dev tools). This might help isolate the root cause. Also can you test with a bare-bones Grav+Admin installation on your setup? It could be an issue with the theme's blueprints that is causing things to get in a loop and therefore choke xdebug. |
I tried it on a fresh install of Grav from the zip file with Grav+Admin, and confirm that there is the same issue. I see no Javascript errors on either install when editing the page. However, I have been getting an error each time I log-in to admin, and I see it's also happening on the fresh install. It might very well be related because I see that it also only happens when I have xdebug enabled. The error message pops up and then fades out on the interface, but also appears in the console as so:
And I've been getting more or less the same error message on my local dev site, though for whatever reason there the bottom of the stack points to lines in |
When I try to save a page in my local development environment from the admin plugin, I see that the page file does actually get updated, but the browser doesn't refresh, and everything on localhost stops responding until I reset Apache. I can see in the Task Admin that Apache is using CPU, and it can continue doing so indefinitely.
Disabling all other plugins didn't help, but I noticed that disabling Xdebug did. It doesn't seem to matter which particular module is enabled -- setting either
xdebug.mode
todebug
orcoverage
causes the issue -- but ifxdebug.mode
is set to nothing (xdebug.mode =
), then the problem resolves, even if Xdebug itself is still enabled (zend_extension = xdebug
).I'm on Windows 10 using Laragon, Apache 2.4.58, PHP 8.3.0, Xdebug 3.3.1, Grav 1.7.44, Admin 1.10.44
The text was updated successfully, but these errors were encountered: