Closed (fixed)
Project:
Webform
Version:
7.x-3.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 06:18 UTC
Updated:
6 Mar 2011 at 00:51 UTC
Jump to comment: Most recent file
I get this error when I try to add new field
* Notice: Undefined variable: cid in webform_component_list() (line 869 of C:\xampp\htdocs\drupal7\sites\all\modules\webform\includes\webform.components.inc).
* Notice: Undefined index: in webform_component_list() (line 869 of C:\xampp\htdocs\drupal7\sites\all\modules\webform\includes\webform.components.inc).
If there is any solution, or help it would be so grateful.
Thanks in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | error-webform.png | 12.62 KB | Bright Web Design |
| #6 | error-webform.png | 12.62 KB | Bright Web Design |
| #5 | webform_cid_notice.patch | 1.07 KB | quicksketch |
Comments
Comment #1
quicksketchNotices do not affect the functioning of your site in any way, they're just PHP saying, "I had to make an assumption here, but nothing is actually wrong." Stable releases of Drupal disable the display of notices entirely, but during development versions (including the RC versions) have this turned on. You can adjust the setting to only show errors and warnings at "admin/config/development/logging".
In any case though we should be able to get rid of these notices in the Webform code, but it's not a priority unless it's actually causing any trouble.
Comment #2
Bright Web Design commentedThank you so much for the help and advice. Best wishes for your development works.
Comment #4
quicksketchThis bug still exists even if it's minor.
Comment #5
quicksketchI've fixed this minor issue with the attached patch.
Comment #6
Bright Web Design commentedI am really sorry for re-opening it again, but sadly that patch didn't fix the error.
Here is the error again;
Thank you always for your great support and works.
Comment #7
Bright Web Design commentedI am really sorry for re-opening it again, but sadly that patch didn't fix the error.
Here is the error again;
Notice: Undefined variable: arguments in _webform_select_options_callback() (line 791 of C:\xampp\htdocs\drupal7\sites\all\modules\webform\components\select.inc).Thank you always for your great support and works.
(I forgot to make this post active, re-posting (sorry for the mistake).
Comment #8
finex commentedI've got a similar error (webform 7.x-3.4-beta1)
Comment #9
broonPatch in #5 works.
It defines the variable cid (as 0) and the error vanished.
Tested on Drupal 7 (official release) and Webform 7.x-3.4-beta1.
Comment #10
quicksketchThe patch has already been committed.
Comment #11
finex commentedThanks
Comment #12
aanjaneyam commentedI am still getting the following in 7.x-3.6 stable release :
Notice: Undefined variable: arguments in _webform_select_options_callback() (line 791 of /home3/esomscou/public_html/edentest/sites/all/modules/webform/components/select.inc).
Comment #13
thetechguide commentedI am still receiving the error also, drupal 7.0 and Webform 7.x-3.6. Same error message on line 791 of select.inc:
Notice: Undefined variable: arguments in _webform_select_options_callback() (line 791 of ......./sites/all/modules/webform/components/select.inc).
Comment #14
thetechguide commentedMy bad, this is a different issue that is covered at http://drupal.org/node/1024748. See this link for the 791 issue fix.
Comment #15
mustanggb commentedNot sure if this deserves it's own issue so I'll post in here for now
Comment #16
quicksketch@Network: Please file a new issue with a description of how to reproduce. At first glance I can't figure out why such an error would occur.