How to Enable PHP Error Display
PHP error display can be enabled using a .user.ini file.
To enable PHP error display:
- Navigate to your website's
public_htmldirectory. - Open the
.user.inifile. - If the file does not exist, create a new file named:
.user.ini
- Add the following line:
display_errors = On
Save the file. PHP errors will now be displayed when visiting the website.
Important: Displaying PHP errors on a live website may expose sensitive information. After troubleshooting is complete, remove the setting or change it to:
display_errors = Off