PlayingNaked Posted December 2, 2006 Posted December 2, 2006 I am having a cluster of problems, some of which I have never had before, and I am stumped on what is wrong. Any help would be so greatly appreciated. I want to appologize in advance for not being able to find this issue already posted; even though I am sure it is there. Every time I refresh the page, maybe one out of 10 times it sees me logged in, the rest it calls me guest. This is my configure file define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'mysite.com'); 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', '/home/users/web/b999/pow.mysite/htdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Now, if i try hard enough, I can finally get through to the first of the checkout pages- this one being the one where the customer picks the shipping method; well I get this error at the top... Warning: Missing argument 2 for shoppingCart::attributes_price(), called in /hermes/web07/b999/pow.mysite/htdocs/includes/classes/order.php on line 222 and defined in /hermes/web07/b999/pow.mysite/htdocs/includes/classes/shopping_cart.php on line 260 Now there seem to be even more problems- such as the catagories listing things such as cactus, books- and other defaults.... I dont know whats going on anymore. Does this seem like it is going to just be a full re-install?
boxtel Posted December 2, 2006 Posted December 2, 2006 I am having a cluster of problems, some of which I have never had before, and I am stumped on what is wrong. Any help would be so greatly appreciated. I want to appologize in advance for not being able to find this issue already posted; even though I am sure it is there. Every time I refresh the page, maybe one out of 10 times it sees me logged in, the rest it calls me guest. This is my configure file define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'mysite.com'); 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', '/home/users/web/b999/pow.mysite/htdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Now, if i try hard enough, I can finally get through to the first of the checkout pages- this one being the one where the customer picks the shipping method; well I get this error at the top... Warning: Missing argument 2 for shoppingCart::attributes_price(), called in /hermes/web07/b999/pow.mysite/htdocs/includes/classes/order.php on line 222 and defined in /hermes/web07/b999/pow.mysite/htdocs/includes/classes/shopping_cart.php on line 260 Now there seem to be even more problems- such as the catagories listing things such as cactus, books- and other defaults.... I dont know whats going on anymore. Does this seem like it is going to just be a full re-install? You have installed contributions? normally the function attributes_price() in the shopping cart class does not take a second argument. I personally would use this: define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); or define('HTTP_COOKIE_DOMAIN', '.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.mysite.com'); but if you do not force cookies, wrong cookie settings would just result in the session being attached to the url. Treasurer MFC
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 You have installed contributions?normally the function attributes_price() in the shopping cart class does not take a second argument. I personally would use this: define('HTTP_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); or define('HTTP_COOKIE_DOMAIN', '.mysite.com'); define('HTTPS_COOKIE_DOMAIN', '.mysite.com'); but if you do not force cookies, wrong cookie settings would just result in the session being attached to the url. I will try changing my cookie settings; and yes, i installed only 1 addon- the paypal addon that comes with OSCommerce- is there an issue with this module?
boxtel Posted December 2, 2006 Posted December 2, 2006 I will try changing my cookie settings; and yes, i installed only 1 addon- the paypal addon that comes with OSCommerce- is there an issue with this module? I have no idea, I only know that that function only expects 1 argument, the products_id, so if it is complaining about a missing second argument I would say that the issue is with your shopping cart class. Treasurer MFC
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 I have no idea, I only know that that function only expects 1 argument, the products_id, so if it is complaining about a missing second argument I would say that the issue is with your shopping cart class. I tried changing my cookie names; and I am still seeing myself being logged in- then logged out. For example, I will try to log in, then add something to my cart, and it will be gone. After clicking on the banner (just refreshing the page) and i will be logged out, and logged in- almost every 4th or 5th time i will see my items. As for the other error- i cannot seem to duplicate it right now.
boxtel Posted December 2, 2006 Posted December 2, 2006 I tried changing my cookie names; and I am still seeing myself being logged in- then logged out. For example, I will try to log in, then add something to my cart, and it will be gone. After clicking on the banner (just refreshing the page) and i will be logged out, and logged in- almost every 4th or 5th time i will see my items. As for the other error- i cannot seem to duplicate it right now. what is the address? Treasurer MFC
boxtel Posted December 2, 2006 Posted December 2, 2006 sent via PM where are you storing your sessions? Treasurer MFC
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 where are you storing your sessions? I believe /tmp - the default
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 I believe /tmp - the default Session Directory /tmp cache directory is set to /tmp/ too
boxtel Posted December 2, 2006 Posted December 2, 2006 Session Directory /tmp cache directory is set to /tmp/ too in you configure.php file, set that to mysql so they are stored in the database. Treasurer MFC
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 in you configure.php file, set that to mysql so they are stored in the database. I dont want to get too emotional; but i love you thank you for the help- i cant tell you how frustrating it was
boxtel Posted December 2, 2006 Posted December 2, 2006 I dont want to get too emotional; but i love youthank you for the help- i cant tell you how frustrating it was well, don't get emotional too fast, did it help? Treasurer MFC
boxtel Posted December 2, 2006 Posted December 2, 2006 well, don't get emotional too fast, did it help? you were not losing the session and your cookies were fine but it simply looked like your session info was not saved. So, better keep it safe in your own database. Treasurer MFC
PlayingNaked Posted December 2, 2006 Author Posted December 2, 2006 you were not losing the session and your cookies were fine but it simply looked like your session info was not saved. So, better keep it safe in your own database. ok, thanks for the tip- seems to have worked
Recommended Posts
Archived
This topic is now archived and is closed to further replies.