[SOLVED] Repeating changing hash when trying to use 'resetadmin'

desappr

Joined: 2009-10-31
Posts: 3
Posted: Sat, 2009-10-31 15:54

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.peterstorey.com/
Gallery version: 1.5.4
Apache version: 2.2.11/unix
PHP version (don't just say PHP 4, please): php 5.3.0
Graphics Toolkit: gd v.??
Operating system: OS X 10.4.???
Web browser/version (if applicable): IE8 or Firefox 3 (same behavior / see below)

Hi, it's been a long time since we upgraded Gallery. It's been working so nice until now. What happened is that my friend Peter was trying to log in as admin, and got the login popup, but was not logged in.

So I tried to reset the admin password. I chmoded everything to 666 in the setup directory, and then did 'touch resetadmin', and it said to put the hash inside it. So I did that, and it asked for another hash to be put in. Recursively, with no end.

I ran the configure.sh script in the root directory, with no luck.

If I upgrade, will this problem be solved, and if so, how do I do it without destroying the data? I'm on 1.5.4.

Could it be a password lock-out? If so, how do I re-admin when it's locked?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-11-02 23:37

Check your php and apache error logs if you can.

When did the site get upgraded to php 5.3?

It could be that there is a function being used that is no longer available in php 5.3. I know G2 won't function properly under PHP 5.3.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
desappr

Joined: 2009-10-31
Posts: 3
Posted: Tue, 2009-11-03 17:29

Thanks for your help, but there's nothing in the logs. I think that's a bit strange, and may be because of my configuration (error reporting).

Maybe I'll try downgrading PHP to 5.2. I know ereg is also deprecated in 5.3, but that is easy to fix.

Any other ideas, while I poke around? I noticed it makes a file called 'adminreeset' in the setup directory, is that helpful?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-11-03 17:41

adminreeset? that seems like a typo to me. Are you following these instructions?
FAQ: I've forgotten my admin password! How can I reset it?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
desappr

Joined: 2009-10-31
Posts: 3
Posted: Tue, 2009-11-03 17:50

I double checked, and the file 'adminreset' existed side by side with 'adminreeset', which was definitly put there by the software, not by me. I downgraded to PHP 5.2.11 and everything works fine now. So it's a 5.3.0 conflict; no surprise there.

I wish I could help you with the bug, but I've never worked on your code, and my error reporting is not helping either.

Thanks for your help, regardless!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-11-03 18:18

We're not going to be releasing a new version or updating any part of G1. If you want to continue with Gallery 1 you'll need to either upgrade to the latest and last version or move on over to Jallery:
http://jallery.com/

Otherwise, upgrade to G2, from there you can eventually upgrade to G3 if you like.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here