[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
CommentFileSizeAuthor
#9 36029.patch1011 bytesdopry
#3 block-configure-typo.patch1.18 KBasimmonds
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Active » Closed (duplicate)

Asimmonds has an outstanding patch for this. I guess you have not seen it, 'cos likely it says somethin' about blocks and execute.

asimmonds’s picture

asimmonds’s picture

Status: Closed (duplicate) » Reviewed & tested by the community
FileSize
1.18 KB

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

pfaocle’s picture

+1 for that - this is a simple typo. Tested here and ready to commit.

lennart’s picture

I can confirm that the patch works

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)
drumm’s picture

Version: » x.y.z
Status: Closed (fixed) » Active

This patch was incorrect. What is now the 4th option is supposed to be the #description.

dopry’s picture

FileSize
1011 bytes

updated and fixed #description rolled against 4.6.7-beta3

dopry’s picture

Status: Active » Needs review

oh yeah update status.

Dries’s picture

Status: Needs review » Fixed

Good catch. Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)