Is there any way to hide a warning
TurtleNinja - December 1, 2008 - 18:21
I've spent a lot of time trying to track down this warning I'm getting "PHP Notice: Undefined index: HTTP_HOST in ../includes/bootstrap.inc on line 208" every ten minutes; there have been a few posts about this notice, but i couldn't find any relevant solutions.
Is there any way I can hide it.

=-=
if you have access to php.ini, or can use a custom php.ini, warnings can be turned off in it.
I found the php.ini
I found the php.ini
Where are you seeing the
Where are you seeing the warning? Always on the same page?
gpk
----
www.alexoria.co.uk
I'm not sure what page it's
I'm not sure what page it's coming from, it just occurs every 10 minutes, no more no less. I checked the cron jobs and couldn't really find anything there.
>it just occurs every 10
>it just occurs every 10 minutes ... I checked the cron jobs
So are you running cron every 10 mins? If so, how?
Most errors logged in the admin/reports/dblog page show extra info when you click on the message ...
Also in this issue the particular PHP error was fixed in .htaccess: #80595: Multisite Issue? PHP Notice: Undefined index:...bootstrap.inc....on line 120 and line 169.
gpk
----
www.alexoria.co.uk
There are a few ways to
There are a few ways to disable PHP "notices"
In php.ini (system-wide setting):
error_reporting = E_ALL & ~E_NOTICEIn .htaccess (per directory setting, overrides the previous one):
php_value error_reporting 6135In sites/default/settings.php (setting within a running script, overrides the previous ones):
ini_set('error_reporting', E_ALL & ~E_NOTICE);I would consider it bad server configuration if E_NOTICEs are enabled in php.ini. PHP applications which can work with that settings are rare. Drupal 6 (core only) can, but not most contributed modules or Drupal 5.
I changed the php.ini but
I changed the php.ini but the message is reported as an error, so it still shows. I can't seem to locate the error in drupal.
There is no cron job that runs every 10 minutes, so I'm a little stumped.
That was not a Drupal error
That was not a Drupal error message, not even a PHP error or warning. It was a PHP "notice". Notices are PHP's way of saying "your code does not look good", if you have them enabled. They are mostly used during development.
What do you mean "is reported as an error"?
ok, i'll wait to see when
ok, i'll wait to see when the servers are restarted if the messages are suppressed