Upgrading from Gallery2 to Gallery3 - getting Gallery2 errors

quasipickle

Joined: 2008-11-17
Posts: 7
Posted: Mon, 2014-06-09 19:45

Hi all,

I've been running G2 on a 7 year old server (so old it G3 doesn't support it). I'm now building a new server (with a new domain) and want to migrate my G2 installation to G3.

I've copied over all the G2 files, and copied the database to the new server. I've installed G3 beside G2, and G3 is running just fine. G2 however, is throwing a bunch of Strict Standards errors - which I think can safely be ignored. When I try to run the G2 Import module in G3, I enter the path to the G2 embed.php file, but I then get the unhelpful: "Your Gallery 2 install isn't working properly. Please verify it!" message.

Looking at g3/var/logs, I get this being entered:

Quote:
2014-06-09 13:41:54 -06:00 --- error: Gallery 2 call failed with: Error (ERROR_BAD_PATH) : Invalid path: modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class <b>in</b> modules/core/classes/helpers/GalleryFactoryHelper_simple.class <b>at line</b> 171 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 161 (GalleryFactoryHelper_simple::newInstance)
<b>in</b> init.inc <b>at line</b> 116 (GalleryCoreApi::newFactoryInstance)
<b>in</b> modules/core/classes/GalleryEmbed.class <b>at line</b> 99
<b>in</b> /var/www/html/gallery3/modules/g2_import/helpers/g2_import.php <b>at line</b> 171 (GalleryEmbed::init)
<b>in</b> /var/www/html/gallery3/modules/g2_import/helpers/g2_import.php <b>at line</b> 55 (g2_import_Core::init_embed)
<b>in</b> /var/www/html/gallery3/modules/g2_import/controllers/admin_g2_import.php <b>at line</b> 86 (g2_import_Core::is_valid_embed_path)
<b>in</b> ??? <b>at line</b> 0 (Admin_g2_import_Controller::save)
<b>in</b> /var/www/html/gallery3/modules/gallery/controllers/admin.php <b>at line</b> 62
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> /var/www/html/gallery3/system/core/Kohana.php <b>at line</b> 331 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana_Core::instance)
<b>in</b> /var/www/html/gallery3/system/core/Event.php <b>at line</b> 208
<b>in</b> /var/www/html/gallery3/application/Bootstrap.php <b>at line</b> 67 (Event_Core::run)
<b>in</b> /var/www/html/gallery3/index.php <b>at line</b> 116

Any idea what that actually means? As far as I can tell there is no ModRewriteURLGenerator.class file, so I can't even poke through source code to see if there is some antiquated code that runs fine on a 7 year old server, but not an up-to-date server.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-06-10 22:55

The G2 import module uses the G2 API to do the import. So a operational G2 is needed.
Perhaps the G2 had some rewrite rules that don't work?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
quasipickle

Joined: 2008-11-17
Posts: 7
Posted: Thu, 2014-06-12 20:35

I started over and properly followed the instructions for migrating between servers - and that seems to have worked for the most part. Now I'm getting errors in G3 when trying to import - I've posted a new thread here: http://galleryproject.org/node/113086