I've researched this issue and none of the established "fixes" resolve this issue for beta 7.

When attempting to add a gallery I get these errors:

Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 877 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 877 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 877 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 877 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: #language in media_gallery_form_media_gallery_node_form_alter() (line 882 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 904 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 904 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 904 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 909 of /home/whitepoi/public_html/dev.followvue.com/sites/all/modules/media_gallery/media_gallery.module).

Comments

Moloc’s picture

Goto /admin/structure/types/manage/media-gallery/fields
- are there the requested fields ( media_gallery_columns, media_gallery_rows,...) ?

When does this error first occur?
- right after installing the module?
- after updating media_gallery?
- ...

Do you have galleries created, before this error occurs?

jacksoam’s picture

I had the same issue with the Media Gallery module. I haven't created a gallery at all when the error comes up. I've tried to change the number of columns and rows but that didn't make a difference.
I was able to add a gallery but couldn't add media to it. When I go to find the content on my site the following error appears:

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 211 of /home3/teachsav/public_html/drupal/sites/all/modules/media_gallery/media_gallery.module).

Castus’s picture

Hi,

I have the same issue as the opening post. I did not encounter this problem on my testing site. I didn't create any galleries before this, I did try adding a custom field to it. When I go to /admin/structure/types/manage/media-gallery/fields, the fields aren't there.

I added the module a few days ago but did not test it immediately, I only just noticed.

Castus’s picture

Hi there,

I unabled and uninstalled the module, then re-enabled it and ran the update-script. Now it works fine. :-) You might try that?

jacksoam’s picture

Thanks Castus I did this too and it worked. I have no idea what the difference was!

lsolesen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

toya4354’s picture