[wp-trac] [WordPress Trac] #10638: Wordpress would randomly fail, because of server configuration
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 18 12:32:25 UTC 2009
#10638: Wordpress would randomly fail, because of server configuration
--------------------------+-------------------------------------------------
Reporter: kiprasm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.5
Component: General | Version: 2.8.1
Severity: critical | Keywords: implicit_flush,random failures
--------------------------+-------------------------------------------------
Hey,
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:
ini_set('implicit_flush', 'On');
ob_implicit_flush();
Works like a charm now. I really think you should consider adding these
lines to the default Wordpress package as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10638>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list