TobiasWeller / SemanticTextAnnotator

Allows for adding Annotations to Wiki Articles
https://www.mediawiki.org/wiki/Extension:Semantic_Text_Annotator
MIT License
11 stars 3 forks source link

Error to access Special Page - Semantic Text Annotator #11

Open lotusccong opened 3 years ago

lotusccong commented 3 years ago

I installed the Semantic Text Annotator in Mediawiki 1.36.1, PHP 7.4.20, Semantic Mediawiki 3.2.3 and Page forms 4.9.5., Semantic Text Annotator 0.7.2

When I access the Special page at Semantic Text Annotator, I got this error -

2ca6e462371145fd88cd9410] /wiki/index.php/Special:SemanticTextAnnotator Error: Call to undefined method OutputPage::addWikiText()

Backtrace:

from D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\extensions\SemanticTextAnnotator\specials\SemanticTextAnnotatorSpecial.php(45)

0 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\includes\specialpage\SpecialPage.php(646): SemanticTextAnnotatorSpecial->execute()

1 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\includes\specialpage\SpecialPageFactory.php(1386): SpecialPage->run()

2 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\includes\MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

3 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\includes\MediaWiki.php(913): MediaWiki->performRequest()

4 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\includes\MediaWiki.php(546): MediaWiki->main()

5 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\index.php(53): MediaWiki->run()

6 D:\Bitnami\mediawiki-1.36.1-0\apps\mediawiki\htdocs\index.php(46): wfIndexMain()

7 {main}

May I know what is the recommended Mediawiki version I should use Semantic Text Annotator ? 1.36.X or 1.35.X or 1.27.X ? How about SMW version ?

krabina commented 3 years ago

I would recommend MediaWiki 1.35.X and the current version of SMW, since 1.36 is not supported by SMW yet.

krabina commented 3 years ago

btw. this fork is ahead, so it might be worth asking there: https://github.com/martiniusDE/SemanticTextAnnotator

lotusccong commented 3 years ago

I am using MediaWiki 1.35.X . Same error message even used https://github.com/martiniusDE/SemanticTextAnnotator, Concern that it doesn't support SMW 3.2.X

krabina commented 3 years ago

I doubt it has to do with SMW. The error is using an outdated call to a funtion of MediaWiki, see https://www.mediawiki.org/wiki/Topic:Vsdkqobtrag4802t and https://phabricator.wikimedia.org/rEPFM59c1d49f8d43af087eed9d3868576155b91e8125 If you have the nerve, you could try it in MW 1.31 and SMW 3.2.x

krabina commented 3 years ago

This could be related to PageForms, see https://phabricator.wikimedia.org/T228048 Or you could try this on SemanticTextAnnotatorSpecial.php https://www.mediawiki.org/wiki/Topic:Vsdkqobtrag4802t