Page MenuHomePhabricator

extract2.php is noisy with "Cannot modify header information - headers already sent"
Closed, ResolvedPublic

Description

From testing on beta, extract2.php seemingly makes quite a bit of noise

Warning: Cannot modify header information - headers already sent by (output started at /data/project/apache/common-local/php-master/includes/WebStart.php:79) in /data/project/apache/common-local/wmf-config/CommonSettings.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /data/project/apache/common-local/php-master/includes/WebStart.php:79) in /data/project/apache/common-local/extract2.php on line 37
(10.4.0.166)
Warning: Cannot modify header information - headers already sent by (output started at /data/project/apache/common-local/php-master/includes/WebStart.php:79) in /data/project/apache/common-local/extract2.php on line 38
(10.4.0.166)
Warning: Cannot modify header information - headers already sent by (output started at /data/project/apache/common-local/php-master/includes/WebStart.php:79) in /data/project/apache/common-local/extract2.php on line 39

Presumably the CommonSettings.php one affects all requests?

1 NOTICE already fixed (but not merged/deployed etc) in https://gerrit.wikimedia.org/r/#/c/92800/

Notice: Constant MEDIAWIKI already defined in /data/project/apache/common-local/php-master/includes/WebStart.php on line 79


Version: wmf-deployment
Severity: normal

Details

Reference
bz56399

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:23 AM
bzimport set Reference to bz56399.
bzimport added a subscriber: Unknown Object (MLST).

Change 92828 had a related patch set uploaded by Reedy:
Wrap extrac2.php in ob_start()/ob_flush()

https://gerrit.wikimedia.org/r/92828

Change 92828 abandoned by Reedy:
Wrap extract2.php in ob_start()/ob_flush()

https://gerrit.wikimedia.org/r/92828