Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2009 at 14:11 UTC
Updated:
12 Jun 2026 at 11:16 UTC
Jump to comment: Most recent
Comments
Comment #1
mr.baileysErrors like "... illegal offset ... in includes/form.inc on line ..." are almost always caused by broken code elsewhere. In this case, the $type parameter that is passed to _element_info is either hardcoded (used once in core to set it to 'select', or populated from the '#type' value on a form element.
If people set '#type' to something else than a string (or possibly if they leave it empty), then things will break with the error you indicate. However, I think the general consensus is that core is not patched to prevent these errors, as the faulty code itself should be fixed. This is refered to as "not babysitting broken code"...
Setting this to "won't fix" because of that reason. Also marking this as a feature request ("add code to ignore faulty input") instead of a bug.
Comment #2
quietone commentedUpdating tags per Issue tags field and Issue tags -- special tags and for issue #3565085: Drupal core issue tag cleanup.