Pingus Posted September 23, 2006 Posted September 23, 2006 Hello, i have shop on adress www.mcpservis.cz/obchod/ and i have a big problem. When i want to login then i am redirect to cookie_usage.php When i am in admin i can se only fist page of settings in configuration, when i click for example on cache im still in my shop settings! I've spend a lot of days by seraching for answer, but no asnwer come. Please help me! {[(It's URGENT)]} Thanks My configure.php for shop: define('HTTP_SERVER', 'http://www.mcpservis.cz'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.mcpservis.cz'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/obchod/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/obchod/'); 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', '/home/users/******/mcpservis.cz/web/obchod/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '************'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '************'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' My config.php for admin section: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.mcpservis.cz'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mcpservis.cz'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/users/******/mcpservis.cz/web/obchod/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/obchod/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/users/******/mcpservis.cz/web/obchod/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/obchod/'); // absolute path required define('DIR_FS_CATALOG', '/home/users/******/mcpservis.cz/web/obchod/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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', DIR_WS_CATALOG . 'includes/languages/'); 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_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '***********'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '************'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
pynchon Posted September 23, 2006 Posted September 23, 2006 Hi Pingus the only thing I can see that may be an issue with the config file is the line define('HTTP_COOKIE_DOMAIN', 'http://www.mcpservis.cz'); this I think (by comparing it to the structure in my own) should be define('HTTP_COOKIE_DOMAIN', 'mcpservis.cz'); this will also be reflected in the admin config.php file too ... Hope this helps John K
Pingus Posted September 24, 2006 Author Posted September 24, 2006 Yes, now i can login, but i can't add items into cart. Admin still not working. Thanks
boxtel Posted September 24, 2006 Posted September 24, 2006 Yes, now i can login, but i can't add items into cart.Admin still not working. Thanks suggest you stop forcing cookies until you have verified that they function properly. Treasurer MFC
Pingus Posted September 24, 2006 Author Posted September 24, 2006 suggest you stop forcing cookies until you have verified that they function properly. Yes, i set in phpMyAdmin Force Cookies to true and now shop send cookies to me, bu i still cant add items to shopping cart. Thanks
boxtel Posted September 24, 2006 Posted September 24, 2006 Yes, i set in phpMyAdmin Force Cookies to true and now shop send cookies to me, bu i still cant add items to shopping cart.Thanks first of all, you don't set force cookies via phpMyAdmin. Second, I adviced you to turn it off untill you got your setting right. Third, osc will always send you cookies whether you force them or not. Treasurer MFC
Pingus Posted September 24, 2006 Author Posted September 24, 2006 first of all, you don't set force cookies via phpMyAdmin.Second, I adviced you to turn it off untill you got your setting right. Third, osc will always send you cookies whether you force them or not. My admin didn't work so i have to set it in database thru phpMyAdmin and osc didn't send cookies before. I can't change any thing in admin i'm very sad because i spend a lot of time with this and i need to have complete running shop on thuesday, so sorry if i am so bad. I don't have a lot of time so i'm not happy. Thanks
boxtel Posted September 24, 2006 Posted September 24, 2006 My admin didn't work so i have to set it in database thru phpMyAdminand osc didn't send cookies before. I can't change any thing in admin i'm very sad because i spend a lot of time with this and i need to have complete running shop on thuesday, so sorry if i am so bad. I don't have a lot of time so i'm not happy. Thanks I am not sure what is wrong with your admin but I do believe it is better if you resolve that first before resorting to alternative measures. Your shop does not really need cookies to work unless you force them so leave them as is for now an concentrate on getting admin to work properly, would you not agree? Treasurer MFC
Pingus Posted September 26, 2006 Author Posted September 26, 2006 Super! For everyone who have this problem on php 5.0.5 Set in your php.ini register_long_arrays on and then restart apache It works for me! Thanks for all your help now my shop works perfect. John
Pingus Posted September 26, 2006 Author Posted September 26, 2006 Super!For everyone who have this problem on php 5.0.5 Set in your php.ini register_long_arrays on and then restart apache It works for me! Thanks for all your help now my shop works perfect. John I've also found this topic. Hope it helps. PHP5 Settings
l0ckx Posted December 21, 2006 Posted December 21, 2006 first of all, you don't set force cookies via phpMyAdmin.Second, I adviced you to turn it off untill you got your setting right. Third, osc will always send you cookies whether you force them or not. this type of respnose is totally worthless... why don't you explain how instead of telling somebody they did it wrong. i'm having the same problem and your reply helps nobody. how do you set force cookies to false ?
xronis Posted December 22, 2006 Posted December 22, 2006 this type of respnose is totally worthless... why don't you explain how instead of telling somebody they did it wrong. i'm having the same problem and your reply helps nobody. how do you set force cookies to false ? go to your admin under configuration,find sessions and u will see it
Recommended Posts
Archived
This topic is now archived and is closed to further replies.