Error
Request URL: /wiki/Special:CentralAutoLogin/toolslist?returnto=Module%3ACitation%2FCS1&returntoquery=
Request ID: XShC5QpAAEAAAJ6X@I0AAAAG
Message:
PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/mediawiki/php-1.34.0-wmf.13/extensions/CentralAuth/includes/specials/SpecialCentralAutoLogin.php:646)
Trace:
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/php-1.34.0-wmf.13/includes/WebResponse.php(208): setcookie(string, string, integer, string, string, boolean, boolean) #2 /srv/mediawiki/php-1.34.0-wmf.13/includes/block/BlockManager.php(493): WebResponse->setCookie(string, string, string, array) #3 /srv/mediawiki/php-1.34.0-wmf.13/includes/block/BlockManager.php(460): MediaWiki\Block\BlockManager->setBlockCookie(MediaWiki\Block\DatabaseBlock, WebResponse) #4 /srv/mediawiki/php-1.34.0-wmf.13/includes/deferred/MWCallableUpdate.php(38): MediaWiki\Block\BlockManager->MediaWiki\Block\{closure}() #5 /srv/mediawiki/php-1.34.0-wmf.13/includes/deferred/DeferredUpdates.php(309): MWCallableUpdate->doUpdate() #6 /srv/mediawiki/php-1.34.0-wmf.13/includes/deferred/DeferredUpdates.php(265): DeferredUpdates::attemptUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti) #7 /srv/mediawiki/php-1.34.0-wmf.13/includes/deferred/DeferredUpdates.php(217): DeferredUpdates::handleUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactoryMulti, string, integer) #8 /srv/mediawiki/php-1.34.0-wmf.13/includes/deferred/DeferredUpdates.php(140): DeferredUpdates::handleUpdateQueue(array, string, integer) #9 /srv/mediawiki/php-1.34.0-wmf.13/includes/MediaWiki.php(600): DeferredUpdates::doUpdates(string, integer) #10 /srv/mediawiki/php-1.34.0-wmf.13/includes/MediaWiki.php(566): MediaWiki::preOutputCommit(RequestContext, Closure) #11 /srv/mediawiki/php-1.34.0-wmf.13/includes/MediaWiki.php(900): MediaWiki->doPreOutputCommit(Closure) #12 /srv/mediawiki/php-1.34.0-wmf.13/includes/MediaWiki.php(515): MediaWiki->main() #13 /srv/mediawiki/php-1.34.0-wmf.13/index.php(42): MediaWiki->run() #14 /srv/mediawiki/w/index.php(3): require(string) #15 {main}
Impact
The attempt to set the block cookie fails for this page load. I'd expect the block cookie to be set successfully on returning to the page that the user was originally attempting to access.
Notes
This seems to be related to https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/519177/ which defers setting the block cookie. The attempt to set the cookie now happens after SpecialCentralAutoLogin has output the personal tools list, which is too late.