Migration 1.5 -> 2.x Documentation Omission

davecue

Joined: 2004-05-11
Posts: 2
Posted: Tue, 2005-10-25 01:30

I started the process of migrating from 1.5 to 2.x. Following the steps in the Gallery Codex under "Gallery2:migration" (http://codex.gallery2.org/index.php/Gallery2:migration), I got hung up on Step 8 in the first section:

"8. Visit every album in your g1 at least once. (optional)"

Attempting to do this results in failure with every album:

"Not Found
The requested URL /gallery/view_album.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request."

I double-checked, and all the config.php lines that were supposed to be updated were updated. Going through the config.php file line by line, I could not find any other references to "/gallery/" beyond what the migration documentation had already listed.

On a hunch, I opened the .htaccess file and found four offending lines:

RewriteRule ^([^\.\?/]+)/([0-9]+)$ /gallery/view_photo.php?set_albumName=$1&index=$2 [QSA]
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /gallery/view_photo.php?set_albumName=$1&id=$2 [QSA]
RewriteRule ^([^\.\?/]+)/$ /gallery/$1 [R]
RewriteRule ^([^\.\?/]+)$ /gallery/view_album.php?set_albumName=$1 [QSA]

I am not sure how anyone else has been able to migrate without editing the '/gallery/' in these lines to '/g1/'

If anyone in the documentation team is reading, it would be great to clarify this.

From a process standpoint, it would also be helpful not to jump to further in the migration document to see which lines need editing, and just include that information exactly where it is pertinent.

Thanks.