A little testing with disabling all media modules, and after re-enabling Media Gallery I get this when opening the Galleries:

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of /var/www/example.com/drupal-7.0/sites/all/modules/media_gallery/media_gallery.module)

Best regards,
Ao

CommentFileSizeAuthor
#12 error2.JPG32.97 KBsaidasoft
#11 error.JPG112.73 KBsaidasoft
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

luckystrikerin’s picture

subscribing

MrRoxy’s picture

+1

scromie’s picture

subscribing

keith_k’s picture

I'm getting the same errors:

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined property: stdClass::$media_gallery_columns in media_gallery_view() (line 278 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined property: stdClass::$media_gallery_rows in media_gallery_view() (line 279 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Warning: Division by zero in pager_default_initialize() (line 282 of {path}/includes/pager.inc).

where {path} is the path to my drupal installation.

** Edit: I forgot to say I am using the 7.x-1.x-dev files for media and media_gallery
** Edit: At the /admin/config/media/galleries url, I get a white-screen with this error:

Fatal error: Cannot access empty property in {path}/modules/field/field.attach.inc on line 198
keith_k’s picture

On /node/add/media-gallery, I get:

Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 862 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 862 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 862 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 862 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_format in media_gallery_form_media_gallery_node_form_alter() (line 862 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 885 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 885 of {path}/sites/all/modules/media_gallery/media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 885 of {path}/sites/all/modules/media_gallery/media_gallery.module).

keith_k’s picture

Status: Active » Closed (duplicate)

It loos like work on this issue is going on under the following issue:
#1015580: Media entities : Cannot access empty property in field.attach.inc line 677

zman@vail.net’s picture

I am still getting this error with the latest version of media and media gallery. I do not see references to this problem in the #6 post above.

Is anyone else still seeing this error?

fedbccer’s picture

Same problem described in http://drupal.org/node/989752

Anonymous’s picture

subscribing

gadams’s picture

subscribing

saidasoft’s picture

Title: Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 » Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdoc
Version: 7.x-1.0-beta3 » 7.x-1.x-dev
Assigned: Unassigned » saidasoft
FileSize
112.73 KB

Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_rows in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_image_info_where in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_allow_download in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_format in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_expose_block in media_gallery_form_media_gallery_node_form_alter() (line 905 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_block_columns in media_gallery_form_media_gallery_node_form_alter() (line 905 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).
Notice: Undefined index: media_gallery_block_rows in media_gallery_form_media_gallery_node_form_alter() (line 905 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).

----------------------------------------
Can anyone justify this ...by saida (s/w -bangalore -india).

saidasoft’s picture

Title: Notice: Undefined index: media_gallery_columns in media_gallery_form_media_gallery_node_form_alter() (line 882 of C:\xampp\htdoc » Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of C:\xampp\htdocs\storyworld\
Priority: Normal » Major
Issue tags: +Image are not displaying @ my placeholder ....
FileSize
32.97 KB

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of C:\xampp\htdocs\storyworld\sites\all\modules\media_gallery\media_gallery.module).

-----------------------------------------------

Issue : I can able to add the images (thru gallery module)- but the added images are not showing up @ my placeholder ...by saida (s/w - bangalore -india ) .

david_p’s picture

subscribing

travis uribe’s picture

I have the same problem as #11 AND #4

I had the problem right from the beginning. This is extremely frustrating.

I'm running Drupal on what is presumably a very standard platform: A Dreamhost shared-hosting account running on LAMP.

oregonwebsiteservices’s picture

Title: Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 198 of C:\xampp\htdocs\storyworld\ » Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 254 of ../modules/media_gallery/me
Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Closed (duplicate) » Active

When I go in to look at content I get this same error repeating about 30 times only on line 254. I have Drupal 7.18 and all modules are up to date:

I am getting the same exact errors with Drupal 7.18 and these modules which are all current:

ACL 7.x-1.0
Calendar 7.x-3.4
CAPTCHA 7.x-1.0-beta2
CAPTCHA Pack 7.x-1.0-alpha1
Chaos tool suite (ctools) 7.x-1.2
CKEditor - WYSIWYG HTML editor 7.x-1.12
Colorbox 7.x-1.4
Content Access 7.x-1.2-beta1
Date 7.x-2.6
Entity API 7.x-1.0
File entity (fieldable files) 7.x-2.0-unstable7
Gallery formatter 7.x-1.3
Google Analytics 7.x-1.3
Libraries API 7.x-1.0
Media 7.x-2.0-unstable7
Media Browser Plus 7.x-2.x-dev (2013-Jan-03)
Media Gallery 7.x-2.x-dev (2012-Dec-25)
Media Gallery Extra 7.x-1.x-dev (2012-Jul-30)
Module Filter 7.x-1.7
Multiple forms 7.x-1.0
Node access node reference 7.x-1.22
Node access user reference 7.x-3.9
Pathauto 7.x-1.2
Plupload integration 7.x-1.0
References 7.x-2.0
Rules 7.x-2.2
Token 7.x-1.4
URL field 7.x-1.0-rc1
Views 7.x-3.5
Views Media Browser 7.x-1.0
Webform 7.x-3.18
AdaptiveTheme 7.x-2.3
AT Commerce 7.x-2.0-rc3

Help?!?

pu7bj’s picture

Did you execute your update script?
go to:
{your site}/update.php

trevorforrest’s picture

Version: 7.x-2.x-dev » 7.x-1.0-beta8

I to am having the same problem with this module...same errors. Please advise as to the status of this. It is become quite frustrating.
I am running DP 7.19

cintex’s picture

subscribing

vthirteen’s picture

i wonder which version the module this issue is rferring to. i got this error after upgrading from 1 to 2.dev

dererik’s picture

subscribing

mattwmc’s picture

Ditto.

Notice: Undefined property: stdClass::$media_gallery_media in media_gallery_node_load() (line 207 of /home/public_html/sites/all/modules/contrib/media_gallery/media_gallery.module).


Warning: array_filter() expects parameter 1 to be array, null given in media_gallery_view() (line 252 of /home/public_html/sites/all/modules/contrib/media_gallery/media_gallery.module)
mattwmc’s picture

Update: This config works for me.

Media 7.x-1.0-beta5

Multiple forms 7.x-1.0-beta2

Media Gallery 7.x-1.0-beta6

At least for now, lol.

ivnish’s picture

Issue summary: View changes
Status: Active » Closed (outdated)