Importing albums from Gallery v1 to Gallery 2.2

Ponch

Joined: 2003-04-30
Posts: 24
Posted: Mon, 2007-03-26 23:25

I finally have Gallery 2.2 up and running on my XP system and can't for the life of me figure out how to import the albums from v1 to 2.2. Any help would be appreciated muchly!

More details:

Error Detail -

Error (ERROR_BAD_PARAMETER) : Missing or not readable file: C:\Documents and Settings\webby\Desktop\Albums\.users\userdb.dat

in modules\migrate\classes\Gallery1DataParser.class at line 66 (GalleryCoreApi::error)

in modules\migrate\classes\Gallery1DataParser.class at line 289 (Gallery1DataParser::loadFile)

in modules\migrate\ChooseObjects.inc at line 173 (Gallery1DataParser::getUserUids)

in modules\core\SiteAdmin.inc at line 201 (ChooseObjectsView::loadTemplate)

in modules\core\classes\GalleryView.class at line 300 (SiteAdminView::loadTemplate)

in main.php at line 441 (GalleryView::doLoadTemplate)

in main.php at line 94

in main.php at line 83

in main.php at line 3

System Information

Gallery version 2.2

PHP version 5.2.1 apache2handler

Webserver Apache/2.2.4 (Win32) PHP/5.2.1

Database mysqlt 5.0.27-community-nt

Toolkits ImageMagick

Operating system Windows NT Webnet 5.1 build 2600

Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

 
Ponch

Joined: 2003-04-30
Posts: 24
Posted: Tue, 2007-03-27 14:20

Ok, for anyone having this same problem I'm working through it. I downloaded the plug in to import the Gallery V1 users and data to my new Gallery 2.2 install. I attempted to import the date for a copy but it failed. I then pointed the migration tool to the original folder on a different sever (The server my old gallery is on) and it strted to import the users but not the albums. I'm making a new copy of the albums folder to place on my new computer running Gallery 2.2 in the hopes that it wil import in to 2.2.

I'll keep you posted.

 
jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Tue, 2007-04-10 18:36

Are you migrating from a server running 1.X to a new server running 2.X? If so, how are you doing the import? Does the migration tool ask for a different server name? I am trying to map out how I create a new server running 2.X and then move my pictures from the 1.X server to the 2.X server.

 
Ponch

Joined: 2003-04-30
Posts: 24
Posted: Tue, 2007-04-10 21:53

I was running 1.X on a Linux back end and upgraded to 2.X running on Windows XP. What I had to do is I did a fresh install of 2.X on Windows XP and then simply took the back up of the Albums folder and imported the pics, users and rights. (all automatic once started). In order to import after you install 2.X, you have to add an extra module that is not there by default. Once you install that module, it's really easy. Let me kow if you need more details or import instructions.

 
jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Mon, 2007-04-23 01:12

What special module did you load for this import? I am moving my 1.X albums folder now and then would like to import using the module you mention. If this works, it will be much easier than upgrading my org site to 2.2 then migrating. thanks.

 
Ponch

Joined: 2003-04-30
Posts: 24
Posted: Mon, 2007-04-23 01:41

When you log in, go to "Site Admin" then in the left hand list choose "Plugins". On the plugins page, choose the "Get more Plugins" tab up top. Go down to the sections that says "Import" and download "Migration". Once done, you will notice it in the left hand column where you choose the original plugins option. Let me know if you need screen shots.

 
jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Mon, 2007-04-23 02:50

Thanks. I downloaded migration and am ready to try it once I albums get over my new system. I see this on the migration tab: "Copy all or part of an existing Gallery 1 installation into your Gallery 2. It won't modify your Gallery 1 data in any way.".

Does this leave all of my g1 pictures in the g1 albums and won't move them to G2? Is there a difference between migration and upgrade?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-04-23 09:52

> Does this leave all of my g1 pictures in the g1 albums and won't move them to G2?

it copies the files.

> Is there a difference between migration and upgrade?

there is no upgrade from g1 to g2. there's only migration. you migrate from g1 to g2 by first installing g2 and then importing your g1 data into g2.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Ponch

Joined: 2003-04-30
Posts: 24
Posted: Mon, 2007-04-23 10:32

Since I was moving to a new computer, this wasn't an issue with me, but what I did was use a back up of the Albums folder that I copied over and imported from that. This left my G1 gallery intact in case I ran in to issues. Since I migrated from a back up, there was no fear about messing up my G1 install and pictures. Once I was confident that my G2 gallery was up and running without issues, I simply un pluged my old computer.

 
jblosser514

Joined: 2007-04-10
Posts: 10
Posted: Tue, 2007-04-24 02:17

That worked great. I wonder why there are so many posts about moving to a new server and upgrading at the same time and they say they need to upgrade the current host to 2.2 then backup the config and restore it on the new hosts? This is much easier. Get your 1st host up to 1.5.X. Get your 2nd host up to 2.2. Backup the albums directory on the 1st host and copy to the 2nd host. Then use the migration module to pull the albums directory into 2.2. thanks to everyone who helped.

 
Ponch

Joined: 2003-04-30
Posts: 24
Posted: Tue, 2007-04-24 12:19

I had some trouble finding the information I needed when I made the move ... but it was my own fault for not reading enough of this forum before I started. This forum is great and all the information I provided to you was given to me in here. I'm happy I could help you, but the praise goes to the others who gave me the information :-D