Undefined index: HTTP_USER_AGENT

Modifications for phpBB3.
Try the Mods here and share Your own Mods
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

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

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

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.

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Just been there ;)

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
You do not have the required permissions to view the files attached to this post.

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Just add it to the error.php lang file

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 ;)

Undefined index: HTTP_USER_AGENT

Post by themission »

'T'error free board, hehe

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, 16:57, edited 1 time in total.

Undefined index: HTTP_USER_AGENT

Post by Stoker »

Yes, its back.
I think the problem is when there is no referer??