Buy Now
Sign in

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

lemur , June 17 2009, 07:53
L
lemur 43
June 17 2009, 07:53 #34862
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.
R
ranail 13
June 22 2009, 02:16 #35310
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?
admin 32
June 22 2009, 14:05 #35355
@lemur, which version ?

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

Regards
Max
R
ranail 13
June 22 2009, 20:35 #35423
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.
R
ranail 13
June 22 2009, 21:52 #35426
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
admin 32
June 23 2009, 07:41 #35456
Great, thanks for posting the fix!

Max