Form Builder does not work anymore

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

Form Builder does not work anymore

Post by asdf »

I am unable to create or view a form properly.

I click "Add New Form" in the Form Builder, the standard screen opens, I fill the fields in the main tab and click Add. The browser gets redirected to page http://www.site/admin/moduleinterface.php and shows "The connection was reset" with quite much explanation (Firefox 36, Chrome 40 shows something similar but more simple). However, if I edit the URL to open admin and then open the Form Builder the form is there, sometimes even twice (2nd one having 1 added into alias). From there I can edit the form, save-button usually gives same error but changes are saved. So far it's annoying but manageable if displaying form worked.

But, I cannot display the page where the form is to be shown at all, it crashes with error message

Error: at line 127 in file /path/to/site/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php

There's nothing but {FormBuilder form='newform'} on the page.

How can I fix this? I've used Form Builder earlier on the other site without problems, I think it was 0.73. I tried it also but did not help.

Is this simply incompatibility with my old Ubuntu 10.04.04 LTS with PHP 5.3.2-1ubuntu4.28 or is there something else too? I think all the modules I have should be compatible with this PHP, I have not installed those that require PHP 5.4, e.g. CGExtensions.

CMS Version 1.11.12
CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.5
MenuManager 1.8.6
MicroTiny 1.2.8
ModuleManager 1.5.8
News 2.14.4
Search 1.7.11
ThemeManager 1.1.8
TinyMCE 2.9.12
CGSimpleSmarty 1.7.4
CGExtensions 1.42.2
FrontEndUsers 1.24.1
FormBuilder 0.8.1.1
Captcha 0.5.2
FormBrowser 0.4.2
Last edited by Jo Morg on Wed Mar 04, 2015 4:16 pm, edited 1 time in total.
Reason: Please avoid auto-link of pseudo links by using "Do not automatically parse URLs" checkbox option. Thanks.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1975
Joined: Mon Jan 29, 2007 4:47 pm

Re: Form Builder does not work anymore

Post by Jo Morg »

From what I can see it seems that there might be an error on a template (can be on the page template or on FB template). You'll need to try to debug a bit further. Try removing or commenting out blocks of the templates until you get no error. At least it might help narrowing down to the lines where the problem is.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
asdf
Forum Members
Forum Members
Posts: 39
Joined: Thu Jul 08, 2010 1:11 pm

Re: Form Builder does not work anymore

Post by asdf »

Thanks for suggestion but at least my page template is okay. Maybe there's something in the FormBrowser template but it is unmodified so it should be broken for everyone. Anyway, to exclude possible problems with the old PHP version and my existing site content I installed 1.11.13 on a test server where a newer PHP is installed. I still cannot create a new form without "The connection was reset" error. The new form appears on the list and can be edited, but still produces "Error: at line 127 in file /var/www/html/cms13/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php"

But, when I export one of sample forms and import it back, I can edit the form and it works when embedded. So my guess is that the 127 error happens before everything is done and thus a new form is broken even if it appears on the list.

Full trace from the Oops-page:

Code: Select all

#0 /var/www/html/cms13/lib/classes/class.Smarty_CMS.php(337): Smarty_Internal_TemplateBase->fetch('module_db_tpl:F...', 'p58', 'FormBuilder', NULL, false, false, false)
#1 /var/www/html/cms13/lib/classes/module_support/modtemplates.inc.php(239): Smarty_CMS->fetch('module_db_tpl:F...', '', 'FormBuilder')
#2 /var/www/html/cms13/lib/classes/class.CMSModule.php(2958): cms_module_ProcessTemplateFromDatabase(Object(FormBuilder), 'fb_4', '', false, '')
#3 /var/www/html/cms13/modules/FormBuilder/classes/Form.class.php(933): CMSModule->ProcessTemplateFromDatabase('fb_4')
#4 /var/www/html/cms13/modules/FormBuilder/action.default.php(227): fbForm->RenderForm('cntnt01', Array, '58')
#5 /var/www/html/cms13/lib/classes/class.CMSModule.php(1732): include('/var/www/html/c...')
#6 /var/www/html/cms13/modules/FormBuilder/FormBuilder.module.php(171): CMSModule->DoAction('default', 'mc25be', Array, '58')
#7 /var/www/html/cms13/lib/classes/class.CMSModule.php(1799): FormBuilder->DoAction('default', 'mc25be', Array, '58')
#8 /var/www/html/cms13/lib/module.functions.php(123): CMSModule->DoActionBase('default', 'mc25be', Array, '58')
#9 /var/www/html/cms13/lib/classes/class.CMSModule.php(302): cms_module_plugin(Array, Object(Smarty_Internal_Template))
#10 /var/www/html/cms13/tmp/templates_c/58content_en^62e936251e4799749e89fa9828a0ee7332eb5816.content.content_en.php(22): CMSModule::function_plugin(Array, Object(Smarty_Internal_Template))
#11 /var/www/html/cms13/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php(182): content_54fd9f46517d87_51534139(Object(Smarty_Internal_Template))
#12 /var/www/html/cms13/lib/classes/class.Smarty_CMS.php(337): Smarty_Internal_TemplateBase->fetch('content:content...', 'p58|content_en', '58content_en', NULL, false, false, false)
#13 /var/www/html/cms13/lib/classes/class.CMS_Content_Block.php(310): Smarty_CMS->fetch('content:content...', '|content_en', '58content_en')
#14 /var/www/html/cms13/tmp/templates_c/f86d86ab39c1bb93a1b057df0c3d0155eccd402c.tpl_body.22.php(146): CMS_Content_Block::smarty_internal_fetch_contentblock(Array, Object(Smarty_Internal_Template))
#15 /var/www/html/cms13/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php(182): content_54fd9edd90d670_02475617(Object(Smarty_Internal_Template))
#16 /var/www/html/cms13/lib/classes/class.Smarty_CMS.php(337): Smarty_Internal_TemplateBase->fetch('tpl_body:22', 'p58', NULL, NULL, false, false, false)
#17 /var/www/html/cms13/index.php(243): Smarty_CMS->fetch('tpl_body:22')
#18 {main}
The page template is the default one installed by CMSMS and the versions are:

CMS Version 1.11.13

CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.5
MenuManager 1.8.6
MicroTiny 1.2.9
ModuleManager 1.5.8
News 2.15
Search 1.7.12
ThemeManager 1.1.8
FormBuilder 0.8.1.1

PHP 5.5.9-1ubuntu4.6
Post Reply

Return to “Modules/Add-Ons”