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

"Error: Call to undefined method LocalFile::getUser()" While I'm uploading the image #56

Open
hapugov opened this issue Nov 26, 2023 · 1 comment

Comments

@hapugov
Copy link

hapugov commented Nov 26, 2023

Hello everyone, I encountered a problem that when the add-on is enabled, uploading pictures to the wiki does not work. If you turn it off, the pictures are quietly unloaded.

[7c377a646d61f5d4db582efd] /index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%97%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B0 Error: Call to undefined method LocalFile::getUser()

Backtrace:

from /var/www/domain.example/extensions/Discord/src/DiscordHooks.php(261)
#0 /var/www/domain.example/includes/HookContainer/HookContainer.php(338): DiscordHooks::onUploadComplete()
#1 /var/www/domain.example/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /var/www/domain.example/includes/HookContainer/HookRunner.php(4080): MediaWiki\HookContainer\HookContainer->run()
#3 /var/www/domain.example/includes/upload/UploadBase.php(940): MediaWiki\HookContainer\HookRunner->onUploadComplete()
#4 /var/www/domain.example/includes/specials/SpecialUpload.php(568): UploadBase->performUpload()
#5 /var/www/domain.example/includes/specials/SpecialUpload.php(232): SpecialUpload->processUpload()
#6 /var/www/domain.example/includes/specialpage/SpecialPage.php(701): SpecialUpload->execute()
#7 /var/www/domain.example/includes/specialpage/SpecialPageFactory.php(1475): SpecialPage->run()
#8 /var/www/domain.example/includes/MediaWiki.php(327): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#9 /var/www/domain.example/includes/MediaWiki.php(923): MediaWiki->performRequest()
#10 /var/www/domain.example/includes/MediaWiki.php(576): MediaWiki->main()
#11 /var/www/domain.example/index.php(50): MediaWiki->run()
#12 /var/www/domain.example/index.php(46): wfIndexMain()
#13 {main}
@MPThLee
Copy link

MPThLee commented Dec 31, 2023

I think you should update extension. The getUser method usage on onUploadComplete removed in 96070a6

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

2 participants