I followed the directions in another thread -- copy the g2data folder and the database to my new server. I then proceeded to run through the installer. I get to the 7th step (install Gallery Core) and it fails.
Here is the error output:
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1150 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 220 (mysqldatabasestorage::search)
* in modules/core/classes/Gallery.class at line 206 (gallerystorage::search)
* in modules/core/CoreModuleExtras.inc at line 457 (gallery::search)
* in modules/core/module.inc at line 515 (coremoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
* in install/steps/InstallCoreModuleStep.class at line 85 (coremodule::installorupgrade)
* in install/index.php at line 168 (installcoremodulestep::loadtemplatedata)
I am using the latest CVS (4-4-05)
Apache version 1.3.33 (Unix)
MySQL version 4.0.23-standard
PHP version 4.3.10
Operating system Linux
Kernel version 2.4.21-27.0.2.ELsmp
Machine Type i686
Webbrowser: Firefox 1.0.2
Posts: 11
I have also tried re"installing" the gallery package -- I was using 4-02-05, this morning I deleted it and moved to 4-04-05 and nothing changed.
Posts: 32509
do you refer to this topic?
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27960#128027
Posts: 11
Yes. I believe I have followed those directions properly.
Posts: 8601
hm, i don't think you can migrate + upgrade in one step.
move over your db+g2data+same codebase you were running before. you should be able to run the installer now. then you can update the codebase and access the G2 to run the upgrader to bring everything up to date.
Posts: 11
If I upgrade the gallery installation on my old server to the current codebase...does it change both the G2Data folder and the database, or just the database?
Posts: 32509
mindless, i thought about this case too when i wrote the directions, but i don't know any reason why you should not be able to change the host and upgrade in a single install run.
Posts: 8601
phredphish, the upgrader will touch g2data too.. at the very least it updates versions.dat and clears some cache files (usually that's all it will do in g2data).
valiant, previously that may have been mostly true.. but there are 3 problems:
1) the main one is a new problem: the upgrader passes in a $statusMonitor for a progress indicator during the upgrade.. right now the installer doesn't pass any value in for this param.. but CoreModuleExtras is assuming it will be set for upgrading. so if the installer really ends up invoking an upgrade this will cause an error.
2) installer doesn't clear cache files.. may or may not be a problem.
3) installer doesn't upgrade modules.. i suppose you can do this after running installer in Site Admin, or run upgrader manually.
so, technically we could probably get it all working, but i think recommending migrate-then-upgrade is safer.
Posts: 11
I upgraded my old site to the latest cvs, reexported the database and copied over the versions.dat. Now I get this error:
Error (ERROR_BAD_PLUGIN) : Unknown module version 0.9.8
* in modules/core/CoreModuleExtras.inc at line 623 (gallerystatus::error)
* in modules/core/module.inc at line 515 (coremoduleextras::upgrade)
* in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
* in install/steps/InstallCoreModuleStep.class at line 85 (coremodule::installorupgrade)
* in install/index.php at line 168 (installcoremodulestep::loadtemplatedata)
Posts: 8601
i suggest you copy over your config.php and make the appropriate updates.. looks like the core module upgrade() function currently won't work when nothing needs to be done (ie it wants to do a new install or an upgrade).
Posts: 11
Alright. One LAST migration issue: It seems only some of the thumbnails have decided to work. The ones that work seem to be those that weren't accessed BEFORE I disabled NetPBM. I have both ImageMagik and GD installed, configured and working. All of the thumbnails that weren't accessed work properly. How can I 'rebuild' those thumbnails that have been replaced with the broken image? Any quick way to force deletion/rebuild on ALL thumbnails/resized images?
-Andrew
Posts: 8601
lib/tools/test/index.php FlushCache
or Site Admin / Maintenance in a recent cvs/nightly build.