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
Comment #1
attiks commentedCan you try the latest dev version, it might be fixed
Also which version of webform are you using?
Comment #2
attiks commentedComment #3
rootgear commentedI 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.
Comment #4
rootgear commentedUpdate:
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.
Comment #5
attiks commentedComment #6
jelle_sThis 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.
Comment #7
rootgear commentedI 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.
Comment #8
jelle_sIf it works, can you set this back to fixed?
Otherwise, I'll have another look at it
Comment #9
rootgear commentedIf I clear the webform results, would you expect the error to go away?
(It doesn't)
I am running the dev version.
Comment #10
jelle_sCan you provide me steps to reproduce?
Here's what I did:
I didn't see an error in any of those steps...
Comment #11
jelle_sComment #12
rv0 commentedhad 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.
Comment #13
jelle_sComment #14
jelle_s