On the following stack:
With LocalSetting.php
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'AuthRemoteUser' );
$wgPluggableAuth_EnableAutoLogin = true;
The extension does not recognize the authenticated user and if I click the "log in" link I get an Internal Error:
[5aad572c4cbdcf5645b0a573] 2025-07-07 15:17:35: Fatal exception of type "TypeError"
With Debug ON
[3a466f8970c98241571732bc] /index.php/Special:PluggableAuthLogin TypeError: MediaWiki\Extension\AuthRemoteUser\PluggableAuth::redirectToSpecialPage(): Argument #1 ($currentTitle) must be of type Title, MediaWiki\Title\Title given, called in /var/www/wikidev/extensions/AuthRemoteUser/src/PluggableAuth.php on line 58
Backtrace:
from /var/www/wikidev/extensions/AuthRemoteUser/src/PluggableAuth.php(131)
#0 /var/www/wikidev/extensions/AuthRemoteUser/src/PluggableAuth.php(58): MediaWiki\Extension\AuthRemoteUser\PluggableAuth->redirectToSpecialPage()
#1 /var/www/wikidev/extensions/PluggableAuth/includes/PluggableAuthLogin.php(103): MediaWiki\Extension\AuthRemoteUser\PluggableAuth->authenticate()
#2 /var/www/wikidev/includes/specialpage/SpecialPage.php(734): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute()
#3 /var/www/wikidev/includes/specialpage/SpecialPageFactory.php(1731): MediaWiki\SpecialPage\SpecialPage->run()
#4 /var/www/wikidev/includes/actions/ActionEntryPoint.php(499): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#5 /var/www/wikidev/includes/actions/ActionEntryPoint.php(143): MediaWiki\Actions\ActionEntryPoint->performRequest()
#6 /var/www/wikidev/includes/MediaWikiEntryPoint.php(202): MediaWiki\Actions\ActionEntryPoint->execute()
#7 /var/www/wikidev/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#8 {main}
On the following stack:
With LocalSetting.php
The extension does not recognize the authenticated user and if I click the "log in" link I get an Internal Error:
[5aad572c4cbdcf5645b0a573] 2025-07-07 15:17:35: Fatal exception of type "TypeError"With Debug ON
[3a466f8970c98241571732bc] /index.php/Special:PluggableAuthLogin TypeError: MediaWiki\Extension\AuthRemoteUser\PluggableAuth::redirectToSpecialPage(): Argument #1 ($currentTitle) must be of type Title, MediaWiki\Title\Title given, called in /var/www/wikidev/extensions/AuthRemoteUser/src/PluggableAuth.php on line 58
Backtrace: