Joomla includes the ability to use error reporting to help determine if there are problems occurring with your site. In this guide, we will explain what error reporting is in Joomla, go over the available options, test the settings, then show you how to change them.
- What is Error Reporting
- What Options Are Available for Error Reporting?
- Our Testing of the Error Reporting Setting
- To Change the Joomla 3.0 Error Reporting Setting
What is Error Reporting?
One of Joomla 3.0’s Server Settings is Error Reporting. Joomla gives the following description for this setting.
Error Reporting
Select the appropriate level of reporting from the drop down list. See the Help Screen for full details.
If you click the help button on the page, it unfortunately does not give any information yet at this time.
What Options Are Available for Error Reporting?
The following options are available for Error Reporting:
Our Testing of the Error Reporting Setting
To test the different options that are available for Error Reporting, we created a simple syntax error in the mod_login module by removing a ; from the PHP code. We then went through the various Error Reporting settings to see what type of error would be reported. Here are our findings:
System Default | Parse error: syntax error, unexpected T_REQUIRE in /home/bradm/public_html/github2/modules/mod_login/mod_login.php on line 21 |
---|---|
None | |
Simple | Parse error: syntax error, unexpected T_REQUIRE in /home/bradm/public_html/github2/modules/mod_login/mod_login.php on line 21 |
Maximum | Parse error: syntax error, unexpected T_REQUIRE in /home/bradm/public_html/github2/modules/mod_login/mod_login.php on line 21 |
Development | Parse error: syntax error, unexpected T_REQUIRE in /home/bradm/public_html/github2/modules/mod_login/mod_login.php on line 21 |
As you can see in the table above, all settings showed the same error message, except the none setting. As the none setting implies, no error messages are shown on the screen.
To Change the Joomla 3.0 Error Reporting Setting
- Log into your Joomla 3.0 Dashboard
- Click Global Configuration in the left menu
- In the tabbed menu, click the Server tab
- Find the Error Reporting setting under the Server Settings heading. Change the value as needed, and then click the Save button in the top left of the page.
I have activated the Error Reporting to maximum but i get no Lin enumber wher to find the error.
#0 syntax error, unexpected ‘text’ (T_STRING)
is the only thing i got since the newest update an usibng php 7.0
I can’t find a solution. Maybe you cna help me.
Thank you
I suggest checking to see if the error names a file and line number. If so, check the line of code for double quotes. Sometimes these can cause parse error depending on the string. Sometimes it helps to switch to single quotes if that is the case.