If you are experiencing issues on your Joomla website, and you would like to trace which error is causing the problem, then you will want to enable error reporting in Joomla.
Enabling error reporting in Joomla displays a list of all of the errors on your Joomla website. From there, you can trace and fix the error that is causing you problems!
In this JovialGuide, we will show you how to enable error reporting in Joomla in 2 ways.
Method 1: How to Enable Error Reporting in Joomla via FTP
This method requires you to log-into your hosting cPanel or FTP client and edit the configuration.php file of your Joomla website.
Warning – The configuration.php file is the most sensitive file in Joomla; as it contains sensitive details, such as: database username & password, etc. So, any misconfiguration may break your Joomla website. So, be careful!
After that, locate the line that has public error_reporting = ‘default’;. Change the value from “default” to “maximum” to set the error reporting level to maximum.
It will look like this “public error_reporting = ‘maximum’;
After you have confirmed everything, save the new configuration setting.
Now, if you log-into your Joomla website and go to System » Global Configuration » Server tab, you will see that the error reporting level is in “Maximum”.
Congratulations! You just enabled error reporting in Joomla by editing the configuration.php file of Joomla.
If you are not comfortable editing the Joomla configuration.php file, then go to the next section for another method of enabling error reporting in Joomla.
Method 2: How to Enable Error Reporting in Joomla via Joomla Administrator
This second method of enabling error reporting in Joomla is much easier than the first one because you do not have to edit the configuration file of Joomla.
To enable error reporting in Joomla via Joomla administrator, goto System » Global Configuration.
Once you are there, click on the “Server” tab.
Under “Server Settings”, locate “Error Reporting”. There, you will find several option values.
By default, Joomla supports 5 different error reporting levels. They are:
- System Default – Inherits server configuration on error handling.
- None – Disables error reporting.
- Simple – Shows only fatal errors; errors that caused a crash!
- Maximum – Displays all of the errors on your Joomla website.
- Development – Shows all of the errors without restrictions.
Now change the option value to “Maximum” or “Development” and save.
You just enabled error reporting in Joomla!
To disable error reporting in Joomla, change the option value of Error Reporting to “System Default” and save.
Note – Avoid enabling error reporting on production servers, or live Joomla websites. Enabling error reporting is NOT recommended on live or production servers, but completely recommended on local or development servers.
So, on production servers, error reporting has to be set to “System Default”, while on local servers to “Maximum” or “Development”!
We hope this JovialGuide helps you learn how to enable error reporting in Joomla.
You may want to see how to create a hidden menu item in Joomla.
See other of our Joomla tutorials for more.