osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-19-2003, 10:15 AM
Lurker
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjscannondale
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-20-2003, 08:15 PM
Lurker
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjscannondale
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-29-2003, 04:25 PM
Lurker
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kjscannondale
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-29-2003, 05:59 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-15-2003, 04:11 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,074
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-15-2003, 07:20 PM
New Member
 
Join Date: Dec 2002
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
PaintballGT
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!
__________________
Tom
www.reloadedpb.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-14-2004, 11:15 AM
New Member
 
Join Date: Jan 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jptechnical
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-03-2004, 09:56 AM
Member
 
Join Date: Aug 2003
Location: Southampton UK
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
NickW
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()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-03-2004, 10:18 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 07-03-2004, 05:39 PM
Member
 
Join Date: Aug 2003
Location: Southampton UK
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
NickW
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax