PHP Fatal error: Call to undefined function form_builder_webform_save_component() in /home/**/public_html/sites/all/modules/webform_alt_ui/webform_alt_ui.module on line 360

Comments

hansvaneylen’s picture

For me this error occurs when editing the Submissions settings of a webform : I selected "Customize confirmation", "Redirect to a different page" and then edited the path (in my case to : node/148). When I click on "Save", I get the error.

socialnicheguru’s picture

i get this too.

I don't see the function in either webform_alt_ui or form_builder

socialnicheguru’s picture

it's in the 2-11 version not the 10-12 version of form_builder

socialnicheguru’s picture

i guess this is no longer needed though.

form_builder has webform support already.
form_builder/modules/webform and it seems to work pretty well

grahamc’s picture

Title: PHP Fatal error: » Unable to save components due to missing form_builder_webform_save_component()
Issue summary: View changes

form_builder_webform changed how it goes about saving component updates at some point. Instead of saving components to the database directly, it now assembles a Webform node object and passes that to node_save() for Webform to deal with.

I see Yorirou already committed a fix for this, but sadly form_builder_webform_get_component() isn't just a renamed copy, so currently Webform Alt UI is unable to save components.

(Jucallme's fix in #2022773: Make dev versions of modules involved to get this working. alleviates this issue, but breaks saving of e-mail settings - Alt UI is not adding these to the node object, and Webform is deleting them)

grahamc’s picture

Version: 7.x-1.0-alpha5 » 7.x-1.x-dev
StatusFileSize
new4.09 KB

Attached patch uses the newer form_builder_webform method of saving, and should also fix the issue with e-mail settings.