dalewoo Posted June 9, 2010 Posted June 9, 2010 Hi everyone, I know this is an old question. I click on "Add to cart" and see "Your Shopping Cart is empty!" on shopping_cart.php. I did search on this forum and found lots of solution. However, the problem is not fixed even I have tried all of them. I am using Yahoo webhosting which means register_global is off (Will this be part of the problem?). Here is my configure.php I appreciate your help! <?php // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxx.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://xxx.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'xxx.com'); define('HTTPS_COOKIE_DOMAIN', '/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'mysql'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'store'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
rudolfl Posted June 9, 2010 Posted June 9, 2010 Try turning register_global on. To do so, create php.ini file in the root of your shop (/catalog directory if you use it). Place this line inside of the file: register_globals = On Rudolf
dalewoo Posted June 9, 2010 Author Posted June 9, 2010 Try turning register_global on. To do so, create php.ini file in the root of your shop (/catalog directory if you use it). Place this line inside of the file: register_globals = On Rudolf Thanks for your reply. Is there any way to fix it with register global off. Yahoo does not allow me to upload .htaccess and php.ini cannot make any changes. This is from Yahoo FAQ Q: Does Yahoo! support the register_globals directive? A: The PHP community has chosen to deprecate the register_globals directive, as its misuse could result in insecure code. To help protect all of our customers, Yahoo! now defaults register_globals off for all accounts opened after May 2008. If you signed up for your Web Hosting account before May 2008, register_globals is still on by default but will be disabled after October 1, 2009. Although we support the use of PHP with your site, we cannot help you write or debug your scripts. For help updating your scripts, we recommend that you contact your developer. If you write or update your own scripts, for your security, we recommend reviewing the PHP community's documentation on register_globals, or visiting the PHP Group web site. Note that register_globals will soon be removed completely from PHP, so we recommend writing scripts that will not rely on the directive.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.