[wp-trac] [WordPress Trac] #15044: apache_mod_loaded fails due to ob_get_clean behavior on some servers

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 6 03:43:44 UTC 2010


#15044: apache_mod_loaded fails due to ob_get_clean behavior on some servers
---------------------------+------------------------------------------------
 Reporter:  hamfastgamgee  |       Owner:                 
     Type:  defect (bug)   |      Status:  new            
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  3.0.1          
 Severity:  major          |    Keywords:                 
---------------------------+------------------------------------------------
 On some servers, including Wordpress installs hosted by Green Geeks (PHP
 5.2.9: see http://www.greengeeks.com/phpinfo.php), apache_mod_loaded will
 actually fail in such a way that pages will cease to render, which affects
 both the Permalinks page and the Media uploader if running on a Mac.
 (There are possibly other side effects that I am unaware of, but these are
 the two major side effects I've seen.)

 The problem appears to be localized around the use of ob_get_clean in the
 definition of apache_mod_loaded in the branch that has to parse phpinfo.
 Replacing ob_get_clean with ob_get_contents and ob_end_clean fixes the
 problem entirely on the site I'm currently working on.  I realize
 ob_get_clean is supposed to be equivalent to ob_get_contents +
 ob_end_clean, but in this case at least, it seems to be significant.  I
 don't know why this is the case, but since it seems to be fixed and I have
 seen a number of support forum topics regarding the Media upload form with
 a Mac that suggested just commenting out the code that uses
 apache_mod_loaded to test for Mac + mod_security, I strongly suggest
 making this minor edit for the good of all users.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15044>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list