osCmax v2.5 User Manual
Results 1 to 10 of 10

Runtime error when creating account

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. ...

      
  1. #1
    Lurker
    Join Date
    Sep 2003
    Posts
    3
    Rep Power
    0


    Default Runtime error when creating account

    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. #2
    Lurker
    Join Date
    Sep 2003
    Posts
    3
    Rep Power
    0


    Default BTW

    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. #3
    Lurker
    Join Date
    Sep 2003
    Posts
    3
    Rep Power
    0


    Default More Info

    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. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  6. #6
    New Member
    Join Date
    Dec 2002
    Posts
    12
    Rep Power
    0


    Default

    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. #7
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    Default

    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. #8
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    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. #9
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    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.

  10. #10
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    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');
    before

    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">
    then refresh the page and click continue, then up pops a dialogue message with the warnings about the empty fields.

    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);"'
    since the form checking is handled by create_account.php rather than the javascript function check_form.

Similar Threads

  1. Product attributes Stock runtime error
    By kc_davis in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 01-19-2006, 11:16 AM
  2. 1064 error when creating new account
    By CTapia in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 10-01-2004, 02:20 AM
  3. Runtime Error on create_account.php
    By batyushki in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 05-03-2004, 08:58 AM
  4. Error when creating account
    By herwig in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 12-14-2003, 10:19 AM
  5. Fatal error in sessions.php when creating a new account
    By f10 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-14-2003, 10:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •