Extension talk:AutomaticREMOTE USER
![]() Archives
| ||
---|---|---|
| ||
$hookContainer must not be accessed before initialization
MediaWiki version 1.43.1
Extension package: Auth_remoteuser-REL1_43-c985d52.tar.gz
OS: Ubuntu 22.04
Webserver: Apache 2.4.52
We are attempting to upgrade from Mediawiki 1.39.11 LTS to Mediawiki 1.43.1. The Auth_remoteuser extension is working correctly under version 1.39.11. However, when implementing MW 1.43.1 and the latest stable release package of the Auth_remoteuser extension, the following error is generated during a php php.run rebuildall.php. Also, the wiki will not load without display the same error There have been no changes to the LocalSettings.php, just the software upgrade to the new LTS. . If Auth_remoteuser is commented out, the wiki launches correctly, but kerberos authentication based on the remote user credentials is no longer possible. Any possible suggestions to correct this would be greatly appreciated! Thank you.
** Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.
Refreshing links from pages...
[f0f9dfc903d97501c8b9881c] [no req] Error: Typed property MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider::$hookContainer must not be accessed before initialization
Backtrace:
from /var/www/html/extensions/Auth_remoteuser/src/AuthRemoteuserSessionProvider.php(247)
#0 /var/www/html/extensions/Auth_remoteuser/src/AuthRemoteuserSessionProvider.php(205): MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider->setUserNameReplaceFilter()
#1 /var/www/html/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider->__construct()
#2 /var/www/html/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
#3 /var/www/html/includes/session/SessionManager.php(482): Wikimedia\ObjectFactory\ObjectFactory->createObject()
#4 /var/www/html/includes/session/SessionManager.php(541): MediaWiki\Session\SessionManager->getProviders()
#5 /var/www/html/includes/session/SessionManager.php(248): MediaWiki\Session\SessionManager->getSessionInfoForRequest()
#6 /var/www/html/includes/Request/WebRequest.php(867): MediaWiki\Session\SessionManager->getSessionForRequest()
#7 /var/www/html/includes/user/User.php(1079): MediaWiki\Request\WebRequest->getSession()
#8 /var/www/html/includes/user/User.php(435): MediaWiki\User\User->loadFromSession()
#9 /var/www/html/includes/user/User.php(1582): MediaWiki\User\User->load()
#10 /var/www/html/includes/user/Options/UserOptionsManager.php(607): MediaWiki\User\User->getName()
#11 /var/www/html/includes/user/Options/UserOptionsManager.php(262): MediaWiki\User\Options\UserOptionsManager->getCacheKey()
#12 /var/www/html/extensions/Math/src/Hooks.php(107): MediaWiki\User\Options\UserOptionsManager->setOption()
#13 /var/www/html/includes/HookContainer/HookContainer.php(159): MediaWiki\Extension\Math\Hooks->onMaintenanceRefreshLinksInit()
#14 /var/www/html/includes/HookContainer/HookRunner.php(2512): MediaWiki\HookContainer\HookContainer->run()
#15 /var/www/html/maintenance/refreshLinks.php(140): MediaWiki\HookContainer\HookRunner->onMaintenanceRefreshLinksInit()
#16 /var/www/html/maintenance/refreshLinks.php(121): RefreshLinks->doRefreshLinks()
#17 /var/www/html/maintenance/rebuildall.php(62): RefreshLinks->execute()
#18 /var/www/html/maintenance/includes/MaintenanceRunner.php(703): RebuildAll->execute()
#19 /var/www/html/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#20 {main} 11L3290 (talk) 17:08, 18 April 2025 (UTC)
- What was your resolution? I am seeing the same issue. I have updated all of my extensions and cant seem to figure this out. Gcoltharp (talk) 15:52, 9 May 2025 (UTC)
- No resolution as yet. Any of the previous variable configurations that worked in 2.1.1 (10e9302) which is compatible with 1.39 LTS is throwing the error.
- So, for example, for 2.1.1 of Auth_remoteuser this worked. $wgAuthRemoteuserDomain = "xyz.com";
- But for the latest release of the extension, it's throwing the error if this value is preset. Comment this, and entries like it from LocalSettings.php, then the error goes away. However, even though the user is pulled from the client connection, it's not being passed for Kerberos authentication by subsequent extensions, which does work with 2.1.1 for 1.39LTS.
- I've tested this using the same Apache configurations for both 1.39 LTS and 1.43.1. So, no resolution as yet. 11L3290 (talk) 15:44, 12 May 2025 (UTC)
- // I have the same problem when migrating from version 1.39 to wiki version 1.43. I installed the latest version of the extension through git to integrate with Kerberos and the GSSAPI module in Apache 2.4. However, it does not integrate.
- // I followed the documentation and it displays the following error.
- [aC44RVC1hcl54NDRb3FT6wAAAME] /wiki/index.php?title=P%C3%A1gina_principal Error: Typed property MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider::$hookContainer must not be accessed before initialization
- Backtrace:
- from /var/www/html/wiki/extensions/Auth_remoteuser/src/AuthRemoteuserSessionProvider.php(248)
- 0 /var/www/html/wiki/extensions/Auth_remoteuser/src/AuthRemoteuserSessionProvider.php(114): MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider->setUserNameReplaceFilter()
- 1 /var/www/html/wiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): MediaWiki\Extension\Auth_remoteuser\AuthRemoteuserSessionProvider->__construct()
- 2 /var/www/html/wiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
- 3 /var/www/html/wiki/includes/session/SessionManager.php(482): Wikimedia\ObjectFactory\ObjectFactory->createObject()
- 4 /var/www/html/wiki/includes/session/SessionManager.php(541): MediaWiki\Session\SessionManager->getProviders()
- 5 /var/www/html/wiki/includes/session/SessionManager.php(248): MediaWiki\Session\SessionManager->getSessionInfoForRequest()
- 6 /var/www/html/wiki/includes/Request/WebRequest.php(867): MediaWiki\Session\SessionManager->getSessionForRequest()
- 7 /var/www/html/wiki/includes/session/SessionManager.php(167): MediaWiki\Request\WebRequest->getSession()
- 8 /var/www/html/wiki/includes/Setup.php(492): MediaWiki\Session\SessionManager::getGlobalSession()
- 9 /var/www/html/wiki/includes/WebStart.php(85): require_once(string)
- 10 /var/www/html/wiki/index.php(50): require(string)
- 11 {main}
- Could someone provide support or help? 138.97.21.202 20:33, 21 May 2025 (UTC)