Magento 1.9.2.1 custom module 404

后端 未结 2 1880
旧巷少年郎
旧巷少年郎 2021-01-15 17:40

I recently installed a clean version of Magento. I had a custom module what was working perfectly on the old one, but not on the new one(Both 1.9.2.1). It shows up under Sys

相关标签:
2条回答
  • 2021-01-15 17:53

    Try to change the frontName, it may make some conflicts with newer version of magento :

    app/code/local/Mxsxs2/Cron/etc/config.xml:
    
            <?xml version="1.0"?>
            <config>
               <modules>
                  <Mxsxs2_Cron>
                    <version>1.0.0</version>
                   </Mxsxs2_Cron>
               </modules>
               <frontend>
                   <routers>
                     <cron>
                        <use>standard</use>
                         <args>
                           <module>Mxsxs2_Cron</module>
                           <frontName>testname</frontName>
                         </args>
                     </cron>
                  </routers>
               </frontend>
            </config>
    

    clear cache then access the url mydomain/index.php/testname

    0 讨论(0)
  • 2021-01-15 18:07

    I have the latest Magento 1.9.x.x installed and had a similar problem. To debug it this question helps me a lot:Why is my Magento module not being loaded?. Basically you need to check Mage_Core_Model_Config. I also wonder why I can see my module in System->Configuration->Advanced->Advanced but it gives 404 error. Basically it's an error in Magento and the names for modules are broken. Somewhere Magento forces the names to have the first character Upper-case. It's not working with the first character lower-case (but it is shown in ystem->Configuration->Advanced->Advanced).

    0 讨论(0)
提交回复
热议问题