I have debugging turned off on my production server.
But PHP errors are being displayed such as:
/var/www/html/models/MyPage.php(3839): syntax error, unexpected token "public"
I made this error deliberately to test if error display generally, so I don't need help with this specific error.
I need to figure out why the Error 500 page isn't being displayed instead
in php.ini i have display_errors off and I checked this with phpinfo
in production config I have:
"DEBUG" => false, // Enabled
"REPORT_ALL_ERRORS" => true, // Treat PHP warnings and notices as errors
"LOG_ERROR_TO_FILE" => true, // Log error to file
"LOG_ERROR_DETAILS" => true, // Log error details
I don't want users to see any error details, I can get those from log files or turn on debug temporarily when needed.
Any ideas what else to check?