Forums

PHP warnings when submitting the form to database

jack.wolff 17 Oct, 2013
Hi I have a form named referrals and I am trying to save the data captured by the form to the db table I have created also named referrals.

I have followed the tutorial on how to do it but when when I submit the form, it gives out this error:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xxx/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 85

Warning: implode() [function.implode]: Invalid arguments passed in /home/xxx/libraries/joomla/database/database/mysql.php on line 540

I have tried creating multiple tables with and without the table prefix but it still doesn't work.

Please help me.
Max_admin 17 Oct, 2013
Hi Jack,

What's your Chronoforms version ?

The messages you posted are not errors but warnings, did you check if the data was saved or not ?

Please show us a screenshot for the "DB Save" settings!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jack.wolff 17 Oct, 2013
Hi Max,

The version of my Chronoform is 4.0 RC3.1.

Here are my settings:


The inputs of the user are not saved but there is a new record that gets added to the table but the fields are empty except the id.

Max_admin 17 Oct, 2013
Hi Jack,

Please download the latest version and install it OVER yours, then test again and let us know!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jack.wolff 17 Oct, 2013
Hi Max,

All good now.

I just downloaded the latest version of the component then replaced the files inside:
/administrator/components/com_chronoforms/form_actions/db_save with the files of the latest version.

Tested it and it works now🙂

Thanks a lot!
Max_admin 20 Oct, 2013
Hi Jack,

No problems, but you could simply just install it OVER yours, using the extensions manager, but without uninstalling first, this would apply updates to other files as well.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.