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'];
  }
CommentFileSizeAuthor
#2 webform_preview.patch6.56 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Title: Call to undefined function webform_load() in webform.module » Node preview causes "Call to undefined function webform_load() in webform.module"

Excellent 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.

quicksketch’s picture

Priority: Critical » Normal
Status: Active » Fixed
FileSize
6.56 KB

Yep, 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).

roball’s picture

Thank you - like always, the fix works well :-)

Status: Fixed » Closed (fixed)

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