unable to login to password protected gallery and captcha graphic + login over https

nick7788

Joined: 2008-11-28
Posts: 1
Posted: Fri, 2008-11-28 08:53

EVENT LOG:
Date Thu 27 Nov 2008 10:37:42 PM PST
Type Gallery Error
Location https://red7788.com/gallery/main.php
User Id 5
Client 59.189.152.99
Summary ERROR_MISSING_VALUE

Referer https://red7788.com/gallery/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery%2Fmain.php%3F
Details Error (ERROR_MISSING_VALUE)in modules/core/classes/GalleryController.class at line 257 (GalleryCoreApi::error) in modules/core/ItemAddAlbum.inc at line 36 (GalleryController::getItem) in main.php at line 250 (ItemAddAlbumController::handleRequest) in main.php at line 104 in main.php at line 88 Request variables: Array ( [return] => /gallery/v/ignprimo/ [formUrl] => /gallery/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAddAlbum&g2_itemId=29 [authToken] => 123456789012 [controller] => core.ItemAddAlbum [form] => Array ( [formName] => ItemAddAlbum [username] => admin [password] => passwrd [action] => Array ( [login] => Login ) ) )

/* No EVENT LOG for user login failure for password protected album "hold" */

SYS INFO:

Gallery URL = https://red7788.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) PHP/4.4.7 mod_ssl/2.2.9 OpenSSL/0.9.8c mod_fastcgi/2.4.6 Phusion_Passenger/2.0.3 DAV/2 SVN/1.4.2
Database = mysqli 5.0.67-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, jpegtran, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/900, none/0
Operating system = Linux svr1 2.6.24.5-serf-xeon-c6.1-grsec #1 SMP Tue Oct 7 06:18:04 PDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 32
Rows in GalleryAccessSubscriberMap table = 6
Rows in GalleryUser table = 4
Rows in GalleryItem table = 4
Rows in GalleryAlbumItem table = 2
Rows in GalleryCacheMap table = 6

/* End of SYS INFO */

Hi everyone,

I just installed Gallery and am able to access the Site Admin through login.

I created a password protected album "Hold" as admin.

As a normal user viewing the site. I can't access it through https by typing in the password.

I managed to type in the password and access the album over http.

In Safari and Firefox 3 (WinXPx64) it just shows a blank page (white). IE 7 flags an Error 500 internal server error.

I also have this similar problem with the user self-registration plug-in feature. When on the self registration screen, captcha graphic is not visible but captcha input box is present.

I deactivated the captcha plugin and tried to register but encountered the same blank browser screen problem over https.

Presently, I have deactivated the self-registration plugin too.

https://red7788.com/gallery/main.php click on album "Hold" and try to log in with password "test" to relpicate the error condition

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2008-11-28 12:02
Quote:
the same blank browser screen problem over https

Your description isn't very clear. What blank browser screen problem? Same as what?

 
christer@ecoagora
christer@ecoagora's picture

Joined: 2009-01-01
Posts: 2
Posted: Fri, 2009-01-02 04:07

I actually have the same issue as above.

I am having trouble with some portions of Gallery 2.3 when using SSL connections. What I really want is to force all Login submissions to be done over SSL and then have all other actions performed over non-SSL (don't really care about session integrity only password secrecy since people tend to use the same passwords for different sites). Since I have not been able to find a way to do this with Gallery 2.3, I am resorting to the horrible and resource-hogging ways of forcing EVERYTHING to be done over SSL (don't really want this because of the obvious reasons: I don't want to waste my precious server resources on encrypting IMAGES and VIDEO!).
I was able to reproduce this behavior with IE 6 and Opera 9.62 as well.
Either way, I ran into this issue when I modified the config.php file.

config.php

// functioning non-ssl
$gallery->setConfig('baseUri', 'http://www.ecoagora.com/gallery2/main.php');
// non-functioning ssl
//$gallery->setConfig('baseUri', 'https://www.ecoagora.com/gallery2/main.php');
// non-functioning whatever
//$gallery->setConfig('baseUri', '/gallery2/main.php');

Issues
1. No Captcha image on the login page. The reference to the image is relative and works when I paste it into a different browser window (adding on the DNS and such manually) - could this have to do with no <base> tag being set in the <head>?
Screenshot of SSL failing captcha login:
[img]http://gallery.menalto.com/files/gallery2_ssl_login_captchamissing.png[/img]
Screenshot of non-SSL proper captcha login:
[img]http://gallery.menalto.com/files/gallery2_nonssl_login_captcha.png[/img].
Apache ssl_error_log:

[Thu Jan 01 14:46:55 2009] [error] [client 192.168.1.1] PHP Fatal error:  Class 'GalleryTranslator' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 780, referer: https://www.ecoagora.com/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery2%2Fmain.php%3F

2. When I use the "Gallery" link in the left nav from the Login page, I get a 500 error response (blank page).
Screenshot of Gallery home link with SSL enabled - clicked from login page:
[img]http://gallery.menalto.com/files/gallery2_ssl_gallerylinkfromlogin.png[/img].

Date: Thu, 01 Jan 2009 22:44:21 GMT
Server: Apache/2.2.9 (Fedora)
X-Powered-By: PHP/5.2.6
Set-Cookie: GALLERYSID=; expires=Wed, 02 Jan 2008 22:44:21 GMT; path=/gallery2/; secure; HttpOnly=1
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

500 Internal Server Error

Apache ssl_error_log:

[Thu Jan 01 14:40:29 2009] [error] [client 192.168.1.1] PHP Fatal error:  Class 'GalleryTranslator' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 780 [Thu Jan 01 14:42:55 2009] [error] [client 192.168.1.1] PHP Fatal error:  Class 'GalleryTranslator' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 780, referer: https://www.ecoagora.com/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery2%2Fmain.php%3F
[Thu Jan 01 14:42:57 2009] [error] [client 192.168.1.1] PHP Fatal error:  Class 'GalleryTranslator' not found in /usr/share/gallery2/modules/core/classes/GallerySession.class on line 780, referer: https://www.ecoagora.com/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery2%2Fmain.php%3F
 
oceco

Joined: 2007-10-22
Posts: 666
Posted: Fri, 2009-01-02 17:07

Hi

Just to inform you there are two recent postings in the German forum with the same issue: here and there.
I gave them some hints how to create a debug output, which will be posted here as well.

rgds/oceco
___________________________________________________
The Top Secret Gallery2 Treasure: Quick Start Guide

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2009-01-02 23:51

that's not the first time i see issues with "class GalleryTranslator not defined"... but i don't see how it could happen. i can't reproduce it myself.

so the error log entry is referring to GallerySession.class line 780.
which is in function GallerySession::_isPersistentSessionRequired() which is called from GallerySession::start(), which is a public function.

without an error stack (call stack), it's hard to tell how this actually happened.

a first hint is that GalleryTranslator.class is included _after_ the session is initialized. so if there's a code path calling session->start() or session->regenerate() (which calls start() which calls _isPersistentSessionRequired()), then the riddle's solved.
i don't see how that could happen. GallerySession::init() is very light, doesn't call start() / regenerate().

and once we're passed GalleryInitFirstPass() (called from main.php), the translator class is defined.

without further input (a call stack from the error), i can't do much more).

but there's a easy fix:
just add GalleryCoreApi::requireOnce('modules/core/classes/GalleryTranslator.class'); right before line 780 in modules/core/classes/GallerySession.class.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
christer@ecoagora
christer@ecoagora's picture

Joined: 2009-01-01
Posts: 2
Posted: Sat, 2009-01-03 01:25
Quote:
i don't see how that could happen. GallerySession::init() is very light, doesn't call start() / regenerate().

Maybe this has something to do with my Captcha plugin? I've of course got a bunch of other plugins that I'm using as well...

Quote:
but there's a easy fix:
just add GalleryCoreApi::requireOnce('modules/core/classes/GalleryTranslator.class'); right before line 780 in modules/core/classes/GallerySession.class.

Pure genious! Thank you for giving me the full description of what needed to be changed instead of "just require the missing class before using it"!

Oh, you don't by any chance have the same quick & easy solution for forcing SSL for only signons? :)

 
strmtrupr2

Joined: 2007-11-27
Posts: 2
Posted: Wed, 2009-08-19 16:52

This worked for me. I had to put it before line 779 though.

Scott

 
Reaper1278
Reaper1278's picture

Joined: 2009-09-28
Posts: 1
Posted: Mon, 2009-09-28 04:50

None of anything here has fixed mine. Happened after ImageMagick install.