Page MenuHomePhabricator

Warning from PHPSessionHandler during changePassword.php
Closed, InvalidPublic

Description

When running maintenance/changePassword.php on a local instance (on a Windows server) I get the following warnings.

It's unclear if the password change went through (since the password was reset to what it should have been initially)

PHP Warning:  ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in C:\inetpub\wwwroot\mediawiki\includes\session\PHPSessionHandler.php on line 126
PHP Warning:  ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in C:\inetpub\wwwroot\mediawiki\includes\session\PHPSessionHandler.php on line 127
PHP Warning:  session_cache_limiter(): Cannot change cache limiter when headers already sent in C:\inetpub\wwwroot\mediawiki\includes\session\PHPSessionHandler.php on line 133 
PHP Warning:  session_set_save_handler(): Cannot change save handler when headers already sent in C:\inetpub\wwwroot\mediawiki\includes\session\PHPSessionHandler.php on line 140

Event Timeline

Potentially related to the problems in T124797, or not.

Get the same error on one of my wikis when running the update.php script, it runs through it, but it feels bad having these warnings around. I'll probably investigate this further in teh next time, if no-one reponds with an idea :)

Tgr subscribed.

Can't reproduce, and the task is very old. Might have been fixed since, or might have been related to some password handling extension. Please reopen if you encounter it, and provide a stack trace for the warning.