how I fixed the “blank page” error
-
The “include” process in WordPress relies heavily on two PHP features: the magic __FILE__ constant and the ability to include files from the parent directory (i.e. “include(‘../wp-config.php’);”).
Unfortunately, on some installations, these features can be disabled for security reasons or simply unreliable. My situation (mod_php 4.2.3 on OpenBSD 3.4) was one of them: __FILE__ behaved pretty oddily and php didn’t allow me to include files specified as “../”.
The solution: hard work. Thanks to jEdit and its Search/Replace, I’ve modified all the include() and require() statements that:
– used relative references, or
– relied on __FILE__
replacing them with absolute pathnames (like “/home/myaccount/myblog.com/myfile.php”) .
IMHO, especially __FILE__ is responsible for a good part of the “blank screens” out there… maybe the WP shoud spend some time to fix it.
- The topic ‘how I fixed the “blank page” error’ is closed to new replies.