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?
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.
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?
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.
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.
Shared host upgrade
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.
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
Local network webserver upgrade
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.
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
Local network webserver. Fresh install
copy new files -> site URL in browser triggers setup -> click "Go" -> page with:
About to create tables... Migrating lib-auth data version => version 3 Done with table create!
-> 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:
About to create tables... Migrating lib-auth data version => version 3 Done with table create!
-> 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.
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
Local install (XAMPP) Trunk SVN (SVN update)
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.
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
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.
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!)
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.
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
Local network webserver Previously logged out no succes
Local install (XAMPP) Trunk SVN (SVN update) Previously logged out Success
P.S. Ticket created and two logs (from yesterday) attached.
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.
Just to note: If it is the same site/server linked on your profile, that might have some general problems as I can't accesss it at all (address not found).
No, since the patch worked. It will be in the nightly build and the pending support release. Thanks for the feedback.
The divide by zero is probably a bug. But will go away if there are any images in the album. [edit] the fault is strange since the divisor is set to 10
Correct this by changing the images per page selector. Somehow it is not properly set.
Hopefully everything is now fixed. Got confirmation of the patch fixing mowgli597's issue, so I guess this is closed out until someone says otherwise. I will close the ticket.
I also can hereby confirm that upgrading to latest release worked for me too. i can now log in to the backend without redirect to login screen (phew!).
My procedyre before upgrade was to drop the ADMINISTRATORS table before running setup.php and creating a new admin user.
Comments
Maybe if everyone having the problem would describe in detail their configurations something would stand out.
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?
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.
I'll describe in some shorthand way what I did.
Hope this all makes some sense.
Shared host upgrade
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.
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
Local network webserver upgrade
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.
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
Local network webserver. Fresh install
copy new files -> site URL in browser triggers setup -> click "Go" -> page with:
About to create tables...
Migrating lib-auth data version => version 3
Done with table create!
-> 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:
About to create tables...
Migrating lib-auth data version => version 3
Done with table create!
-> 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.
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
Local install (XAMPP) Trunk SVN (SVN update)
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.
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
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.
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!)
Mike
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.
Mike
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.
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
Local network webserver
Previously logged out
no succes
Local install (XAMPP) Trunk SVN (SVN update)
Previously logged out
Success
P.S. Ticket created and two logs (from yesterday) attached.
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.
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
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
The divide by zero is probably a bug. But will go away if there are any images in the album. [edit] the fault is strange since the divisor is set to 10
Correct this by changing the images per page selector. Somehow it is not properly set.
I'm stumped
Here's what just happened:
I was reverting my installs back to the most recent nightly that would not cause any problems (which btw is the nightly of 2011-06-20[7544])
Then because of your request I upgraded the installs to the last nightly again and guess what?
Everything works!
Also your advised change in`functions.php` does not seem to make any differece.
Guess there is no point anymore to attach a new debug log?
Let me know if there is anything else I can do to help.
I've changed the "theme" settings for images - thumbnails per row etc but still have the same problem.
Mike
Will try to resolve it. Thanks for all your help.
Mike
[edit] clear cache fixed it!!
My procedyre before upgrade was to drop the ADMINISTRATORS table before running setup.php and creating a new admin user.
worked perfectly and i am now happy again.