warning: Invalid argument supplied for foreach() in /var/www/html/includes/form.inc on line 1181.
That is what I get anytime I try and mess with the author information block on Drupal 6.
Hopefully someone can confirm this as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | profile-fix-block-warning-225859-6.patch | 1009 bytes | webchick |
| #1 | profile.patch | 781 bytes | Folkert |
Comments
Comment #1
Folkert commentedActually that has little to do with block.module and more with profile.module.
In the profile_block function the variable '$form['profile_block_author_fields'] has it's default_value set to NULL as in
Added a patch which clears the error by setting the default value to array() instead of NULL
Please review, first drupal patch
Comment #2
matthew petty commentedThis is still an issue for 6.1...
Comment #3
pobster commentedIndeed it is... Still at least now I know how to fix it!
Comment #4
linguaetc commentedI also receive the error in 6.2. I changed the NULL to array() in profile.module but the error remains. I logged out and back in with no success. What should I do for the change to take affect?
Comment #5
JMowery commentedNeeds to be fixed or integrated.
Comment #6
webchickYou can reproduce this by going to admin/build/block/configure/profile/author-information with profile module enabled. This wasn't clear to me from the original description.
Applies to 7.x, too, with some fuzz, and solves the issue for me. I'm not sure why this didn't work for linguaetc. Here's a clean re-roll for 7.x.
While I don't think this qualifies as a "critical" bug, it is very nasty for Drupal to be displaying errors like this.
Comment #7
webchickFixing title somewhat.
Comment #8
dries commentedCommitted to CVS HEAD and DRUPAL-6. Thanks webchick and Folkert.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
codex73 commentedWhere do i add this patch ?
Comment #11
Terysa commentedWhen I installed tinyMCE and try to add a profile - this error
warning: Invalid argument supplied for foreach() in includes/form.inc on line 1181.
Comment #12
asimmonds commented@Terysa: please do not hijack issues, you possibly want http://drupal.org/node/245531