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

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

@shriji Have you tested this on a recent version of media gallery?

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Cannot reproduce in 1.x-beta7.

1kubik’s picture

hi 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

lsolesen’s picture

Status: Closed (cannot reproduce) » Postponed (maintainer needs more info)

Which url do you get the error on? Which steps did you use to reproduce the error?

1kubik’s picture

dear 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

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

actually you should probably use entityreference module.