Joomla – how to turn off Display Errors

Joomla – how to turn off Display Errors

There have been many occasions when on installing Joomla you may notice that Display Errors is set to ‘On’, this is as a result of the php setup on your server.

Now if you are using a virtual or dedicated server, you may have access to the php.ini file, but for those of us that are using shared servers, access to the php.ini file can be prevented, this is due to the php setup being used for the entire server and not just one shared location.

Now usually with display errors set to on, this does not affect a Joomla site, but there have been occasions when I have installed some extensions which when published, have resulted in php errors being displayed on the site, to the public!
Now this is something that I nor any designer/developer should want their users to see when visiting a website.

I have spent a lot of time researching how to resolve this but to no avail. There are lots of solutions for altering the php.ini file and many solutions for altering the htaccess file, in fact that is where i first looked.
As I don’t have access to the php.ini file on my shared server, I have been forced to work with the htaccess file, but so far, of all the htaccess file adaptations I have made, none resolved the issue, php errors were still being displayed on some sites I was working on.

But I have now found the solution.
If you are a shared hosting user and have come across this there is a very simple solution.

  1. Login to your Joomla installation
  2. Site menu
  3. Global Configuration
  4. Server tab
  5. Server Settings
  6. Now set the Error Reporting to ‘None’.

This removes any php errors from now being displayed on your Joomla sites!

A very simple solution which I just could not find anywhere.

  • http://profiles.google.com/lauraine2011 Lauraine lee

    Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
    html5 apps

  • Vin

    Thanx a lot.. I was trying to resolve this error and nobody was able to resolve this.

  • http://www.magazinein.com/ Rihan Terence

    thanks o lot man!!

  • Sinde

    Thanks a Lot, you saved me a lot of trouble. Thanks again

  • Pingback: Anonymous

  • Harleys R. Toofuknloud

    Very much obliged to you for this simple yet effective cure. Many, many thanks for your time and effort reporting this solution!

  • Sơn

    Pretty much, I always think about php.ini but seem it not working and i found your article. many thanks <3

  • cake deals

    Anyone who reads it will find it much knowledge. http://cakedeals.in