【问题标题】:Magento Static block with custom Module not Working After 1.9 ( from 1.3 ) UpgradeMagento 静态块和自定义模块在 1.9(从 1.3 开始)升级后不起作用
【发布时间】:2016-07-12 14:51:33
【问题描述】:

我在主页中有一个静态块,它曾经在 1.3 版中工作

{{block type='extrss/feed' name='home_articles' template='rss/rss_main.phtml' feed_url='http://www.example.com/articles/feed/' item_count='9'}}

它不显示 1.9 中的 phtml 中的任何内容,即使错误日志记录已打开,它也不会出错或任何内容。

如果我将类型更改为 core/template - 然后 phtml 会显示,但代码似乎没有执行。

我有点卡住了!

【问题讨论】:

    标签: magento magento-1.9


    【解决方案1】:

    我找到了答案。我需要去system->permissions->blocks 并授予静态块运行权限。

    【讨论】:

    • 作为一种防止内部劫持的手段,这个块权限是在 1.9.2.x 中引入的,必须启用 CMS 块才能被拉入 CMS 页面并使用。这也表明一个非常严重的补丁(不适用于 1.3)未应用于 1.4.2.x 到 1.9.1.1,您可能需要检查该站点以获取妥协线索。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多