Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When adding media (images) I get this error:
"Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of ... "
Comments
Comment #1
drewhutchinson CreditAttribution: drewhutchinson commented+1
Comment #2
ilghiro CreditAttribution: ilghiro commentedsame problem... some fixes?
Comment #3
fedbccer CreditAttribution: fedbccer commentedSame 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"
Comment #4
sara78 CreditAttribution: sara78 commentedSame error.
Comment #5
sara78 CreditAttribution: sara78 commentedI 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.
Comment #6
nevets CreditAttribution: nevets commentedThe error is from assuming $node->media_gallery_media is set.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedsame issue
Comment #8
dwalker51 CreditAttribution: dwalker51 commentedSame... 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()
Comment #9
shawnb-1 CreditAttribution: shawnb-1 commentedsubscribe
Comment #10
matthijs1988 CreditAttribution: matthijs1988 commentedsubscribe
Comment #11
dafederSame here.
Comment #12
elgandoz CreditAttribution: elgandoz commentedsame.
Comment #13
chri-st CreditAttribution: chri-st commentedsame here
Comment #14
sneeuwgetsie CreditAttribution: sneeuwgetsie commentedsubscribe
Comment #15
David_Rothstein CreditAttribution: David_Rothstein commentedHas 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.
Comment #16
kmare CreditAttribution: kmare commentedsame problem here. I'll try to provide more info as soon as possible.
Comment #17
david_p CreditAttribution: david_p commentedsubscribing
Comment #18
lsolesen CreditAttribution: lsolesen commentedIs this still present in beta7?
Comment #19
lsolesen CreditAttribution: lsolesen commentedCannot reproduce in beta7.