Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | add-check-to-prevent-errors-1557756-5.patch | 2.25 KB | Devin Carlson |
#3 | add-check-to-prevent-errors-1557756-3.patch | 1.83 KB | Devin Carlson |
#1 | browscap_1557756.patch | 619 bytes | tobiasb |
Comments
Comment #1
tobiasbthis error comes most, when a bot visit the website. the attached patch is for 6.x and 7.x.
Comment #2
kurtismccartney CreditAttribution: kurtismccartney commentedWorks for me. Thanks tobiasb.
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedThanks for the patch and feedback!
The attached patch implements the same check as the patch in #1 but also includes some minor cleanup.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted to 7.x-1.x.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedBackport of #4.
Comment #6
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted to 6.x-1.x.
Comment #8
PROMESI 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.
Comment #9
Devin Carlson CreditAttribution: Devin Carlson commentedUser agent recording is no longer part of Browscap.