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?
Views: 12,133
Obaa-san
Is this a commercial host or have you set up your own server?
New Zenner
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~
New Zenner
My php version is actually 5.1.2 (Zend 2.1.0)
R~
New Zenner
I've updated to the latest version of ZenCart, still no luck. Any ideas? I'm getting desperate...8(
R~
Suspended
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:
New Zenner
I'll PM you that info.
Thanks!
R~
New Zenner
Suspended
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.
New Zenner
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~
Suspended
What the hell did I wrote above about the folder ? :shocking:
I meant this one:
New Zenner
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~
Suspended
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:
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:
New Zenner
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~
Suspended
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:
New Zenner
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~
Suspended
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:
New Zenner
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?
Oba-san
The message stack should be using this define located in the english.php ...
define('ERROR_CART_UPDATE', 'Please update your order ...<br />');
New Zenner
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~
Oji-san
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
Tell staff why this post should be reviewed.