Topic on Project:Support desk

Error while thanking a user for an edit.

6
103.118.50.4 (talkcontribs)

I installed Extension:Thanks , but when I tried to thank a user in my wiki for a rivison to an article, this error appeared-->

[ab483df2c97b19cad31449d4] /wiki/index.php/Special:Thanks/140 TypeError from line 1223 of C:\wamp64\www\wiki\extensions\Echo\includes\DiscussionParser.php: Argument 1 passed to EchoDiscussionParser::getEditExcerpt() must be an instance of MediaWiki\Revision\RevisionRecord, instance of Revision given, called in C:\wamp64\www\wiki\extensions\Thanks\includes\ApiCoreThank.php on line 50

Backtrace:

0 C:\wamp64\www\wiki\extensions\Thanks\includes\ApiCoreThank.php(50): 
    EchoDiscussionParser::getEditExcerpt(Revision, LanguageEn)
1 C:\wamp64\www\wiki\includes\api\ApiMain.php(1570): ApiCoreThank->execute()
2 C:\wamp64\www\wiki\includes\api\ApiMain.php(500): ApiMain->executeAction()
3 C:\wamp64\www\wiki\extensions\Thanks\includes\SpecialThanks.php(166): ApiMain- 
   >execute()
4 C:\wamp64\www\wiki\includes\htmlform\HTMLForm.php(665): SpecialThanks >onSubmit(array, OOUIHTMLForm)
5 C:\wamp64\www\wiki\includes\htmlform\HTMLForm.php(557): HTMLForm->trySubmit()
6 C:\wamp64\www\wiki\includes\htmlform\HTMLForm.php(572): HTMLForm->tryAuthorizedSubmit()
7 C:\wamp64\www\wiki\includes\specialpage\FormSpecialPage.php(184): HTMLForm->show()
8 C:\wamp64\www\wiki\includes\specialpage\SpecialPage.php(569): FormSpecialPage->execute(string)
9 C:\wamp64\www\wiki\includes\specialpage\SpecialPageFactory.php(568): SpecialPage->run(string)
10 C:\wamp64\www\wiki\includes\MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
11 C:\wamp64\www\wiki\includes\MediaWiki.php(860): MediaWiki->performRequest()
12 C:\wamp64\www\wiki\includes\MediaWiki.php(517): MediaWiki->main()
13 C:\wamp64\www\wiki\index.php(42): MediaWiki->run()
14 {main}
Malyacko (talkcontribs)

Which exact MediaWiki version? Which exact Echo version? Which exact Thanks version?

103.118.50.4 (talkcontribs)
MediaWiki  1.32.2
PHP        7.2.18 (apache2handler)
MySQL      5.7.26
ICU        63.1
Extension:Thanks version-1.2.0 (latest stable version)
Echo version can't be seen at the Special:version page, but it is the one which is used for MediaWiki version 1.32.0 or later.
MarkAHershberger (talkcontribs)

If the Echo version doesn't show up on the version page, then it probably isn't being used. Did you make sure it is Loaded in LocalSettings.php?

103.118.50.4 (talkcontribs)

I checked again, it is loaded in LocalSettings.php.

And I am sure it is working because the users are perfectly getting notifications etc in the wiki without any error.


I checked Echo's extension.json file, in that file version is not mentioned, maybe that is why the extension is listed on my Special:version page but it's version is not showing up in the designated field.

103.118.50.4 (talkcontribs)

I tried thanking users in StructuredDiscussions, and it is working perfectly !

BUT when I am thanking users for their contributions to an article(thanking through the article history page) , instead of this Backtrace , an alert box is appearing now, saying :

Thank action failed (error code: internal_api_error_TypeError).
 Please try again.
Reply to "Error while thanking a user for an edit."