Zen Cart Logo
Forums / Basic Configuration / Users Login, But Says Expired

Users Login, But Says Expired

Locked

Views: 12,133

Results 21 to 40 of 51
This thread is locked. New replies are disabled.
24 May 2006, 4:30 PM
#21
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Users Login, But Says Expired

Is this a commercial host or have you set up your own server?

24 May 2006, 5:27 PM
#22
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

Kim:

Is this a commercial host or have you set up your own server?

It's our own server, I have someone help with the tech stuff. I know enough to be dangerous. 8)

The issue right now is that the user stays logged in, but when you go to check out, it just loops after you try to go to the payment information. Any ideas?

R~

24 May 2006, 7:34 PM
#23
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

My php version is actually 5.1.2 (Zend 2.1.0)

R~

25 May 2006, 3:24 PM
#24
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

I've updated to the latest version of ZenCart, still no luck. Any ideas? I'm getting desperate...8(

R~

25 May 2006, 4:48 PM
#25
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

@randyb:

Please post your URL pointing to your techsupp.php file. If you do not know where to find this file, you can always go to your zc_install folder (from local's end) and upload it to your Zen Cart's root path on your server.

From there, it could be much easier to determine the source of the problem. :wink2:

25 May 2006, 6:40 PM
#26
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

I'll PM you that info.

Thanks!

R~

25 May 2006, 7:11 PM
#28
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

Related to this particular problem, I cannot see what might be wrong here.

However, here's what you can do.

Under your includes/modules/pages/modules/pages/header_php.php file, you can add:

if ($_SESSION['customer_id'] == '1') {
error_reporting(E_ALL);
}

below this block:

// if the customer is logged in already, redirect them to the My account page
if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') {
zen_redirect(zen_href_link(FILENAME_ACCOUNT, '', 'SSL'));
}

require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

From there, completely above the page, you should be able to see some error messages. If it's the case, simply post the particulars here (not all of them - again - only the particulars) here. Otherwise, your next post could contain massive quoted information as this page might take longer to load. :wink2:

Once posted, one of the DEV team should be able to help you find the source of the problem after reading the error messages.

25 May 2006, 7:48 PM
#29
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

Thanks. I don't see a /modules/pages/ inside /modules/pages. In the /modules/pages/ I see several folders, all of which have the header_php.php file in them. Which folder should I be in?

R~

25 May 2006, 8:01 PM
#30
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

What the hell did I wrote above about the folder ? :shocking:

I meant this one:

  • includes/modules/pages/login/header_php.php file. My apologize for pointing you in the wrong direction. :dontgetit
25 May 2006, 8:17 PM
#31
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

Thanks. I put that in there, but when you go to checkout, and try to go to step 2, it simply loops back to step 1 with no error messages. Is there some place else to put that check in?

I REALLY appreciate your help with this!

R~

25 May 2006, 8:27 PM
#32
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

when you go to checkout, and try to go to step 2, it simply loops back to step 1 with no error messages.

And that's one step ahead on the problem.

Is there some place else to put that check in?

Yes. Move the peace of code to:

  • includes/modules/pages/checkout_shipping/header_php.php

and change it, (in the mean time),

to read:

if ($_SESSION['customer_id'] != '' && $_SESSION['customer_id'] == '1') {
error_reporting(E_ALL);
}

below this block:

// if the customer is not logged on, redirect them to the login page
if (!$_SESSION['customer_id']) {
$_SESSION['navigation']->set_snapshot();
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}

In the mean time, I have discovered that - this block:

// Validate Cart for checkout
$_SESSION['valid_to_checkout'] = true;
$_SESSION['cart']->get_products(true);
if ($_SESSION['valid_to_checkout'] == false) {
$messageStack->add('header', 'Please update your order ...', 'error');
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
}

contains english definitions directly into that core file. Perhaps the DEV team would consider to rename that into a definition name in order to be associated with the proper language pack in a future release. :wink2:

25 May 2006, 8:40 PM
#33
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

I put that in, but no error messages. The customer remains logged in, but it doesn't go past step 1. Maybe that's a clue? The customer always remains logged in at this point it seems, that seems to be fixed after messing with it a bit yesterday...

R~

25 May 2006, 8:54 PM
#34
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

If it's the case, one of the DEV team would need to confirm if this error can be reproduce from their end. Perhaps, it might even be a configuration issue based from the admin section. :huh:

25 May 2006, 9:02 PM
#35
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

Do I need to PM or email anyone about this? What do I do from here?

Thanks so much for your help - it is very appreciated!

R~

25 May 2006, 9:08 PM
#36
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Users Login, But Says Expired

There's no need to PM anyone for this since this is a general subject. I must admit, it's a pretty strange one but one of the DEV team should reply to you shortly. :thumbsup:

26 May 2006, 1:38 AM
#37
sartzsche avatar

sartzsche

New Zenner

Join Date:
May 2006
Posts:
16
Plugin Contributions:
0

Re: Users Login, But Says Expired

i'm getting a similar problem here: www.clickpopstore.clickpoprecords.com

user logs in, selects product, goes to checkout, they're then asked to login again, gets "whooops" message, asked to login again, then they're returned to the welcome screen.

the loops keeps repeating...

what is causing this?

26 May 2006, 1:44 AM
#38
ajeh avatar

ajeh

Oba-san

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

Re: Users Login, But Says Expired

The message stack should be using this define located in the english.php ...

define('ERROR_CART_UPDATE', 'Please update your order ...<br />');

26 May 2006, 3:10 PM
#39
randyb avatar

randyb

New Zenner

Join Date:
Oct 2004
Posts:
31
Plugin Contributions:
0

Re: Users Login, But Says Expired

So is it thinking the cart is empty? Or that the address is invalid? What circumstances would cause it to go back to the checkout_shipping page? Just trying to brainstorm here...

R~

28 May 2006, 12:12 PM
#40
wilt avatar

wilt

Oji-san

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

Re: Users Login, But Says Expired

Hi,

It appears FC5 has some probs, with some of ZC session settings. Have recently installed FC5 on a spare partition and can reproduce the problem.

I found that this fixes it.

In Admin->configuration->sessions
set both

cookie domain
recreate session

to false.

Still trying to find out why FC5 has this quirk