Magento如何调试黑屏 [英] Magento How to debug blank white screen
问题描述
我的Magento后端出现错误,导致出现黑屏(WSOD).我在admin中将错误设置为on,但是在var/logs/中没有创建任何内容. (我已经检查了该目录的权限,并且所有权限都是正确的.)
I have an error in my Magento backend that results in a blank screen (WSOD). I have set errors to on in admin but there is nothing being created in var/logs/. (I have checked permissions for that directory and all is correct).
我在index.php中也有ini_set('display_errors',1),并且Magento设置为开发人员模式. 我还启用了apache和php错误日志.
I have also ini_set('display_errors', 1) in index.php and Magento is set to developer mode. I have also enabled apache and php error logs.
虽然没有记录错误?!
任何人都知道为什么未显示错误?我很困惑! 谢谢
Anyone have a clue as to why errors aren't being shown? As I'm confused! Thanks
推荐答案
这是我对其进行更正的方式(希望会对您有所帮助):
This is how I got it corrected(Hope will help you guys):
-
在index.php文件中使用以下代码
Use the following code in your index.php file
ini_set('error_reporting', E_ERROR);
register_shutdown_function("fatal_handler");
function fatal_handler() {
$error = error_get_last();
echo("<pre>");
print_r($error);
}
就我而言,它告诉我error/503.php不可用.
In my case it tolde me that error/503.php was unavailable.
3.问题出在我使用的个人鉴定扩展名( http://www.magentocommerce.com/magento-connect/magebuzz-free-testimonial.html )
3.The issue was with testimonial extension I used(http://www.magentocommerce.com/magento-connect/magebuzz-free-testimonial.html)
- 我删除了我的app/etc/modules/testimoanial.xml中的testimonial.xml文件.
- 删除"maintenance.flag"文件.
这篇关于Magento如何调试黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!