最近我一直在我的管理员中弹出“未找到 404 错误页面”错误。在网上尝试了所有解决方案后,我至少发现了导致错误的原因。
一旦我禁用了我的自定义扩展,所有 404 错误页面都消失了。
我认为这可能是由于我的扩展配置如下:
<?xml version="1.0"?>
<config>
<modules>
<Pinto_PartnerSystem>
<version>1.0.0</version>
</Pinto_PartnerSystem>
</modules>
<global>
<blocks>
<partnersystemblock1>
<class>Pinto_PartnerSystem_Block</class>
</partnersystemblock1>
<partnersystemblock2>
<class>Pinto_PartnerSystem_Block_EditSpecial</class>
</partnersystemblock2>
</blocks>
<helpers>
<partnersystemhelper>
<class>Pinto_PartnerSystem_Helper</class>
</partnersystemhelper>
</helpers>
</global>
<admin>
<routers>
<partnersystem>
<use>admin</use>
<args>
<module>Pinto_PartnerSystem_AdminControllers</module>
<frontName>admin</frontName>
<modules>
<sintax after="Pinto_PartnerSystem_AdminControllers">Mage_Adminhtml</sintax>
</modules>
</args>
</partnersystem>
</routers>
</admin>
<adminhtml>
<menu>
<partnersystem translate="title" module="partnersystemhelper">
<title>Partner System</title>
<sort_order>42</sort_order>
<children>
<!-- Note the misleading "module" attribute.
It actualy refers to one of the declared helpers -->
<myitem1 translate="title" module="partnersystemhelper">
<title>Manage Partners</title>
<action>partnersystem/partners</action>
<sort_order>1</sort_order>
</myitem1>
<myitem2 translate="title" module="partnersystemhelper">
<title>Manage Partner Groups</title>
<action>partnersystem/settings</action>
<sort_order>2</sort_order>
</myitem2>
<myitem3 translate="title" module="partnersystemhelper">
<title>View My Balance</title>
<action>partnersystem/balance</action>
<sort_order>3</sort_order>
</myitem3>
<myitem4 translate="title" module="partnersystemhelper">
<title>Add Partner</title>
<action>partnersystem/addpartner</action>
<sort_order>3</sort_order>
</myitem4>
<myitem5 translate="title" module="partnersystemhelper">
<title>Add Partner Group</title>
<action>partnersystem/addpartnergroup</action>
<sort_order>3</sort_order>
</myitem5>
</children>
</partnersystem>
</menu>
<acl><!-- permits -->
<resources>
<admin>
<children>
<partnersystem translate="title" module="partnersystemhelper"><!-- this tag matches the menu tag, and the same for his children -->
<title>Partner System</title>
<children>
<myitem1>
<title>Manage Partners</title>
</myitem1>
<myitem2>
<title>Manage Partner Groups</title>
</myitem2>
<myitem3>
<title>View My Balance</title>
</myitem3>
</children>
</partnersystem>
</children>
</admin>
</resources>
</acl>
</adminhtml>
</config>
有人可以扫描一下 XML 内容,看看有没有问题?
我对 Magento 很陌生,这个错误最近让我很紧张,所以任何帮助都将不胜感激。
编辑:我忘了提到“未找到 404 错误页面”错误未显示在我的扩展程序中 - 我的扩展程序都显示正常。它们开始出现在索引管理、编译和某些配置页面等位置。