Jump to content


Table of Contents

Tutorial info Visit support topic

  • Added on: Jun 26 2007 07:55 PM
  • Date Updated: Apr 16 2011 12:49 AM
  • Views: 5303
 


* * * * *
2 Ratings

White pages

Got a white page, but have no clue what's causing it?

Posted by Martin on Jun 26 2007 07:55 PM
I've seen a lot of topics like this lately, and my answer is almost the same to everyone.

When you have a error in i.e a skin, IPB will show a with page instead of showing the real error. This can be a real nightmare, since you don't what's causing it.
But if can see the real error, it will help you, and especially those who are trying to help you. A white page could be thousand of thing, a error message will short it down to just a few.

So here we go.

The following instructions are for IP.Board 3.0 and above, for 2.3 instructions, go to page 2.


Open ./initdata.php and find:
if( version_compare( PHP_VERSION, '5.2.0', '>=' ) )
{
	error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}
else
{
	error_reporting( E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING );
}
Add below:
error_reporting( E_ALL );
@ini_set( 'display_errors', 1 );
Save and upload

Now you should see the real error. If you add that to your support topic, it would help a lot.  Be warned, turning this on can generate a LOT of errors, but it's generally the last one, or anything that mentions a 'fatal error' that are typically the root cause of the problem.

Don't forget to undo the edits after your problem have been solved!

Powered by Tutorials 1.4.1 © 2012, by Michael McCune