1 Attachment(s)
Getting the "Whoops! Your session has expired."
Getting the above error as son as I jump into the cart. This is a new install of v1.5. It definitely does not look right that customers will get a message like this as soon as they try to add a product to the cart (Screenshot attached). Any help that anyonecan provide would be appreciated....
Re: Getting the "Whoops! Your session has expired."
1.5.???? Many other things we need to know in order to help. Please reply with answers to the posting tips.
Re: Getting the "Whoops! Your session has expired."
This is a new install of zencart 1.5 however I had been running 1.3 for years and this worked fine. However I ran into an account issue with godaddy and ended up having to do a fresh install and reload my product catalog manually. It is completely unaccustomed at this time with no add-ons what so ever. My host is Godaddy and I'm using a dedicated SSL certificate. As far as I know its is hosted on a Windows OS. Started seeing this issue after my SSL certificate went live. Any help on this would be seriously appreciated.
Server info:
PHP 4.1.8
DB - Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.5.35-cll-lve - MySQL Community Server
Re: Getting the "Whoops! Your session has expired."
You'll need to supply the full Zen Cart version number, e.g. Zen Cart v1.5.3 vs. v1.5.1, and verify that your PHP version is really 4.1.8. If that's really your PHP version, that's your issue; get your host to upgrade to a version of PHP that was produced in this century!
Re: Getting the "Whoops! Your session has expired."
Actually let me try to explain more about what I am doing, as I still have this problem and I am getting nowhere. Basically I'm trying to bypass the zencart product listing and go directly to the cart. This means I use a custom add to cart button on my own product page (not a zencart page (example: http://www.thekeywestsoapfactory.com...deadseaslt.htm). The add to cart button uses the below custom link to add the product directly to the zc shopping cart bypassing the the product listing page:
<form name="cart_quantity" action="http://thekeywestsoapfactory.com/zencart/index.php?main_page=product_info&cPath=1&products_id=3&action=add_pr oduct" method="post" enctype="multipart/form-data">
<div id="cartAdd">
Order:<br>
<input type="hidden" name="cart_quantity" value="1" maxlength="6" size="4" />
<input type="hidden" name="products_id" value="4" />
<inputtype="image" src="../Images/addtocart2.gif" alt="Add to Cart" title=" Add to Cart " /> </form>
This has been working fine on my site since 2011, however after a recent reinstall I am now getting the "Whoops! Your session has expired." error, when hitting the above add to cart button. I'm thinking I'm missing a setting somewhere in the zc config. Can someone please help me as I am desperate to get past this issue. I am weilling to even have a phone conversation in necessary.
Re: Getting the "Whoops! Your session has expired."
Your "custom form" does not include a hidden input that contains a copy of the current session's securityToken (required for all forms using the POST method). The built-in Zen Cart processing "kicks back" any form that POSTs data that doesn't include the securityToken.
Re: Getting the "Whoops! Your session has expired."
Thanks lat9 for the info. Do you know how I can get this to work? Also any idea why this worked for years then all of a sudden this problem? Do I need to go back down to 1.3h?
Re: Getting the "Whoops! Your session has expired."
Quote:
Originally Posted by
raphael
Thanks lat9 for the info. Do you know how I can get this to work? Also any idea why this worked for years then all of a sudden this problem? Do I need to go back down to 1.3h?
The securityToken processing (and posted-form rejection without it) started with Zen Cart v1.5.0. Was there some reason that you've got all of your products' add-to-cart processing outside of the standard Zen Cart handling?
Re: Getting the "Whoops! Your session has expired."
Because the zc product pages do not match up with the look and feel of my site. Thus I decided to only use the cart portion of zc and it worked fine for years. Also it was the quickest way to transition off of my previous paid merchant/cart provider without changing the look and feel o my site. So are you basically say I need to go back to 1.3h to continue my current approach?
Re: Getting the "Whoops! Your session has expired."
Quote:
Originally Posted by
raphael
Because the zc product pages do not match up with the look and feel of my site. Thus I decided to only use the cart portion of zc and it worked fine for years. Also it was the quickest way to transition off of my previous paid merchant/cart provider without changing the look and feel o my site. So are you basically say I need to go back to 1.3h to continue my current approach?
Assuming that your "product pages" are all static HTML, I don't see a quick/easy way to coerce their add-to-cart processing to operate under later Zen Cart versions. That's not to say that it's impossible, but there's no magic solution.
I'd suggest finding a way for your approach to operate under Zen Cart v1.5.3, since the v1.3.x series is very long-in-tooth and will have issues if/when your webhost decrees that all sites shall be updated to a supported version of PHP (i.e. PHP 5.4 or later; 5.3 was declared end-of-life (EOL) on August 14, 2014).