Magento模板无法加载

时间:2014-04-19 03:45:03

标签: magento templates

突然有一些像1列的magento模板无法加载。 有没有人面对这个?

2014-04-02T15:12:33 + 00:00调试(7):无法加载模板:/home/wor/public_html/app/design/frontend/mytemplate/default/template/page/1column.phtml

模板路径正确且套管也正确。

1 个答案:

答案 0 :(得分:1)

错误Failed to load template 是Magento股票的一部分。 Magento无法加载模板错误

Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);

另外 - 请注意,当Magento无法加载模板时,它会使用Zend_Log::CRIT错误级别,而不是DEBUG (7)级别。

这两个标志都指向系统中的一些自定义代码(扩展,本地代码池覆盖,核心黑客或模板自定义),这使得模板无法加载。在代码库中搜索Failed to load template使用的Mage::log字符串。一旦找到它,周围代码的上下文应该可以帮助您理解Magento无法加载模板的原因。