当我通过 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}
任何想法?
Thanks!
我们过去曾犯过这个错误。这是由于Magento没有加载Cms模块导致的。系统中没有路由器与该 URL 匹配,因此默认路由器将路径设置为管理面板中设置的 404 页面。默认值是 Cms 索引控制器,因此如果未加载 Cms 模块,则会陷入无限循环。
原因有点难以猜测。在我们的例子中,我们发现当系统处于高负载时缓存会损坏,因此我们清除了缓存目录。可以通过运行来修复rm -rf var/cache/mage--*
直到页面成功加载。另一个原因是禁用 cms 模块app/etc/modules
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)