New Zenner
- Join Date:
- Jan 2017
- Location:
- Morecambe
- Posts:
- 9
- Plugin Contributions:
- 0
"Your shopping cart is empty"
campdavebadges co uk
Since adding a SSL certificate and enabling it on my Zen Cart store, I am having the intermittent issue where it is displaying the message "Your Shopping Cart is Empty" when trying to add items to the basket.
I've googled the issue, and read several threads on this forum suggesting an issue with suhosin and adding the line
php_flag suhosin.session.encrypt off
To my .htaccess file. I've done this, to no effect
I'm hosted with hostgator, and after a lengthy online chat was told
Alright, with this, your php is actually using suphp, and not suhosin, so this shouldn't be effecting the php sessions' encryption.
My htaccess file is as follows:
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
#RewriteBase /zencart/
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
# Always use https for secure connections
# Replace 'www.example.com' with your domain name
# (as it appears on your SSL certificate)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.campdavebadges.co.uk/$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L,PT]
# alternative rewrite rule, seem to work on GoDaddy hosts http://codeigniter.com/wiki/Godaddy_Installaton_Tips/
# to use it, please make sure you comment out the rewrite rule above, then uncomment the line below
# RewriteRule ^(.*)$ /index.php?$1 [L]
#### EOF SSU
<IfModule mod_suphp.c>
suPHP_ConfigPath /home3/campdave
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
and my config file
<?php
/**
* @package Configuration Settings
* @copyright Copyright 2003-2016 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 Zen Cart Installer on Wed Jun 22 2016 08:34:12
*/
/*************** NOTE: This file is VERY similar to, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
/**
* Enter the domain for your store
* HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
* HTTPS_SERVER is your Secure/SSL webserver: eg-https://www.yourdomain.com
*/
define('HTTP_SERVER', 'https://www.campdavebadges.co.uk');
define('HTTPS_SERVER', 'https://www.campdavebadges.co.uk');
/**
* If you want to tell Zen Cart to use your HTTPS URL on sensitive pages like login and checkout, set this to 'true'. Otherwise 'false'. (Keep the quotes)
*/
define('ENABLE_SSL', 'true');
/**
* These DIR_WS_xxxx values refer to the name of any subdirectory in which your store is located.
* These values get added to the HTTP_CATALOG_SERVER and HTTPS_CATALOG_SERVER values to form the complete URLs to your storefront.
* They should always start and end with a slash ... ie: '/' or '/foldername/'
*/
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
/**
* This is the complete physical path to your store's files. eg: /var/www/vhost/accountname/public_html/store/
* Should have a closing / on it.
*/
define('DIR_FS_CATALOG', '/home3/campdave/public_html/');
/**
* The following settings define your database connection.
* These must be the SAME as you're using in your non-admin copy of configure.php
*/
define('DB_TYPE', 'mysql'); // always 'mysql'
define('DB_PREFIX', 'zen_'); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
define('DB_SERVER', 'localhost'); // address of your db server
define('DB_SERVER_USERNAME', '**********');
define('DB_SERVER_PASSWORD', '**************');
define('DB_DATABASE', '***************');
/**
* This is an advanced setting to determine whether you want to cache SQL queries.
* Options are 'none' (which is the default) and 'file' and 'database'.
*/
define('SQL_CACHE_METHOD', 'none');
/**
* Reserved for future use
*/
define('SESSION_STORAGE', 'reserved for future use');
/**
* Advanced use only:
* The following are OPTIONAL, and should NOT be set unless you intend to change their normal use. Most sites will leave these untouched.
* To use them, uncomment AND add a proper defined value to them.
*/
// define('DIR_FS_SQL_CACHE' ...
// define('DIR_FS_DOWNLOAD' ...
// define('DIR_FS_LOGS' ...
// End Of File
Thanks for any advice given