Forums

Chronoforms V4 error db_save checkboxes

jerhome64 31 Dec, 2011
Hello,
I've done a form with 5 textarea, 8 radio button saved in database with the wizard. All works fine.
But when i add a checkboxes group i got the following error :
Parse error: parse error, expecting `T_VARIABLE' in E:\wamp\www\evoinfrasrv\administrator\components\com_chronoforms\form_actions\db_save\db_save.php(63) : eval()'d code on line 20
Fatal error: Call to a member function bind() on a non-object in E:\wamp\www\evoinfrasrv\administrator\components\com_chronoforms\form_actions\db_save\db_save.php on line 86


After that the error persist even i delete my checkboxes group. All the form seems to be corrupted.

I use the Handle array and i don't have any wrong characters in the names.

could you help me ?
Sincerely.
I wish you a happy new year
GreyHead 31 Dec, 2011
Hi jerhome64,

Could still be a 'bad' input name (and the matching database column name). It could be that you need to add a Handle Arrays action before the DB Save action to convert the checkbox array into a string to save in the database.

Bob
jerhome64 31 Dec, 2011
maybe,

but when i delete the checkboxes group, the probleme is still there. And before the checkboxes group all was ok.

What could i test ?
Sincerely
Jerome
GreyHead 01 Jan, 2012
Hi Jerome,

Have you checked the column names in the database table?

Bob
Max_admin 03 Jan, 2012
Hi Jerome,

You may simply tick your form and click "Create table" to see a list of the fields names (if you have V4 RC3.0 then it will show an error if there are any invalid names) then you can create a new table and connect to it instead of the old one if all is ok.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jerhome64 04 Jan, 2012
You were right !
sorry for the delay, but i would try many solutions.

Finaly i used "3559_1" and "2950_1" as field names. It crashes. With "router_1" and "switch_1" it's ok.

Thank you for your help.
GreyHead 04 Jan, 2012
Hi herhome64,

It will have crashed because PHP variable names (and I think MySQL column names) have to start with a letter.

Bob
This topic is locked and no more replies can be posted.