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

Not working on 1.28.2 #3

Closed Ilja-developer closed 7 years ago

Ilja-developer commented 7 years ago

Hi There,

Installed it on version 1.28.2 and get 2 signs:

    • Notice: Use of undefined constant PF_NS_FORM - assumed 'PF_NS_FORM' in .\extensions\SemanticTextAnnotator\SemanticTextAnnotator.hooks.php on line 45
    • Warning: Parameter 1 to SemanticTextAnnotatorHooks::onBeforePageDisplay() expected to be a reference, value given in .\includes\Hooks.php on line 195

Any ideas?

TobiasWeller commented 7 years ago

Hey, I tested it on version 1.28.2 and did not get any error. Did you install PageForms?...because this is a prerequisite of Semantic Text Annotator (as well as Semantic MediaWiki) (an probably the issue of 1.)

Cheers Tobi

Ilja-developer commented 7 years ago

Hi!

Thanks so much for the quick reply. I'm totally new to Media wiki. So if I understand correctly I install MediaWiki, then SemanticWiki, then PageForms and then this extension?

Again, many thanks seems like an amazing extension.

Ilja

TobiasWeller commented 7 years ago

Hello Ilja,

yes exactly.

And then install Semantic Text Annotator.

Cheers Tobi

Ilja-developer commented 7 years ago

Hi Tobias,

No luck here :(

Did it exactly as you said and get these errors:

  1. Warning: Parameter 1 to SMW\MediaWiki\Hooks\HookRegistry::SMW\MediaWiki\Hooks{closure}() expected to be a reference, value given in ..\includes\Hooks.php on line 195
  2. Warning: Parameter 1 to SMW\MediaWiki\Hooks\HookRegistry::SMW\MediaWiki\Hooks{closure}() expected to be a reference, value given in ..\includes\Hooks.php on line 195
  3. Warning: Parameter 1 to SemanticTextAnnotatorHooks::onBeforePageDisplay() expected to be a reference, value given in ..\includes\Hooks.php on line 195
  4. Warning: Parameter 1 to SMW\MediaWiki\Hooks\HookRegistry::SMW\MediaWiki\Hooks{closure}() expected to be a reference, value given in ..\includes\Hooks.php on line 195

MediaWiki 1.28.2 PHP 7.1.4 (apache2handler) MariaDB 10.1.22-MariaDB

Extension Version Semantic MediaWiki 2.5.2 GPL-2.0+ Semantic Text Annotator 0.5 Page Forms 4.1.1 GPL-2.0+

So sad it looks so amazing and all..

TobiasWeller commented 7 years ago

Hey Ilja, Thanks for the infos. I guess it's because of your PHP Version. MediaWiki Version 1.28.2 is not compatible with PHP 7.1.4.

Please note that MediaWiki is not yet fully compatible with PHP 7.1... [1]

I would recommend to use PHP version 7.0.12. At least I used this version for testing and it worked.

Cheers Tobi

[1] https://www.mediawiki.org/wiki/Compatibility#PHP

Ilja-developer commented 7 years ago

Hi Tobias,

Ah thats sucks! Thanks so much for the reply. Seems like an great extra!

TobiasWeller commented 7 years ago

You closed the thread, so I guess it works?! Thank you :)

Ilja-developer commented 7 years ago

No, my server runs on the newest PHP so I can't test it. I now use https://web.hypothes.is/.