Howard Wilner - GalleryStatus as array

wilnerhowardautomax

Joined: 2007-12-12
Posts: 1
Posted: Wed, 2007-12-12 03:53

Hello my name Howard Wilner and im working for automax preowned Framingham, i have a problem with this error... what's the cause?

[error] PHP Fatal error: Cannot use object of type GalleryStatus as array in /home/USER/public_html/gallery/modules/core/classes/GalleryDataCache.class on line 839

thank you

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32397
Posted: Fri, 2007-12-14 23:10

what version of gallery 2 are you using?
see: FAQ: What information is required when I ask for help in the forums?

the error you see stems from a bug in g2. i've fixed it now. thanks.

you can fix your g2 version by applying this change:
http://gallery.svn.sourceforge.net/viewvc/gallery/trunk/gallery2/modules/core/classes/GalleryDataCache.class?r1=17231&r2=17230&pathrev=17231

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

Login or register to post comments
danespen

Joined: 2006-06-29
Posts: 19
Posted: Sun, 2009-03-15 22:16

Same error, when running "copy keywords into tags" maintainance, it halts the process midways:

Fatal error: Cannot use object of type GalleryStatus as array in /home/reinfjor/public_html/modules/core/AdminMaintenance.inc on line 128

Gallery 2.3 installed. Suggestions?

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32397
Posted: Sun, 2009-03-15 23:05

@danespen:

that's a bug in the tags module.
fix:
in modules/tags/classes/KeywordsToTags.class function run(), replace every instance of:
return $ret;
with
return array($ret, false, null);

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

Login or register to post comments
danespen

Joined: 2006-06-29
Posts: 19
Posted: Tue, 2009-03-17 14:32

Thank you valiant, that got me a little further!

Now I get this error, and have no idea how to troubleshoot (too many file references) - should I make a new thread?:

Quote:
Error (ERROR_MISSING_OBJECT)in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 167 (GalleryCoreApi::error) in modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities) in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities) in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById) in modules/tags/classes/KeywordsToTags.class at line 82 (GalleryCoreApi::loadEntitiesById) in modules/core/AdminMaintenance.inc at line 128 (KeywordsToTags::run) in ??? at line 0 (AdminMaintenanceController::runTask) in modules/core/classes/GalleryTemplateAdapter.class at line 1092in g2data/smarty/templates_c/%%2952643766/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (GalleryTemplateAdapter::trailer) in lib/smarty/Smarty.class.php at line 1255in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch) in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch) in main.php at line 506 (GalleryTemplate::display) in main.php at line 104in main.php at line 88

Login or register to post comments