Difference between revisions of "Site is blank"

(Error is not displayed even if error reporting is set to maximum or development)
(White Screen of Death)
Line 1: Line 1:
 
==White Screen of Death==
 
==White Screen of Death==
WSoD or popularly called '''White Screen of Death''' indicates that there is an error on the page, '''not necessarily caused by jomSocial''' even if page that is expected to be loaded is one of the jomSocial's pages. These white screens usually hide the exact error behind it, but these errors are cleverly hidden by Joomla to prevent simple (or malicious) users viewing your site paths.
+
Blank Page or popularly called '''White Screen of Death (WSoD)''' indicates that there is an error on the page, '''not necessarily caused by jomSocial''' even if page that is expected to be loaded is one of the jomSocial's pages. These white screens usually hide the exact error behind it, but these errors are cleverly hidden by Joomla to prevent simple (or malicious) users viewing your site paths.
  
 
===Enable Error Reporting in Joomla!===
 
===Enable Error Reporting in Joomla!===

Revision as of 00:29, 23 January 2013

White Screen of Death

Blank Page or popularly called White Screen of Death (WSoD) indicates that there is an error on the page, not necessarily caused by jomSocial even if page that is expected to be loaded is one of the jomSocial's pages. These white screens usually hide the exact error behind it, but these errors are cleverly hidden by Joomla to prevent simple (or malicious) users viewing your site paths.

Enable Error Reporting in Joomla!

Enabling this setting in Joomla! Global Configuration is usually enough for most of the errors to show up.
Please navigate to the Joomla Global Configuration in the site Back End and under Server Settings locate the Error Reporting option. It should be set to System Default which would hide the error with blank page.
You change this setting to Maximum or even Development. Save and go back to the page with WSoD
In most cases, you should be able to see what is the exact error now.

Error is not displayed even if error reporting is set to maximum or development

On the System Pane in Joomla Global Configuration, enable Debug System option. Save, and try again.
If that dont show the error either, dont panic. Some developers put this code into their extensions

/* Enable this when debugging*/
error_reporting(E_ALL);
ini_set('display_errors','0');


In essence, this little piece of code, if loaded on the page, will force Joomla! not to show any error even if you enable System Debug and Error Reporting. It is most commonly used by beginner developers to hide notices and warnings in their code, but rest asured, that jomSocial dont use this nasty trick to hide any errors in any piece of its code.
You will have to track down which extension prevents Joomla! to display errors, and that could potentially involve disabling many plugins, modules and components, but in most cases, it is the only way to hunt it down properly.
A hint: its not jomSocial, you can confidently skip disabling any jomSocial extension provided in our download package.

Back End is blank too

Houston, we have a problem!!!
Well, not really... If Back End of site returns WSoD and you cant enable Error reporting you will just have to use the nasty trick we mentioned earlier but this time, paste it into

ROOT/administrator/index.php

Open that file and immediately after

define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);


paste this little nifty code

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


Now you should be able to view the error behind blank screen.

Back End still blank, even after trying the custom hack

This is potentially the biggest problem you might experience, but solution is the same as if it was for not displaying errors in Front End, only this time, You will have to disable extensions directly in the Joomla Database and that can be potentially dangerous if you dont know what you doing, so plese, make a backup before you do anything.