Jump to content

Topic on Extension talk:Semantic MediaWiki

mediawiki/semantic-media-wiki: 2.5.0 installed, ~2.5 required.

4
Summary by Kghbln

use "update.php --skip-external-dependencies"

Spas.Z.Spasov (talkcontribs)

I'm not sure is it a bug or I'm doing something wrong but after the command composer require mediawiki/semantic-media-wiki "~2.5" --update-no-dev when I'm running php $IP/maintenance/updae.php this message appears:

mediawiki/semantic-media-wiki: 2.5.0 installed, ~2.5 required.
Error: your composer.lock file is not up to date. Run "composer update" to install newer dependencies

This problem was solved when I changed 'semantic-media-wiki' directive in composer.json from:

"mediawiki/semantic-media-wiki": "~2.5"

to:

"mediawiki/semantic-media-wiki": "2.5.0"

It it the right solution?

Kghbln (talkcontribs)

This way you will have to update your file every time a new version is released. See here for another way around this.

Rajeshrajesh.35 (talkcontribs)

Still i am getting this error, i am user MW 1.31 on Linux


php mediawiki/maintenance/update.php


[75e73f31277a0653322c648c] [no req]   Error from line 163 of /var/www/html/mediawiki/extensions/SemanticMediaWiki/src/SQLStore/SQLStore.php: Call to undefined method SMW\SQLStore\SQLStoreFactory::newEntityIdManager()

Backtrace:

#0 /var/www/html/mediawiki/extensions/SemanticWatchlist/extensions/SemanticMediaWiki/src/StoreFactory.php(61): SMW\SQLStore\SQLStore->__construct()

#1 /var/www/html/mediawiki/extensions/SemanticWatchlist/extensions/SemanticMediaWiki/src/StoreFactory.php(42): SMW\StoreFactory::newFromClass(string)

#2 /var/www/html/mediawiki/extensions/SemanticMediaWiki/src/Store.php(478): SMW\StoreFactory::getStore()

#3 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(482): SMW\Store::setupStore(MysqlUpdater, array)

#4 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(450): DatabaseUpdater->runUpdates(array, boolean)

#5 /var/www/html/mediawiki/maintenance/update.php(200): DatabaseUpdater->doUpdates(array)

#6 /var/www/html/mediawiki/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()

#7 /var/www/html/mediawiki/maintenance/update.php(245): require_once(string)

#8 {main}

Rajeshrajesh.35 (talkcontribs)

When i am usering SMW 2.5.0 then getting this error:


[d89ddfe66d9704ab0310f45e] [no req]   Error from line 132 of /var/www/html/mediawiki/extensions/SemanticMediaWiki/load.php: Call to undefined method SMW\Setup::run()

Backtrace:

#0 /var/www/html/mediawiki/extensions/SemanticMediaWiki/load.php(54): SemanticMediaWiki::onExtensionFunction()

#1 /var/www/html/mediawiki/includes/Setup.php(940): SemanticMediaWiki::{closure}()

#2 /var/www/html/mediawiki/maintenance/doMaintenance.php(81): require_once(string)

#3 /var/www/html/mediawiki/maintenance/update.php(245): require_once(string)

#4 {main}

Reply to "mediawiki/semantic-media-wiki: 2.5.0 installed, ~2.5 required."