Hello,
I'm new to the forums and new to OS Commerce and MS2-Max and am working on setting up a new site for my business. I had been developing a php cart from scratch but I stumbled upon OS Commerce and then MS2-Max and while they don't do everything I need these are GREAT TOOLS and I'd love to use these and save myself some time and headache.
I do have one problem though. I haven't gotten into modifying any code really yet, just modified the header and the footer is all really, so the installation should be identical to a default install for the most part. I have duplicated the problem with both OSCommerce and MS2-Max.
After setting up the site w/ SSL enabled, and sessions stored to MySQL, ocassionaly I have trouble registering a new account. Sometimes things work fine and sometimes they don't. The problem I get is after entering all of the user information, I am presented with the same registration page again with all the fields blank. If I hit refresh in IE and select to post the form data again from this point the account is created successfully, even though the form is blank, or if I fill out the form and submit again it usually goes through successfully at this point as well.
This is not a consistent problem, sometimes I can register new accounts with no problems whatsoever and sometimes this occurs. I have had the best luck duplicating this product by first adding an item to the cart and registering an account before checkout, and entering all fields in the account creation form (Business Name, Fax, etc). Again sometimes it works without problem, sometimes I get the blank form again and after I fill it out again or hit refresh it usually works.
The problem seems to be occuring on line 182 of create_account.php after the following code is executed:
tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);
But I am a php novice and am not entirely sure this is the case, just my best guess so far as to where things go wrong.
When the problem is occuring and I am presented with the login form again, no information had been submitted to the DB, so the form had submitted but for some reason I am being bounced back to the registration page.
My site is here:
http://new.redrock4x4.com/catalog
The site is a mess right now really as I'm just getting started on things, none of the links up top or on the side work yet really, other than the manufacturers drop down, search box, and categories listing at the bottom right.
I have had the best luck duplicating the problem by taking the following steps:
1) Go to http://new.redrock4x4.com/catalog
2) Click to create an account from the default introduction text (the ssl certificate will pop up a warning, accept this as it is for www.redrock4x4.com not new.redrock4x4.com)
3) Register a new account
About 95% of the time the setup succeeds, so if you try this you may need to run it through a dozen times or so with different information, but it unfortunately does continue to stop working on a pretty regular basis so I feel it is a problem that needs to be figured out if I am to use this cart.
One thing I've noticed that may or not be related that causes the problem to occur, is if I enter the phone number in a normal format 555-555-5555 and then the fax w/o dashes like so 5555555555 it seems to occur more likely than not, however this could just merely be a concidence. It will still work with the numbers in a different format most of the time too.
Thanks in advance for any help you are able to offer, if you need any information on my configuration please let me know and I'll be glad to post whatever is necessary to troubleshoot this.
Bookmarks