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 am currently testing the latest 6.x-3.x-dev (2010-Jan-24) version. When I am creating a new webform node and click the [ Preview ] button, I get a WSOD caused by the following error:
PHP Fatal error: Call to undefined function webform_load() in /etc/drupal/all/modules/webform/webform.module on line 957
Line 957 of webform.module is within
if ($node->build_mode == NODE_BUILD_PREVIEW) {
$additions = webform_load($node);
$node->webform['components'] = $additions->webform['components'];
}
Comment | File | Size | Author |
---|---|---|---|
#2 | webform_preview.patch | 6.56 KB | quicksketch |
Comments
Comment #1
quicksketchExcellent thanks I'll have a look into it. There's a good chance that bit of code isn't necessary at all now that we have moved the Webform configuration to a different tab.
Comment #2
quicksketchYep, turns out those lines are completely unnecessary now in 3.x. While testing the previews though I found that the preview of the form wasn't really working at all. In order to build a better preview I removed a conditional that was causing the form to be skipped on preview (hence why this patch looks a bit big).
Comment #3
roball CreditAttribution: roball commentedThank you - like always, the fix works well :-)