G'Day all,
Excited to try out 7.x-4.x-dev, but ran into a fatal error after installation and configuring our first webform.
The error is triggered on submit of changes to the default [Form settings] UI. We're adding a confirmation message, asking for no redirection, and setting the form to be available as a block. On submit of these changes we get:
Fatal error: Call to undefined function block_flush_caches() in /srv/bindings/7c81b6695dac472da5848e38dd92ed01/code/sites/all/modules/webform/webform.module on line 1461
The error is not triggered if I remove the "Available as block" option under Advanced Settings.
I've left the path there as you can see we're in the Pantheon world here. We're new to the Pantheon/Panopoly workflow and I'm not sure if this is an environmental problem or something specific to Webform.
I have cleared cache manually (via Drush) several times, updated database, etc...but we're still getting the same error.
Let me know if I can provide further details to help pin this down.
Thanks indeed!

CommentFileSizeAuthor
#1 webform_block_exists-2163267.patch715 bytesquicksketch

Comments

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new715 bytes

Thanks, you'll get this error if the Block module is not enabled on your site, since it's where that function lives. Since Block is now optional in D7, I can see how this would happen. I've wrapped these calls in a simple if (funciton_exists()) call so this won't happen any more.

  • Commit e6f8c01 on 7.x-4.x by quicksketch:
    Issue #2163267 by quicksketch: Fatal error triggered by Available as...
fenstrat’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: 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 e6f8c01 to 8.x-4.x. Thanks!

Status: Fixed » Closed (fixed)

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