Undefined index: HTTP_USER_AGENT
- martin123456
- 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
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
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
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
Board rules! No PM support
- martin123456
- 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
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.
- martin123456
- 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
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.
- martin123456
- 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
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
- themission
- BBCoder III
- Posts: 123
- Joined: 10 Aug 2011, 22:32
- BBCodes: 3
- Location: Devon UK
- Contact:
Undefined index: HTTP_USER_AGENT
'T'error free board, hehe
- martin123456
- 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
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, 18:57, edited 1 time in total.
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Undefined index: HTTP_USER_AGENT
Yes, its back.
I think the problem is when there is no referer??
I think the problem is when there is no referer??
Board rules! No PM support