Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After install extension MediaWiki crashes #31

Open
aweiand opened this issue Dec 22, 2022 · 0 comments
Open

After install extension MediaWiki crashes #31

aweiand opened this issue Dec 22, 2022 · 0 comments

Comments

@aweiand
Copy link

aweiand commented Dec 22, 2022

Hi,

I'm using

  • MediaWiki 1.39.0
  • PHP 8.2.0 (apache2handler)
  • PostgreSQL 12.12 (Ubuntu 12.12-0ubuntu0.20.04.1)
  • ICU 66.1

When install the MW-OAuth2Client plugin, the wiki crashes with this log:

MediaWiki internal error.

Original exception: [2e396053cc7b7c886e169824] /mediawiki/index.php/Especial:Vers%C3%A3o TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class User does not have a method "isLoggedIn"
Backtrace:
from /var/www/html/mediawiki/includes/StubObject.php(120)
#0 /var/www/html/mediawiki/includes/StubObject.php(149): StubObject->_call()
#1 /var/www/html/mediawiki/extensions/MW-OAuth2Client/OAuth2Client.php(24): StubObject->__call()
#2 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(338): OAuth2ClientHooks::onPersonalUrls()
#3 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#4 /var/www/html/mediawiki/includes/HookContainer/HookRunner.php(3045): MediaWiki\HookContainer\HookContainer->run()
#5 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(582): MediaWiki\HookContainer\HookRunner->onPersonalUrls()
#6 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(1262): SkinTemplate->buildPersonalUrls()
#7 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(790): SkinTemplate->buildContentNavigationUrlsInternal()
#8 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(229): SkinTemplate->getPortletsTemplateData()
#9 /var/www/html/mediawiki/includes/skins/SkinMustache.php(88): SkinTemplate->getTemplateData()
#10 /var/www/html/mediawiki/skins/Vector/includes/SkinVector.php(434): SkinMustache->getTemplateData()
#11 /var/www/html/mediawiki/skins/Vector/includes/SkinVector22.php(168): MediaWiki\Skins\Vector\SkinVector->getTemplateData()
#12 /var/www/html/mediawiki/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#13 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(177): SkinMustache->generateHTML()
#14 /var/www/html/mediawiki/includes/OutputPage.php(2876): SkinTemplate->outputPage()
#15 /var/www/html/mediawiki/includes/MediaWiki.php(922): OutputPage->output()
#16 /var/www/html/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
#17 /var/www/html/mediawiki/index.php(50): MediaWiki->run()
#18 /var/www/html/mediawiki/index.php(46): wfIndexMain()
#19 {main}

Exception caught inside exception handler: [2e396053cc7b7c886e169824] /mediawiki/index.php/Especial:Vers%C3%A3o Error: Call to undefined method User::isLoggedIn()
Backtrace:
from /var/www/html/mediawiki/extensions/MW-OAuth2Client/OAuth2Client.php(24)
#0 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(338): OAuth2ClientHooks::onPersonalUrls()
#1 /var/www/html/mediawiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /var/www/html/mediawiki/includes/HookContainer/HookRunner.php(3045): MediaWiki\HookContainer\HookContainer->run()
#3 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(582): MediaWiki\HookContainer\HookRunner->onPersonalUrls()
#4 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(1262): SkinTemplate->buildPersonalUrls()
#5 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(790): SkinTemplate->buildContentNavigationUrlsInternal()
#6 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(229): SkinTemplate->getPortletsTemplateData()
#7 /var/www/html/mediawiki/includes/skins/SkinMustache.php(88): SkinTemplate->getTemplateData()
#8 /var/www/html/mediawiki/skins/Vector/includes/SkinVector.php(434): SkinMustache->getTemplateData()
#9 /var/www/html/mediawiki/skins/Vector/includes/SkinVector22.php(168): MediaWiki\Skins\Vector\SkinVector->getTemplateData()
#10 /var/www/html/mediawiki/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#11 /var/www/html/mediawiki/includes/skins/SkinTemplate.php(177): SkinMustache->generateHTML()
#12 /var/www/html/mediawiki/includes/OutputPage.php(2876): SkinTemplate->outputPage()
#13 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(183): OutputPage->output()
#14 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(102): MWExceptionRenderer::reportHTML()
#15 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(131): MWExceptionRenderer::output()
#16 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(248): MWExceptionHandler::report()
#17 /var/www/html/mediawiki/includes/MediaWiki.php(584): MWExceptionHandler::handleException()
#18 /var/www/html/mediawiki/index.php(50): MediaWiki->run()
#19 /var/www/html/mediawiki/index.php(46): wfIndexMain()
#20 {main} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant