Got this error when displaying the block.

Also the selection is blank.

CommentFileSizeAuthor
#5 dropdown-lang.png2.87 KBcosmodrom

Comments

Toxid’s picture

+1

Same problem, I got the icon of the selected language showing only. No labels and no other languages in the dropdown. And that error.

intervalle’s picture

Same for me

intervalle’s picture

sorry, found that the language-selection-settings where lost after import of a new language. After re-setting the block works like expected without error-messages.

intervalle’s picture

cosmodrom’s picture

StatusFileSize
new2.87 KB

I am getting the following error and the selection box does not work at all when clicked. Same if disabling "Output as JavaScript" option.

Notice: Trying to get property of non-object in lang_dropdown_form() (line 137 of ../lang_dropdown.module).
Warning: Invalid argument supplied for foreach() in lang_dropdown_form() (line 137 of ../lang_dropdown.module).
Notice: Undefined variable: selected_option in lang_dropdown_form() (line 191 of ../lang_dropdown.module).

After adding the Icons module, these too added to the previous:

Notice: Undefined variable: flag_position in lang_dropdown_form() (line 200 of ../lang_dropdown.module).
Notice: Undefined variable: language_icon in lang_dropdown_form() (line 200 of ../lang_dropdown.module).

Intervalle, what do you mean by re-setting the block? Deactivate and activate? I tried that and tried changing settings, anyway I get this error. And it does the same on 2 different d7 installations.

Does anyone have a solution to this please?

cosmodrom’s picture

I have also tried disabling languages and re-enabling them. And other stuff also don't work. It could be something with the code. Anyone got this working?

rjarteta’s picture

Having the same issue.

kareemzok’s picture

i m having the same problem . no solution ?? and what mean to do re setting of the block coz i tried also everything i can

mohammed j. razem’s picture

Status: Active » Fixed

Fixed in new 7.x-1.0 release.

Status: Fixed » Closed (fixed)

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

brycesenz’s picture

Status: Closed (fixed) » Active

I am running Drupal 7.8 and the latest version of the Language Icons module. I am using the Language Dropdown User Interface block.

Even with the latest versions of this module (both 7.x-1.0 and 7.x-1.x-dev), I am still getting the same error as #5.

Notice: Undefined variable: flag_position in lang_dropdown_form() (line 210 of C:\xampp\htdocs\arab-hits.com\sites\all\modules\lang_dropdown\lang_dropdown.module).
Notice: Undefined variable: language_icon in lang_dropdown_form() (line 210 of C:\xampp\htdocs\arab-hits.com\sites\all\modules\lang_dropdown\lang_dropdown.module).

The error goes away after disabling Language Icons.

manfer’s picture

Status: Active » Fixed

This should not happen in the new 7.x-1.1 version as that variable has value no matter if language_icons is present or not.

Status: Fixed » Closed (fixed)

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