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 253

Phil

Comments

filiptc’s picture

Clarification: with 'error log' I mean apache error log, not the drupal log (watchdog).

monkshac’s picture

Title: Log errors (from bootstrap.inc) when empty user agent » IIS 6.0 (PHP 5.1.6) Log errors (from bootstrap.inc)
Version: 5.0-rc1 » 5.1

The 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

filiptc’s picture

Title: IIS 6.0 (PHP 5.1.6) Log errors (from bootstrap.inc) » Log errors (from bootstrap.inc) when empty user agent

Resetting 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

filiptc’s picture

Never mind about the user agent string. I missed the line:

The errors seem to coincide with the the schedule for cron.php

. 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.

filiptc’s picture

...or if you just use a plain
cron.

dpearcefl’s picture

Considering the age of this issue with no comments and that Drupal 5 is no longer supported, I'm closing this ticket.

dpearcefl’s picture

Status: Active » Closed (won't fix)