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 trying to change an exposed filter to checkboxes, using hook_form_views_exposed_form_alter(). I get this error message when I use ['#type'] = 'checkboxes'; :
Fatal error: Cannot create references to/from string offsets nor overloaded objects in /drupal7/includes/common.inc on line 6448
['#type'] = 'checkbox' works fine.
I'm running Drupal 7.16 and PHP 5.2.17.
Comments
Comment #0.0
wluisi CreditAttribution: wluisi commentedfixed typo.
Comment #1
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated, feel free to re-open with updated details if it's still a problem in the latest release.