We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36613
    • 328 Posts
    After Update form it create a cmp on menù but if i click i recive this error:
    Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'home.tpl'' in /home/xxxxxx/public_html/core/model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace: #0 /home/xxxxxx/public_html/core/model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 /home/xxxxxx/public_html/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 /home/xxxxxx/public_html/core/model/modx/modmanagercontroller.class.php(257): Smarty->fetch('home.tpl') #3 /home/xxxxxx/public_html/core/model/modx/modmanagercontroller.class.php(174): modManagerController->fetchTemplate('home.tpl') #4 /home/xxxxxx/public_html/core/model/modx/modmanagerresponse.class.php(121): modManagerController->render() #5 /home/xxxxxx/public_html/core/model/modx/modmanagerrequest.class.php(178): modManagerResponse->outputContent(Array) #6 /home/xxxxxx/public_html/core/model/modx/modmanagerrequest.class.php(126): modManager in /home/xxxxxx/public_html/core/model/smarty/sysplugins/smarty_internal_template.php on line 162

    My modx version is MODX Revolution 2.2.16-pl (traditional)
      • 50165
      • 1 Posts
      I have this problem too.
      To fix this also need open file core/components/formit/model/formit/formit.class.php and insert path to formit templates, like this:
      $this->config = array_merge(array(
                  ...
                  'templatesPath' => $corePath.'templates/',
                  ...
              ),$config);
      


      Formit manager controller (core/components/formit/controllers/home.class.php) has method:
      public function getTemplateFile() {
          	return $this->formit->config['templatesPath'].'home.tpl';
          }
      


      But this path is missing.
        • 22840
        • 1,572 Posts
        Works like a charm, cheers

        Quote from: triglav at Mar 28, 2015, 05:47 AM
        I have this problem too.
        To fix this also need open file core/components/formit/model/formit/formit.class.php and insert path to formit templates, like this:
        $this->config = array_merge(array(
                    ...
                    'templatesPath' => $corePath.'templates/',
                    ...
                ),$config);
        


        Formit manager controller (core/components/formit/controllers/home.class.php) has method:
        public function getTemplateFile() {
            	return $this->formit->config['templatesPath'].'home.tpl';
            }
        


        But this path is missing.
          • 42766
          • 47 Posts
          Thank you! Thank you! A trillion times thank you!