Hi,
I created Media type field and set the display format as predefined Gallery thumbnail. Teaser view of the node gives following errors:
•Notice: Undefined property: stdClass::$media_gallery_format in template_preprocess_media_gallery_media_item_thumbnail() (line 114 of D:\ProgramFiles\apache22\htdocs\drupal7\sites\all\modules\media_gallery\media_gallery.theme.inc).
•Notice: Undefined property: stdClass::$media_gallery_image_info_where in template_preprocess_media_gallery_media_item_thumbnail() (line 147 of D:\ProgramFiles\apache22\htdocs\drupal7\sites\all\modules\media_gallery\media_gallery.theme.inc).
•Strict warning: Only variables should be passed by reference in file_styles_strstr() (line 64 of D:\ProgramFiles\apache22\htdocs\drupal7\sites\all\modules\styles\contrib\file_styles\file_styles.module).
.
Thanks
Shriji
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commented@shriji Have you tested this on a recent version of media gallery?
Comment #2
lsolesen CreditAttribution: lsolesen commentedCannot reproduce in 1.x-beta7.
Comment #3
1kubik CreditAttribution: 1kubik commentedhi there
i got the same message:
'Notice: Undefined property: stdClass::$media_gallery_format in template_preprocess_media_gallery_media_item_thumbnail()
Warning: key() expects parameter 1 to be array, null given in media_gallery_item_view() (Zeile 159 von /var/www/vhosts/drupal/sites/all/modules/contrib/media_gallery/media_gallery.fields.inc).
'
media gallery 7.x-1.0-beta7
PHP Version 5.3.2-1ubuntu4.17
Drupal version 7.14
iam sorry that i cant tell you more
regards
Comment #4
lsolesen CreditAttribution: lsolesen commentedWhich url do you get the error on? Which steps did you use to reproduce the error?
Comment #5
1kubik CreditAttribution: 1kubik commenteddear lsolesen
iam sure now that the error came with the
multimedia asset field.
if i use the multimedia asset to connect a gallery to a node
the error appears on
node/*/edit
or
node/*
i know (now) that this is the wrong way!
it's better to use the reference module and the included node reference
then everything is fine :)
greetings
Comment #6
lsolesen CreditAttribution: lsolesen commentedactually you should probably use entityreference module.