Magento 如何调试空白的白屏 [英] Magento How to debug blank white screen

查看:13
本文介绍了Magento 如何调试空白的白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Magento 后端出现错误,导致出现空白屏幕 (WSOD).我在 admin 中将错误设置为 on,但在 var/logs/中没有创建任何内容.(我已经检查了该目录的权限,一切都正确).

我在 index.php 中也有 ini_set('display_errors', 1) 并且 Magento 被设置为开发者模式.我还启用了 apache 和 php 错误日志.

虽然没有记录错误?!

有人知道为什么没有显示错误吗?因为我很困惑!谢谢

解决方案

我是这样解决的(希望能帮到你们):

  1. 在 index.php 文件中使用以下代码

    ini_set('error_reporting', E_ERROR);register_shutdown_function("fatal_handler");函数fatal_handler() {$error = error_get_last();echo("

    ");打印_r($错误);}

  2. 就我而言,它告诉我 error/503.php 不可用.

3.问题出在我使用的推荐扩展程序上(http://www.magentocommerce.com/magento-connect/magebuzz-free-testimonial.html)

  1. 我删除了我的应用程序/etc/modules/testimoanial.xml 中的 testimonial.xml 文件.
  2. 删除maintenance.flag"文件.

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).

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.

No errors are being logged though?!

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):

  1. 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);
    }
    

  2. In my case it tolde me that error/503.php was unavailable.

3.The issue was with testimonial extension I used(http://www.magentocommerce.com/magento-connect/magebuzz-free-testimonial.html)

  1. I deleted the testimonial.xml file in my app/etc/modules/testimoanial.xml.
  2. delete "maintenance.flag" file.

这篇关于Magento 如何调试空白的白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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