Undefined index: HTTP_ACCEPT_LANGUAGE

truelove-nl - May 21, 2008 - 16:51
Project:Internationalization
Version:5.x-2.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

In my php error_log I found this repeated message: PHP Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/vhosts/altparty.net/httpdocs/sites/all/modules/i18n/i18n.module on line 434.

Does anyone have a clue what this message is about and how to solve it?

#1

niccottrell - July 8, 2008 - 11:25

I get this error too - on the same line. Did you track down the cause?

#2

truelove-nl - July 15, 2008 - 06:50

No, and the error still exists.

#3

mkrakowiak - October 24, 2008 - 05:50

Hmmm... I just noticed the error as well...

#4

Nick_vh - November 25, 2008 - 14:27

I made a little fix for this because we got the same error!
It sets the default language to 'en', please improve because I didn't got the time to really dive into the code

I wasn't able to test it but please let me know if it works!

AttachmentSize
i18n_http_language_patch.patch 1.15 KB

#5

truelove-nl - January 24, 2009 - 14:30

Patch seems to work...
No more errors.

#6

Jose Reyero - November 6, 2009 - 13:53
Status:active» won't fix

A Notice is not an error, you use it only for development. And anyway we are fixing only critical bugs for 5.x

#7

Nick_vh - November 20, 2009 - 12:01

But it does slow down the speed of your application? Or am I wrong?
I highly recommend to create a solution for this. Anyway, the fix is not so big right?

#8

kurokikaze - December 18, 2009 - 17:00

No. But it does slow down debugging by cluttering the logs with notices.

 
 

Drupal is a registered trademark of Dries Buytaert.