Topic on Extension talk:Semantic MediaWiki

Which version to install for MW 1.31?

6
AnonymusGdpr (talkcontribs)

Hello there, I have recently upgraded our wiki to MW 1.31. Now I want to install SMW and therefore I downloaded the extension from github. I chose branch 3.0.x. Now I receive the following message via Apache error log:

[Mon Dec 10 13:44:09.696457 2018] [php7:error] [pid 26447] [client 79.226.0.171:53406] PHP Fatal error:  Uncaught UnexpectedValueException: callback 'SemanticMediaWiki::initExtension' is not callable in /var/www/test/mediawiki/includes/registration/ExtensionRegistry.php:360\nStack trace:
#0 /var/www/test/mediawiki/includes/registration/ExtensionRegistry.php(159): ExtensionRegistry->exportExtractedData(Array)
#1 /var/www/test/mediawiki/includes/Setup.php(116): ExtensionRegistry->loadFromQueue()\n#2 /var/www/test/mediawiki/includes/WebStart.php(88): require_once('/var/www/test/m...')
#3 /var/www/test/mediawiki/index.php(39): require('/var/www/test/m...')
#4 {main}\n  thrown in /var/www/test/mediawiki/includes/registration/ExtensionRegistry.php on line 360, referer: https://test.perrypedia.proc.org/wiki/Spezial:Spezialseiten

So the question is, which version (branch) should I use?

Kghbln (talkcontribs)

Note that SMW gets invoked like this only, e.g.:

enableSemantics( test.perrypedia.proc.org );

No requrire_once, no wfLoadExtension etc. Also note that you cannot install it using some tarball etc. To use Composer is imperative.

You may use 2.5.x or 3.0.x (preferred)

AnonymusGdpr (talkcontribs)

Not very easy and not very user-friendly, but finally I got it.

Now the setupStore script is running and I am a little bit worried. The current step is "Checking smw_hash field ... missing 232626 rows". Running for more than one hour now it shows "updating document no. 3045 (1%)"

Does it mean I will have to watch that job for more than four days?

AnonymusGdpr (talkcontribs)

I cancelled the job now. 3 hrs, 3 %, sorry: unbearable.

AnonymusGdpr (talkcontribs)

Much better, the database is corrupted now. I can no longer run the regular update.php, nor is it possible to uninstall SMW and/or the composer. Luckily it is just the test wiki. I now am considering of never trying it again.

Kghbln (talkcontribs)

Sorry that it does not work out for you.