If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading from 1.3.x to 1.3.9 / when I just try to login I am still returned to the login page

when I just try to login I am still returned to the login page

Locked

Started by buildingblocks on 9 Jun 2010, 4:03 PM · Views: 2,818

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
9 Jun 2010, 4:03 PM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

when I just try to login I am still returned to the login page

I just finished bringing my site up to date in a test folder and have just moved it live.

I have found that now after creating an account I am brought back to the login page or when I just try to login I am still returned to the login page.

No error logs have been generated in my cache folder and I did receive the welcome email when creating the test customer account. By the way this was not a problem when in the testing folder.

I'm thinking maybe I need to use the fix cache key utility. Is the fix cache key utility ok to use on 1.3.9d?

9 Jun 2010, 4:14 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

The fix cache key simply corrects the PATH in the database (admin >>>configuration>>>Sessions) to the appropriate cache folder.

I see no reason why it should not be OK with 1.3.9 .

20 years a Zencart User

9 Jun 2010, 4:19 PM
#3
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

thanks. It synchronized but did not fix the problem.

21 Jun 2010, 9:08 PM
#4
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

I had the same issue. I noticed no url zenid session was being created.

  1. Correct in admin > schoolboy:

The fix cache key simply corrects the PATH in the database (admin >>>configuration>>>Sessions) to the appropriate cache folder.

I see no reason why it should not be OK with 1.3.9 .

  1. Download Fix key check settings in configs, run.

  2. Delete old cookies from your site on your browser...

worked for me in the end....:lookaroun

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

21 Jun 2010, 9:18 PM
#5
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

Whoops, still having an issue...Thought I had it....posted to soon

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

21 Jun 2010, 10:08 PM
#6
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

ok again, I had some static links to my "live" store, so I had some self-spoofing and a small cookie war was taking place.....sorry for the multiple posts...:wacko:

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

21 Jun 2010, 10:52 PM
#7
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,949
Plugin Contributions:
3

Re: when I just try to login I am still returned to the login page

Note, if you are still having problems with login in 1.3.9.d, there was a small bug in

/includes/init_includes/init_sessions.php

although this should only affect those using shared ssl.

the fix is to replace the line

session_set_cookie_params(0, $path, (zen_not_null($cookiedomain) ? '.' . $cookiedomain : ''));

with

session_set_cookie_params(0, $path, (zen_not_null($cookieDomain) ? '.' . $cookieDomain : ''));
29 Jun 2010, 10:11 PM
#8
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

wilt:

Note, if you are still having problems with login in 1.3.9.d, there was a small bug in

/includes/init_includes/init_sessions.php

although this should only affect those using shared ssl.

the fix is to replace the line

session_set_cookie_params(0, $path, (zen_not_null($cookiedomain) ? '.' . $cookiedomain : ''));

> 
> 
> with
> ```php
session_set_cookie_params(0, $path, (zen_not_null($cookieDomain) ? '.' . $cookieDomain : ''));

I was having that problem after upgrading from c to d, and yes, I am using a shared SSL (I think), and yes, your suggested correction fixed the problem for me. Thanks! :clap:

29 Jun 2010, 10:27 PM
#9
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

For the record, I used the automatic upgrade option (simple scripts) that my server host provides. It worked without a hitch other than the login problem which I corrected by following wilt's timely instructions.

9 Jul 2010, 5:25 PM
#10
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

wilt:

Note, if you are still having problems with login in 1.3.9.d, there was a small bug in

/includes/init_includes/init_sessions.php

although this should only affect those using shared ssl.

the fix is to replace the line

session_set_cookie_params(0, $path, (zen_not_null($cookiedomain) ? '.' . $cookiedomain : ''));

> 
> 
> with
> ```php
session_set_cookie_params(0, $path, (zen_not_null($cookieDomain) ? '.' . $cookieDomain : ''));

I have a new store set up as 1.3.9b and just upgraded to 1.3.9d. I too am now unable to login as admin. I edited the init_sessions.php file as per wilt's suggestion, but still am unable to login. :(

Vito

10 Jul 2010, 2:31 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: when I just try to login I am still returned to the login page

Clear the cookies for your site ...

If still a problem, test it with another browser ... can you now login? If so, check again that you cleared the cookies on the browser for both your secure and non-secure url ...

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!

10 Jul 2010, 2:34 PM
#12
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

Thanks Linda. I finally decided to download the Fix Key and ran it. Cleared cookies, still nothing. But then closed all browsers and re-opened, and bingo, I'm in. :)

Vito

10 Jul 2010, 3:19 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: when I just try to login I am still returned to the login page

Thanks for the update that this is fixed and for how you fixed it ...

I have found that in FireFox this happens to me periodically where the close all the browser sessions is the only solution ... :smile:

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!

23 Jul 2010, 9:51 PM
#14
jsager avatar

jsager

New Zenner

Join Date:
Apr 2007
Posts:
5
Plugin Contributions:
0

Re: when I just try to login I am still returned to the login page

wilt:

Note, if you are still having problems with login in 1.3.9.d, there was a small bug in

/includes/init_includes/init_sessions.php

although this should only affect those using shared ssl.

the fix is to replace the line

session_set_cookie_params(0, $path, (zen_not_null($cookiedomain) ? '.' . $cookiedomain : ''));

> with
> ```php
session_set_cookie_params(0, $path, (zen_not_null($cookieDomain) ? '.' . $cookieDomain : ''));

I'm having the same problem after upgrading from 1.3.9b when I apply the fix all I get is a blank page when I try to login.

23 Jul 2010, 10:16 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: when I just try to login I am still returned to the login page

If you get a blank page ... look in the /cache directory for the debug logs and see what they say ...

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!