Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
[I'm not sure if this is a block or forms problem but there wasn't a forms component option.]
To replicate the error:
* Create a new block (admin/block/add)
* Edit the block
* Wait for the warning and then errror:
warning: Invalid argument supplied for foreach() in D:\kpsu\drupal\includes\form.inc on line 233.
Fatal error: Cannot use string offset as an array in D:\kpsu\drupal\includes\form.inc on line 259
Call Stack
# Function Location
1 {main}() D:\kpsu\drupal\index.php:0
2 menu_execute_active_handler() D:\kpsu\drupal\index.php:15
3 call_user_func_array () D:\kpsu\drupal\includes\menu.inc:359
4 block_admin_configure() D:\kpsu\drupal\includes\menu.inc:359
5 drupal_get_form() D:\kpsu\drupal\modules\block.module:389
6 _form_builder() D:\kpsu\drupal\includes\form.inc:74
7 _form_builder() D:\kpsu\drupal\includes\form.inc:282
8 _form_builder() D:\kpsu\drupal\includes\form.inc:282
9 _form_builder() D:\kpsu\drupal\includes\form.inc:282
Comment | File | Size | Author |
---|---|---|---|
#9 | 36029.patch | 1011 bytes | dopry |
#3 | block-configure-typo.patch | 1.18 KB | asimmonds |
Comments
Comment #1
chx CreditAttribution: chx commentedAsimmonds has an outstanding patch for this. I guess you have not seen it, 'cos likely it says somethin' about blocks and execute.
Comment #2
asimmonds CreditAttribution: asimmonds commentedThat would be http://drupal.org/node/35524
Comment #3
asimmonds CreditAttribution: asimmonds commentedSome are starting to complain on IRC:
[01:00] * saerdna_ whishes someone whos well'd up with the forms API could fix the bug in admin -> block -> configure
Here's a patch to fix the typo that causes this bug, I will reroll http://drupal.org/node/35524 if this is committed.
Comment #4
pfaocle+1 for that - this is a simple typo. Tested here and ready to commit.
Comment #5
lennart CreditAttribution: lennart commentedI can confirm that the patch works
Comment #6
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #7
(not verified) CreditAttribution: commentedComment #8
drummThis patch was incorrect. What is now the 4th option is supposed to be the #description.
Comment #9
dopry CreditAttribution: dopry commentedupdated and fixed #description rolled against 4.6.7-beta3
Comment #10
dopry CreditAttribution: dopry commentedoh yeah update status.
Comment #11
Dries CreditAttribution: Dries commentedGood catch. Committed to HEAD. Thanks.
Comment #12
(not verified) CreditAttribution: commented