dlog is filling up with these errors. Anyone encountered this before?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

masipila’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Status: Active » Needs review
FileSize
1008 bytes

The PHP Notice happens when the browser does not send user agent with the HTTP request. This can happen for example with some crawlers.

Please find attached a patch against the latest 7.x-2.x-dev from Git.

Cheers,
Markus

Poieo’s picture

Thanks @masipila. Can anyone else confirm this patch eliminates the errors for them?

masipila’s picture

I just ran into this same issue again on a different project, again when using a Cache Warmer.

I believe the root cause and patch are extremely clear and I would kindly request that this patch would be committed.

  • The error message is very clearly saying that $_SERVER array does not contain an index HTTP_USER_AGENT.
  • The patch addresses this very situation (and only that) and therefore eliminates the notices.

Cheers,
Markus