Admin Login Problem

Jashugan
Jashugan's picture

Joined: 2003-11-02
Posts: 4
Posted: Thu, 2003-11-06 09:51

Hello I'm interested in testing G2. However I'm running into some problems.

[BACKGROUND]
I used WinCVS to download Gallery2 based on the instructions at http://jpmullan.com/galleryupdates/. I was able to install gallery by modifying "config.php", and running "setup.php". In "config.php" I set debug mode to "buffered".

[PROBLEM]
I tried Logging in as admin and it seems to work (it doesn't give an error). However when I go to the main page, "main.php", it still says "Greetings, Guest!", and I don't see the "[site admin]" link. When I try to manual enter the URL (http://localhost/l/gallery2/main.php?g2_view=core:SiteAdmin), I get the following error:
Error (ERROR_PERMISSION_DENIED)

[ADDITIONAL INFORMATION]
I didn't know what types of things to include to help determine the problem.

Please advise.

Thanks
- Emperor Jashugan

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2003-11-06 18:18
Quote:
I tried Logging in as admin and it seems to work (it doesn't give an error). However when I go to the main page, "main.php", it still says "Greetings, Guest!", and I don't see the "[site admin]" link.

I have this same problem, and bharat is aware of it, but neither of us knows exactly what to do. Try turning off debug mode and logging in. Everything should happen correctly and your login should properly use cookies. Log out.

Then, turn debug mode back on and try logging in again. It should report success, and you should see
?PHPSESSIONID=something
in the url. Copy that part of the string and go to the front page of your gallery. It will say that you are not logged in. Append the
?PHPSESSIONID=something
to the end of the url and you should come up as logged in, and gallery will work.

If this works for you, we would like to know about it, and we would like to know what kind of server you are using.

Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

Thanks a bunch! Please let us know how it works for you!

 
Jashugan
Jashugan's picture

Joined: 2003-11-02
Posts: 4
Posted: Thu, 2003-11-06 18:48

Gallery version: 2 (don't know where to find the exact number, but I pulled it from CVS on 11-05-2003)
Apache version: 2.0.46
PHP version (don't just say PHP 4, please): 4.3.2
Graphics Toolkit: ImageMagik 5.5.7 Q16
Operating system: WinXP
Web browser/version (if applicable): Mozilla Firebird 0.7

Quote:
I have this same problem, and bharat is aware of it, but neither of us knows exactly what to do. Try turning off debug mode and logging in. Everything should happen correctly and your login should properly use cookies. Log out.

This worked!

Quote:
Then, turn debug mode back on and try logging in again. It should report success, and you should see
?PHPSESSIONID=something
in the url. Copy that part of the string and go to the front page of your gallery. It will say that you are not logged in. Append the
?PHPSESSIONID=something
to the end of the url and you should come up as logged in, and gallery will work.

This also worked, however I didn't see "?PHPSESSIONID=something" in the URL. It just works now.

How common is this problem?

Thanks!!!!
- Emp. Jash.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2003-11-06 20:41

Oops, I left out the "clear your cookies" step!

With debug mode on, clear your cookies, then try logging in. Look for the sessionid at that point. Thank you!

 
Jashugan
Jashugan's picture

Joined: 2003-11-02
Posts: 4
Posted: Thu, 2003-11-06 22:57
Quote:
Oops, I left out the "clear your cookies" step!

With debug mode on, clear your cookies, then try logging in. Look for the sessionid at that point. Thank you!

Ok, it worked. I get a "g2_GALLERYSESSIONID=[some long hex #]".

I would like to help test Gallery 2 and maybe aid in developing (once I'm familiar with it). What is the best way to start?

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Sun, 2003-11-09 20:50

Same situation occurs with
win2k/iis5
php: 4.3.2

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Tue, 2003-11-11 16:51

It's an issue within adodb. I posted to their forum, so hopefully we will find an final solution, rather than a band-aid that we would have to remember to apply every time we update adodb.
http://www.phplens.com/lens/lensforum/msgs.php?id=7764

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2003-11-13 06:12

I just left an updated message on the adodb site. We're on the way to resolving this...

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2003-11-16 08:20

I just left another message. Tomorrow I will send an email, and then I will stand outside his house with a boombox playing Peter Gabriel.

"In Your Eyes..."

"Your eyes"

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Tue, 2003-11-18 16:11

I left some patches for him and it looks like he is choosing one of them, so this should be fixed as soon as a new release of adodb is made.

 
mlatter

Joined: 2003-11-21
Posts: 17
Posted: Sat, 2003-12-06 23:14

Hello,

I am having the same login problem, I think. It logs in properly when in configure mode and says something like "Congratulations, your gallery installation has been successful" and when I click "Go to your gallery", it presents me with "Welcome Guest". I try to log in on that page with the admin account and I get "Login failed"

I first tried this on XP with IIS5, then Windows server 2003 with IIS6, then finally on Redhat 9. Same exact issue on each attempt. Gallery 1.4.1 works fine on all three systems.

I figure I must be doing something wrong somewhere, but I followed the installation instructions precisely.

Any ideas?

Thanks,

Murray

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Mon, 2003-12-08 01:19

We're waiting for a new version of adodb, which is theoretically on its way.

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Sun, 2003-12-14 06:14

The new version of adodb has arrived, and I see that it is Good.

 
mlatter

Joined: 2003-11-21
Posts: 17
Posted: Mon, 2003-12-29 02:27

Hello again,

Should this be working now?

I've tried several times with new releases and can never get it to work. It acts similarly each time (depending on the version of code) but never lets me in. I "drop" the database each time and start fresh and the install always goes well - I log in, it tells me that it has been installed successfully, and when I click "go to my gallery", it welcomes me as Guest. I try to log in to admin from there and that fails as well.

Thanks!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2004-01-02 22:14

It should be working now -- we've upgraded to the latest ADOdb which resolves the problem. Or at least I think it resolves the problem. Jesse, are you able to reproduce it on your Apache2 box?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2004-01-02 22:27
bharat wrote:
It should be working now -- we've upgraded to the latest ADOdb which resolves the problem. Or at least I think it resolves the problem. Jesse, are you able to reproduce it on your Apache2 box?

Nope, my apache box works great. I will double check to make sure that I am using the current cvs and that everything is checked in properly.

Of course, if cookies are turned off or not working for any other reason, the exact same behavior will be presented because php (for some reason) can't do its magic on the url on the debug page.

Did I forget to mention that before?