Forums / Installing on a Windows Server / Admin login not working

Admin login not working

Locked

Views: 2,522

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Dec 2006, 12:28 AM
#1
emelle avatar

emelle

New Zenner

Join Date:
Dec 2006
Posts:
2
Plugin Contributions:
0

Admin login not working

So I kept hearing about what a great product this is, and the demo looks very cool and exactly as I would want. I downloaded the latest of everything, and went to install it all. Took care of the red flags in the Zen Cart installation process mentioned at the beginning. Everything (eventually) looked good.

I get to the Admin page and it does not move past the login page. No errors, no blank pages. Just reloads the Admin page. I even tried incorrect usernames and passwords to be sure of what I am getting, and I got the "incorrect" errors as I should.

Just for grins, I also tried setting up an account via the demo site. It said "congrats..." but then kept welcoming me as a guest, and referring me to the log in page. So it's not holding the info. Not sure if it's supposed to but it sure seems like it should in order to test out that function properly.

Versions:
PHP 5.2.0
Apache 2.2.3
MySQL 5.0

Oh, and I'm running this on a Window XP box, on my own computer so that I can play with it before getting serious and uploading to an online server.

I read the instructions on the support page, and except for the possibility of my McAfee firewall, everything looks good. The firewall hasn't caused any other issues, and I don't understand how it would now. Cookies are being accepted, cache cleared. My configure file appears to be fine. Whatever shouldn't be empty isn't, and seems to have the correct info in it.

Any suggestions? :blink:

My husband who has more certifications than God helped me get this far, but now even he's confused.

:lamo:

11 Dec 2006, 10:21 AM
#2
heggied avatar

heggied

New Zenner

Join Date:
Dec 2006
Posts:
1
Plugin Contributions:
0

Re: Admin login not working

Hi there

I just tried installing ZenCart with a pretty much identical setup to you, and had the same problems. I had a hunch that it's something to do with sessions, so changed line in the admin/includes/configure.php from :

define('STORE_SESSIONS', 'db');

to

define('STORE_SESSIONS', '');

Low and behold, it lets me login.

I'll investigate further if / when I get some time, but this may help you out.

David

11 Dec 2006, 1:39 PM
#3
dscvry avatar

dscvry

New Zenner

Join Date:
Dec 2006
Location:
France
Posts:
20
Plugin Contributions:
0

Re: Admin login not working

EmElle,

If you're using PhP 5.2 & still searching for a result, it might also be helpful to take a look at Website Rob's post at 'Can't log in to Admin' #24

http://www.zen-cart.com/forum/showthread.php?p=302086#post302086

There's a few of us stuck on this at the moment - let us know if it works ...

dscvry

Here is a solution to the same problem, as posted in another thread.


Seems I ran into the php 5.2 update bug.
This fixed it (from another thread):

edit /includes/functions/sessions.php

function _sess_write($key, $val) {
global $db;

change to:

function _sess_write($key, $val) {
// The following is only to work around a PHP 5.2.0 bug:
//global $db;
$db = new queryFactory();
$db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);

11 Dec 2006, 5:21 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin login not working

goodmorning ... you are running an older version of Zen Cart ...

I fixed the two sessions.php files:
/includes/functions/sessions.php
/admin/includes/functions/sessions.php

You should be good to go now ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Dec 2006, 5:44 PM
#5
dscvry avatar

dscvry

New Zenner

Join Date:
Dec 2006
Location:
France
Posts:
20
Plugin Contributions:
0

Re: Admin login not working

Care to share the good news Ajeh ?

11 Dec 2006, 7:42 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Admin login not working

The same fix, but both sessions.php files needed the same updated ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Dec 2006, 1:27 AM
#7
emelle avatar

emelle

New Zenner

Join Date:
Dec 2006
Posts:
2
Plugin Contributions:
0

Re: Admin login not working

heggied:

Hi there

I just tried installing ZenCart with a pretty much identical setup to you, and had the same problems. I had a hunch that it's something to do with sessions, so changed line in the admin/includes/configure.php from :

define('STORE_SESSIONS', 'db');

to

define('STORE_SESSIONS', '');

Low and behold, it lets me login.

I'll investigate further if / when I get some time, but this may help you out.

David


You are a God! Thank you! Now I can play.