Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2011 at 10:27 UTC
Updated:
19 Aug 2011 at 08:22 UTC
Upgrading beta5 to beta6, my site got blank pages with an error:
Fatal error: Cannot use object of type stdClass as array in .../sites/all/modules/media_gallery/media_gallery.fields.inc on line 92
Comments
Comment #1
dhruvbaldawa commentedIts only because you are refering to an object of a class as an array
Can you show the line ?
Its mainly due to : $variable[$attribute] must be changed to $variable->$attribute
Comment #2
astra commentedThe line 92 is $file = $item['file']; Here are a few lines before it:
Comment #3
astra commentedFirst upgrade Media to 7.x-1.0-beta5, then install Media Gallery 7.x-1.0-beta6. My site works and seems no problem.