warning: Invalid argument supplied for foreach()
HS - December 7, 2008 - 04:45
| Project: | Link To Us |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I'm getting the following error after install and when I access admin/settings/link_to_us
warning: Invalid argument supplied for foreach() in /home/islandcricket/islandcricket.lk/includes/form.inc on line 1194.

#1
Fixed with http://drupal.org/cvs?commit=161942.
#2
Hi Gman,
I just got the -dev from Jan 02 and I still get this error!
Did you forget checking your changes in?
Thank you.
Alexis Wilke
FYI -- it happened only the very first time. Now, if I go back to the page, it works fine. So I guess there is something about going to the settings when we did not yet Save anything...
P.S. I followed your link to the CVS, it looks like a D5 fix, not D6...
P.P.S. Well... I tried on another site and it worked just fine. No error... It is a different server so for sure it is not a sharing "problem" here. Hmmm...
#3
Did you download a new version for the new site? I am wondering if you received a nightly snapshot that didn't include the update. I wasn't able to see the issue when I tried on a new site.
#4
Discovered it was the default value issue, set to NULL instead of array(). Fixed in D5 and D6 versions.
#5
Gman,
Looks like you got it now. No, it was the same code for both sites. I was also surprised it worked on one and not the other. I use the same DB and everything... Anyway, relatively minor if you ask me 8-)
Thank you.
Alexis
#6
Automatically closed -- issue fixed for two weeks with no activity.