更改默认主题会在opencart中显示Uncaught Twig_Error_Loader

时间:2017-10-21 16:12:21

标签: opencart

致命错误:未捕获的Twig_Error_Loader:无法找到模板“common / column_left.twig”(查看:C:/ xampp / htdocs / projects / retail / upload / catalog / view / theme)。在C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ Twig \ Loader \ Filesystem.php:215堆栈跟踪:#0 C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ Twig \ Loader \ Filesystem.php(139):Twig_Loader_Filesystem-> findTemplate('common / column_l ...')#1 C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ Twig \ Environment.php(312):Twig_Loader_Filesystem-> getCacheKey('common / column_l ...')#2 C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ Twig \ Environment.php (378):Twig_Environment-> getTemplateClass('common / column_l ...',NULL)#3 C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ twig.php(33):Twig_Environment - > loadTemplate('common / column_l ...')#4 C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template.php(51):Template \ Twig-> render('common / column_l ...','1')#C C:\ xampp \ htdocs \ projects \ retail \ uploa位于C:\ xampp \ htdocs \ projects \ retail \ upload \ system \ library \ template \ Twig \ Loader \ Filesystem第215行的.php

如何修复它。请帮忙

1 个答案:

答案 0 :(得分:0)

可以提供帮助

Twig有缓存,这在您开发时非常烦人。您可以转到管理仪表板区域,然后单击右上角的齿轮图标来关闭缓存。你可以在那里关闭缓存(并刷新它)。

将原始文件放回原位并清除TWIG Cache

此解决方案来自opencart:https://forum.opencart.com/viewtopic.php?t=186585