[WINDOWS] Upgrading from G2 latest to G3 latest

sridharb

Joined: 2006-07-17
Posts: 26
Posted: Tue, 2011-07-19 03:47

Hi,

I am trying to upgrade to G3 (git version) from G2 (svn version).

I am having problems in the G2 import.

Currently, I am getting the following:

2011-07-19 09:01:23 +05:30 --- error: Kohana_PHP_Exception [ 1 ]: Class 'tag' not found
C:\gallery3\modules\g2_import\helpers\g2_import.php [ 1009 ]
#0 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL)
#1 C:\gallery3\system\core\Event.php(208): call_user_func_array(Array, Array)
#2 C:\gallery3\system\core\Kohana.php(549): Event_Core::run('system.shutdown')
#3 [internal function]: Kohana_Core::shutdown()
#4 {main}

This is the error that I am getting at the moment. I have also encountered the ERROR_MISSING_OBJECT as in "error: Gallery 2 call failed with: Error (ERROR_MISSING_OBJECT)<b>in</b> modules\core\classes\helpers\GalleryItemAttributesHelper_simple.class <b>at line</b> 124 (GalleryCoreApi::error)" as well.

I have tried running the missingObjectFix.php script referred to in these forums and it didn't report any issues.

These imports have been with new database users/fresh installs.

If I add the local.php as suggested in some topics, I get an error saying that IN_PRODUCTION is already defined and shuts down before I am able to login itself.

Any pointers?

Thanks,
Sridhar

 
sridharb

Joined: 2006-07-17
Posts: 26
Posted: Mon, 2011-07-25 05:11

Just wanted to update in case people are having the same issues:

The 'tag' problem above is resolved by adding the Tag module. Even though the instructions say that the only modules required for a G2->G3 migration is comment and the G2 Import module, it seems that the Tag module is also required.

If one encounters the IN_PRODUCTION already defined error, instead of using a local.php as suggested in places, directly edit index.php in the root folder and define those variables there.

After this and some windows specific updates (suggested elsewhere in the forums) for imagemagick, sys_getloadavg etc., I was able to import successfully.

The slideshow problem still exists (i.e. in images greater than say, 10Mp), it doesn't resize to the screen and shows full-size instead.

Commenting out the full size code as suggested in the slideshow module is not a good option as all it does is to display one of the resizes. What is needed is the slideshow to dynamically resize to the screen being displayed. This was happening in G2 and still not in G3.

Regards,
Sridhar