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

CommentFileSizeAuthor
#12 Imagen 52.png89.65 KBespurnes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

I 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).

arski’s picture

Title: error with select component » Undefined index: #webform_component in theme_webform_display_select()

I 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

Anonymous’s picture

I'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.

arski’s picture

Status: Active » Fixed

fix committed, thanks for the report and the additional hint.

modulist’s picture

I'm seeing this issue in Webform on a site that does not use Ubercart.

Anonymous’s picture

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

sixelats’s picture

I have the same error

Notice: Undefined index: #webform_component in theme_webform_display_select() (line 522 of /home/xxx/public_html/sites/all/modules/contributed/webform/components/select.inc).

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.

arski’s picture

Status: Fixed » Postponed (maintainer needs more info)

OK, reopen the issue then :) Do you also just have the simple select component? what settings do you have set for it?

sixelats’s picture

Yes, 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.

WillGFP’s picture

I get the error mentioned above, along with:

Notice: Undefined index: #theme in uc_webform_pane_tokens() (line 210 of /home/tecaton/public_html/sites/all/modules/uc_webform_pane/uc_webform_pane.module).

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

arski’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks, didn't fix the bug in tokens in the first place I'm afraid. Fixed now.

espurnes’s picture

FileSize
89.65 KB

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

arski’s picture

Just fixed those bugs - get the latest -dev for now, new stable release coming soon too.

carl.ben’s picture

arski, 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.

ronvu’s picture

Thanks Arski for fixing this, suffered the very same bug. Great job.
(Drupal 7.12, 7.x-3.x-dev # 3-29 did its job)

Status: Fixed » Closed (fixed)

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

espurnes’s picture

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

arski’s picture

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

arski’s picture

@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

espurnes’s picture

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

arski’s picture

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