gallery 1.5.5 to gallery 2.1.2 errors after de-corrupting gallery 1.5.4 problems

ilovekethcup

Joined: 2007-02-10
Posts: 10
Posted: Sat, 2007-02-10 17:11

my gallery 1.5.4 installation got really messed up overnight. I suspect my hosting service did something and messed up some permissions. I saw a post that seemed to discribe what happened and the resolution was "delete the albums and re-upload them"

nice when you've got over 5,000 pictures.

Anyway i figured this would be a good time to upgrade to gallery 2.1. however everything was corrupt out the wazoo and i kept getting 500 errors from the isp.

i completely re-installed/upgraded to gallery 1.5.5 then, i setup and ran everything for gallery 2.1

I checked the orphans/validate albums... everything seemed fixed after re-associating some orphans and deleting some who knows what jpg's.

so... i get the gallery 2.1.2 install done, no errors

i try running the import from gallery 1 option in the site admin area.

(oh yea for some reason a readme and some jpeg directory was case sensitive so i simply renamed it to the upper case to eliminate the only real gallery 2.1 installation error (there were 3, some jpeg directory, and 2 README files) straight out of unzipping the tar file.

i get this message:

____________________________________________________

Error

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_MISSING_VALUE)

* in modules/migrate/classes/Gallery1DataParser.class at line 76 (gallerycoreapi::error)
* in modules/migrate/classes/Gallery1DataParser.class at line 230 (gallery1dataparser::loadfile)
* in modules/migrate/classes/Gallery1DataParser.class at line 113 (gallery1dataparser::loadalbumfields)
* in modules/migrate/ChooseObjects.inc at line 277 (gallery1dataparser::getalbumlist)
* in modules/migrate/ChooseObjects.inc at line 224 (chooseobjectsview::_createg1albumtree)
* in modules/core/SiteAdmin.inc at line 150 (chooseobjectsview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 317 (siteadminview::loadtemplate)
* in main.php at line 386 (siteadminview::doloadtemplate)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.1.2
PHP version 4.3.10 cgi
Webserver Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
Database mysql 5.0.24a-log
Toolkits Gd
Operating system FreeBSD cgi12 4.10-RELEASE-p21 FreeBSD 4.10-RELEASE-p21 #0: Tu i386
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 ImageShackToolbar/3.0.1 Firefox/2.0.0.1

______________________________________________________________________

gallery2 stuff

www.iblowup.net/gallery2/

gallery1 stuff

www.iblowup.net/gallery/

www.iblowup.net/albums/

my path seems right based on it was used in the gallery2 install fine.

Any help?

if it matters i use www.netfirms.com (it's cheap, dunno if good though)

www.netfirms.com/max/

10 bucks a year and you get 2 free domain names.

 
ilovekethcup

Joined: 2007-02-10
Posts: 10
Posted: Sat, 2007-02-10 17:14

oops jic someone needs this.. it's from the gallery internal maint section. i think this is all duplicate.

Last Run Details:

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
Database = mysql 5.0.24a-log, lock.system=flock
Toolkits = Exif, Gd
Acceleration = none, none
Operating system = FreeBSD cgi11 4.10-RELEASE-p21 FreeBSD 4.10-RELEASE-p21 #0: Tu i386
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 ImageShackToolbar/3.0.1 Firefox/2.0.0.1

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-02-10 17:25

the error means that one of the album.dat files in your g1 albums/*/... folders is just empty, when it shouldn't be empty.
it's bad that the g1 validation checks don't catch this.

to quickly find out which album is problematic, please edit:
modules/migrate/classes/Gallery1DataParser.class at line 76

before return array(GalleryCoreApi::error(ERROR_MISSING_VALUE, __FILE__, __LINE__), null);
please add:
print "corrupt g1 album.dat file at: $fileName";

--------------
Enter the Gallery 2 Theme Contest today!

 
ilovekethcup

Joined: 2007-02-10
Posts: 10
Posted: Sat, 2007-02-10 19:10

gosh... this is horrible.

it's like some album.dat's are still corrupt.. some arn't, claims some photos are missing.. some aren't in gallery 1.5.5

any clue on how i can diagnose this one?

Error Detail -
Error (ERROR_BAD_PARAMETER)

* in modules/migrate/ConfirmImport.inc at line 1542 (gallerycoreapi::error)
* in modules/core/SiteAdmin.inc at line 150 (confirmimportview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 317 (siteadminview::loadtemplate)
* in main.php at line 386 (siteadminview::doloadtemplate)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.1.2
PHP version 4.3.10 cgi
Webserver Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_perl/1.26
Database mysql 5.0.24a-log
Toolkits ImageMagick, Gd
Operating system FreeBSD cgi12 4.10-RELEASE-p21 FreeBSD 4.10-RELEASE-p21 #0: Tu i386
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 ImageShackToolbar/3.0.1 Firefox/2.0.0.1

 
ilovekethcup

Joined: 2007-02-10
Posts: 10
Posted: Sat, 2007-02-10 19:13

oh yea.. the 1.5.5 migrate function doesn't claim anything is wrong.