At some point, the default fields built for a specific content type just vanish, so if you edit the 'x_page Default Fields Master Node' the message 'No Components, add a component below' appears, just as if none had been created. I have not identified exactly when this happens, but it appears to be after settings for webform are modified. For example, after changing the Default E-Mail Values From Address at admin/config/content/webform, the next time we looked at the default fields they were gone. This did not seem to impact existing nodes already built with the default fields, but the next time a new node was created it had no default webform fields on it.
Errors were noted after the webform was updated:
Notice: Undefined index: webform_node_types in webform_default_fields_form_webform_admin_settings_submit() (line 15 of /var/www/vhosts/summitinsight.com/httpdocs_ori/drupal/sites/all/modules/contrib/webform_default_fields/includes/webform_default_fields.form.inc).

Warning: in_array() expects parameter 2 to be array, null given in webform_default_fields_form_webform_admin_settings_submit() (line 15 of /var/www/vhosts/summitinsight.com/httpdocs_ori/drupal/sites/all/modules/contrib/webform_default_fields/includes/webform_default_fields.form.inc).

Has anyone encountered this who can provide more information on what might be causing it? Is there a fix?

I will update this if I find anything more specific.

Info:
Drupal 7.31
Webform 7.x-4.0
Webform Default Fields 7.x-1.6
Webform Protected Downloads 7.x-1.0+1-dev

Comments

adci_contributor’s picture

Status: Active » Closed (fixed)

Hi! Thank you for your feedback and for a detailed description of bug. The problem was due to some differences in configuration of Webform 3.x and 4.x versions. So we have two branches now for each version.
Thanks again for your time!

fishfree’s picture

The problem still exists with the latest 4.x dev version. I suggest reopen this issue.

adci_contributor’s picture

Status: Closed (fixed) » Active

Hi, fishfree !

Are you sure that this error is in the version 7.x-4.6 ?
I repeated the steps described in this issue, i.e. created a Webform with Webform Default Fields. Then changed default fields and created a new webform. All fields are not lost and there was no error.
If the error is, describe how you got it.

adci_contributor’s picture

In the module description you can find “Versions Explanation”:

Versions Explanation:
* Webform Default Fields 7.x-4.x is compatible with the new webform 7.x-4.x version.
* Webform Default Fields 7.x-3.x is compatible with the older webform 7.x-3.x version.
* Webform Default Fields 6.x-1.x is compatible with the older webform 6.x-3.x version.

Please do not forget about the compatibility of the versions. If you received an error using the correct version of this modules, please let us know.

adci_contributor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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