How to enable error reporting?

This article will show you how to enable error reporting on your hosting package.

Enabling error reporting on your hosting package will mean that you will see an error report should something go wrong on your website, allowing you to review and fix the error.

To enable error reporting on your hosting package, you need to add the following code to your php.ini file:

error_reporting = E_ALL
display_errors = on
log_errors = on

If you do not have a php.ini file, you can create on using the file manager.

Once you have made these amendments, you will receive PHP warnings and errors if something goes wrong, instead of a blank screen.