Forums

Warning: array_keys() [function.array-keys] ....

lemur 17 Jun, 2009
Hi,

my form works in frontend, but in backend on click on form link i get over the form a message:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/vhosts/example.de/httpdocs/components/com_chronocontact/plugins/cf_profile.php on line 172

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/example.de/httpdocs/components/com_chronocontact/plugins/cf_profile.php on line 173



1. how can I remove it (not the message - the CAUSE) ?

2. if it remains, is this dangerous?

Thanks.
ranail 22 Jun, 2009
I am getting similar error on attempt to create my first project with ChronoConnectivity...

Warning: Invalid argument supplied for foreach() in C:\Data\WebServer\xampp2\htdocs\lss090611\components\com_chronoconnectivity\chronoconnectivity.html.php on line 172

???

any idea on what could be causing this?
Max_admin 22 Jun, 2009
@lemur, which version ?

@ranail, looks like its not the latest one, please get V2 RC1

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ranail 22 Jun, 2009
Hi Max,

Installed 2 rc1 ontop of 1.2 and got the same error but different php file... connection.php instead of chronoconnectivy.html.php

Warning: Invalid argument supplied for foreach() in C:\Data\WebServer\xampp2\htdocs\lss090611\components\com_chronoconnectivity\libraries\connection.php on line 264


Any field setup entries I could be missing or keying incorrectly to produce this?

R.
ranail 22 Jun, 2009
RESOLVED:

I put it through debug and found the SQL was failing.
I had a field name called "Group" and that is a reserved word.
Changed the field name and it works...

Rusty
Max_admin 23 Jun, 2009
Great, thanks for posting the fix!

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.