0

首先,我是 Prestashop 的新手。

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

但更大的问题是当我关闭维护模式(并从列表中删除我的 IP 地址)时什么都没有。只是一个空白屏幕。经过一番研究,我发现如何在 define.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

任何帮助,将不胜感激 :)

PS 我把 Prestashop 从 1.2.x 升级到了 1.5.4 版本……也许和这个有关?

4

1 回答 1

0

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

{include file="$tpl_dir./category-tree-branch.tpl" node=$child last='true'}
于 2013-09-08T16:30:09.267 回答