ZenphotoCMS Forum
Admin login keeps redirecting me to admin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Admin login keeps redirecting me to admin (/thread-8787.html)

Pages: 1 2


Admin login keeps redirecting me to admin - thomis - 28-06-2011

after upgrading to 1.4.1 using latest release with fixed bug i get redirected to login screen when trying to access admin.
any ideas on how to solve this?




Admin login keeps redirecting me to admin - acrylian - 28-06-2011

Did you try everything that has been discussed on the forum?




Admin login keeps redirecting me to admin - sbillard - 28-06-2011

Probably you should also describe your setup--specially anything that might not be "standard" stuff. There are a few users having this problem, but since we cannot reproduce it and there no particular configuration descriptions exist, we have no guess as to the problem.

Maybe if everyone having the problem would describe in detail their configurations something would stand out.




Admin login keeps redirecting me to admin - thomis - 29-06-2011

i have a standard installasjon on my domain. use the zenpage plugin, and the zpGalleriffic v1.4 theme. other than that no other plugins other than included in release installed. 1 user who is admin (me) no need for users to log in on frontpage. Frontend of system works perfectly, only the backend that somehow is screwed up. My zenphoto installation worked perfectly on all previous versions but after upgrading to lates zenphoto version everything went bad.

Its tempting to cleanout everything and do a fresh install but then i loose years of data, comments etc

Is this enough info or how do i describe by installation in better detail? Any ideas on stuff to try?




Admin login keeps redirecting me to admin - sbillard - 29-06-2011

Well, the version of Zenphto (in the brackets) would help.
Also your server configuration. PHP version, MySql version, etc.
What options have you chosen? Things like secure-admin, mod_rewrite, etc. that impact how the site runs as opposed to theme configuration options.




Admin login keeps redirecting me to admin - sbillard - 30-06-2011

Everyone having this difficulty please try the nightly build of 29 June. Report if fixed or not.




Admin login keeps redirecting me to admin - fretzl - 30-06-2011

I tried the nightly build of 29 June on different installs.
I'll describe in some shorthand way what I did.
Hope this all makes some sense.

[b]Shared host upgrade[/b]

Was previously logged out -> copy new files -> site URL in browser does not trigger setup (everything works normal)
run setup -> login form -> no success
drop administrators table -> run setup -> setup page -> click "Go" ->page "You may set your admin user and password or run backup-restore" -> choose "set your admin user and password" -> access to admin -> admin tab redirects to overview...
click "backup/restore" -> restore database with previous backup (any backup seems to work) -> click admin tab -> login form -> success, everything works.

[i]Zenphoto version 1.4.1 [7601] (Official Build)
Current gallery theme: Default
PHP version: 5.2.13
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 96M
MySQL version: 5.0.77[/i]

[b]Local network webserver upgrade[/b]

Was previously logged in -> copy new files -> site URL in browser does not trigger setup (everything works normal)
run setup -> setup page -> click "Go" -> page with "You can now View your gallery or administer" -> choose "administer" -> success, everything works.

[i]Zenphoto version 1.4.1 [7601] (Official Build)
Current gallery theme: Default
PHP version: 5.3.2
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 128M
MySQL version: 5.1.49[/i]

[b]Local network webserver. Fresh install[/b]

copy new files -> site URL in browser triggers setup -> click "Go" -> page with:

[i]About to create tables...
Migrating lib-auth data version => version 3
Done with table create![/i]

-> click on "You need to set your admin user and password" -> admin page -> user tab redirects to overview...
drop administrators table -> run setup -> setup page -> click "Go" -> page with:

[i]About to create tables...
Migrating lib-auth data version => version 3
Done with table create![/i]

-> click on "You need to set your admin user and password" -> admin page -> user tab redirects to overview...
etc, etc.....
Could not get Zenphoto installed properly.

[i]Zenphoto version 1.4.1 [7601] (Official Build)
Current gallery theme: Default
PHP version: 5.3.2
Graphics support: PHP GD library bundled (2.0.34 compatible)
PHP memory limit: 128M
MySQL version: 5.1.49[/i]

[b]Local install (XAMPP) Trunk SVN (SVN update)[/b]

Was previously logged in -> copy new files -> site URL in browser triggers setup -> setup page -> click "Go" -> page with "You can now View your gallery or administer" -> choose "administer" -> success, everything works.

[i]Zenphoto version 1.4.1 [7607] (SVN)
Current gallery theme: Default
PHP version: 5.3.0
Graphics support: PHP GD library bundled ( 2.0.35 compatible)
PHP memory limit: 128M
MySQL version: 5.1.37[/i]




Admin login keeps redirecting me to admin - acrylian - 30-06-2011

So in short words the fix in the nightly did work?..:-)




Admin login keeps redirecting me to admin - fretzl - 30-06-2011

LOL ;-)




Admin login keeps redirecting me to admin - mowgli597 - 01-07-2011

Sadly I have the same problem and have tried the fixes noted above but to no avail. The admin login just keeps redirecting me back to the login page.

If I enter what I believe to be the correct user and password combination it returns me to the login page.

If I enter a known bad password it loops back to the login page but includes the warning message: "There was an error logging in. Check your username and password and try again."

Entering the username to request a password reset works - the email message is sent, I log in and change the password, am redirected to the login page and the problem repeats itself.

A new install using the latest nightly build (June 29) didn't fix it, although the setup accepted the admin username and password correctly during the update.

Dropping the administrators table and re-running setup created a new table and entries but the problem still persists.

[i]
URL: http://royal-signals.org.uk/zenphoto
Release level is 1.4.1 (7607)
Gallery theme is based on Zenpage
PHP 5.2.17
MySQL 5.0.92-community-log
Apache version 2.2.17
Comments on photographs enabled, using Mollom spam filter
RSS feed enabled on Gallery and Comments
Everything else standard as far as I can tell (but am unable to get into my configuration to be sure!)[/i]

Mike




Admin login keeps redirecting me to admin - acrylian - 01-07-2011

Sadly I still can't help nor reproduce the issue. You have to wait until my collegue is here later today.




Admin login keeps redirecting me to admin - galathilion - 01-07-2011

Same for me.

What I have noticed is that I can still log in from one of my macs on a different IP address. (wi-fi connection), but when i try to log in on my laptop (mobile internet) it redirects.

I have dropped tables, re-installed, cleared cookies, followed all possible suggestions, but I am still being redirected. Also installed latest nightly build.

Also very interesting, all the login attempts that are redirected back to the login page, are seen as successful login attempts in the security log.




Admin login keeps redirecting me to admin - mowgli597 - 01-07-2011

I have a debug log which I can email if that would help.

Mike




Admin login keeps redirecting me to admin - sbillard - 01-07-2011

Please make a ticket and attach the log.




Admin login keeps redirecting me to admin - sbillard - 01-07-2011

Zenphoto cookies are "tied" to the IP address. Maybe the mobile connection does not maintain a consistent IP?




Admin login keeps redirecting me to admin - sbillard - 01-07-2011

For anyone still having the redirect issue please make the following change to the functions.php script:

change
function zp_cookieEncode($value) { return rc4(getUserIP().HASH_SEED,$value); }
to

function zp_cookieEncode($value) { return $value; }
circa line 1709 of the file. Please report the results.




Admin login keeps redirecting me to admin - fretzl - 01-07-2011

[b]Shared host[/b]

Previously logged in:
Succes with error on overview page:

Zenphoto encountered an error MySQL Query ( SELECT *, (date + 0) AS date FROM 'zp_comments' ORDER BY id DESC LIMIT 10 ) failed. MySQL returned the error MySQL server has gone away
Error gone after refresh

Previously logged out:
No success

[b]Local network webserver[/b]
Previously logged out
no succes

[b]Local install (XAMPP) Trunk SVN (SVN update)[/b]
Previously logged out
Success

P.S. Ticket created and two logs (from yesterday) attached.




Admin login keeps redirecting me to admin - sbillard - 01-07-2011

Can you detail the shared host situation? The debug log does not show any "save" of the new admin. (Really do not know what the SQL timeout was, but probably not related.)

You state that one attempt was previously logged in and the other not. But the log does not contain any administrators, so I guess I do not understand.

Also, if you re-create this, please get to the setup screen which will redirect you to the set admin page and then delete the debug log so it has only the relevant data.




Admin login keeps redirecting me to admin - mowgli597 - 01-07-2011

My apologies for the delay. The grass-cuttimg was calling and it's a beautiful evening here in Ireland!

M. Sbillard - your patch resolved the problem for me. Thank you.

Do you still need me to submit a ticket and attach the log?

Mike




Admin login keeps redirecting me to admin - mowgli597 - 01-07-2011

Spoke too soon.

Am logged in ok but when I try to edit an album I receive the following error message:

Division by zero in /home/bpskdk/public_html/zenphoto/zp-core/admin-edit.php on line 993

Mike