Magento CMS错误:前端控制器达到了100个路由器匹配迭代 [英] Magento CMS error : Front controller reached 100 router match iterations

查看:60
本文介绍了Magento CMS错误:前端控制器达到了100个路由器匹配迭代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过CMS(在管理员中)创建页面时,一切似乎都很好,但是当我尝试在前端访问该页面时,我得到了一个带有错误的空白页面:

When I create a page via the CMS (in the admin), everything seems fine but when I try to access the page in the frontend, I get a blank page with an error :

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索引控制器,因此,如果未加载Cms模块,它将以无限循环结束.

We've had this error in the past. It is caused by Magento not loading the Cms module. No router in the system matches the URL so the default router sets the path as being the 404 page that is set in the admin panel. The default value for this is the Cms index controller, so if the Cms module isn't loaded it ends up in an infinite loop.

原因很难猜测.在我们的案例中,我们发现当系统处于高负载下时,高速缓存已损坏,因此我们清除了高速缓存目录.可以通过运行rm -rf var/cache/mage--*直到页面成功加载来修复该问题.另一个原因是在app/etc/modules中禁用了cms模块.

The reason is a little harder to guess at. In our case we found that the cache was becoming corrupt when the system was under high load and we cleared the cache directory. It could be fixed by running rm -rf var/cache/mage--* until the page successfully loaded. Another cause would be disabling the cms module in app/etc/modules.

这篇关于Magento CMS错误:前端控制器达到了100个路由器匹配迭代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆