1

How do I find out which code section an error occurs in, if the site done on Joomla gives me a White Screen of Death?

I even know which module fails, and under what condition (it is a slideshow module, and it fails when one of the items to display are of video type), but I would like to check what place in the code it fails in, in the hope of perhaps correcting the problem myself (I am not the original developer, and I am not fluent in PHP yet).

NPC
  • 1,009
  • 3
  • 10
  • 27

1 Answers1

2

You need to enable error reporting in your environment. It is disabled by default due to security concerns. I think the easiest way would be to put the following lines of code in the beginning of your joomla installation's index.php file:

ini_set('display_errors','On'); 
error_reporting(E_ALL);

After you are done debugging do not forget to remove or comment out those two lines.

silvo
  • 4,011
  • 22
  • 26
  • Thanks, I'll try this and report back. – NPC Jul 28 '10 at 06:53
  • Sorry, I need to wait before I can put the site in the needed conditions for the test. I will make sure to accept your answer if it does help when I try it, though. Thanks again for your help. – NPC Jul 29 '10 at 14:48