I create a webform, insert a table into it, textbox into table (I use nuclean theme). But when I show the submission I get some error:

Notice: Undefined index: 28 in _webform_table_element_alter_submission() (line 417 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).
Notice: Undefined index: #webform_component in _webform_table_element_render_alter_recurse() (line 443 of D:\drupal\xampp\htdocs\sites\all\modules\webform_table_element\webform_table_element.module).

What's it? How can I fix it?

Comments

attiks’s picture

Can you try the latest dev version, it might be fixed
Also which version of webform are you using?

attiks’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)
rootgear’s picture

I am getting a similar set of errors using the most recent dev version and webform-7.x-3.17

I have added 3 rows with 2 textfield columns and 1 select (yes/no) column.

rootgear’s picture

Update:
For me, the error occurs on the webform that existed before the Webform Table Element module was installed.
If I create a new webform, I am able to add Webform table elements without the error.

attiks’s picture

Assigned: Unassigned » jelle_s
Status: Postponed (maintainer needs more info) » Active
jelle_s’s picture

Status: Active » Fixed

This error occured when you had submissions of the webform in your database from before the table element was added to the webform. This is fixed in the latest dev version.

rootgear’s picture

Status: Fixed » Active

I added more fields to the webform that was working, and the errors came back.
I am not sure what actually caused the errors though, I'll see if I can narrow that down.

As a test, I created a table element, and added two textfields.
If I submit this form, no results are saved.
I added one textfield outside the table element, the results are saved after submission.
I added various fields of all different types, and it always seemed to work until I added an additional table element.
That is when the undefined index issues started showing up.

I tried to recreate this condition on another form, by just adding two table elements, but that worked fine.
I still don't know what is causing the issue.

The only thing that is consistent is, if all the fields are in a table element, no data is saved.
This seems to be a different issue though.

EDIT: Sorry, I was writing this as i was testing and did not see your reply.. I will verify this.

jelle_s’s picture

EDIT: Sorry, I was writing this as i was testing and did not see your reply.. I will verify this.

If it works, can you set this back to fixed?
Otherwise, I'll have another look at it

rootgear’s picture

If I clear the webform results, would you expect the error to go away?
(It doesn't)

I am running the dev version.

jelle_s’s picture

Can you provide me steps to reproduce?
Here's what I did:

  1. Created a webform with a single textfield
  2. Made a few submissions for that webform
  3. Viewed the submissions for that webform
  4. Added a table element to that webform (containing 3 rows, each row had 2 textfields and a dropdown)
  5. Viewed the submissions for that webform again
  6. Made a few submissions for that webform
  7. Viewed the submissions for that webform
  8. Removed the table element from the webform
  9. Viewed the submissions for the webform

I didn't see an error in any of those steps...

jelle_s’s picture

Status: Active » Postponed (maintainer needs more info)
rv0’s picture

had same error on submission view. wasn't using this module anymore and i had no components anymore that used it.

so i just disabled the module and the error went away.

jelle_s’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
jelle_s’s picture

Assigned: jelle_s » Unassigned