Wednesday 15 November 2017

php - Magento white screen of death

itemprop="text">

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.



Answer




After a lot of research and testing, I have
come to the conclusion that while compiling there may be several errors that lead to the
white screen of death. These will not be visible for some reason leaving you with no
clue as to where is the problem.
In most cases - custom modules or installed
modules are the culprits. The only reliable way to debug the magento compilation is to
use the xdebug.scream = 1 in the xdebug configuration. This will scream out the error
file/reason which can then be worked upon.



A
better explanation could be found here:

href="http://www.brimllc.com/2012/03/magento-fun-with-debugging-the-magento-compiler/"
rel="nofollow">http://www.brimllc.com/2012/03/magento-fun-with-debugging-the-magento-compiler/



No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...