2013-08-31 93 views
0

首先要做的事情我是Prestashop的新手。Prestashop维护模式错误

我有两个问题。首先是当我处于维护模式时,我添加了我的IP地址以获得访问权限,但我仍然无法访问我的前台。这给我的Chrome浏览器中的服务器错误。

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

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

在此之后,我得到这个错误(S):

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 

任何帮助将是赞赏:)

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

回答

0

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

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