When adding media (images) I get this error:

"Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of ... "

Comments

drewhutchinson’s picture

+1

ilghiro’s picture

same problem... some fixes?

fedbccer’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta4

Same error on beta4
Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of ...\sites\all\modules\media_gallery\media_gallery.module).

The error is displayed in different part of the web site, e.g.:
- when I open the gallery page for viewing
- when I open the gallery page for editing
- when I open the list of "Find Content"

sara78’s picture

Same error.

sara78’s picture

I noticed that I had created a gallery node after the first installation of media gallery and dind't delete it after I uninstalled and reinstalled the module. So I disabled media gallery, deleted the old gallery node, abled media gallery again and the error message disappeared. Then I tried to create a new gallery and the error message appeared again.

nevets’s picture

The error is from assuming $node->media_gallery_media is set.

Anonymous’s picture

same issue

dwalker51’s picture

Same... I cannot add images to a gallery (it trys to do something and gets this message)

Undefined property: stdClass::$media_gallery_media in media_gallery_add_images()

shawnb-1’s picture

subscribe

matthijs1988’s picture

subscribe

dafeder’s picture

Same here.

elgandoz’s picture

Status: Closed (cannot reproduce) » Active

same.

chri-st’s picture

same here

sneeuwgetsie’s picture

subscribe

David_Rothstein’s picture

Status: Active » Postponed (maintainer needs more info)

Has anyone seen this with a more recent version of Media Gallery?

If so, please provide information about what version of Media you were running it with, and whether or not you ever disabled/enabled the Media module itself.

It's hard to say without much concrete information here, but it seems possibly related to these issues:
#1152972: Media Gallery incompatible with Media dev snapshots post beta4
#970696: Disabling and re-enabling media module throws exceptions, leaves website in unusable state.

kmare’s picture

same problem here. I'll try to provide more info as soon as possible.

david_p’s picture

subscribing

lsolesen’s picture

Is this still present in beta7?

lsolesen’s picture

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

Cannot reproduce in beta7.

Status: Active » Closed (cannot reproduce)