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

Unable to block users after upgrading to MW 1.39.1 and DiscorNotifications 1.1.4 (according to the Special:Version info) #98

Open
Kiokurashi opened this issue Jan 7, 2023 · 0 comments

Comments

@Kiokurashi
Copy link

Kiokurashi commented Jan 7, 2023

I get this error (with internal paths trunicated to important parts) whenever we try to block a user and have this extension enabled.

[19c2ae4815c59a70cde895cd]  /Special:Block/TestUser Error: Call to undefined method MediaWiki\Block\DatabaseBlock::getTarget()

Backtrace:

from   /extensions/DiscordNotifications/DiscordNotificationsCore.php(418)
#0   /includes/HookContainer/HookContainer.php(338): DiscordNotificationsCore::onDiscordUserBlocked()
#1   /includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2   /includes/HookContainer/HookRunner.php(1039): MediaWiki\HookContainer\HookContainer->run()
#3   /includes/block/BlockUser.php(604): MediaWiki\HookContainer\HookRunner->onBlockIpComplete()
#4   /includes/block/BlockUser.php(532): MediaWiki\Block\BlockUser->placeBlockInternal()
#5   /includes/block/BlockUser.php(466): MediaWiki\Block\BlockUser->placeBlockUnsafe()
#6   /includes/specials/SpecialBlock.php(922): MediaWiki\Block\BlockUser->placeBlock()
#7   /includes/specials/SpecialBlock.php(1036): SpecialBlock::processFormInternal()
#8   /includes/htmlform/HTMLForm.php(725): SpecialBlock->onSubmit()
#9   /includes/htmlform/HTMLForm.php(615): HTMLForm->trySubmit()
#10   /includes/htmlform/HTMLForm.php(631): HTMLForm->tryAuthorizedSubmit()
#11   /includes/specialpage/FormSpecialPage.php(209): HTMLForm->show()
#12   /includes/specialpage/SpecialPage.php(701): FormSpecialPage->execute()
#13   /includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#14   /includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#15   /includes/MediaWiki.php(904): MediaWiki->performRequest()
#16   /includes/MediaWiki.php(562): MediaWiki->main()
#17   /index.php(50): MediaWiki->run()
#18   /index.php(46): wfIndexMain()
#19 {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