PyroCMS 1.3 博客插件出错
我正在尝试使用pyrocms 博客插件来创建简单的新闻部分。
当我访问 site.dev/blog 时,会显示此警告:
Parse error: syntax error, unexpected T_IS_EQUAL in <="" a=""> on line 22
调用堆栈
# Time Memory Function Location
1 0.0007 361808 {main}( ) ../index.php:0
2 0.0017 417440 require_once( '/Users/ignacio/Projects/fidae/system/codeigniter/core/CodeIgniter.php' ) ../index.php:287
3 0.1563 6059080 call_user_func_array ( ) ../CodeIgniter.php:339
4 0.1563 6059124 Blog->index( ) ../CodeIgniter.php:0
5 0.1635 6173280 Template->build( ) ../blog.php:31
6 0.1684 6348004 Template->_load_view( ) ../Template.php:258
7 0.1687 6350256 MY_Parser->parse_string( ) ../Template.php:752
8 0.1687 6350284 MY_Parser->_parse( ) ../MY_Parser.php:59
9 0.1688 6351272 Tags->parse( ) ../MY_Parser.php:92
10 0.1785 6486620 call_user_func ( ) ../Tags.php:255
11 0.1785 6486636 MY_Parser->parser_callback( ) ../Tags.php:0
12 0.1785 6486636 Plugins->locate( ) ../MY_Parser.php:120
13 0.1785 6487112 Plugins->_process( ) ../Plugins.php:144
14 0.1786 6487468 Plugin_Theme->partial( ) ../Plugins.php:223
15 0.1788 6489688 MY_Parser->parse_string( ) ../theme.php:52
16 0.1788 6489688 MY_Parser->_parse( ) ../MY_Parser.php:59
17 0.1789 6490676 Tags->parse( ) ../MY_Parser.php:92
18 0.1861 6540320 Tags->parse_php( ) ../Tags.php:274
“第 22 行”是 txmt://open?url=file:///Users/ignacio/Projects 的链接/fid_app/system/cms/libraries/Tags .php(627)%20:%20eval()
但是.. 帖子在页面上正确显示,但其余部分页面未呈现。
我尝试过侵入核心,但对我来说一切看起来都很好。有什么线索吗?
I'm trying to use pyrocms blog addon for a simple news section.
When I access to site.dev/blog this WARNING is displayed:
Parse error: syntax error, unexpected T_IS_EQUAL in <="" a=""> on line 22
Call Stack
# Time Memory Function Location
1 0.0007 361808 {main}( ) ../index.php:0
2 0.0017 417440 require_once( '/Users/ignacio/Projects/fidae/system/codeigniter/core/CodeIgniter.php' ) ../index.php:287
3 0.1563 6059080 call_user_func_array ( ) ../CodeIgniter.php:339
4 0.1563 6059124 Blog->index( ) ../CodeIgniter.php:0
5 0.1635 6173280 Template->build( ) ../blog.php:31
6 0.1684 6348004 Template->_load_view( ) ../Template.php:258
7 0.1687 6350256 MY_Parser->parse_string( ) ../Template.php:752
8 0.1687 6350284 MY_Parser->_parse( ) ../MY_Parser.php:59
9 0.1688 6351272 Tags->parse( ) ../MY_Parser.php:92
10 0.1785 6486620 call_user_func ( ) ../Tags.php:255
11 0.1785 6486636 MY_Parser->parser_callback( ) ../Tags.php:0
12 0.1785 6486636 Plugins->locate( ) ../MY_Parser.php:120
13 0.1785 6487112 Plugins->_process( ) ../Plugins.php:144
14 0.1786 6487468 Plugin_Theme->partial( ) ../Plugins.php:223
15 0.1788 6489688 MY_Parser->parse_string( ) ../theme.php:52
16 0.1788 6489688 MY_Parser->_parse( ) ../MY_Parser.php:59
17 0.1789 6490676 Tags->parse( ) ../MY_Parser.php:92
18 0.1861 6540320 Tags->parse_php( ) ../Tags.php:274
The "line 22" is a link to txmt://open?url=file:///Users/ignacio/Projects/fid_app/system/cms/libraries/Tags.php(627)%20:%20eval()
However.. posts are displayed correctly on page, but the rest of the page is not rendered.
I've tried to hack into the core but everything looks good to me. Any clues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在pyro的论坛中交叉发布了这个,您可以在这里看到完整的线程:http://pyrocms.com/forums/topics/view/3848
基本上问题是语法错误:
仔细查看代码,您可以看到那里应该在 {pyro:page:is_home} 周围加上引号。
所以,正确的代码是:
I cross-posted this in pyro's forums, you can see the complete thread here:http://pyrocms.com/forums/topics/view/3848
Basically the problem was a syntax error:
Looking closely at the code you can see that there should be quotes around {pyro:page:is_home}.
So, the correct code is: