Prestashop维护模式错误

时间:2013-08-31 17:53:02

标签: prestashop maintenance-mode

首先,我是Prestashop的新手。

我有两个问题。首先是当我处于维护模式并且我添加我的ip adres以获得访问权限时,我仍然无法访问我的前台。这会在我的Chrome浏览器中出现服务器错误。

但更大的问题是当我关闭维护模式(并从列表中删除我的IP地址)时什么都没有。只是一个空白的屏幕。经过一些研究后,我发现如何在defines.inc.php中打开错误报告,如下所示:

/* Debug only */
define('_PS_MODE_DEV_', true);

在此之后我得到了这个错误:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/.sites/78/site58/web/modules/categoriesbar/category-bar-level.tpl" on line 8 "{include file=$tpl_dir./category-tree-branch.tpl node=$child last='true'}" - Unexpected "/", expected one of: "{" , "$" , "identifier" , INTEGER' in /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(40, '/') #2 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(40, '/') #3 /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_t in /home/.sites/78/site58/web/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

任何帮助将不胜感激:)

P.S。 我将Prestashop从1.2.x升级到1.5.4版...... 也许它与此有关?

1 个答案:

答案 0 :(得分:0)

错误告诉您模板中有错误。尝试将行更改为

{include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'}