Magento显示空白页/空白页.我该如何解决? [英] Magento shows a blank/empty page. How do I solve this?
问题描述
清除缓存后,我的Magento项目无法正常工作.它显示唯一的标题.
My Magento project not working after the cache cleared. It displays the only header.
项目运行正常,但是当我从admin中的Cache Management
部分清除缓存时,前端停止工作.唯一的页眉节是可见的,它在页脚和内容部分的位置显示空白页.
The project was working fine but when I cleared cache from the Cache Management
section in admin, the front-end stopped working. The only header section is visible, It showing blank page in place of Footer and content portion.
推荐答案
尝试此解决方案
听起来您想启用开发人员模式.将此添加到您的.htaccess文件:
It sounds like you want to enable Developer mode. Add this to your .htaccess file:
SetEnv MAGE_IS_DEVELOPER_MODE "true"
您可能还希望在index.php中启用显示错误:
You may also want to enable display errors in index.php:
ini_set('display_errors', 1);
我发现最好的调试方法是在本地环境中使用X-Debug.如果您无法在生产环境中运行X-Debug,还可以使用日志文件来帮助在生产环境中进行调试.
The best way I have found to debug is with X-Debug in a local environment. You can also use log files to help debug in a production environment, if your unable to run X-Debug in the environment.
我在这里有更详细的帖子:
I've got a more detailed posting here:
http://www.molotovbliss.com/debugging-搭配技巧的提示和技巧
考虑还安装 XDebug
希望这对您有所帮助!
这篇关于Magento显示空白页/空白页.我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!