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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Needs review » Fixed
FileSize
486 bytes

Thanks @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.

pjcdawkins’s picture

Thanks, yes, your patch also works.

Status: Fixed » Closed (fixed)

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

fenstrat’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: Closed (fixed) » Patch (to be ported)

Needs porting to 8.x-4.x.

fenstrat’s picture

Version: 8.x-4.x-dev » 7.x-4.x-dev
Assigned: fenstrat » Unassigned
Status: Patch (to be ported) » Fixed

Committed and pushed 2200208 to 8.x-4.x .

  • Commit ba7a8e3 on 8.x-4.x by fenstrat:
    Issue #2195913 by quicksketch, pjcdawkins: Call to undefined function...

Status: Fixed » Closed (fixed)

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