I am using the CVS version of the media and media_gallery modules on a Windows 7 and XAMPP development machine.
I am getting a number of errors when creating a gallery, editing a gallery and adding images. However it appears that the content does get created and can be manipulated.
When creating a new gallery i get the below errors:
* Notice: Undefined index: und in media_gallery_view() (line 275 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: array_keys(): The first argument should be an array in media_gallery_view() (line 275 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: Invalid argument supplied for foreach() in media_gallery_view() (line 284 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined index: und in media_gallery_view() (line 305 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: array_values(): The argument should be an array in media_gallery_view() (line 305 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: pre_links in media_gallery_view() (line 316 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: post_links in media_gallery_view() (line 321 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: media_entities in media_gallery_field_formatter_view() (line 87 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.fields.inc).
* Warning: Invalid argument supplied for foreach() in field_attach_prepare_view() (line 1064 of X:\websites\dev.site1.com.au\modules\field\field.attach.inc).
* Notice: Undefined variable: media_entities in media_gallery_field_formatter_view() (line 88 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.fields.inc).
* Warning: Invalid argument supplied for foreach() in entity_prepare_view() (line 6854 of X:\websites\dev.site1.com.au\includes\common.inc).
* Warning: Invalid argument supplied for foreach() in element_children() (line 5550 of X:\websites\dev.site1.com.au\includes\common.inc).
* Notice: Undefined index: und in media_gallery_view() (line 275 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: array_keys(): The first argument should be an array in media_gallery_view() (line 275 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: Invalid argument supplied for foreach() in media_gallery_view() (line 284 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined index: und in media_gallery_view() (line 305 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Warning: array_values(): The argument should be an array in media_gallery_view() (line 305 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: pre_links in media_gallery_view() (line 316 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: post_links in media_gallery_view() (line 321 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: media_entities in media_gallery_field_formatter_view() (line 87 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.fields.inc).
* Warning: Invalid argument supplied for foreach() in field_attach_prepare_view() (line 1064 of X:\websites\dev.site1.com.au\modules\field\field.attach.inc).
* Notice: Undefined variable: media_entities in media_gallery_field_formatter_view() (line 88 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.fields.inc).
* Warning: Invalid argument supplied for foreach() in entity_prepare_view() (line 6854 of X:\websites\dev.site1.com.au\includes\common.inc).
* Warning: Invalid argument supplied for foreach() in element_children() (line 5550 of X:\websites\dev.site1.com.au\includes\common.inc).
and when i click on edit gallery:
Notice: Undefined index: und in FieldsRSIPreventor->getAllItems() (line 45 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\fields_rsi_prevention.inc).
And when i add an image:
* Notice: Undefined variable: pre_links in media_gallery_view() (line 316 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
* Notice: Undefined variable: post_links in media_gallery_view() (line 321 of X:\websites\dev.site1.com.au\sites\all\modules\media_gallery\media_gallery.module).
Comments
Comment #1
kobnim commentedOn a "clean" site, I get an "Undefined Index" error when I try to create my first gallery:
How I built my site:
(a) Fresh install of Drupal 7 Beta1
(b) Upload these modules from a drupalgardens export: entity, media, media_gallery, multiform, styles
(c) Enable media_gallery
Comment #2
kobnim commentedContinuing from the post above ...
I then submitted the gallery node-form and got these errors:
I then clicked "edit gallery" (on my newly-created gallery node) and got these errors:
I then submitted by edited gallery node and got these errors:
Comment #3
kobnim commentedepilogue ...
I was able to add photos to the gallery, with no error messages.
Comment #4
JC8008 commentedI get the same massages, have given up trying to fix. Have set up 4 galleries and they work fine. I am using Drupal 7 beta1. http://www.mycustomgolf.net/taxonomy/term/1
Comment #5
JacobSingh commentedLet me know if these are still there, we certainly don't want notices in the logs.
Comment #6
lsolesen commentedAre you still experiencing this with beta7, then please move the version to beta7 or mark the status as fixed?
Comment #7
lsolesen commented