While M3’s default display php errors in browser is off for security reasons, you may enable it on your site(s).
Add this to your site’s root .htaccess file:
WARNING – MAKE A BACKUP OF YOUR .HTACCESS FILE FIRST FOR EASY RESTORE.
NOTICE – When you are complete, you should disable php display errors since this provides would be attackers with knowledgable information regarding your site’s setup and therefore weakens your security.
If something goes wrong, server error 500 page, just restore your .htaccess file with your backup – no need to panic nor wake up your programmer.
If you don’t have a .htaccess file, just create one with your favorite PLAIN TEXT editor (not MS Word or other non plain text editor).
Add this line of code to the top of your .htaccess file:
php_flag display_errors on
Save the .htaccess file and upload it to your server. Refresh your page. Unless your php application is supressing php errors, any php errors will be displayed on your page.