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.
I have the following error since the last 3.16 webform update :
Notice : Undefined index: #webform_component in theme_webform_display_select() (line 507 dans /homez.307/atoutsit/www/eclairinnov/sites/all/modules/webform/components/select.inc).
Comment | File | Size | Author |
---|---|---|---|
#12 | Imagen 52.png | 89.65 KB | espurnes |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI have a webform "select" added to the checkout and I'm seeing exact same issue.
Notice: Undefined index: #webform_component in theme_webform_display_select() (line 507 of /***/sites/all/modules/webform/components/select.inc).
Comment #2
arski CreditAttribution: arski commentedI have a couple of select elements in my webform and not getting that error - could you please specify what settings you have set for it so that I don't have to randomly poke around :) Thanks
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm pretty sure I tried all possible settings for Select webform and every time I see the error.
Just looking over the topic I see that I did not mention this before - notices don't not appear on the checkout page itself but on the next window. So I open checkout and everything seems to be fine. Then fill my details and proceed to "Review Order" and this is where I see the notices.
Comment #4
arski CreditAttribution: arski commentedfix committed, thanks for the report and the additional hint.
Comment #5
modulist CreditAttribution: modulist commentedI'm seeing this issue in Webform on a site that does not use Ubercart.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedIf you are seeing this on the site that is not using Ubercart (or Ubercart Webform Checkout Pane) then its a bug with Webform module itself or some other module that is referencing Webform. IMHO you should check with supporters of those modules.
Comment #7
sixelats CreditAttribution: sixelats commentedI have the same error
with Webform 3.17 and Ubercart Webform Checkout Pane 7.x-3.x-dev of 2011-Mar-10 but on order completion page, not on preview page.
Selected options show up correctly in Orders.
I have other webforms with select options, not used as checkout panes, that don't give me this error.
Comment #8
arski CreditAttribution: arski commentedOK, reopen the issue then :) Do you also just have the simple select component? what settings do you have set for it?
Comment #9
sixelats CreditAttribution: sixelats commentedYes, I use the simple select component with default settings and Listbox option enabled.
I was able to reproduce the error with a clean install of Drupal 7.12 and the minimum required modules enabled trying to rule out locale as a reason.
Also, the notice appears 5 times, not just one.
Comment #10
WillGFP CreditAttribution: WillGFP commentedI get the error mentioned above, along with:
Happens after I return from Paypal, on the "Alternate checkout completion page". On Safari a dialog box pops up with something about submitting form data...
Ubercart Webform Checkout Pane 7.x-3.7
Webform 7.x-3.17
Comment #11
arski CreditAttribution: arski commentedThanks, didn't fix the bug in tokens in the first place I'm afraid. Fixed now.
Comment #12
espurnesHi I get the next NOTICE after send the webform in the confirmation page:
Notice: Undefined index: #webform_component in theme_webform_display_select() (line 522 of /blah/blah/blah/blah/sites/all/modules/webform/components/select.inc).
Drupal core 7.12
Webform 7.x-3.17
Default Garland Theme
I have a sellect options component:
- mandatory
- No "Multi"
- No "Listbox"
The message appears with any user, also anonymus.
Comment #13
arski CreditAttribution: arski commentedJust fixed those bugs - get the latest -dev for now, new stable release coming soon too.
Comment #14
carl.ben CreditAttribution: carl.ben commentedarski, can you clarify what the fix was for this:
Notice: Undefined index: #webform_component in theme_webform_display_select()
It's appearing for webform users who do not have Ubercart Webform Checkout Pane installed as well. See http://drupal.org/node/1462986#comment-5698812
Any information you can provide may help get that fixed. Thanks in advance.
Comment #15
ronvu CreditAttribution: ronvu commentedThanks Arski for fixing this, suffered the very same bug. Great job.
(Drupal 7.12, 7.x-3.x-dev # 3-29 did its job)
Comment #17
espurnesWith the last stable version is not working and with the last dev version neither.
stable: webform 7.x-3.17 (http://drupal.org/node/1472180)
dev: 7.x-3.17+9-dev (http://drupal.org/node/730862)
The message is showing up:
Notice: Undefined index: #webform_component in theme_webform_display_select() (line 522 of /blah/blah/blah/blah/sites/all/modules/webform/components/select.inc).
ronvu said it was working in version Drupal 7.12, 7.x-3.x-dev # 3-29, so I did the next:
Actually I have the 7.x-3.17 version installed.
I downloaded the 7.12, 7.x-3.x-dev (http://drupal.org/node/1251626) and I changed the select.inc. So I have the 7.x-3.17 with the select.inc from 7.12, 7.x-3.x-dev.
The message is not showing up. I hope everything else works fine.
Maybe the patch of the 7.12 version was forgotten in the next releases...
Comment #18
arski CreditAttribution: arski commentedif it's not working, why don't you reopen the issue then..
I'll take a look in a bit, guess new Webform release screwed things up again.
Comment #19
arski CreditAttribution: arski commented@espurnes: are you even using Ubercart Webform Checkout Pane? (this module). It seems that your problem refers to the Webform bug in #1462986: Undefined index: #webform_component in select.inc
Comment #20
espurneshi arski,
I'm not using ubercart at all. It seems it's a bug in webform select ...
I have webform 7.x-3.18 and the problem persists.
Sorry to post in this topic.
Comment #21
arski CreditAttribution: arski commentedThis module only works with Ubercart, so if you're not using that, you can't possibly be using this module. I think that you should maybe take a look at #1462986: Undefined index: #webform_component in select.inc.