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.
Patch attached. The error occurs on node/%node/webform/configure
. I think this comes from new settings for the preview page.
There is at least one issue with the same error message as this (referenced in 'Related issues'), but from much older and irrelevant areas of the code.
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_component_list-2195913.patch | 486 bytes | quicksketch |
Comments
Comment #1
quicksketchThanks @pjcdawkins. Oddly (as with similar issues) I can't reproduce this problem. Something else on the page must be including the webform.components.inc file for me already. It's clear that that file needs to be included however.
For consistency within forms, we're supposed to use form_load_include() instead of module_load_include() though, that makes it so the form can rebuild properly in some scenarios. I've committed this patch which should have the same effect as yours. Since I'm not seeing the problem on my local, I'd love if you could confirm this also solves the problem.
Comment #2
pjcdawkins CreditAttribution: pjcdawkins commentedThanks, yes, your patch also works.
Comment #4
fenstratNeeds porting to 8.x-4.x.
Comment #5
fenstratCommitted and pushed 2200208 to 8.x-4.x .