sadams101 Posted June 5, 2018 Posted June 5, 2018 I am the server admin, and am seeing this error in the IPB Admin: Quote Public Display of PHP Errors Enabled The display_errors PHP configuration option is currently enabled on your server, which is not recommended for production environments and we recommend disabling it. If you do not manage your server yourself, your hosting provider will be able to assist with this. I have checked all server php.ini files, the root and site versions, and all are correctly set to display_errors = Off, yet I am still seeing this warning. Any ideas on how to fix this?
Xenboy Posted June 5, 2018 Posted June 5, 2018 Hi, Go into the ACP, click on Support and in a box on the right side, you should see your PHP version listed. Just under that in small letters is: phpinfo. Click that and you'll see your site's PHP configuration and most importantly, you will be able to see where it is pulling the settings from. Look for: Configuration File (php.ini) Path That is the php.ini file that matters. Either change your local php settings to point to a local ini file or change the error display in the listed ini file. Once you change the setting, you should be able to see it change in your phpinfo file. Please note that file caching can sometimes show you a old local version of the file rather than the latest one.
sadams101 Posted June 5, 2018 Author Posted June 5, 2018 Thank you for the reply. The path listed there is the default php.ini file for the site, and when I open that file on command line I see: display_errors = Off Any other ideas? This is set correctly, the server and apache have been restarted many times with this setting this way.
sadams101 Posted June 5, 2018 Author Posted June 5, 2018 One more clue...in the php.info file I see two columns, the left column says "local value", which is on, and the right is "master value", which is off: display_errors On Off
iSeekGolf Posted June 6, 2018 Posted June 6, 2018 Master value is what you have in your php.ini, local value is what is in effect at the time php.info is ran, which means somewhere you are overwriting the value present in your php.ini. Unfortunately there are many places where the value may be overwritten so you will have to check all of the following: htaccess files (look for php_value statement) apache conf files (again look for php_value statement) Any plugin or application you created or installed (look for ini_set statements) Finally if you have developer mode active this will also cause display_errors to be on.
bfarber Posted June 6, 2018 Posted June 6, 2018 Make sure you don't have an ini_set() in your conf_global.php or constants.php or similar that is turning error display on (possibly from a previous technical support ticket or something), and/or a .htaccess file that sets php_value display_errors On. That may explain how the local value is overridden.
sadams101 Posted June 6, 2018 Author Posted June 6, 2018 The final clue in the puzzle! It worked. It was in my conf_global.php: ini_set('display_errors', '1'); and I set it to: ini_set('display_errors', '0'); Thank you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.