When create or update gallery i have errors:

Notice: Undefined index: media_gallery_format в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_lightbox_extras в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_columns в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_rows в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_image_info_where в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_allow_download в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_expose_block в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_block_columns в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).
Notice: Undefined index: media_gallery_block_rows в функции locale_field_node_form_submit() (строка 405 в файле /var/www/fktom/modules/locale/locale.module).

P.S. module from CVS

CommentFileSizeAuthor
#10 language-notices-1029486-10.patch859 bytesoriol_e9g
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonym’s picture

I have this error when default language is not english.

Anonym’s picture

Error fixed if not move the items to the fieldset in media_gallery_form_media_gallery_node_form_alter()

Anonym’s picture

Second way to fix this error: replace all "unset($form[$id]);" to "$form[$id] = array('#language' => NULL);" in media_gallery.module

catarinavclemente’s picture

The second solution worked for me. Thanks.

kbm065’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta4

I am experiencing the same thing. I also don't have English as default language.

sw3b’s picture

Same for me ! French setup!

elgandoz’s picture

Same here. Italian setup with "localized Drupal" installation profile. the fix works!

oriol_e9g’s picture

Same problem:

Notice: Undefined index: media_gallery_format in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_lightbox_extras in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_columns in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_rows in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_image_info_where in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_allow_download in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_expose_block in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_block_columns in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_block_rows in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).

oriol_e9g’s picture

Solution in #3 solves 6 of 9 notices in my case

Notice: Undefined index: media_gallery_expose_block in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_block_columns in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).
Notice: Undefined index: media_gallery_block_rows in locale_field_node_form_submit() (line 404 of C:\AppServ\www\mediadrup\modules\locale\locale.module).

oriol_e9g’s picture

Status: Active » Needs review
FileSize
859 bytes

This patch solves all notices

anthonyR’s picture

I just tested this patch in #10, it solved my problems.

oriol_e9g’s picture

Credits for @Anonym I only rule the patch

pazap47’s picture

Patch #10 Solved the problem as well. Thank You

andyceo’s picture

JohanPirlouit’s picture

Hi everyone,

Patch #10 also fixes all locale errors for me.

My config:
- Media Gallery 7.x-1.0-beta4
- Drupal 7.x-dev (2011-Apr-27) to fix the field.info.inc issue...

Thanx ;-)

Regards,
Johan

effulgentsia’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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