I just enabled this module, and the folowing set of message turn up.

Notice: Undefined index: language in lang_dropdown_form() (line 225 of lang_dropdown.module).
Notice: Undefined index: language in lang_dropdown_form() (line 234 of lang_dropdown.module).
Notice: Trying to get property of non-object in lang_dropdown_form() (line 234 of lang_dropdown.module).

I have Locale installed, but not i18n, and i have installed some languages, on D7.9.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rtdean93’s picture

I too just upgraded the module and now am receiving this notice...

Notice: Undefined index: language in lang_dropdown_form() (line 225 of /home/betablue/blueline-grs64/www/sites/all/modules/contrib/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: language in lang_dropdown_form() (line 225 of /home/betablue/blueline-grs64/www/sites/all/modules/contrib/lang_dropdown/lang_dropdown.module).
Notice: Undefined index: language in lang_dropdown_form() (line 225 of /home/betablue/blueline-grs64/www/sites/all/modules/contrib/lang_dropdown/lang_dropdown.module).

I do have three languages enabled.

manfer’s picture

Status: Active » Needs review
FileSize
3.16 KB

Try the following patch.

And though no related I suggest to upgrade to D7.14 as there are lots of bug fixes including some security vulnerabilities solved since D7.9

manfer’s picture

johnv’s picture

Quiet some patch! But it removes the messages, and the LSD-block shows fine. Thanx!

manfer’s picture

Title: Notice: Undefined index: language in lang_dropdown_form() » Review switcher for all negotiation types
Status: Needs review » Fixed

patch pushed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.