System Info Says Display Error ON, But set to OFF in PHP ini

This forum is for issues with installing Joomla! 3.x on IIS webservers.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
manofbronze
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Nov 20, 2015 5:02 pm

System Info Says Display Error ON, But set to OFF in PHP ini

Post by manofbronze » Fri Dec 11, 2015 8:35 pm

I am new to Joomla, but getting educated quickly. ;)

I am trying to tighten up security on our new site and have run across an interesting problem. Despite setting the value "display_errors = Off" in my PHP.ini file, the System Info in Joomla Admin shows the value to be "Display Errors ON". Other values that I have set in the PHP.INI file are being correctly displayed (and updated when I change them) but not "display_errors".

Is it possible some other ini file is overriding this setting?

I am running PHP 5.4.2., Joomla 3.4.5 on Windows 2012 R2 with IIS 8.5.
Last edited by toivo on Fri Dec 11, 2015 9:33 pm, edited 1 time in total.
Reason: mod note: not related to security, moved to the correct forum

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: System Info Says Display Error ON, But set to OFF in PHP

Post by itoctopus » Fri Dec 11, 2015 8:50 pm

Have you restarted Apache after changing the php.ini file? Also, it is very possible that this value is overridden somewhere else, either with a local .user.ini file or with a local php.ini file.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

manofbronze
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Nov 20, 2015 5:02 pm

Re: System Info Says Display Error ON, But set to OFF in PHP

Post by manofbronze » Fri Dec 11, 2015 9:23 pm

itoctopus wrote:Have you restarted Apache after changing the php.ini file? Also, it is very possible that this value is overridden somewhere else, either with a local .user.ini file or with a local php.ini file.
Thanks for the VERY quick response itoctopus!
Not Apache, but IIS and Yes, I did restart the service following each change.

Ultimately, I found the culprit. It was the setting in system\global configuration\server\error reporting. the value was set to "simple". Setting this to "none" resulted in "display errors" being correctly set to "off" when viewed under the php settings on the system information page.

Again, many thanks for getting right on this. :)

manofbronze
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Nov 20, 2015 5:02 pm

Re: System Info Says Display Error ON, But set to OFF in PHP

Post by manofbronze » Mon Dec 28, 2015 5:01 pm

Issue resolved by correcting the system\global configuration\server\error reporting setting.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17439
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: System Info Says Display Error ON, But set to OFF in PHP

Post by toivo » Mon Dec 28, 2015 5:43 pm

If you select 'none', no errors get logged, which may not be what you want. Select 'System Default' in System - Global Configuration - Server - Server Settings - Error Reporting. Then the settings from the php.ini file, the 'master' values, will control the error reporting.
Toivo Talikka, Global Moderator


Locked

Return to “Joomla! 3.x on IIS webserver”