[SOLVED] Import from G2 impossible -> admin/g2_import/install, could not be found

bvossey

Joined: 2007-08-19
Posts: 17
Posted: Fri, 2009-07-10 07:54

In order to test G3 with my gallery2 (near 27 000 elements), I try to import my G2 gallery but impossible.
Import is possible for multi-site gallery ?
(I took the last zip (pre bêta 2) (9th July version))

When i put the filepath of my multi-site gallery2 : I have the following page :

Dang... Something went wrong!
We tried really hard, but it's broken.
Hey wait, you're an admin! We can tell you stuff.
Ok.. tell me stuff!
Help!

If this stuff doesn't make any sense to you, ask for help in the Gallery forums!
So here's the error:
The page you requested, admin/g2_import/install, could not be found.

File: system/core/Kohana.php, line: 841
And here's how we got there:

* modules/gallery/controllers/admin.php [47]:

Kohana::show_404( )

*

Admin_Controller->__call( g2_import, Array
(
[0] => install
)
)

* system/core/Kohana.php [291]:

ReflectionMethod->invokeArgs( Admin_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)

)
, Array
(
[0] => g2_import
[1] => Array
(
[0] => install
)

)
)

*

Kohana::instance( )

* system/core/Event.php [209]:

call_user_func( Array
(
[0] => Kohana
[1] => instance
)
)

* system/core/Bootstrap.php [55]:

Event::run( system.execute )

* index.php [85]:

require( system/core/Bootstrap.php )

I checked in the var/logs and I have the same message :

2009-07-10 00:32:48 +02: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

Thanks for your help.

 
bvossey

Joined: 2007-08-19
Posts: 17
Posted: Fri, 2009-07-10 08:23

Hey,

I try to put some log (Kohana::log("alert", "At: " . __FILE__ . ": " . __LINE__);)

at different places in modules/g2_import/controllers/admin_g2_import.php in the save function and It seems it come from :
near line 56 if (g2_import::is_valid_embed_path($embed_path)) {

So when i put some log in modules/g2_import/helpers/g2_import.php, the return of file_exists($mod_path)) is true so I think it's in g2_import::init_embed($embed_path)

And I think it's because I try to put my multisite base installation and not a web gallery (sorry for the mistake).

My gallery (which based on multi-site) had an embed.php modified so the G2 Import module didn't find the path.
Maybe add a better message like : "Your embed.php exists but did you modify it ?" could be helpful for some people.
And import from this G2 goes on.

The error that I reported is only if I put the multibase master path.
But a message could be better than an error.

If I can help, no problem to put some logs or test or anything.

Regards,

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-07-13 03:55

Ah! this is an open issue that we're working on. Thanks for the extra info!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
bvossey

Joined: 2007-08-19
Posts: 17
Posted: Mon, 2010-03-15 22:11

Still here in the last G3 RC1 release

 
chadparry
chadparry's picture

Joined: 2008-05-30
Posts: 38
Posted: Fri, 2010-07-09 19:44

I get this error message from Gallery3 RC2. Is there a workaround?

 
chadparry
chadparry's picture

Joined: 2008-05-30
Posts: 38
Posted: Sat, 2010-07-10 03:21

There's an easy workaround. I just needed to specify the path to the site-specific embed.php file, not the path to the gallery2 installation.