DIfficulties importing gallery1 albums into gallery2

kmccann

Joined: 2005-04-14
Posts: 6
Posted: Fri, 2005-05-06 18:27

Gallery2 version: latest from jpmullan.com

Hello,

I am trying to import albums from Gallery1 to Gallery2. The import script sees the directory for Gallery1 and allows me to choose which album to import (there are baout 10 of them, all with a few dozen pictures). To test, I try just one album (album02, since I already did album01 by hand). I am then shown the details of the album and I am given an Import submit button, which I click. I then get the following error messages:

---------------------------
Error (ERROR_BAD_PARAMETER) : Missing or not readable file: gallery1/album02/photos.dat

* in modules/migrate/classes/Gallery1DataParser.class at line 70 (gallerystatus::error)
* in modules/migrate/classes/Gallery1DataParser.class at line 269 (gallery1dataparser::loadfile)
* in modules/migrate/ConfirmImport.inc at line 752 (gallery1dataparser::getphotos)
* in main.php at line 175 (confirmimportcontroller::handlerequest)
* in main.php at line 79
* in modules/core/classes/GalleryEmbed.class at line 139
* in /home/httpd/html/km4dev/modules/gallery2/xaruser/main.php at line 64 (galleryembed::handlerequest)
* in /home/httpd/html/km4dev/includes/xarMod.php at line 876
* in /home/httpd/html/km4dev/index.php at line 95
* in /home/httpd/html/km4dev/index.php at line 163

---------------------------------------------

The first and most prominent error points to a missing file: gallery1/album02/photos.dat

Indeed, it does not exist. In fact, there are no photos.dat files in any the albumNN directories of gallery1 (there are album.dat files, though). So, I do a locate command to find any photos.dat files. The only ones found on the system are in the gallery2 migration testing directories:

gallery2/modules/migrate/test/data/albums/albumNN/photos.dat

(where albumNN is album01, album02 and so on)

So ..... what might be happening?

Thanks in advance,
Kevin

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-05-06 19:13
 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sat, 2005-05-07 05:25

Your version of gallery1 is probably very old. I haven't really done any testing with old versions. :(

Possible solutions:
1) Upgrade gallery1 to the latest release and try again
2) Wait for me to get a bunch of free time again to fix the bug (because we should support ancient versions of gallery1...)

 
midnite_lily

Joined: 2006-02-23
Posts: 1
Posted: Thu, 2006-02-23 15:12

i just tried to import my gallery1 from midnitelily.com/gallery/ on gallery2 (midnitelily.com/photogallery/ ) but it just keeps telling me that my path is invalid. could the problem be that my path http://www.midnitelily.com/albums/ is not within the gallery folder?

for some odd reason i don't remember why my albums isn't in the gallery folder.
if this is the problem, what can i do?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2006-02-23 15:49

you're giving migrate module a filesystem path, and not that url, right?