Hello everybody,

I am quite newbie in Drupal and I am struggling with an issue with webform. Please help me, I don´t know what to do :(
I resume what I´ve done.
I had a quite large webform
I cloned the webform and started making some changes in the cloned webform.
Suddenly, everytime I tried to open or edit the webform it appeared a white page, the rest of the node in the website were available and I could see and edit everything, but not the cloned webform or the original webform. I cleared the submissions from Results tab and I could see the webform again, but now when I make I new submission the next error is displayed:
Notice: Undefined index: pid in _webform_components_tree_build() (line 4306 of mysitefolder/sites/all/modules/contrib/webform-7.x-4.0-rc5/webform/webform.module).

thank you for your help in advanced

Comments

DanChadwick’s picture

Priority: Major » Normal
Status: Active » Fixed

First, support requests are never major. There's a link to the Issue Queue Handbook right by the options in the issue form.

Webform doesn't have a clone command for the entire webform, so probably the module you used for that damaged the node and it's database. I don't recall if the node_clone module support webform.

Form the message, it appears you aren't using 7.x-4.4, but rather a pre-release version. This could be related.

It will take someone with an understanding of the database to fix the damage. Your best solution is probably to delete the two webforms, re-create them, and see if the problem returns. I think you're going to need someone to help you hand-on.

Alternatively, restore a copy of the database from before when you made the clone.

esasgon’s picture

Hello,

Thank you for answering me so fast and sorry for the mistake adding the issue.
As you said, I used the node_clone module to clone the webform, maybe I should have created the issue in node_clone instead of webform :/
Anyway, I think I know what was the problem.
When I cleared the submissions, in my Form settings I had a redirection location to a custom URL. If I change URL to another node or I select confirmation page the error disappears, so I solved the problem for now.

Is it possible that some information from the previous submissions were stored somehow in the custom URL?

DanChadwick’s picture

The redirect option would not cause this message.

Be sure to update to 7.x-4.4.

Status: Fixed » Closed (fixed)

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