I got this error on my site wcces.org (drupal 5.1)
warning: Invalid argument supplied for foreach() in /homepages/38/d163795790/htdocs/wcces/includes/form.inc on line 945.

regards

fuzi

Comments

coreyp_1’s picture

This is too little information to be able to figure out what's wrong.

What modules are you running? What were you doing when the error showed up? Can the error be repeated, and how?

- Corey

fuzi’s picture

the website: wcces.org
Hosting company: 1and1.com

PHP built On: Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
Database Version: 4.0.27-standard-log
PHP Version: 4.4.7
Web Server: Apache/1.3.33 (Unix)

drupal 5.1 + weblinks +adsense + image + flash gallery

When I log on as regular user, click "Who's new", then click "User"'s "Weblink" tab, the error displayed. error can be repeated.

If I log on as Admin, no problem

weblinks module is 5.x-1.7

fuzi
http://wcces.org

coreyp_1’s picture

OK, so the problem is with the Weblinks module, not Drupal core. In that case, you should submit a bug report. Then again, one may already exist, and perhaps you could help encourage to developers to hone in on this problem.

You might also check to see if the problem exists for all permission levels (anonymous users, logged-in users, administrator). The afore-mentioned bug report suggests that it only happens under the administrator's profile. If you're lucky, you're the only one who is experiencing the problem.

I'm sorry. I've never used the Weblinks module myself, and don't quite know how it incorporates itself into Drupal.

- Corey