Page MenuHomePhabricator

PluggableAuthLogin TypeError ($titleFactory) must be of type MediaWiki\Title\TitleFactory
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • PluggableAuth 7.3.0 & SimpleSAMLphp 7.0.1 are installed on MW 1.39.13 and the authentication is working fine
  • Perform compose build --pull then docker compose up -d and the docker containers start to run normally (not any extension version updated)

What happens?:

During login attempt the following error occurs unexpected:

[631bca9bb48dabb7c9f53622] /index.php/Spezial:PluggableAuthLogin TypeError: MediaWiki\Extension\SimpleSAMLphp\SimpleSAMLphp::__construct(): Argument #1 ($titleFactory) must be of type MediaWiki\Title\TitleFactory, TitleFactory given, called in /var/www/html/vendor/wikimedia/object-factory/src/ObjectFactory.php on line 247

Backtrace:

from /var/www/html/extensions/SimpleSAMLphp/src/SimpleSAMLphp.php(89)
#0 /var/www/html/vendor/wikimedia/object-factory/src/ObjectFactory.php(247): MediaWiki\Extension\SimpleSAMLphp\SimpleSAMLphp->__construct(TitleFactory, MediaWiki\User\UserFactory, MediaWiki\Auth\AuthManager, MediaWiki\Extension\SimpleSAMLphp\Factory\SAMLClientFactory, MediaWiki\Extension\SimpleSAMLphp\Factory\MandatoryUserInfoProviderFactory)
#1 /var/www/html/vendor/wikimedia/object-factory/src/ObjectFactory.php(152): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec(array, array)
#2 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthFactory.php(206): Wikimedia\ObjectFactory\ObjectFactory->createObject(array, array)
#3 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthFactory.php(186): MediaWiki\Extension\PluggableAuth\PluggableAuthFactory->getInstanceByName(string)
#4 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(99): MediaWiki\Extension\PluggableAuth\PluggableAuthFactory->getInstance()
#5 /var/www/html/includes/specialpage/SpecialPage.php(701): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute(NULL)
#6 /var/www/html/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
#7 /var/www/html/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#8 /var/www/html/includes/MediaWiki.php(904): MediaWiki->performRequest()
#9 /var/www/html/includes/MediaWiki.php(562): MediaWiki->main()
#10 /var/www/html/index.php(50): MediaWiki->run()
#11 /var/www/html/index.php(46): wfIndexMain()
#12 {main}

What should have happened instead?:

No error should occur.

Note. On MW 1.43.3 with PluggableAuth 7.5.0 & SimpleSAMLphp 7.0.1 after the same docker update no error occurs, the authentication is still working fine.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

MediaWiki 1.39.13
PHP 8.1.33
PluggableAuth 7.3.0
SimpleSAMLphp 7.0.1
MySQL 8.4.5
Elasticsearch 7.10.2

Other information (browser name/version, screenshots, etc.):

Event Timeline

S0ring claimed this task.

The SimpleSAMLphp incompatibility in MW 1.39 has been fixed after downgrading the SimpleSAMLphp extension from newer 7.0.1 (4e87de2 from 2025-07-01) to older 7.0.1 (8402227 from 2024-02-09).