[SOLVED] Error ocurred while upgrading Gallery Core Module

da457nilo

Joined: 2004-12-16
Posts: 7
Posted: Thu, 2004-12-23 05:38

Hey guys i finished installing my Gallery and after trying to automatically upgrade the gallery core i received this message:

Stack Trace:

Error (ERROR_STORAGE_FAILURE):
in file modules/core/classes/GalleryStorage/DatabaseStorage.class at line 741 (gallerystatus::error)
in file modules/core/classes/GalleryStorage.class at line 241 (mysqldatabasestorage::execute)
in file modules/core/CoreModuleExtras.inc at line 201 (gallerystorage::execute)
in file modules/core/module.inc at line 663 (coremoduleextras::upgrade)
in file modules/core/classes/GalleryModule.class at line 168 (coremodule::upgrade)
in file upgrade/steps/UpgradeCoreModuleStep.class at line 50 (coremodule::installorupgrade)
in file upgrade/index.php at line 146 (upgradecoremodulestep::loadtemplatedata)

It also created a debug output
which seemed very long so i skipped including it so as to not make the page too too long.

Thanks ahead of time for any future help.

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): www.lifepainting.com/gallery
Gallery version: 2.0 alpha 4
Apache version: 1.27
PHP version (don't just say PHP 4, please): 4.3.8
Graphics Toolkit: netbpm
Operating system: FreeBSD 4.9
Web browser/version (if applicable): Internet Explorer 6.0

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2004-12-23 09:33

Moved to G2 Support forum.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-23 16:45

it should not go directly from installer to upgrader.. is that what happened? what is your database type and version?
please try again with a current nightly snapshot and let us know if it still doesn't work.

 
da457nilo

Joined: 2004-12-16
Posts: 7
Posted: Thu, 2004-12-23 20:19

Ya after i finished with the installer it went automatically to the upgrader.

The database is running My SQL 4.0.16

I believe it did that because during the final stages of the install i activated the core gallery2 box or something of that nature.

Out of frustration I deleted my database and recreated it and then tried to reinstall the gallery. This time not activating the gallery core2. After i finished the 2.0 alpha installer and i clicked the go to my gallery button, it directed me to a page that had the following error message:

http://lifepainting.com/gallery/main.php

---------------------------------------------------------------------------
Error (ERROR_MISSING_OBJECT) :
in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 529 (gallerystatus::error)
in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 274 (gallerychildentityhelper_simple::_getorderinfo)
in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 189 (gallerychildentityhelper_simple::_fetchchilditemids)
in modules/core/classes/GalleryCoreApi.class at line 2076 (gallerychildentityhelper_simple::fetchchilditemids)
in layouts/matrix/layout.inc at line 245 (gallerycoreapi::fetchchilditemids)
in layouts/matrix/layout.inc at line 153 (matrixlayout::_loadalbumtemplate)
in modules/core/ShowItem.inc at line 124 (matrixlayout::loadtemplate)
in modules/core/classes/GalleryView.class at line 244 (showitemview::loadtemplate)
in main.php at line 312 (showitemview::doloadtemplate)
in main.php at line 47
in main.php at line 40

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-23 20:52

both problems indicate the installer did not work correctly, getting all tables created and some initial data populated. did you get any error messages on the "install core module" step? is it possible for me to ssh to your system and try the install? we've had a couple other people report the installer completing with no error messages and yet not working correctly, but we haven't identified how this can happen. PM me access info to your server if this is possible.. thanks

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2004-12-24 07:26

ok, all i did was go to lib/tools/test/index.php and clicked the "Flush Cache" test and your G2 seems ok....
did you ever install G2 before? when you ran this install did you give it a g2data directory that had some files in it still?
basically the parameters for the core module were cached but a parameter was in the db but not in the cache.. this should only happen if you had some files left from a previous install.

bharat, the upgrader removes cache files to avoid problems like this.. should the installer to the same in case you're reusing an old g2data dir?

 
da457nilo

Joined: 2004-12-16
Posts: 7
Posted: Fri, 2004-12-24 11:30

Ya i tried to install it but i had problems with netPBM and imagemagik and uninstalled it. Thanks for you help mindless i can't believe i can actually see thumbnails now!

Now i just gotta get crackin in customizing it!

Any tips and advices to lessen the frustration proccess?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2004-12-25 05:31
mindless wrote:
bharat, the upgrader removes cache files to avoid problems like this.. should the installer to the same in case you're reusing an old g2data dir?

Yep, it should. I just committed some code to take care of this.