Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using the latest webform-4.x and it installs just fine. However, when I go to the settings page admin/config/content/webform I get this error with no link to add fields.
Warning: Invalid argument supplied for foreach() in webform_entity_form_webform_admin_settings_alter() (line 405 of /home/jose/www/lscout/www/sites/all/modules/contrib/webform_entity/webform_entity.module).
However, if you go to the path directly admin/config/content/webform/entities/webform. You are presented with the right fields form.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2209947-add-types-manage-fields-2.patch | 2.9 KB | Jon Pugh |
Comments
Comment #1
dafederYeah same here - what version of webform was that designed to work with? The offending code is here on line 403 of webform_entity.module:
But the form in webform 4.1 has no [node_types] element.
If I could see what this is supposed to look like I could probably create a patch.
Comment #2
Jon PughPatch attached that adds the list of webform node types with links to manage fields and manage display.
Handles missing "webform entity type" by creating a link directly to "Create Submission Type" and "Delete Submission Type" when one already exists.
Comment #3
tizzo CreditAttribution: tizzo commentedThis patch is rolled against
sites/all/modules/contrib/webform_entity
instead of the root of the module - reroll?Comment #4
Jon PughOops!
Rerolled, and attached.
Comment #5
Jon PughComment #6
feldmarv CreditAttribution: feldmarv commentedpatch #2 and #4 was not working on my setup. If someone else has the same problem just use the link /admin/config/content/webform/entities/webform to get the settings page from this module.
Comment #7
MegaChriz CreditAttribution: MegaChriz commentedWhen I apply the patch from #4 and go to /admin/config/content/webform I get the following error message:
It looks like this patch depends on the patch from #2079807: Preserve compatibility with Webform 4: don't use variable "webform_node_types", though the patch from this issue and the patch from the other issue can't be applied both. If you apply one patch the other fails to apply and vice versa.
Comment #9
AaronBaumanworks for me.
committed.