I have noticed these entries on my error log every time I have a visitor in my site with an empty user agent string (mostly worms):
[error] PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 204
[error] PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 253Phil
Comments
Comment #1
filiptc commentedClarification: with 'error log' I mean apache error log, not the drupal log (watchdog).
Comment #2
monkshac commentedThe following errors are appearing in the Event Log on my IIS server:
PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 204.
PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 253.
PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 801.
PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 741.
PHP Notice: Undefined index: HTTP_HOST in bootstrap.inc on line 423.
The errors seem to coincide with the the schedule for cron.php
There are no coinciding log entries within the Drupal logs.
Here's the status details of my installation:
Drupal 5.1
Configuration file Protected
Cron maintenance tasks Last run 24 min 9 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.26
PHP 5.1.6
Unicode library PHP Mbstring Extension
Web server Microsoft-IIS/6.0
Comment #3
filiptc commentedResetting title. The default one is more accurate (I run apache, and php 5.2).
Please check the access log (IIS) to confirm that the trigger was indeed an empty user agent string.
Phil
Comment #4
filiptc commentedNever mind about the user agent string. I missed the line:
. I guess this confirms it, although it depends what program you use for the cron (wget,curl,...) and if it has a user agent string.
Comment #5
filiptc commented...or if you just use a plain
cron.
Comment #6
dpearcefl commentedConsidering the age of this issue with no comments and that Drupal 5 is no longer supported, I'm closing this ticket.
Comment #7
dpearcefl commented