<![CDATA[ Enable the display of PHP errors - MODX Community Forums]]> https://forums.modx.com/thread/?thread=102288 <![CDATA[Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551170 stefany May 24, 2017, 05:50 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551170 <![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551410 ]]> BobRay Jun 01, 2017, 09:38 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551410 <![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551405 Quote from: BobRay at Jun 01, 2017, 04:43 AM
Ah. Good old nginx. I'm glad you got it sorted.

Do fatal PHP error messages show up on the screen when they occur?

Yes they show up on the terminal using the "tail" function. Of course I have to change it to point to the PHP error log.
Thanks for the help Bob!]]>
stefany Jun 01, 2017, 05:39 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551405
<![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551365
Do fatal PHP error messages show up on the screen when they occur?]]>
BobRay Jun 01, 2017, 04:43 AM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551365
<![CDATA[Re: Enable the display of PHP errors (Best Answer)]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551353
tail -f -n 10 nginx_error.log


So that solved it for me.]]>
stefany May 31, 2017, 08:28 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551353
<![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551319 Quote from: BobRay at May 25, 2017, 05:20 AM
Did you try to enable errors in .htaccess? That will often throw a 500 error.

What did you put in php.ini for this?

I have this:
error_reporting = E_ALL
display_errors = On


BTW, if the error occurs in a processor, you won't ever see it unless you look on the Network tag in Chrome. Dev. tools, or the Firefox equivalent (Ctrl-shift-i). You can click on a request and see the error (in ugly HTML) on the response tab.



Did that. Apperantly the MODX cloud is in Nginx and .htaccess doesn't work at all. One missing semicolon and the whole system crashes instead of getting displayed.]]>
stefany May 30, 2017, 04:19 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551319
<![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551204
What did you put in php.ini for this?

I have this:
error_reporting = E_ALL
display_errors = On


BTW, if the error occurs in a processor, you won't ever see it unless you look on the Network tag in Chrome. Dev. tools, or the Firefox equivalent (Ctrl-shift-i). You can click on a request and see the error (in ugly HTML) on the response tab.


]]>
BobRay May 25, 2017, 05:20 AM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551204
<![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551198 I get an error 500 with all the errors in the log sad]]> stefany May 24, 2017, 09:34 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551198 <![CDATA[Re: Enable the display of PHP errors]]> https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551182
My debug System Setting is set to -1 and I see all errors.]]>
BobRay May 24, 2017, 07:09 PM https://forums.modx.com/thread/102288/enable-the-display-of-php-errors#dis-post-551182