Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

Upgrading from 3.1 to 3.2: “Fatal Error in Twig\Loader\FilesystemLoader.findTemplate();”

Fatal Error in Twig\Loader\FilesystemLoader.findTemplate();


Unable to find template "/home/user/install/library/Vanilla/Web/Asset/AssetPreloadModel.twig" (looked into: /home/user/testing).

The error occurred on or near: /home/user/install/vendor/twig/twig/src/Loader/FilesystemLoader.php

246:     if (!$throw) {

247:       return false;

248:     }

249:

250:     throw new LoaderError($this->errorCache[$name]);

251:   }

252:

253:   private function normalizeName($name)

254:   {

Backtrace:

[/home/user/install/vendor/twig/twig/src/Loader/FilesystemLoader.php:150] Twig\Loader\FilesystemLoader->findTemplate();

[/home/user/install/vendor/twig/twig/src/Environment.php:299] Twig\Loader\FilesystemLoader->getCacheKey();

[/home/user/install/vendor/twig/twig/src/Environment.php:381] Twig\Environment->getTemplateClass();

[/home/user/install/vendor/twig/twig/src/Environment.php:359] Twig\Environment->loadTemplate();

[/home/user/install/vendor/twig/twig/src/Environment.php:318] Twig\Environment->load();

[/home/user/install/library/Vanilla/Web/TwigRenderTrait.php:44] Twig\Environment->render();

[/home/user/install/library/Vanilla/Web/Asset/AssetPreloadModel.php:90] Vanilla\Web\Asset\AssetPreloadModel->renderTwig();

[/home/user/install/applications/dashboard/modules/class.headmodule.php:606] Vanilla\Web\Asset\AssetPreloadModel->renderHtml();

[/home/user/install/library/SmartyPlugins/function.asset.php:45] HeadModule->toString();

[/home/user/testing/cache/Smarty/compile/vanilla^d27ff2416ee0a296915835463c41fe7e4daf1493_0.file.default.master.tpl.php:32] PHP::smarty_function_asset();

[/home/user/install/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123] PHP::content_5d71a9fa31f1c4_37304661();

[/home/user/install/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114] Smarty_Template_Resource_Base->getRenderedTemplateCode();

[/home/user/install/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216] Smarty_Template_Compiled->render();

[/home/user/install/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232] Smarty_Internal_Template->render();

[/home/user/install/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:134] Smarty_Internal_TemplateBase->_execute();

[/home/user/install/library/core/class.smarty.php:161] Smarty_Internal_TemplateBase->display();

[/home/user/install/library/core/class.controller.php:2035] Gdn_Smarty->render();

[/home/user/install/library/core/class.controller.php:1467] Gdn_Controller->renderMaster();

[/home/user/install/library/core/class.pluggable.php:217] Gdn_Controller->xRender();

[/home/user/install/applications/vanilla/controllers/class.discussionscontroller.php:228] Gdn_Pluggable->__call();

[/home/user/install/library/core/class.dispatcher.php:862] DiscussionsController->index();

[/home/user/install/library/core/class.dispatcher.php:279] Gdn_Dispatcher->dispatchController();

[/home/user/install/index.php:29] Gdn_Dispatcher->dispatch();

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.


Additional information for support personnel:

  • Application: Vanilla
  • Application Version: 3.2
  • PHP Version: 7.2.19-0ubuntu0.19.04.2
  • Operating System: Linux
  • Server Software: Apache/2.4.xx (Ubuntu)
  • Referer: https://sub.domain.fqdn/plugin/versioncheck
  • User Agent: Mozilla/x.0 etc
  • Request Uri: /
  • Controller: Twig\Loader\FilesystemLoader
  • Method: findTemplate


Tagged:
Sign In or Register to comment.