Gallery3 Import of Gallery2

luvablemarmot

Joined: 2007-09-18
Posts: 6
Posted: Sat, 2009-06-20 04:52

I get the following errors when attempting to import a gallery 2.3 site to gallery 3.0 beta cloned from GIT.

This is a centos 5.3 server running apache 2.2.11, php 5.2.9, mysql 5.1.30 all installed from source. the centos server is in a openvz container. Gallery 2.3 running on this server has no issues. Just testing out gallery 3 beta. Looks pretty :)

[root@web01 logs]# less 2009-06-20.log.php
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-06-20 09:36:02 -03:00 --- error: Uncaught Kohana_404_Exception: The page you requested, admin/g2_import/install, could not be found. in file system/core/Kohana.php on line 841
2009-06-20 09:36:18 -03:00 --- error: Uncaught Kohana_404_Exception: The page you requested, admin/g2_import/install, could not be found. in file system/core/Kohana.php on line 841
2009-06-20 09:37:21 -03:00 --- error: Uncaught Kohana_404_Exception: The page you requested, admin/g2_import/install, could not be found. in file system/core/Kohana.php on line 841
2009-06-20 09:37:39 -03:00 --- error: Uncaught Kohana_404_Exception: The page you requested, admin/g2_import/install, could not be found. in file system/core/Kohana.php on line 841

Screen shot also attached.

AttachmentSize
gallery3error.png140.74 KB
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2009-06-20 18:43

Can you try with the latest code? Not sure when you cloned what you have from git, but do a "git pull" and follow the upgrading instructions (below). What were you doing when you saw this error?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
elvandar

Joined: 2008-12-03
Posts: 4
Posted: Sat, 2009-06-20 19:17

Dear Bharat,

I got the same error, I am using NGINX (latest stable). I just did a git clone from the public-master and transfered that to the webhost. The moment when I Try to enter the filesystem path to the embed.php file, I get this message as printed by the other user above.

Can you please tell me what I should be doing to get you going better?

Thanks,
REmko

 
elvandar

Joined: 2008-12-03
Posts: 4
Posted: Sat, 2009-06-20 20:26
elvandar wrote:
Dear Bharat,

I got the same error, I am using NGINX (latest stable). I just did a git clone from the public-master and transfered that to the webhost. The moment when I Try to enter the filesystem path to the embed.php file, I get this message as printed by the other user above.

Can you please tell me what I should be doing to get you going better?

Thanks,
REmko

OK at first I thought this was a problem on the embed.php side, because using my multisite gallery didn't work at first. Then I selected the "gallery placeholder" or multi-site master, which didnt work out. I just tried the multisite version again and now it started. I didn't try this after the git update jumbo, so this might have fixed that. I am currently importing 7178 pictures and some movies. Thnx!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2009-06-20 23:14

Glad to hear the latest code is working for you!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
luvablemarmot

Joined: 2007-09-18
Posts: 6
Posted: Sat, 2009-06-20 23:16

Hey Bharat,

I followed your instructions, here is what I did:

cd to $GALLERY3PATH

[root@web01 gallery3]# git pull
remote: Counting objects: 26, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 16 (delta 13), reused 0 (delta 0)
Unpacking objects: 100% (16/16), done.
From git://github.com/gallery/gallery3
b72d0db..ef7f1d0 master -> origin/master
Updating b72d0db..ef7f1d0
Fast forward
installer/install.sql | 6 +-
modules/gallery/css/upgrader.css | 117 +++++++++++++++++++++++++
modules/gallery/helpers/gallery_installer.php | 65 +++++++-------
modules/gallery/views/upgrader.html.php | 108 ++---------------------
4 files changed, 162 insertions(+), 134 deletions(-)
create mode 100644 modules/gallery/css/upgrader.css

Then I went to http://$DOMAIN/gallery3/index.php/upgrader and ran that as admin
Got a successful message that it was completed

Then I went to admin -> Modules -> Gallery2 Import

I put the following in the path for embed.php /var/www/html/$DOMAIN/httpdocs/gallery2/embed.php

Got the same error which I will post as a screenshot and attach.

Thank you for your quick follow up.

Joe

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2009-06-20 23:38

Hrm. I can't fathom how the Admin > Settings > Gallery 2 Import page could be triggering a call to admin/g2_import/install. Very weird. How PHP literate are you? After the <save> button is clicked, we run the save() function in modules/g2_import/controllers/admin_g2_import.php which makes calls into modules/g2_import/helpers/g2_import.php. When its done, it should redirect you to admin/g2_import, not admin/g2_import/install.. so somewhere along the line that's going wrong.

---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
luvablemarmot

Joined: 2007-09-18
Posts: 6
Posted: Sun, 2009-06-21 01:39

bharat

My php skills are lacking to say the best, but if there is any troubleshooting I can do I am happy to help.

I'm not sure what is happening either.

Thanks again for your help.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-21 20:52

The way to start would be to put lines like this:

Kohana::log("alert", "At: " . __FILE__ . ": " . __LINE__);

At different places in the code (I'd start in modules/g2_import/controllers/admin_g2_import.php) and then look in your log files to see where it's getting to in the code. Then you could try logging various variables and try to figure out where it's going wrong.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
luvablemarmot

Joined: 2007-09-18
Posts: 6
Posted: Mon, 2009-06-22 23:15

side note before i do that, anyway to manually port over my gallery 2 install?

I have full root access to the file system.

thanks

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2009-06-24 00:14

You can do it manually, but you're going to have to hand craft a lot of SQL statements and do a lot of cut/paste and you may not get it exactly right. That's why we wrote a module to do it for you :-)
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
luvablemarmot

Joined: 2007-09-18
Posts: 6
Posted: Wed, 2009-06-24 00:20

understood, well i've been doing git pulls everyday, and upgrading via your doc. I read over the active tickets and saw there is more debug information coming in the gallery2 import module. I'll keep my eyes peeled so i can provide more information.