I'm unclear about what this is.

Notice: Undefined index: HTTP_USER_AGENT in _record_user_agent() (line 33 of /var/www/sites/all/modules/browscap/record.inc).

This is probably an easy question to answer, unfortunately this is new to me and makes no sense yet.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tobiasb’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Category: support » bug
Status: Active » Needs review
FileSize
619 bytes

this error comes most, when a bot visit the website. the attached patch is for 6.x and 7.x.

kurtismccartney’s picture

Status: Needs review » Reviewed & tested by the community

Works for me. Thanks tobiasb.

Devin Carlson’s picture

Component: Miscellaneous » Code
Status: Reviewed & tested by the community » Needs review
FileSize
1.83 KB

Thanks for the patch and feedback!

The attached patch implements the same check as the patch in #1 but also includes some minor cleanup.

Devin Carlson’s picture

Status: Needs review » Fixed

Committed to 7.x-1.x.

Devin Carlson’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Needs review
FileSize
2.25 KB

Backport of #4.

Devin Carlson’s picture

Status: Needs review » Fixed

Committed to 6.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

PROMES’s picture

Version: 6.x-1.x-dev » 7.x-1.3
Status: Closed (fixed) » Active

I tried to apply patch #5 in D7 but this patch couldn't be applied (D6 db_query code?).
So I applied patch #3.

Is a patch #5 available for D7 or a 7.x-1.x-dev file with a correct patch?

Thanks.

Devin Carlson’s picture

Status: Active » Closed (works as designed)

User agent recording is no longer part of Browscap.