管理中的新模块总是显示 404 页面
New module in admin always shows 404 page
更新后SUPEE-6788 for my Magento site (Magento CE version 1.9.2.1) and I added the module : https://bitbucket.org/magebit/whitelister/downloads。该模块自动设置白名单块。
config.xml
中的 ALC 节点
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<magebit_whitelister translate="title" module="magebit_whitelister">
<title>Whitelister</title>
<sort_order>1000</sort_order>
<children>
<magebit_horizonintegration translate="title">
<title>Magebit - Whitelister</title>
<sort_order>0</sort_order>
</magebit_horizonintegration>
</children>
</magebit_whitelister>
<system>
<children>
<config>
<children>
<magebit_whitelister>
<title>Magebit - Whitelister</title>
</magebit_whitelister>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
安装此扩展后,刷新缓存,我尝试注销并登录到管理员,但是,当到达菜单中的第二个 link 时,总是显示 404 页面。你知道我该如何解决这个错误吗?
基本上,如果我们不声明模块和翻译节点,Magento 将无法理解我们的 ACL 菜单。您需要在 config.xml 中添加 translate="title" 和 module="magebit_whitelister" 。第二个 ACL 菜单应该是:
<children>
<config>
<children>
<magebit_whitelister translate="title" module="magebit_whitelister">
<title>Magebit - Whitelister</title>
</magebit_whitelister>
</children>
</config>
</children>
注销并再次登录 Magento Admin。
更新后SUPEE-6788 for my Magento site (Magento CE version 1.9.2.1) and I added the module : https://bitbucket.org/magebit/whitelister/downloads。该模块自动设置白名单块。
config.xml
中的 ALC 节点<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<magebit_whitelister translate="title" module="magebit_whitelister">
<title>Whitelister</title>
<sort_order>1000</sort_order>
<children>
<magebit_horizonintegration translate="title">
<title>Magebit - Whitelister</title>
<sort_order>0</sort_order>
</magebit_horizonintegration>
</children>
</magebit_whitelister>
<system>
<children>
<config>
<children>
<magebit_whitelister>
<title>Magebit - Whitelister</title>
</magebit_whitelister>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
安装此扩展后,刷新缓存,我尝试注销并登录到管理员,但是,当到达菜单中的第二个 link 时,总是显示 404 页面。你知道我该如何解决这个错误吗?
基本上,如果我们不声明模块和翻译节点,Magento 将无法理解我们的 ACL 菜单。您需要在 config.xml 中添加 translate="title" 和 module="magebit_whitelister" 。第二个 ACL 菜单应该是:
<children>
<config>
<children>
<magebit_whitelister translate="title" module="magebit_whitelister">
<title>Magebit - Whitelister</title>
</magebit_whitelister>
</children>
</config>
</children>
注销并再次登录 Magento Admin。