Only white empty page on Gallery2 import

belinea

Joined: 2003-12-29
Posts: 49
Posted: Sun, 2009-05-31 11:01

I want to import my Gallery2 items.

I go to "Settings / Gallery 2 Import". Now I have entered the path of my Gallery 2 embed.php file. When I click on save, only a white empty page appears.

The link in the URL-Bar is: /gallery3/index.php/admin/g2_import/save

The directory /gallery3/var/log is empty

When I go enty the URL-Bar and reload the page there is an error in /var/log/

2009-05-31 13:13:39 +02:00 --- error: Uncaught Exception: @todo FORBIDDEN in file modules/gallery/helpers/access.php on line 176

 
belinea

Joined: 2003-12-29
Posts: 49
Posted: Mon, 2009-06-01 10:05

Here is a Apache2 Log:

xxx.xxx.xx.xxx - - [01/Jun/2009:12:01:03 +0200] "POST /gallery3/index.php/admin/g2_import/save HTTP/1.1" 500 - "http://www.xxxxxx.xxx/gallery3/index.php/admin/g2_import" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-de) AppleWebKit/528.18.1 (KHTML, like Gecko) Version/4.0 Safari/528.17"

The server respeonds with an 500 error on running /index.php/admin/g2_import

 
belinea

Joined: 2003-12-29
Posts: 49
Posted: Mon, 2009-06-01 16:41

I have completly reinstalled my server with Debian 5 Lenny.

Now the import of my Gallery2 data into Gallery3 is working perfect.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-02 07:39

Weird error, but I'm glad you resolved it. We've made considerable fixes in the upcoming beta 1 release to improve the G2 -> G3 import, so stay tuned for that too.
---
Gallery 3 problems? Check gallery3/var/logs before you post!
Gallery 3 latest code: http://github.com/gallery/gallery3/zipball/master
Gallery 3 from git: http://codex.gallery2.org/Gallery:Using_Git

 
santm
santm's picture

Joined: 2005-08-08
Posts: 40
Posted: Tue, 2009-06-02 08:26

I have the same problem with one installation of gallery2 where as it is working fine for another gallery2 install on the same server. I was able to import the gallery install 2 weeks back.

[img]http://inusys.com/santm-import.JPG[/img]
[img]http://inusys.com/aarush-import.JPG[/img]

 
belinea

Joined: 2003-12-29
Posts: 49
Posted: Sat, 2009-06-06 09:10

I habe upgrade to Beta 1.

Gallery2 Import funtion is broken again. When I enter the path of my Gallery2 directory (Filesystem path to your Gallery 2 embed.php file). only a white empty page appears.

No error message nothing. Only a white empty page.

 
belinea

Joined: 2003-12-29
Posts: 49
Posted: Sat, 2009-06-06 09:12

I have figured out the isue:

You must disable EACCELERATOR.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2009-06-06 19:13

:-( Thanks for letting us know that eaccelerator has issues with this code
---
Gallery 3 problems? Check gallery3/var/logs before you post!
Gallery 3 latest code: http://github.com/gallery/gallery3/zipball/master
Gallery 3 from git: http://codex.gallery2.org/Gallery:Using_Git

 
santm
santm's picture

Joined: 2005-08-08
Posts: 40
Posted: Mon, 2009-06-08 06:37

http://inusys.com/santm.php

Checked my shared hosting php setting and could not locate any thing related to eaccelerator ? What else need to be checked ? All ready tried with "zend_optimizer.enable_loader = 0" but no luck.

-thanks

 
marc_p

Joined: 2006-03-27
Posts: 31
Posted: Mon, 2009-06-08 13:37

I have the exact same problem (see my post in the "Troubleshooting / Problems" section). [b]But [/i]I don't have eAccelerator installed. The apache log gives:

127.0.0.1 - - [07/Jun/2009:14:33:04 +0200] "POST /index.php/admin/g2_import/save HTTP/1.0" 200 - "http://YYYYYYYYYYY/index.php/admin/g2_import" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10"

It confirms that the server replies with an empty page...

(and I couldn't find what "error 417" in the flash uploader means...)

 
windracer

Joined: 2007-03-05
Posts: 113
Posted: Mon, 2009-06-08 16:37

I'm having the same issue ... just a blank page after putting in the path to my embed.php and clicking Save. Same info in the apache log:

xx.xx.xx.xx - - [08/Jun/2009:12:32:38 -0400] "POST /gallery3/index.php/admin/g2_import/save HTTP/1.1" 500 - "http://www.xxxxxxx.net/gallery3/index.php/admin/g2_import" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)"

Platform information:
Operating System: Linux
Apache: Apache/2.2.11 (Ubuntu)
PHP: 5.2.6-3ubuntu4.1
MySQL: 5.0.75-0ubuntu10.2

(side note: is there not a place where we can easily copy the platform information like the old maintenance page in G2? I can't click-drag-select the text from the pagelet on the dashboard).

 
marc_p

Joined: 2006-03-27
Posts: 31
Posted: Mon, 2009-06-08 16:45

You are getting a 500 error, which means 'internal server error'. You may be able to get some more information from the error log, usually in /var/log/apache2/error.log (if you didn't change this location or if it hasn't change since last time I used an apache server on ubuntu)

 
windracer

Joined: 2007-03-05
Posts: 113
Posted: Mon, 2009-06-08 16:50

Strangely enough though, there's no corresponding line in the error.log for the 500.

I saw in your other thread that you're using multi-site as well. Maybe that's the key here?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2009-06-09 03:54

A blank page generally means that Apache crashed in a way that PHP couldn't recover from (or could recover enough to put up an error page). Hard to say what's causing that, but so far the culprits I've seen for this have been PHP bytecode accelerators (eAccelerator, APC, Zend Optimizer, etc). Can anybody reproduce that *without* one of those enabled? Can you check your /var/log/syslog to see if you're getting segfaults in Apache?
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
vonmax

Joined: 2007-04-16
Posts: 19
Posted: Tue, 2009-06-09 13:47

I have the same problem.
non accelerator (i think)
the log file say "2009-06-09 15:41:47 +02:00 --- error: Uncaught Exception: @todo FORBIDDEN in file modules/gallery/helpers/access.php on line 176"
and the stuff is

So here's the error:
@todo FORBIDDEN

File: modules/gallery/helpers/access.php, line: 176
And here's how we got there:

* modules/gallery/helpers/access.php [360]:

access_Core::forbidden( )

* modules/g2_import/controllers/admin_g2_import.php [42]:

access_Core::verify_csrf( )

*

Admin_g2_import_Controller->save( )

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

call_user_func_array( Array
(
[0] => Admin_g2_import_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)

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

)

[1] => save
)
)

*

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

* 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] =>
[ip_address] =>
)

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

)
)

*

Kohana::instance( )

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

call_user_func_array( Array
(
[0] => Kohana
[1] => instance
)
, Array
(
[0] =>
)
)

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

Event::run( system.execute )

* index.php [72]:

require( system/core/Bootstrap.php )

 
santm
santm's picture

Joined: 2005-08-08
Posts: 40
Posted: Wed, 2009-06-10 08:48

Currently using latest version (commit d297f1fdd24c3bc509ee5fd1bb5969976dc8a160) and I found some interesting error in gallery3/var/logs

Quote:
2009-06-09 14:18:51 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2005/Germany/Berlin1/cat1.jpg, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 14:28:59 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, paris, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 15:16:14 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2003, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 16:13:37 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2008, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 22:30:59 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2009/wayanad/IMG_2816.JPG, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 23:35:29 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, paris/eatingout/p1010012.jpg, could not be found. in file system/core/Kohana.php on line 841
2009-06-09 23:51:51 -06:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2004/italy/cinquet/ct1.jpg, could not be found. in file system/core/Kohana.php on line 841

To me it means some files are missing as I might have deleted the same or moved them some where. But when I physically check them in "~/www/santm.com/gallery2/g2data_d914e37b9c/albums/2009/wayanad" I can see the same file is there and it has 644 permission like other images. I already run dB optimize, cache clean up from gallery2/lib/support

Here is my gallery2 details

Get system details; useful for copy/paste into G2 support forum.

Last Run Details:

Quote:
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqli 5.0.75-community-log, lock.system=flock
Toolkits = Gd, SquareThumb, Exif
Acceleration = none/86400, none/86400
Operating system = Linux box362.bluehost.com 2.6.28-9.16.intel.BHsmp #1 SMP Sat Apr 18 11:41:59 MDT 2009 x86_64
Default theme = x_treme
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Rows in GalleryAccessMap table = 1599
Rows in GalleryAccessSubscriberMap table = 3288
Rows in GalleryUser table = 25
Rows in GalleryItem table = 3286
Rows in GalleryAlbumItem table = 213
Rows in GalleryCacheMap table = 0

 
santm
santm's picture

Joined: 2005-08-08
Posts: 40
Posted: Fri, 2009-06-12 03:57

I am using this version/branch and looks like my problem is gone

tips from http://gallery.menalto.com/node/88169

git clone http://github.com/dkm/gallery3.git

@bharat can you please include the same changes in master git ; as I am not sure what those are :)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-06-12 08:09

It's on my list!
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git

 
marc_p

Joined: 2006-03-27
Posts: 31
Posted: Fri, 2009-06-12 08:15

Wow, I may become a (very small) contributor to the most powerful web gallery software. \o/
I must admit that being able to use git really helps :)