Archived topic
Cannot see errors when debug is activated
5 replies · Started by Alessio Angeloro on October 18, 2018
Hi Tom,
when I develope some plugins I need to debug it, but if I enable wp debug, display error, script error, I can't see any error on page but only a blank page; this issue happen in original themes update or child theme.
Any idea ? Is not hosting problem, because WP write error in a log files but I cant' see it.
Regards,
Alessio
Hi there,
I could be missing something here but this doesn't sound like a GP problem to me.
Are there reasons that let you think it's a GP problem?
Have you tried #1 or #4 here to test?
https://docs.generatepress.com/article/debugging-tips/
Let me know :)
Hi Leo, sure i follow the guide, i'm a developer :-)
If i change theme i see the error intead of blank page.
I've run into this before - it's usually a server configuration issue when it comes to the error_log() function in PHP.
Have you checked if things are printing to the deblog.log file in the wp-content folder? I believe that's WP_DEBUG_LOG - it's my favorite debugging method in WP.
Yes the error are write in the file, but i prefer to see all error in my screen.
Any suggestion ?
Alessio
Unfortunately I'm not an expert when it comes to server stuff.
If WP_DEBUG_DISPLAY is enabled, it should display on the page itself.