Page 1 of 2

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 14:40
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

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 18:50
by Stoker
Skip it, theres no way you can get around this error.
Not that I know of anyway :D

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 19:11
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.

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 19:19
by Stoker
Just been there ;)

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 19:54
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

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 20:06
by Stoker
Just add it to the error.php lang file

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 20:17
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 ;)

Undefined index: HTTP_USER_AGENT

Posted: 24 May 2013, 22:25
by themission
'T'error free board, hehe

Undefined index: HTTP_USER_AGENT

Posted: 30 May 2013, 18:42
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.

Undefined index: HTTP_USER_AGENT

Posted: 30 May 2013, 18:45
by Stoker
Yes, its back.
I think the problem is when there is no referer??