Re: unable to login to admin
Yes, undo all the coding changes I had suggested.
The admin username/password is the information you selected for the Admin account during installation ... on the last page of the zc_install process.
They are *not* the same as what's in your configure.php files (well, unless you used that information there too, which I don't recommend).
You had entered "denny" and some password ... that's what you should use to login to the admin.
Re: unable to login to admin
Thanks again,
I have no idea where I entered "Denny" as a UN... I owe you big time for the help today..
Go get your coffee...
Thanks
Re: unable to login to admin
Quote:
Originally Posted by
beerdawg
It seems that logging into the admin pages with zen-cart-1.3.7.1 using PHP-4.3.2 is broken. After entering the correct login/passwd, it will just return back to the login page.
The issue has to do with the call to session_regenerate_id() from zen_session_recreate() in includes/functions/sessions.php (which is called from admin/login.php).
According to the php documentation for php, "Version 4.3.3: Since then, if session cookies are enabled, use of session_regenerate_id() will also submit a new session cookie with the new session id." See the documentation here:
That means that 4.3.2 does not submit a new session cookie with the new session id.
The fix provided by buraks78 in the comments in the link above seems to address the issue and fix the zen-cart login to the admin page.
Basically, add this directly after the call to session_regenerate_id() in includes/functions/sessions.php:
Code:
if(!version_compare(phpversion(),"4.3.3",">=")){
setcookie(
session_name(),
session_id(),
ini_get("session.cookie_lifetime"),
"/"
);
}
Herb.
Thanks very much for posting this fix re PHP-4.3.2
:hug:
Re: unable to login to admin
Hi,
Well I'm having exactly the same problem logging in, so I installed the clear cache thing & used it several times, but still can't log in using firefox - my prefered browser.
Just to make sure, I tried Internet Explorer for the first time in months, & that works fine!
I also tried creating an account as a customer through Firefox & that worked fine.
What on earth is going on?
This is a new install of 3.8, which worked fine including the login, then putting in a copy of my current database after dropping the tables of the install d/b.
That's when the problems started.
This has happened to me before when trying to update on a practice shop just to make sure I didn't stuff up a live one.!
Thought I kept doing something wrong until I found this string
My php is an old one: 2.11.1 with mysql 4.1.22.
Apache server: Unitedhosting.co.uk
Hope someone can help
Regards
######:dontgetit
Re: unable to login to admin
Quote:
Originally Posted by
gayelston
My php is an old one: 2.11.1 with mysql 4.1.22.
Um ... what?
Are you *sure* that's your PHP version?
Re: unable to login to admin
Hi, I'm new to the forum so hello to everyone. :clap:
I've just done a test install of zen cart via the fantastico automatic install section of my hostgator account (running php v 4.4.7). The version of Zen it installs is 1.3.7.1 which I now know to be an old version - however it will probably suffice for now.....
Unfortunately I'm having exactly the same admin log in problem as the other posters on this topic, i.e I can't access the admin section. When I log in it just refreshes the admin log in page with cleared input boxes. If I type in the wrong user name or password, I get the same result - no error messages.
I've tried a lot of the fixes described here but I'm merrily getting lost in the myriad of solutions offered - none of which seem to work. I've done several reinstalls but I get the same result :frusty:. Is there any one solution which seems to be successful in the majority of cases
Re: unable to login to admin
ok... uopdate... I bit the bullet and installed the 8a version. Dream of an installation so I vebtured to the admin panel and ebtered my user name and pw. First hic-up, it said I'd got the wong password, so i asked for a reset and put the new password in . Voila!! it worked.. so filled with confidence I changed my password and logged out to see if the log in would work. Guess what? same old problem came back... help
Re: unable to login to admin
latest.... admin opens fine with firefox... not so IE. It's a start, but there are times I'l need IE.
Re: unable to login to admin
Is it possible that your browser cache/cookies needs to be emptied?
Re: unable to login to admin
or... IE is remembering an old password?