Dreamhost, Wordpress, wp-cache 2.0.17, php 5.1.2 and blank pages problem [ob_end_flush() vs ob_end_clean()]
If you have problem with your Wordpress (1.5.2, 2.0 or 2.1 with wp-cache 2.0.17) based pages after upgrading php to 5.1.2 (on Dreamhost or any other hosting company), you must fix wp-cache-phase2.php file to solve the problem.
To solve the problem:
- Open wp-cache-phase2.php file* in your favourite text editor (I hope it’s not MS Word)
- Find out wp_cache_ob_end function
- then inside that function find out line with: ob_end_clean(); (it should be line 219 or about)
- and finally replace that line with: ob_end_flush();
That’s it, it should work now, bye bye blank pages
* - you can find it in /your_blog_path/wp-content/plugins/wp-cache directory
Related entries:
- Best cache plugin for Wordpress
- Very usefull WordPress trackback tutorial
- WordPress trackback spam plugin.
- How to check CPU(s) information on Linux
- Force Enable Incompatible Extensions In Firefox 3