Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento white screen of death

I am trying to compile my magento store's code. Initially compiling was producing an error which I tracked down to the Fooman Speedster advanced module. I removed the module entirely from my store's code and again recompiled. The compilation successfully completed this time and all classes (around 7500) could be seen in the/includes/src/ folder.

However after compilation, my site's frontend is showing the white screen of death with no error being generated in the apache error log. What is strange is that the backend is working perfectly fine.

I have also increased my memeory limit for php scripts to 1024M so that php running out of memory is not the problem.

Any suggestions as to what might be the propblem or how to go about tracking the problem/bug.

like image 686
Sarthak Gupta Avatar asked Mar 06 '13 06:03

Sarthak Gupta


3 Answers

Reposting my answer from here. Hope it will help

Magento white screen on Admin log in page?

I faced with the same problem. Actually it was even worse because it was a commercial product and a new hosting for me with really strange server configuration. So I couldn't made errors appear in any log file.

As I've found out the magento white screen means some PHP Fatal error occured. So there is a proper way to show them. Just add at the begin of your index.php

ini_set('error_reporting', E_ERROR);
register_shutdown_function("fatal_handler");
function fatal_handler() {
    $error = error_get_last();
    echo("<pre>");
    print_r($error);
}

And you will see what is really happening with your magento.

like image 189
Ivan Yaremchuk Avatar answered Nov 19 '22 01:11

Ivan Yaremchuk


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.
like image 41
Shashank Saxena Avatar answered Nov 19 '22 03:11

Shashank Saxena


I deleted all the folders from my var->cache directory and frontend started working.

like image 45
Pooja Mistry Avatar answered Nov 19 '22 03:11

Pooja Mistry