Forums

Error messages

jkitlas 17 May, 2011
So I just completed my first form. All looked good until I attached the table to it. I followed the directions in the 'CFV4_db_save' document, but I got this result. I'm a student working on a project for a professor and really need some help with this.

Frontend:

Warning: Invalid argument supplied for foreach() in /home/jqin/public_html/libraries/joomla/database/database/mysql.php on line 701

Warning: Invalid argument supplied for foreach() in /home/jqin/public_html/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 33

Parse error: syntax error, unexpected '-', expecting '{' in /home/jqin/public_html/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(44) : eval()'d code on line 3

Fatal error: Call to a member function bind() on a non-object in /home/jqin/public_html/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 67



Backend

Warning: Invalid argument supplied for foreach() in /home/jqin/public_html/libraries/joomla/database/database/mysql.php on line 701

Warning: Invalid argument supplied for foreach() in /home/jqin/public_html/administrator/components/com_chronoforms/admin.chronoforms.php on line 372

Warning: Invalid argument supplied for foreach() in /home/jqin/public_html/administrator/components/com_chronoforms/views/list_data.php on line 11

GreyHead 18 May, 2011
Hi jkitlas,

You probably have a dash '-' in one of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.

Bob
316bquinn 19 May, 2011
I am getting the same error messages...I went through my input data and there are no dashes, spaces, ect. I have a feeling it has something to do with the save_db on my form. Enable=Yes, table=jos_chronoforms_data_mynewform, Model ID=exhibitor_data Save Under Model ID=No.
When I go into the specific file"db_save.php" line 10 wants the form name it is blank. Any other ideas as to why it is not saving?
Barb

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/b/a/r/barbarajean58/html/GemstreetUSA2/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(44) : eval()'d code on line 10

Fatal error: Call to a member function bind() on a non-object in /home/content/b/a/r/barbarajean58/html/GemstreetUSA2/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 67

The form url is http://topdogdesign.us/GemstreetUSA2/exhibitors

Thank you
GreyHead 21 May, 2011
Hi Barb,

I created a copy of your form from the page source and that all works fine and saves data to the database without any errors :-(

Please try changing Model ID=exhibitor_data to the default value of chronoform_data I think that exhibitor_data will only work if you have names some or all of the form inputs to return results in this array e.g. name="exhibitor_data['email']"

Bob

PS The first error message actually refers to line 44 of db_save.php; this line evaluates some code and the error is in line 10 of the evaluated code. I don't currently see why it would fail there though :-(
This topic is locked and no more replies can be posted.