Forums / General Questions / Whoops! Your session has expired

Whoops! Your session has expired

Views: 2,444

Results 1 to 16 of 16
30 Mar 2014, 1:50 AM
#1
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Whoops! Your session has expired

DrByte:

What is the URL of your site where this unusual problem is allegedly taking place?

I'm having a similar problem with a Zen-Cart installation at:

http://www.tsilaorganics.com/catalog-new/

I've got the COWOA plugin installed and I think my problem might be related to that. But I've uninstalled and reinstalled that plugin and can't find where the issue is.

To test it, add a product to your cart by going here:
http://www.tsilaorganics.com/catalog-new/index.php?main_page=product_info&products_id=225

And when you get to the cart page, you'll get the "Whoops! Your session has expired" error. I've been searching and searching and can't find any solutions for this. Any help someone could offer would be very much appreciated.

Thanks.
Joe

30 Mar 2014, 1:56 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Whoops! Your session has expired

I find if I go to:
/catalog/index.php?main_page=product_info&products_id=225

things work ...

What is the:
/catalog-new

that you have on your link? Is this a new directory that your site is in?

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!

30 Mar 2014, 3:20 AM
#3
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Whoops! Your session has expired

And adding to Ajeh's question, your URL's keep swapping between

http://www.tsilaorganics.com

http://www.tsilaorganics.com/catalog-new/

http://www.tsilaorganics.com/catalog/

If you have Ultimate SEO or similar installed then you may want to look at your configuration.

Also, which template are you using?

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2014, 4:00 AM
#4
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Whoops! Your session has expired

Ajeh:

I find if I go to:
/catalog/index.php?main_page=product_info&products_id=225

things work ...

What is the:
/catalog-new

that you have on your link? Is this a new directory that your site is in?

/catalog is the live version of the web store. /catalog-new is the development installation of the cart. I'm trying to get the Zen-Cart installation updated from the old 1.3.7 installation to an updated 1.5.1 installation. That's why there's two. I'm not getting the error in the old 1.3.7 installation but I am in the new 1.5.1.

I don't have Ultimate SEO installed and I'm using a custom template.

Is there a reliable alternative to COWOA for guest checkout? Maybe I should just try a different plugin for the guest checkout.

Thanks.
Joe

30 Mar 2014, 5:01 AM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Whoops! Your session has expired

loganwest:

/catalog is the live version of the web store. /catalog-new is the development installation of the cart. I'm trying to get the Zen-Cart installation updated from the old 1.3.7 installation to an updated 1.5.1 installation. That's why there's two. I'm not getting the error in the old 1.3.7 installation but I am in the new 1.5.1.

I don't have Ultimate SEO installed and I'm using a custom template.

Is there a reliable alternative to COWOA for guest checkout? Maybe I should just try a different plugin for the guest checkout.

Thanks.
Joe

Thanks for the clarification.

On that note it may be possible that your configuration files have been mixed up. May be worth checking...

Also check that you have merged your files correctly.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2014, 5:28 AM
#6
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Whoops! Your session has expired

When I am at this page http://www.tsilaorganics.com/catalog-new/ and then hover over the various links in your header I am getting

About Tsi-La http://www.tsilaorganics.com/about.php
that should be http://www.tsilaorganics.com/catalog-new/about.php

Login / Register http://www.tsilaorganics.com/catalog/index.php?main_page=login
that should be http://www.tsilaorganics.com/catalog-new/index.php?main_page=login

etc etc

Then, all the links in your left sidebox are pointing to the root of your site, namely http://www.tsilaorganics.com/some-page.html and they should read http://www.tsilaorganics.com/catalog-new/some-page.html

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2014, 1:54 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Whoops! Your session has expired

frank18:

When I am at this page http://www.tsilaorganics.com/catalog-new/ and then hover over the various links in your header I am getting

About Tsi-La http://www.tsilaorganics.com/about.php
that should be http://www.tsilaorganics.com/catalog-new/about.php

Login / Register http://www.tsilaorganics.com/catalog/index.php?main_page=login
that should be http://www.tsilaorganics.com/catalog-new/index.php?main_page=login

etc etc

Then, all the links in your left sidebox are pointing to the root of your site, namely http://www.tsilaorganics.com/some-page.html and they should read http://www.tsilaorganics.com/catalog-new/some-page.html

So, either your configure.php files are incorrect, or you've got the URLs hard-coded into all those links instead of letting Zen Cart generate them. But that all doesn't matter much if you'll eventually be removing the "catalog-new" part, ie: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Mar 2014, 3:05 PM
#8
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Whoops! Your session has expired

DrByte:

So, either your configure.php files are incorrect, or you've got the URLs hard-coded into all those links instead of letting Zen Cart generate them. But that all doesn't matter much if you'll eventually be removing the "catalog-new" part, ie: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

I think the OP had them hard-coded in his old 1.3.7 install and copied the files over into his attempted 1.5.1 upgrade which is now in the subdirectory 'catalog-new'. Looking at source I can see

<base href="[http://www.tsilaorganics.com/catalog-new/](http://www.zen-cart.com/view-source:http://www.tsilaorganics.com/catalog-new/)" />

On that note I am leaning towards hard-coding rather than fouled configure.php files.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Mar 2014, 10:21 PM
#9
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Whoops! Your session has expired

The links on those pages aren't my problem. My problem is that when you add a product to the cart I always get a "Your session has expired" error. It's not about the links. Those are coded from the include file on the main site. The add to cart link should work regardless on the navigation links on the page.

If you could please go to :
http://www.tsilaorganics.com/catalog-new/index.php?main_page=product_info&products_id=225

And try to add the item to the cart, you'll see the actual issue.

All of my links will be correct when the finished site is launched.

Thanks.
Joe

30 Mar 2014, 11:21 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Whoops! Your session has expired

Could you post the files:
/category-new/includes/configure.php
/category-new/your_secret_admin/includes/configure.php

from the server without the username, password or secret admin directory name?

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!

31 Mar 2014, 1:24 AM
#11
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Whoops! Your session has expired

/category-new/includes/configure.php

<?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2014-01-30 11:06:43 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://www.tsilaorganics.com'); define('HTTPS_SERVER', 'https://www.tsilaorganics.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/catalog-new/'); define('DIR_WS_HTTPS_CATALOG', '/catalog-new/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/catalog-new/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/catalog-new/logs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_CHARSET', 'utf8'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'user'); define('DB_SERVER_PASSWORD', 'pass'); define('DB_DATABASE', 'db'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'file'); define('DIR_FS_SQL_CACHE', '/catalog-new/cache'); // EOF
31 Mar 2014, 1:27 AM
#12
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: Whoops! Your session has expired

/catalog-new/ADMIN_FOLDER/includes/configure.php

/**

  • @package Configuration Settings circa 1.5.1
  • @copyright Copyright 2003-2012 Zen Cart Development Team
  • @copyright Portions Copyright 2003 osCommerce
  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  • File Built by zc_install on 2014-01-30 11:06:43
    */

/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. /
/
**** The 2 files should be kept separate and not used to overwrite each other. ***********/

/**

  • WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
  • To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
    */
    define('HTTP_SERVER', 'https://www.tsilaorganics.com');
    define('HTTPS_SERVER', 'https://www.tsilaorganics.com');
    define('HTTP_CATALOG_SERVER', 'http://tsilaorganics.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.tsilaorganics.com');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'true');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/catalog-new/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/catalog-new/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
define('DIR_FS_ADMIN', realpath(dirname(FILE) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/catalog-new/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/catalog-new/logs');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'user');
define('DB_SERVER_PASSWORD', 'pass');
define('DB_DATABASE', 'db');

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'file');
define('DIR_FS_SQL_CACHE', '/catalog-new/cache');

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*

  • URLs for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
    
  • HTTP_SERVER plus DIR_WS_CATALOG or 
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
    */
    // EOF
31 Mar 2014, 3:57 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Whoops! Your session has expired

Those appear to be fine but your headers and links appear to be hard coded for your Live site with /catalog/ and and other files that run directly off your domain that are most likely causing your problems ...

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!

31 Mar 2014, 4:46 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Whoops! Your session has expired

It's a bit unusual to have a path like this with no leading set of folders before it. Not impossible, but very rarely done that way.

define('DIR_FS_CATALOG', '/catalog-new/');
```

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Mar 2014, 6:02 AM
#15
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Whoops! Your session has expired

Ajeh:

Those appear to be fine but your headers and links appear to be hard coded for your Live site with /catalog/ and and other files that run directly off your domain that are most likely causing your problems ...

Nods in agreement :yes:

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

31 Mar 2014, 12:49 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Whoops! Your session has expired

DrByte may have seen something I missed and you should check these 3:

define('DIR_FS_CATALOG', '/home/yourusername/public_html/catalog-new/');

define('DIR_FS_DIR_FS_LOGS', '/home/yourusername/public_html/catalog-new/logs');

define('DIR_FS_SQL_CACHE', '/home/yourusername/public_html/catalog-new/cache');

in each of your files ...

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!