This is a discussion on Runtime error when creating account within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I'm pretty new to osCommerce. I love it but now I've got a problem that wasn't there from the beginning. ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I'm pretty new to osCommerce. I love it but now I've got a problem that wasn't there from the beginning. When creating a new account: The State box does Not have a drop-down menu. Then, when I submit I get a runtime error on line 211: ---> Code: <form name="create_account" action="http://www.dotcom-solutions.com/catalog/create_account.php" method="post" onSubmit="return check_form(create_account);"><input type="hidden" name="osCsid" value="2120a7bb137edb3e72c3d109971c17ca" /><input type="hidden" name="action" value="process"><table border="0" width="100%" cellspacing="0" cellpadding="0"> If I don't debug it sends me back to the create account page telling me I have to choose a state from the drop down menu. This time the State field IS a drop down menu. I select a state but I still get the run-time error. Accounts are being created successfully. Please help! I've re-uploaded the creat_account.php file. I've looked for account_details.php but can't find it under \includes nor in my original files. This may be two unrelated issues.... don't know anymore. Thanks, Kendell |
|
#2
| |||
| |||
| I just checked this out on my Linux box where I first installed osCommerce to try it out (AABOX version) and it does the same thing. I guess it never worked for me I just thought it did. Any suggestions would be great. I could reinstall it but since it's messed up on the original it will probably be messed up again. I checked my CHMOD settings on the catalog/includes folder and it's 755. I've re-uploaded includes/create_account.php and Templates/create_account.tpl.php. Thanks |
|
#3
| |||
| |||
| Okay. I've gotten no responses yet but here's some more info. I just completely deleted my Catalog directory. I download version 1.5 and installed it and I'm getting the same thing. It may be a problem with the form_checker.js.php file. I looked on the osCommerce Demo Store and it's messed up with the state/drop-down menu too. You have to type in the state, but when you click to submit, it comes back and tells you to choose a state from the drop-down menu. Has anyone else had problems with this? Thanks, kjscannondale |
|
#4
| ||||
| ||||
| I cannot duplicate this error in MS2-MAX. I have not seen it, and judging from the lack of response, others have not seen it either. I will look and see if I can find any more on this for you.
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
|
#5
| ||||
| ||||
| Has anyone else run into this error? I have one other person who has, but that is it. And I can find no problem. This is a javascript error, but I cannot reproduce it on any of my computers...
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
|
#6
| |||
| |||
| I do not get this error, but I do not have a drop down fro State either. It is a normal Ms2-Max but I changed the order of fields to fit US standards. Good luck! |
|
#7
| |||
| |||
| Confirm this problem with OSCMax 1.5 in IE 5.5 and 6.0 but not Mozilla Firebird .7 However, when I tried to reproduce it again after deleting the user it didnt error, even thought it did it several times previous with no changes. Any ideas? |
|
#8
| |||
| |||
| My setup is a new install of MAX with php 4.2.3 on IIS using IE6 SP1 and I'm getting the javascript runtime error "object required" when the continue button is clicked in the create_account page.php page. I've traced it to the following line in the form tag: onSubmit="return check_form(create_account);" Not sure where this function is; if I search for 'function check_form' I find the following occurances: includes\k.js.php(95): function check_form(form_name) includes\javascript\advanced_search.js(3): function check_form() includes\javascript\form_check.js.php(95): function check_form(form_name) includes\classes\payment.php(100): 'function check_form() |
|
#9
| ||||
| ||||
| Think I at one time saw this myself, seemed to me it was related to security settings in IE. To be honest i cant remember now.
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#10
| |||
| |||
| After a couple of pints of beer I think I've worked this out! If you open create_account.php in Mozilla and click continue with no fields completed then it doesn't create a javascript error and the uncompleted field warnings are shown in red at the top of the page. However if you open Mozilla's Javascript debug console, access the same page in IE6 and click continue then the console reports "Error: check_form is undefined" If in file create_account.tpl.php you type: Code: require('\includes\form_check.js.php');
Code: echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
So It seems that the following can be removed from the first line of code in create_account.tpl.php Code: , 'onSubmit="return check_form(create_account);"' |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product attributes Stock runtime error | kc_davis | osCMax v2 Features Discussion | 0 | 01-19-2006 11:16 AM |
| 1064 error when creating new account | CTapia | osCommerce 2.2 Installation Help | 2 | 10-01-2004 02:20 AM |
| Runtime Error on create_account.php | batyushki | osCMax v1.7 Discussion | 1 | 05-03-2004 08:58 AM |
| Error when creating account | herwig | osCommerce 2.2 Installation Help | 1 | 12-14-2003 10:19 AM |
| Fatal error in sessions.php when creating a new account | f10 | osCommerce 2.2 Modification Help | 1 | 06-14-2003 10:11 PM |