[SOLVED] G2 B1 Upgrade Error

dewd
dewd's picture

Joined: 2005-03-06
Posts: 6
Posted: Sun, 2005-03-06 05:46

I get the following error on step 2 - Upgrading Core - of the upgrade process:

Fatal error: Call to a member function on a non-object in /home/willowvi/public_html/gallery2/modules/core/module.inc on line 513

I'm upgrading from 0.8.12 to 0.9.0.

Any idea what is going wrong? Thank you.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-03-06 06:15

something is going wrong in layout upgrade, but a bug prevents it from printing out the correct error message. i've fixed that bug, so get tomorrow's nightly build and try again (unfortunately this will just allow you to see the error message, it won't fix whatever is wrong..)

 
dewd
dewd's picture

Joined: 2005-03-06
Posts: 6
Posted: Sun, 2005-03-06 22:03

OK, here ya go. The entire debug text is attatched. Thank you for the help.

Stack Trace:
Error (ERROR_PLUGIN_VERSION_MISMATCH) : [imageframe] db: (v: 0.8.6 core api: 3/0, module api: 0/9) code: (v: 0.8.7 core api: 4/0, module api: 0/10)

* in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 169 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 186 (gallerypluginhelper_simple::loadplugin)
* in modules/imageframe/classes/ImageFrameImpl.class at line 47 (gallerycoreapi::loadplugin)
* in layouts/matrix/layout.inc at line 97 (imageframeimpl::getimageframelist)
* in modules/core/classes/GalleryLayout.class at line 153 (matrixlayout::getsettings)
* in modules/core/CoreModuleExtras.inc at line 309 (matrixlayout::activate)
* in modules/core/module.inc at line 512 (coremoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
* in upgrade/steps/UpgradeCoreModuleStep.class at line 68 (coremodule::installorupgrade)
* in upgrade/index.php at line 155 (upgradecoremodulestep::loadtemplatedata)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-03-06 22:18

oy, that's an unusual situation. i've updated the upgrade code to ignore the layout activate failure, which i think will allow you to make it through the upgrade process (with tomorrows nightly build). when it is done visit Site Admin / Layouts and Themes / All Layouts and make sure the layouts you use are active.

 
dewd
dewd's picture

Joined: 2005-03-06
Posts: 6
Posted: Tue, 2005-03-08 03:15

Something must have gotten scrambled when I uploaded the beta to my server. I completly deleted the modules/core directory and re-uploaded it. I was able to get through the upgrade.

If I have time this weekend I will restore the old gallery files and try again (to see if there is a problem of if it was just a bad upload).

Thank you.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-08 15:37

no, i think your situation was legitimate and needed this fix.. it was just a particular combination of what version you were upgrading from and which modules you had activated that made it find this bug..