Jump to content

[SOLVED] Set display_error to Off in php.ini, still displaying errors


mariachimike

Recommended Posts

Hi,

 

I'm confused because I have set the display_errors value in the php.ini file to Off but I'm still seeing errors displayed back to the browser. Using phpinfo(), I noticed that the master value for display_errors is Off but the local value is On.

 

So my question is: where is the local value for display_errors and other php.ini directives set? I've already checked and confirmed that I'm only loading a single php.ini file.

 

Any help would be appreciated, thanks!

Link to comment
Share on other sites

It's mainly a security feature for our production deployment. We enable logging and disable display so not to reveal anything remotely "interesting" to malicious users. Of course, we enable error display for our local development environment so we can find bugs, but there's always the chance that something goes wrong even after rigorous testing.

Link to comment
Share on other sites

Well, after some rooting around with Google, I found the following link:

 

http://smart-pad.blogspot.com/2006/05/phpinfo-master-and-local-value.html

 

So, if you have issues where your "Local Value" and "Master Value" are different for your PHP settings, check out your .htaccess file. It's likely that your php.ini setting (or the default setting) was overridden by the setting in your .htaccess file, as it was in my case.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.