Closed (duplicate)
Project:
Webform
Version:
7.x-3.6
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2011 at 16:11 UTC
Updated:
7 Feb 2011 at 05:05 UTC
Jump to comment: Most recent
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
Comment #1
LeapFrog commentedSame 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.
Comment #2
anavarreAfter 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.
Comment #3
baronmunchowsen commentedI 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.
Comment #4
Anonymous (not verified) commentedHaving 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.
Comment #5
quincunx55555 commentedA 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.
Comment #6
quicksketchThis has already been corrected in #1024748: Undefined variable notice in select.inc