Page MenuHomePhabricator

PHP Warning: "headers already sent by" (from /w/thumb.php)
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.15

message
PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/mediawiki/php-1.35.0-wmf.15/includes/libs/http/MultiHttpClient.php:390)

Impact

There's not huge number of these, but as it seems like a clear programming error, I figure it's best to report so it doesn't get lost. Unless something changes, I"m not treating this as a train blocker.

Notes

Details

Request ID
XiBUVwpAME0AAL@4xfAAAAAX
Request URL
https://commons.wikimedia.org/w/thumb.php?width=650&f=Moby_1.jpg
Stack Trace
exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.35.0-wmf.15/thumb.php(688): header(string)
#2 /srv/mediawiki/php-1.35.0-wmf.15/thumb.php(335): wfThumbError(integer, string, NULL, array)
#3 /srv/mediawiki/php-1.35.0-wmf.15/thumb.php(43): wfStreamThumb(array)
#4 /srv/mediawiki/w/thumb.php(3): require(string)
#5 {main}

Event Timeline

Krinkle renamed this task from PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/mediawiki/php-1.35.0-wmf.15/includes/libs/http/MultiHttpClient.php:390) to PHP Warning: "headers already sent by" (from /w/thumb.php).Jan 23 2020, 11:42 AM
Krinkle edited projects, added Platform Engineering; removed Commons.
Krinkle added subscribers: WDoranWMF, daniel, Krinkle.

@WDoranWMF @daniel I saw some code going by from Daniel this week that address this or a similar issue. Can you confirm and de-duplicate or pick up further as needed?