Oelove V3.2免费版修改模板出现致命错误,请问如何处理?

2020-12-01 10:00

因为首页底部几个链接(网站介绍 - 联系我们 - 免责申明 - 交友须知 - 隐私保护 - 返回首页) 点击一打开覆盖了当前页面,于是,就如下修改模板文件:
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 &quot;/var/www/html/tpl/templets/default/9izbdq_block_footer.tpl&quot; on line 6 &quot;&lt;a href=&quot;&lt;!--{$volist.url}--&gt;&quot; target=&quot;_blank&quot;&gt;&lt;!--{$volist.title}-- &gt;&lt;/a&gt; -&quot; - Unexpected &quot;}&quot;, expected one of: &quot;}--&gt;&quot; , &quot; &quot; , 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

2428 次浏览 2 条评论 收藏

说说我的看法

登录后可以发表评论 登录
2个评论
-- 楼主 2020-12-01 10:00
已找到原因了,此处<!--{$volist.title}-- >多打了一个空格号

<a href=\"<!--{$volist.url}-->\" ><!--{$volist.title}-- ></a> -
回复
-- 楼主 2020-12-01 10:00
去掉后,如下提示:

Fatal error: Uncaught exception \'SmartyCompilerException\' with message \'Syntax Error in template &quot;/var/www/html/tpl/templets/default/9izbdq_block_footer.tpl&quot; on line 6 &quot;&lt;a href=&quot;&lt;!--{$volist.url}--&gt;&quot; &gt;&lt;!--{$volist.title}-- &gt;&lt;/a&gt; -&quot; - Unexpected &quot;}&quot;, expected one of: &quot;}--&gt;&quot; , &quot; &quot; , 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
回复
作者信息

143
贴子
0
粉丝
热门贴子

免费试用


咨询热线


在线咨询