Moving G1 to G2, but placing G1 albums ina new subalbum

brianjd

Joined: 2011-12-20
Posts: 5
Posted: Wed, 2011-12-21 05:27

I want to place my old G1 galleries in a subfolder Urloffen in G2, but I want to preserve the old http://www.amason.net/gallery/... urls.

It should not be that hard to simply redirect any url from "/gallery/%1" to "gallery2/v/Urloffen/%1".
Tell me there is away to do this in G2. Otherwise I'm going to have to override all the G2 security and
force Apache to route around it. There are a few images that should be hidden, but not for any security reason, just duplicates or obsolete.

I followed the instructions for migrating. Not that I expected it to work. I've tried numerous workarounds.

I need to move this gallery and it's sub galleries, because:
1) I'm tired of all the deprecated errors in my log files about ereg and company,
2) I'm about to add another collection and it should to be separate from this one.


G2 URL (optional):http://amason.net/gallery2/
G2 version: 2.3.1
G1 URL (optional):http://amason.net/gallery/
G1 version: 1.5.10 (removed was debian squeeze)
G1 character set: UTF8
PHP memory limit: na
--
PHP version (e.g. 5.1.6):5.3.3
PHPInfo Link (see FAQ):secured
Webserver (e.g. Apache 1.3.33): 2.2.16
Database (e.g. MySql 5.0.32): 5.1.49
Activated toolkits (e.g. NetPbm, GD): everything
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0):FF 8.0.1

Thanks,
Brian

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2011-12-21 10:11

I think you might find it easier to go to G3 instead. There is a module to help automate things: http://codex.gallery2.org/Gallery3:Modules:g1_import

I can't provide any specifics as I don't use either one of G1 or G3 so please post any follow up queries to the G3 board.

If you do specifically want G2, then let us know and we can go from there.

Good luck!

--
dakanji.com

 
brianjd

Joined: 2011-12-20
Posts: 5
Posted: Wed, 2011-12-21 17:19

I wouldn't mind G3, but there is no debian package for it yet, as far as I can see.

For now, I have a partial hack by making a gallery directory in my webserver, and putting in a 301 redirect in .htaccess. It's hardly sufficient, could take me hours to build one that works nearly fully.

Sad really, If I could see the g1-g2 mappings that g2 created, I could tweak them and be done with it, but have not yet found them.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2011-12-21 18:48

Gallery is a php application and does not need "packages". You download the files from here, put them in a folder on your web space, point your browser to that folder and that's about it.

Anyway, have you followed the steps outlined here for moving from G1 to G2? All the mapping business should be taken care of if you do.

--
dakanji.com

 
brianjd

Joined: 2011-12-20
Posts: 5
Posted: Wed, 2011-12-21 19:22

Yes, sometimes I forget I'm working with website software and configurations, but the Debian packages create the /etc entries and such that keeps things in a standards compliant set up. as well as a few other housekeeping details.

Well I followed along the instructions as best I could. I always try to read TFM and FAQs and search the forums & google first.

But since I'm moving the existing albums into a new top level album, it's hard to say how it mapped that and it says it mapped that. But it certainly wasn't prepared to handle it, and didn't. Of course there's always the possibility I've mucked it up somehow.

Thanks,
Brian

 
brianjd

Joined: 2011-12-20
Posts: 5
Posted: Mon, 2012-02-20 15:02

I want to thank everyone who tried to help me with this. Short of rewriting the gallery code, I've not found a solution.

My workaround is to add a permanent redirect from the old /gallery/* to the new /gallery2/v/Urloffen/ album root, but of course that doesn't take one to the old link.

Gallery3 isn't an option as it takes too many features away that I use, but most importantly the multiple resizes. If it had a way to zoom and pan that would be fine, but it doesn't.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-02-20 15:18

Have you implemented the steps for migrating from G1 to G2 I linked to?

As said, if you do, everything will be mapped correctly there is no need to rewrite any applications. It has all been set up to work by the developers and more importantly, it does work.

If you decided on your own homebrew solution however, then all bets are off.

--
dakanji.com

 
brianjd

Joined: 2011-12-20
Posts: 5
Posted: Mon, 2012-02-20 15:59

You linked to the gallery3 import, not a gallery2 import. I can't use G3, it breaks the entire design* of my albums.

However the instructions look similar to the G1->G2 instructions, and those would have worked were it not for my desire to move the album into a deeper album. So, that pretty much puts me in the "all bets are off" category. Hence the reason for my original question. In other words what I wanted to do fell outside the standard migrate path. I wanted to move the gallery to a new sub-gallery and still preserve the old links. So when I say I followed the directions, that should read "except for trying to put it in a new sub-album, rather than the original location".

I'm sure the basic import and preserve original path works, but I needed a little bit more [to fix my shortsightedness in my original gallery creation]. I was really just now trying to mark this thread as closed, so no one else would try to help. As I think, I'm really in that "all bets are off" fringe area.
I do appreciate the efforts though, and love the gallery2 software. Just wish there were an actual zooom-and-pan plug-in.

*The images have to have multiple sizes, as the full sized image is a huge 10MP, causing a need to scroll to see it. I use the galleries for transcribing text from very old and obscurely written documents. Being able to zoom in without loss of resolution is critical to the task. So G3 is not an option. I currently have 4 or 5 progressively larger images stored per image, accessible by merely clicking on the image, or selecting from a drop-list. G3 limits the number of sizes to 2 I believe. Most times we don't need the full size image, but do need intermediate ones. Occasionally even the full sized image isn't big enough, and I need 20MP or actual film image.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-02-20 16:16

Take another look: http://gallery.menalto.com/node/104616#comment-385434

You should be able to retrieve the situation by first going back to the G1 installation and getting that back to a working condition before migrating.

You can then sort out the moving the folder with a rewrite after.

Looks doable to me as long as the G1 start point is there.

--
dakanji.com