Trying to upgrade from 2.2.4 to 2.3

surfgimp

Joined: 2007-11-13
Posts: 8
Posted: Tue, 2009-08-18 13:02


Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.1.2 apache2handler
Webserver = Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database = mysqli 5.0.22-Debian_0ubuntu6.06.10-log, lock.system=flock
Toolkits = ArchiveUpload, Thumbnail, SquareThumb, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux lvps212-241-218-129.vps.webfusion.co.uk 2.6.9-023stab048.6-enterprise #1 SMP Mon Nov 17 19:09:18 MSK 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.11) Gecko/2009060310 Ubuntu/8.10 (intrepid) Firefox/3.0.11
Rows in GalleryAccessMap table = 624
Rows in GalleryAccessSubscriberMap table = 366
Rows in GalleryUser table = 6
Rows in GalleryItem table = 361
Rows in GalleryAlbumItem table = 7
Rows in GalleryCacheMap table = 0

I'm trying to upgrade to 2.3 from 2.2.4 http://www.abracadabratattoo.co.uk/gallery2. I'm using the installer file as it's quicker. It all seems to be going fine until I get to the database section. It keeps complaining that I already have data which I should as it's an upgrade. The specific message is

Quote:
Gallery tables already exist in the database and there is a versions.dat file in the Gallery storage directory. But the version of the installed Gallery database tables does not match the version of the installed data in the Gallery storage directory. Select a clean install to erase all data in the database and in the storage directory and to advance to the next step.

Is there a way around this or if I do a clean install can I copy all of my pics and text and ratings etc into the new install.

Hope somebody can point me in the right direction this has been bugging me for ages. Even considered taking a chance and using gallery3 beta.

Thanks
Steve

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-08-18 13:30

Sounds like you're trying to do an install instead of an upgrade.
FAQ: How to upgrade Gallery2?

For a "clean" install. Extract G2.3 into a different directory than G2.2.4 is currently running in and copy config.php and .htaccess to your G2.3 directory. That will do an upgrade versus an install. Make sure you backup EVERYTHING before starting :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
surfgimp

Joined: 2007-11-13
Posts: 8
Posted: Tue, 2009-08-18 17:46

I realised what I've done wrong. When I upgraded to 2.2.4 ages ago, it didn't go to plan. I managed to get it to work somehow but I fiddled the versions.dat file (wrong core version number). I put that back as it should have been then did the upgrade. My gallery is now back from creek. Thanks for your help.