Make sure that all of the form elements on your page have a type attribute to them.
I have seen this error occur when there are form elements that do not have a type attribute:
<input name="fName" id=fName" value="" />
This should be changed to:
<input type="text" name="fName" id=fName" value="" />