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/...../includes/form.inc on line 1194.

Comments

Gman’s picture

Status: Active » Fixed
AlexisWilke’s picture

Status: Fixed » Active

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...

Gman’s picture

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.

Gman’s picture

Status: Active » Fixed

Discovered it was the default value issue, set to NULL instead of array(). Fixed in D5 and D6 versions.

AlexisWilke’s picture

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

HS’s picture

Issue summary: View changes

Removed domain name from code.