Gallery Errors: Warning: Creating default object from empty value
Permalink
Starting in December, according to my error log, the gallery area of my site started spitting out this on for every image:
PHP Warning: Creating default object from empty value in ... /packages/gallery/blocks/gallery/controller.php on line 51
I narrowed it down to these lines of code which I've commented out for now. Obviously a variable name has changed somewhere and getting the captions has become an issue.
/**
$gallery_json->{$tmp['fID']}->src = $f->getRelativePath();
$gallery_json->{$tmp['fID']}->caption = $tmp['caption'];
*/
Any love on solving this?
PHP Warning: Creating default object from empty value in ... /packages/gallery/blocks/gallery/controller.php on line 51
I narrowed it down to these lines of code which I've commented out for now. Obviously a variable name has changed somewhere and getting the captions has become an issue.
/**
$gallery_json->{$tmp['fID']}->src = $f->getRelativePath();
$gallery_json->{$tmp['fID']}->caption = $tmp['caption'];
*/
Any love on solving this?

How could I be the only one having this issue? I'm not using anything fancy.
I'm having the exact same issue. How did you solve it? I'm getting the warning over and over again, then the gallery listed below. No wonder my enquiries have dropped off, I've only just noticed it.
http://www.concrete5.org/marketplace/addons/gallery/support/bug-warning-creating-default-object-from-empty-value/ this will solve the problem...
http://www.concrete5.org/marketplace/addons/gallery/support/bug-warning-creating-default-object-from-empty-value/ this will solve the problem...