ZenphotoCMS Forum
Can't log in after upgrading to 1.4.1 - 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: Can't log in after upgrading to 1.4.1 (/thread-8744.html)

Pages: 1 2 3 4


Can't log in after upgrading to 1.4.1 - acrylian - 28-06-2011

Well, no one "forces" you to upgrade if the site works for you. "If it ain't broke, don't fix it". But due to lacking resource we are only able to support the current release.

You should look at the debug log files and report...




Can't log in after upgrading to 1.4.1 - softaculous - 04-07-2011

Hi,

There is a BUG in the UPGRADE Utility file.
@sbillard and @zenphotodevelopers, I have emailed you the fix using this contact form :
http://www.zenphoto.org/pages/contact

In our tests it works pretty well and we were able to login even after upgrade. The bug is serious and will cause everyone upgrading to be unable to login.

Waiting for your reply.

Regards,
Softaculous Team




Can't log in after upgrading to 1.4.1 - acrylian - 04-07-2011

Yes, and it is a known issue that is fixed in the just released 1.4.1.1 version. (btw, the contact form was not working so we did not get a mail. Sorry about that).




Can't log in after upgrading to 1.4.1 - sbillard - 04-07-2011

Besides, the correct place to log problems is the Trac system as described in the "rules and usage" document. Anything else will probably not be acted upon and certainly cannot be tracked to be sure it was acted upon.




Can't log in after upgrading to 1.4.1 - softaculous - 05-07-2011

Hi,

@acrylian the bug is there in the 1.4.1.1 as well.
We had emailed your the FIX.
Can we have some email address where its possible to email you ?
Its rather better we first discuss it before you launch it.




Can't log in after upgrading to 1.4.1 - acrylian - 05-07-2011

Please use the contact form. As said it was broken for as short time when you tried to use it. We both will get the mail and one of us will get back to you.




Can't log in after upgrading to 1.4.1 - rocgen - 20-07-2011

Hi,

Is this issue resolved?

Tried to upgrade from 1.4.0.4 to 1.4.1.1 but couldn't login after the upgrade so went back to 1.4.0.4.




Can't log in after upgrading to 1.4.1 - acrylian - 20-07-2011

Try the trunk nightly build.




Can't log in after upgrading to 1.4.1 - rocgen - 20-07-2011

Just tried zenphoto-2011-07-19-trunk same result.




Can't log in after upgrading to 1.4.1 - acrylian - 20-07-2011

Sorry, we did not encounter this issue ourselves. So you need to delete the administrators table in your database and re-run setup. Then set a new password.




Can't log in after upgrading to 1.4.1 - rocgen - 20-07-2011

Ok, set new password for all users?




Can't log in after upgrading to 1.4.1 - acrylian - 20-07-2011

Yes, if you delete that table all is gone. Alternatively you can try just to delete your own admin entry (if those of the others still work).




Can't log in after upgrading to 1.4.1 - rocgen - 20-07-2011

Ok, thanks, got around that. But now all users have no group affiliation (all users was assigned to a group) and there's a new user '1' that wasn't there before.

If I try to assign a group to a user I get the following error message:

"Zenphoto encountered an error
MySQL Query ( UPDATE zp_administrators SET id=NULL WHERE id='32' ) failed. MySQL returned the error Duplicate entry '0' for key 'PRIMARY' "

Any advise?




Can't log in after upgrading to 1.4.1 - sbillard - 21-07-2011

You did not say how you "got around" you previous problem, but somehow things in your database are messed up. The query you cite above does not seem proper, so I do not know how it would occur.

Please change the define DEBUG_ERROR to true in the global-definitions.php script and re-run. This will give a stack trace of where this error is being generated.




Can't log in after upgrading to 1.4.1 - rocgen - 21-07-2011

Got around by deleting the administrators table after upgrading to 1.4.1.1 and re-ran setup. Then I'm able to login but all users and groups are gone. No user could login after the first attempt of upgrading so I couldn't just delete the admin user as suggested by acrylian.

To prevent to have to add all users and groups I restored the database from before the upgrade. That was a backup of 1.4.0.4 restored to 1.4.1.1. Is that bad due to different versions? If not I redo again and change the DEBUG_ERROR define.

What about softaculous comments above that there's a issue with the upgrade process in 1.4.1.1, has that been looked into?

So what I'm looking for is a solution to upgrade from 1.4.0.4 to 1.4.1.1 and still be able to login and not having to add all users and groups.




Can't log in after upgrading to 1.4.1 - acrylian - 21-07-2011

Softaculous did not contact us so far. Regardless Softaculous to my knowledge is an install helper similar to Simple Scripts we don't really support (as we explained lots of times).




Can't log in after upgrading to 1.4.1 - sbillard - 21-07-2011

The only issue we have had was with a now disabled option to tie cookies to IP addresses. This would only be an issue if your browser IP address changes with each page refresh. Then you would indeed not be able to login ever.

But as said, that is disabled now.




Can't log in after upgrading to 1.4.1 - waddington50 - 22-07-2011

I'm having the same log-in problem on 1.4.1 even though I did a clean install rather than an upgrade. The download from your site was done on 6/24/2011. I did the install a couple of weeks ago and everything worked fine. I set up users, logged in and out, all was well. Today, I can't log in at all with either of the two defined admin users. Nothing has changed other than a clearing of cached cookies, client re-boots, etc. I turned on the login debug option, and the debug file indicates everything worked fine - the user id/ password entry results in a match against a configured admin user. But all I see is a refresh of the login screen from admin.php - no error message, just a repaint of the login screen. I have tried it using both IE 8 and FireFox 5.x with the same results. I won't wave my arms about how bad this is, but I could sure use some help. By the way, it all works fine on my test Windows system - the problem is occurring on the public version which is running on a Yahoo Unix-based hosted service.




Can't log in after upgrading to 1.4.1 - acrylian - 22-07-2011

Again, we are sorry, but we did not encounter this issue ourselves. So the easiest fix is to delete the adminstrator table on the database, re-run setup and set a new admin account.




Can't log in after upgrading to 1.4.1 - waddington50 - 22-07-2011

Ok, but wouldn't it make more sense to try to debug this thing and figure out what's wrong? Even if the drop-table technique works, I have no reason to think the problem won't occur again. And judging from the forum traffic, I'm not the only one having this problem. I'm in a position to do debugging work, but it would go a lot faster if someone familiar with the ZenPhoto code base could give me some help. Can that be done?