-
Oelove V3.2免费版修改模板出现致命错误,请问如何处理?
-
-
因为首页底部几个链接(网站介绍 - 联系我们 - 免责申明 - 交友须知 - 隐私保护 - 返回首页) 点击一打开覆盖了当前页面,于是,就如下修改模板文件:
tpl/templets/default/9izbdq_block_footer.tpl
<!--{foreach $abouttip as $volist}-->
<a href="<!--{$volist.url}-->" ><!--{$volist.title}-- ></a> - (说明: 就在a标签处加入了target="_blank",出现如下致命错误,删除后,仍然是显示如此错误)
<!--{/foreach}-->
<a href="<!--{$urlpath}-->index.php" >返回首页</a>(说明: 就在a标签处加入了target="_blank",出现如下致命错误,删除后,仍然是显示如此错误)
就在a标签处加入了target="_blank",出现如下致命错误,删除后,仍然是显示如此错误,请问如何处理才能正常?
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/html/tpl/templets/default/9izbdq_block_footer.tpl" on line 6 "<a href="<!--{$volist.url}-->" target="_blank"><!--{$volist.title}-- ></a> -" - Unexpected "}", expected one of: "}-->" , " " , ATTR' in /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php:669 Stack trace: #0 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templateparser.php(3147): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templateparser.php(3212): Smarty_Internal_Templateparser->yy_syntax_error(10, '}') #2 /var/www/html/source/core/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(108): Smarty_Internal_Templateparser->doParse(10, '}') #3 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php in /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 669
-
2438 次浏览
2 条评论
收藏
2个评论
-
-
--
楼主 2020-12-01 10:00
-
已找到原因了,此处<!--{$volist.title}-- >多打了一个空格号
<a href=\"<!--{$volist.url}-->\" ><!--{$volist.title}-- ></a> -
-
-
回复 · 0条回复
-
-
-
--
楼主 2020-12-01 10:00
-
去掉后,如下提示:
Fatal error: Uncaught exception \'SmartyCompilerException\' with message \'Syntax Error in template "/var/www/html/tpl/templets/default/9izbdq_block_footer.tpl" on line 6 "<a href="<!--{$volist.url}-->" ><!--{$volist.title}-- ></a> -" - Unexpected "}", expected one of: "}-->" , " " , ATTR\' in /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php:669 Stack trace: #0 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templateparser.php(3147): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templateparser.php(3212): Smarty_Internal_Templateparser->yy_syntax_error(10, \'}\') #2 /var/www/html/source/core/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(108): Smarty_Internal_Templateparser->doParse(10, \'}\') #3 /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php(208): Smarty_Internal_Sm in /var/www/html/source/core/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 669
-
-
回复 · 0条回复
-
作者信息
-
关注
-
试
免费试用
-
咨询热线
-
咨询热线
020-82299 259
-
在线咨询