Hello
i have a form that i created long time ago., and i am only getting the error now.
when someone fill the form and click submit
it brings this:
Thank you for submitting the form
We will get back to you as soon as possible
Fatal error: Call to a member function bind() on a non-object in components\com_chronocontact\libraries\customcode.php(59) : eval()'d code on line 13
Please HELP!
i have a form that i created long time ago., and i am only getting the error now.
when someone fill the form and click submit
it brings this:
Thank you for submitting the form
We will get back to you as soon as possible
Fatal error: Call to a member function bind() on a non-object in components\com_chronocontact\libraries\customcode.php(59) : eval()'d code on line 13
Please HELP!
Hi gothicevil,
Which version of ChronoForms is this? Looking at the current release that looks like a problem coming from the code in line 13 of one of the OnSubmit boxes. But bind() would be unusual code to find there :-(
More likely it's coming from the Autogenerated code
Have you made any changes to the database table? It looks as though ChronoForms can't load the table record from the database.
Bob
Which version of ChronoForms is this? Looking at the current release that looks like a problem coming from the code in line 13 of one of the OnSubmit boxes. But bind() would be unusual code to find there :-(
More likely it's coming from the Autogenerated code
Have you made any changes to the database table? It looks as though ChronoForms can't load the table record from the database.
Bob
i did not edit the database table at all.
it was working all fine and then suddently its like this.
i tried even to create a NEW table. successfully created but still the same problemface-meh-blank
this is the auto generated code
it was working all fine and then suddently its like this.
i tried even to create a NEW table. successfully created but still the same problemface-meh-blank
this is the auto generated code
<?php
$MyForm =& CFChronoForm::getInstance("MIBA");
if($MyForm->formparams("dbconnection") == "Yes"){
$user = JFactory::getUser();
$row =& JTable::getInstance("chronoforms_mibafinal", "Table");
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16).md5(uniqid(mt_rand(), true));
JRequest::setVar( "recordtime", JRequest::getVar( "recordtime", date("Y-m-d")." - ".date("H:i:s"), "post", "string", "" ));
JRequest::setVar( "ipaddress", JRequest::getVar( "ipaddress", $_SERVER["REMOTE_ADDR"], "post", "string", "" ));
JRequest::setVar( "uid", JRequest::getVar( "uid", $inum, "post", "string", "" ));
JRequest::setVar( "cf_user_id", JRequest::getVar( "cf_user_id", $user->id, "post", "int", "" ));
$post = JRequest::get( "post" , JREQUEST_ALLOWRAW );
if (!$row->bind( $post )) {
JError::raiseWarning(100, $row->getError());
}
if (!$row->store()) {
JError::raiseWarning(100, $row->getError());
}
$MyForm->tablerow["jos_chronoforms_mibafinal"] = $row;
}
?>
Hi gothicevil,
Well, something changed somewhere.
Line 13 in the autogenerated code is
If $row doesn't exist then this row presumably failed
You can try refreshing the DB Connection for the form. Set "Enable data storage" to 'No'; Apply the form to save it; then set "Enable data storage" back to 'Yes' and Save the form again.
Bob
Well, something changed somewhere.
Line 13 in the autogenerated code is
if (!$row->bind( $post )) {and that fits with the error message you are seeing.If $row doesn't exist then this row presumably failed
$row =& JTable::getInstance("chronoforms_mibafinal", "Table");That means that ChronoForms can't find the table information for the jos_chronoforms_mibafinal table. You can try refreshing the DB Connection for the form. Set "Enable data storage" to 'No'; Apply the form to save it; then set "Enable data storage" back to 'Yes' and Save the form again.
Bob
This topic is locked and no more replies can be posted.
