Server Add Module import error

creatif

Joined: 2008-04-03
Posts: 15
Posted: Mon, 2009-09-14 13:46

Installed Gallery3.0 beta 2 and tested the "server add" . When I ran the module it looked like it was importing the images but then when I went to open the folder I had imported I got the following error message:

@todo _create NOT IMPLEMENTED
File: modules/gallery/controllers/rest.php, line: 133
And here's how we got there:
• modules/gallery/controllers/rest.php [81]:
• REST_Controller->_index( )
• REST_Controller->__call( index )
• system/core/Kohana.php [291]:
• ReflectionMethod->invokeArgs( Albums_Controller Object
• (
• [resource_type:protected] => item
• [uri] => URI Object
• (
• )

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

• )
• , Array
• (
• [0] => index
• [1] => Array
• (
• )

• )
• )
• 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 )

___________________________________

If I try access an imported images from the dashboard I get a different error:
It looks like the images are importing but the folder paths are not?

Here's the error:
The page you requested, albums/maron/floral/LM29837_LM29838.jpg, could not be found.
File: system/core/Kohana.php, line: 841
And here's how we got there:
• modules/gallery/controllers/rest.php [86]:
• Kohana::show_404( )
• REST_Controller->__call( maron, Array
• (
• [0] => floral
• [1] => LM29837_LM29838.jpg
• )
• )
• system/core/Kohana.php [291]:
• ReflectionMethod->invokeArgs( Albums_Controller Object
• (
• [resource_type:protected] => item
• [uri] => URI Object
• (
• )

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

• )
• , Array
• (
• [0] => maron
• [1] => Array
• (
• [0] => floral
• [1] => LM29837_LM29838.jpg
• )

• )
• )
• 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 )

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-09-14 15:01

2 comments

First, upgrade to B3

Second, make sure that G2 is somewhat recent. At least 2.2.x and if already there, try upgrading to 2.3
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
andylinux

Joined: 2009-09-17
Posts: 7
Posted: Thu, 2009-09-17 16:05

I'm getting the same error with a new Gallery3 beta3 install. I used the server add module to add 1280 photos that were organized in different directories to create an existing album structure using dates (one folder for each month). Adding the photos was sucessfull but when I click on main toplevel album I get the following error. Any suggestions?

So here's the error:
@todo _create NOT IMPLEMENTED

File: modules/gallery/controllers/rest.php, line: 133
And here's how we got there:

* modules/gallery/controllers/rest.php [81]:

REST_Controller->_index( )

*

REST_Controller->__call( index )

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

ReflectionMethod->invokeArgs( Albums_Controller Object
(
[resource_type:protected] => item
[uri] => URI Object
(
)

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

)
, Array
(
[0] => index
[1] => Array
(
)

)
)

*

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 [86]:

require( system/core/Bootstrap.php )

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-17 16:08

Can both of you post a link to phpinfo?

FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
andylinux

Joined: 2009-09-17
Posts: 7
Posted: Thu, 2009-09-17 16:17

Thanks for the help.
This what you need?
http://barr.homelinux.com/gallery3/phpinfo.php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-17 16:51

andylinux, here's a few things I'd try.

First increase your memory limit to at least 32MB

This link will explain how:
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?

Possibly also bump the max_execution_time up from 30 seconds.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
andylinux

Joined: 2009-09-17
Posts: 7
Posted: Thu, 2009-09-17 18:13

Thanks again for the suggestions. I made the changes you suggested but still had the problem. I then decided to try renaming the album and that fixed the problem. I think I found a bug that Gallery3 doesn't like it if I call use "album" as the internet address for an album. I'll look into submitting a bug report.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-17 18:37

Please do so. https://sourceforge.net/apps/trac/gallery/newticket

You'll need to create an account on SF if you don't have one already. Refer back to this thread.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
creatif

Joined: 2008-04-03
Posts: 15
Posted: Thu, 2009-09-17 21:57

here's a link to the php:
http://www.creatifusa.com/gallery3/phpinfo.php
I have not had a chance to upgrade to latest version. I tried renaming the folder but was not able to do so. will look at memory limit too. Thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-09-18 01:27

First upgrade to the latest version.

Try increasing the memory limit.

Find out which version of Apache is running on your server.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
creatif

Joined: 2008-04-03
Posts: 15
Posted: Fri, 2009-09-18 20:44

With the latest version of Gallery3 beta3 I had the same problem as andy but was able to correct it by changing the folder name.
My host runs UNIX-based operating systems, such as Debian Linux 4.0 on Apache web servers. PHP Memory set to 32MB.
Platform
Type Debian
MySQL Version 5.0.45
Perl 5.8.8
PHP Version 5.2.2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-09-18 21:11

So you also had an album named "album"?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
creatif

Joined: 2008-04-03
Posts: 15
Posted: Sat, 2009-09-19 10:25

Yes, the folder was called albums. I was importing the image data from G2, and I couldn't use the import from G2 feature in G3 because my G2 database had gotten corrupt when my provider migrated me to a new server.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-19 14:28

I could have sworn there was a bug report about this, maybe we just talked about it...

Ticket created:
http://sourceforge.net/apps/trac/gallery/ticket/791
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
creatif

Joined: 2008-04-03
Posts: 15
Posted: Sun, 2009-09-20 16:56

Andy's earlier note said he was filing the report, I was just confirming that his fix worked for me once I upgraded to beta3. I'm going to test the import feature with a 3000+ image database and see how it holds up.

 
andylinux

Joined: 2009-09-17
Posts: 7
Posted: Mon, 2009-09-21 04:48

Sorry I didn't get a chance to create a ticket but it looks like nivekiam did create a ticket,

http://sourceforge.net/apps/trac/gallery/ticket/791

So I won't create one.