./classes/albums.dat missing, G1 -> G2 Migration fails when importing albums

flupps

Joined: 2006-11-21
Posts: 1
Posted: Tue, 2006-11-21 19:12

Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.4.2 apache
Webserver = Apache/1.3.34 (Unix) PHP/4.4.2
Database = mysqlt 5.1.9-beta-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM
Acceleration = none, none
Operating system = FreeBSD

Trying to import from gallery 1.5.5-pl1

When using the Gallery1 import from the Site Admin in Gallery2 I enter the directory that the Gallery1 installation uses and then I get this error message:

Error (ERROR_BAD_PARAMETER) : Missing or not readable file: /www/gallery-bak/gallery.bak/classes/album.dat

* in modules/migrate/classes/Gallery1DataParser.class at line 70 (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
* in /usr/www/Gallery/flupps/main.php at line 3

My first guess was some kind of permissions problem, so I went to check if the file existed, and it didn't.
Next I ran the validate_albums.php tool:

No Missing Files
There are no missing files in this Gallery.
No Invalid Albums Found
There are no invalid albums present in this Gallery.

Then the find_orphans.php tool:

No Orphans Found
There are no orphaned elements in this Gallery.

I then tried to just touch an empty album.dat file, just to see if it actually needed it for something, then tried my import again:

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
* in /usr/www/Gallery/flupps/main.php at line 3

The Gallery1 album works just fine by itself and I have no problem with any actions, but can't get it imported to my G2 site.

Any help appreciated.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-21 22:02

you need to enter the path to the g1 albums/ folder, not to the gallery/ folder.