Moved some sites to a new server which use Form Builder and they are no longer working.
The pages that should display the form are using the easy embed option form-builder/basic-contact
Apparently the client was told by the author that they needed Swift Mailer because the forms were responding very slow. Then they installed form builder 2.5 via ftp and now the forms do not display. Anyone familiar with the below expception method? Or can point me in the right direction.
When viewing the page while not logged in it displays internal server error where the embed should be.
While logged in as a super user it shows the following exception:
Error: Exception: Method FormBuilder::setTemplateVersion does not exist or is not callable in this context (in /var/www/example/wire/core/Wire.php line 349) #0 /var/www/example/site/templates/form-builder.php(26): Wire->__call('setTemplateVers...', Array) #1 /var/www/example/site/templates/form-builder.php(26): FormBuilder->setTemplateVersion(2) #2 /var/www/example/wire/core/TemplateFile.php(169): require('/var/www/garage...') #3 [internal function]: TemplateFile->___render() #4 /var/www/example/wire/core/Wire.php(389): call_user_func_array(Array, Array) #5 /var/www/example/wire/core/Wire.php(344): Wire->runHooks('render', Array) #6 /var/www/example/wire/modules/PageRender.module(356): Wire->__call('render', Array) #7 /var/www/example/wire/modules/PageRender.module(356): TemplateFile->render() #8 [internal function]: PageRender->___renderPage(Object(HookEvent)) #9 /var/www/example/wire/core/Wire.php(389): call_user_func_array( This error message was shown because you are logged in as a Superuser. Error has been logged.
Like I mentioned above, they attempted to install a new version of form builder via ftp I guess, I can see two different directorys for form builder which seems odd.
site\modules\.FormBuilder\FormBuilder.module
site\modules\FormBuilder\FormBuilder.module
So one with a period before FormBuilder and one without, all of which seem to have the same files and code. I checked FormBuilder.module of both and they both say they are version 22 which I assume 2.2 so not sure what they meant by version 2.5 as apparently the latest version is 2.4. Maybe they got versions mixed up and were talking about PW being version 2.5 as they are running 2.5.3
The form-builder.php template is using this which is what is throwing the error
<?php $forms->setTemplateVersion(2); $form = $forms->getFromURL(true); echo $form->styles; echo $form->scripts; ?>