Array to string conversion - chronocontact.php on line 423

bstj 02 Mar, 2009
I am not sure if this is a bug or an installation issue or I have been stupid, but I have done several searches of the forums and can find no similar cases so...

I am getting the following messages after the successful submission of a form:
Notice: Array to string conversion in /home/default/bizshare.org.uk/user/htdocs/components/com_chronocontact/chronocontact.php on line 423

Notice: Array to string conversion in /home/default/bizshare.org.uk/user/htdocs/components/com_chronocontact/chronocontact.php on line 559

These appear above the after submit text.

Any help much appreciated.

Ben
GreyHead 02 Mar, 2009
Hi Ben,

I've never seen that error before as far as I recall, it looks as though ChronoForms can't find the list of field names for your form.

[sendfb][/sendfb]

Bob
bstj 02 Mar, 2009
Thanks Bob,

File attached.
GreyHead 02 Mar, 2009
Hi Ben,

The problem is connected to the two checkboxes that you have with the same array name. I'm not exactly sure why but they don't make sense as they are. If you make them type='radio' the problem goes away and you can only check one or the other.

Bob
bstj 03 Mar, 2009
Many thanks,
Ben
nml375 08 Mar, 2009
I'm not sure this is related, but I noticed there was no value for the handlepostedarrays config-setting. Hence, array fields would not be imploded to a comma-separated string, when stored in the $fields[$name] array.
Looking at the form, using radiobuttons would make more sense, and I'm not sure you'd need to use arrays for these in the first place (contrary to checkboxes).
Max_admin 09 Mar, 2009

but I noticed there was no value for the handlepostedarrays config-setting.



good catch, that's it then, may be the form was restored from older version! :?

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.

VPS & Email Hosting 20% discount
hostinger