Magento “Front controller reached 100 router match iterations” error

后端 未结 10 2456
失恋的感觉
失恋的感觉 2020-12-05 04:54

My site is going down once or twice a day when it starts throwing the exception \"Front controller reached 100 router match iterations\". Once this happens access to the adm

10条回答
  •  星月不相逢
    2020-12-05 05:36

    We've been having the same issue, and dug a little deeper to discover that the issue doesn't directly relate to which routers are loaded but which modules are loaded.

    To work this out we added the following debug code:

        app/code/core/Mage/Core/Controller/Varien/Front.php : Line 183
    
        if ($i>100) {
            file_put_contents('/tmp/debug.txt', Mage::getConfig()->getNode()->asNiceXml());
            Mage::throwException('Front controller reached 100 router match iterations');
        }
    

    When we check the output of this, we can see that ONLY the Mage_Core module is loaded (check the node 'config/modules'. We think there is some kind of race condition that is occuring that means the system is left with a partially formed config that is then cached.

    Would be interested in hearing if you have the same situation.

提交回复
热议问题