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!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_block_exists-2163267.patch | 715 bytes | quicksketch |
Comments
Comment #1
quicksketchThanks, 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.
Comment #3
fenstratNeeds porting to 8.x-4.x.
Comment #4
fenstratCommitted and pushed e6f8c01 to 8.x-4.x. Thanks!