Forums

Warning invalid argument in chronoconnection.php

hpeterse 13 Jan, 2014
Hi,

I've updated to the latest ChronoConnect (4.0 RC3.2) and ChronoForms (4.0 RC3.0) with Joomla 2.5.17.
I've created some new ChronoConnections. One of these gives a warning:

Warning: Invalid argument supplied for foreach() in /home/deb57186/domains/tvgpd.nl/public_html/test/components/com_chronoconnectivity/libraries/chronoconnection.php on line 886

It's a copy of another CC, which works fine. I can't figure out why this warning appears. I'm pretty sure yesterday it worked fine, but today I'm having troubles. Hope someone can explain and solve this.

Regards, Hans
Max_admin 13 Jan, 2014
Hi Hans,

If there are no other bad side effects then you can simply set the "error reporting" to none under the Joomla global config!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
GreyHead 14 Jan, 2014
Hi Hans,

Please check the column names in the table and make sure that there are no spaces, dashes or other special characters and that all of them start with a letter a-z

Bob
hpeterse 15 Jan, 2014
Hi Bob,

That will probably the problem. I use underscore is column names. I've build several connections on the same table, but only one is having this problem. That's strange.
However, I'll fix the column names, although it's a lot of work to edit all forms and connections.

If you have a tool to make these changes easily, you help me a lot 😀 .
Anyway, thanks for your help.

Hans
Max_admin 15 Jan, 2014
Hi Hans,

Underscores are fine: "column_name", but dashes are not: "column-name".

If you change the columns names of some table which is used in many connections then you will have to update them all, so be careful, the underscore should be fine, and if the warning you get has no side effects then you can simply hide it the way I explained before!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
hpeterse 15 Jan, 2014
Right, I'll check things out before I change anything.
Thanks for your advice.

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