Wordpress would randomly fail, because of server configuration
|Reported by:||kiprasm||Owned by:|
|Severity:||critical||Keywords:||implicit_flush, random failures|
this is a bug report + plus an actual way to fix it.
Basically, i just had an entire half of day of headaches, of why wordpress fails randomly. Sometimes it wont save pages, sometimes the voting plugin won't work, sometimes blog activation or image uploading would fail etc. etc.
Turns out it is my server configuration, which did not implicitly flush the output buffer after a script has finished executing (php.ini implicit_flush was set to 'Off'). Because of that, some ajax scripts would not work, wp-admin/index.php would freeze (left sidebar menu items would not expand after clicking on the arrows on the right), activation script was broken (only the top half would be shown), sometimes redirects would fail, throwing just blank pages (after a post edit for example), i could go on and on.. And all of this was fixed very easily (i am actually very surprised, has it never happened to other people??).
To fix it, i've added these 2 lines to wp-config.php:
Works like a charm now. I really think you should consider adding these lines to the default Wordpress package as well.