当我通过 CMS(在管理中)创建页面时,一切看起来都很好,但是当我尝试访问前端中的页面时,我得到一个带有错误的空白页面:
Front controller reached 100 router match iterations
#0 ..\app\code\core\Mage\Core\Controller\Varien\Front.php(183): Mage::throwException(’Front controlle...’)
#1 ..\app\code\core\Mage\Core\Model\App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#2 ..\app\Mage.php(627): Mage_Core_Model_App->run(Array)
#3 ..\index.php(80): Mage::run(’’, ‘store’)
#4 {main}
有什么想法吗?
谢谢!
最佳答案
我们过去曾遇到过此错误。这是由于Magento没有加载Cms模块引起的。系统中没有路由器与该 URL 匹配,因此默认路由器将路径设置为管理面板中设置的 404 页面。默认值是 Cms 索引 Controller ,因此如果未加载 Cms 模块,则会陷入无限循环。
原因有点难以猜测。在我们的例子中,我们发现当系统处于高负载时缓存会损坏,因此我们清除了缓存目录。可以通过运行 rm -rf var/cache/mage--* 直到页面成功加载来修复它。另一个原因是禁用 app/etc/modules
中的 cms 模块。
关于Magento CMS 错误 : Front controller reached 100 router match iterations,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8929960/