Undefined index: HTTP_USER_AGENT

Download and support for PhpBB3 Error Pages
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Undefined index: HTTP_USER_AGENT

Post by martin123456 »

Guest
ip ???????
► Whois
Language: en Page: error.php?mode=404
File: [ROOT]/error.php
Line: 32 [PHP Notice]

Undefined index: HTTP_USER_AGENT

The above is doing my head in i have the lang edits done (also comes with the snippet) i have also placed the lang edit needed to fix the error but i'm still showing the error in the acp

Note: i'm using the simple error mod and thats picking up the error
User avatar
Stoker
Site Admin
Site Admin
Posts: 3527
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Skip it, theres no way you can get around this error.
Not that I know of anyway :D
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Undefined index: HTTP_USER_AGENT

Post by martin123456 »

just added 'HTTP_USER_AGENT' => 'Http user agent', to all lang files :roll: now i need that guest to come visit as i cant reproduce the error when i get a 404.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3527
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Just been there ;)
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Undefined index: HTTP_USER_AGENT

Post by martin123456 »

And no error showed up strange thing is your mod/snippet contains the edits needed ? i just added the lang edit to all lang files and it seems to have stopped so far.
errrr.png
User avatar
Stoker
Site Admin
Site Admin
Posts: 3527
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Just add it to the error.php lang file
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Undefined index: HTTP_USER_AGENT

Post by martin123456 »

Did that ages ago :D so far the error has stayed away (finger's crossed)

On a side note that is the only error that i get other than that i'm error free ;)
User avatar
themission
BBCoder III
BBCoder III
Posts: 123
Joined: 10 Aug 2011, 22:32
BBCodes: 3
Location: Devon UK
Contact:

Undefined index: HTTP_USER_AGENT

Post by themission »

'T'error free board, hehe
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Undefined index: HTTP_USER_AGENT

Post by martin123456 »

The error has come bk but i think i just found the fix so it's being tested.

find and remove

Code: Select all

$browser = $_SERVER['HTTP_USER_AGENT'];
find and remove

Code: Select all

'USER_BROWSER'		=> $browser,
seems to have done it and the mod is still working as it should so far fingers crossed.
Last edited by martin123456 on 30 May 2013, 18:57, edited 1 time in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3527
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Yes, its back.
I think the problem is when there is no referer??
Board rules! No PM support
Locked