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
Comment | File | Size | Author |
---|---|---|---|
#10 | language-notices-1029486-10.patch | 859 bytes | oriol_e9g |
Comments
Comment #1
Anonym CreditAttribution: Anonym commentedI have this error when default language is not english.
Comment #2
Anonym CreditAttribution: Anonym commentedError fixed if not move the items to the fieldset in media_gallery_form_media_gallery_node_form_alter()
Comment #3
Anonym CreditAttribution: Anonym commentedSecond way to fix this error: replace all "unset($form[$id]);" to "$form[$id] = array('#language' => NULL);" in media_gallery.module
Comment #4
catarinavclemente CreditAttribution: catarinavclemente commentedThe second solution worked for me. Thanks.
Comment #5
kbm065 CreditAttribution: kbm065 commentedI am experiencing the same thing. I also don't have English as default language.
Comment #6
sw3b CreditAttribution: sw3b commentedSame for me ! French setup!
Comment #7
elgandoz CreditAttribution: elgandoz commentedSame here. Italian setup with "localized Drupal" installation profile. the fix works!
Comment #8
oriol_e9gSame 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).
Comment #9
oriol_e9gSolution 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).
Comment #10
oriol_e9gThis patch solves all notices
Comment #11
anthonyR CreditAttribution: anthonyR commentedI just tested this patch in #10, it solved my problems.
Comment #12
oriol_e9gCredits for @Anonym I only rule the patch
Comment #13
pazap47 CreditAttribution: pazap47 commentedPatch #10 Solved the problem as well. Thank You
Comment #14
andyceo CreditAttribution: andyceo commentedThis issue is relevant: #953766: Many undefined index: media_gallery_ ..... _submit
Comment #15
JohanPirlouit CreditAttribution: JohanPirlouit commentedHi 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
Comment #16
effulgentsia CreditAttribution: effulgentsia commentedThanks all. Committed a slight change of #10: http://drupalcode.org/project/media_gallery.git/commitdiff/77b37bf?hp=58...