[wp-trac] [WordPress Trac] #14730: ms-files.php required ob_clean() and flush()

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 5 14:59:50 UTC 2012


#14730: ms-files.php required ob_clean() and flush()
-------------------------------------+-----------------------------
 Reporter:  pj_mfc                   |       Owner:  westi
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  Future Release
Component:  Multisite                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by willmot):

 I reproduced this on WordPress 3.2.1 although it only affected files that
 were smaller than 8k.

 Any image larger than 8k works fine, images smaller than 8k return nothing

 `
 $ wget
 http://triblocal.dev/evanston/files/cache/2012/01/Selver_3/786845602.jpg
 --2012-01-05 14:56:26--
 http://triblocal.dev/evanston/files/cache/2012/01/Selver_3/786845602.jpg
 Resolving triblocal.dev (triblocal.dev)... 127.0.0.1
 Connecting to triblocal.dev (triblocal.dev)|127.0.0.1|:80... connected.
 HTTP request sent, awaiting response... No data received.
 Retrying.
 `

 After I add `flush();` after the `readfile();` it works

 `
 $ wget
 http://triblocal.dev/evanston/files/cache/2012/01/Selver_3/786845602.jpg
 --2012-01-05 14:58:11--
 http://triblocal.dev/evanston/files/cache/2012/01/Selver_3/786845602.jpg
 Resolving triblocal.dev (triblocal.dev)... 127.0.0.1
 Connecting to triblocal.dev (triblocal.dev)|127.0.0.1|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 7306 (7.1K) [image/jpeg]
 Saving to: `786845602.jpg.1'

 100%[====================================================================================================================================================================================================================================================================================>]
 7,306       --.-K/s   in 0s

 2012-01-05 14:58:11 (332 MB/s) - `786845602.jpg.1' saved [7306/7306]
 `

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14730#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list