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

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.