Undefined index: HTTP_USER_AGENT
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
Undefined index: HTTP_USER_AGENT
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
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
Skip it, theres no way you can get around this error.
Not that I know of anyway
Not that I know of anyway

Undefined index: HTTP_USER_AGENT
just added 'HTTP_USER_AGENT' => 'Http user agent', to all lang files
now i need that guest to come visit as i cant reproduce the error when i get a 404.

Undefined index: HTTP_USER_AGENT
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.
You do not have the required permissions to view the files attached to this post.
Undefined index: HTTP_USER_AGENT
Did that ages ago
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

On a side note that is the only error that i get other than that i'm error free

Undefined index: HTTP_USER_AGENT
The error has come bk but i think i just found the fix so it's being tested.
find and remove
find and remove
seems to have done it and the mod is still working as it should so far fingers crossed.
find and remove
Code: Select all
$browser = $_SERVER['HTTP_USER_AGENT'];
Code: Select all
'USER_BROWSER' => $browser,
Last edited by martin123456 on 30 May 2013, 16:57, edited 1 time in total.