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.
When creating a new field in Webform option element gives error message.
Warning: Missing argument 2 for pre_render_options(), called in /usr/share/drupal/includes/common.inc on line 5596 and defined in pre_render_options() (line 13 of /etc/drupal/all/modules/options_element/options_element.inc).
The view mode works fine without error message.
Comments
Comment #1
quicksketchSounds like you're running a modified version of Options Element from Acquia. The options_element.module doesn't even contain a pre_render_options() function unless this patch has been applied: #1009104: Move the organizational / functional alterations out of theme_options and into a pre_render function. Since I've refused that patch entirely, the best way to fix this problem is to simply download a fresh copy of Options Element and replace your modified copy.