I am having difficulties in overriding the default PHP settings within my Drupal installation. I do not want Drupal to display E_NOTICE messages. So I wanted to override the default PHP error_reporting setting from E_ALL
to E_ALL & ~E_NOTICE
or from 2047 to 2039 (the corresponding error reporting values).
I added the line ini_set('error_reporting', 2039);
in both sites/default/settings.php and sites/default/default.settings.php, but still when I go the status report page and view the PHP info file, I see the error reporting setting of PHP is still set to 2047. What am I doing wrong here? How to override the php setting?
PS: I even tried adding the line php_value error_reporting 2039
to Drupal's .htaccess file, but there is no effect.
ini_set()
being disabled? Did you verify it is not disabled? Notice that you should not touch the default.settings.php. Drupal doesn't use that file when running; it is just used to create the settings.php file when installing Drupal.log_errors = Off
in your.htaccess