Hello,

I just came accross this error while displaying a select list with a fresh D7 install :

Notice: Undefined variable: arguments in _webform_select_options_callback() (line 791 of /www/mysite.com/sites/all/modules/webform/components/select.inc).

Minor priority though because it can be hidden by not displaying the error messages in Drupal.

Comments

LeapFrog’s picture

Same notice appearing here when instantiating the webform:

Notice: Undefined variable: arguments in _webform_select_options_callback() (line 791 of /home/public_html/drupal/sites/all/modules/webform/components/select.inc).

New D7 installation with webform, simplenews component (upgraded to 7.x), webform validation plugins.

anavarre’s picture

After several tests it seems like it only happens when you load the pre-built option list (whatever it is). Let's say you now select "None", the error will go away and the "Options" textarea will still be populated with the values.

baronmunchowsen’s picture

I can confirm that the pre-built option seems to be causing this, and that removing the pre-built component, or choosing 'none' resolves the issue.

Anonymous’s picture

Having the same problem. My site also has an error from the profile2 module #1049178: Error when doing uninstall that has been messing with things. Can't say if they are related.

quincunx55555’s picture

Issue tags: +webform notice undefined variable workaround

A workaround is to select the desired pre-built option (which populates the key|value pairs for you), and save. Edit again, and un-select any pre-built options, and save. The key|value pairs will remain, and the error will no longer display. This work-around has only been tested with the "US States" pre-built option so far.

quicksketch’s picture

Status: Active » Closed (duplicate)

This has already been corrected in #1024748: Undefined variable notice in select.inc