Topic on Extension talk:Wikibase Repository

wikibase 1.39 with SemanticMediawiki 4.1.1 errors

2
84.254.82.147 (talkcontribs)

Tried and installed both extensions. They work individually but not together.

The error is;

/mediawiki/index.php/Special:NewProperty MediaWiki\Page\PageAssertionException: The given PageIdentity Special:Badtitle/NS122:NewProperty does not represent a proper page

#0/mediawiki/extensions/Wikibase/repo/includes/EditEntity/MediawikiEditFilterHookRunner.php(142): MediaWiki\Page\WikiPageFactory->newFromTitle()

....

Any advice?

MW Kappa (talkcontribs)

We observed a namespace name conflict between Semantic MediaWiki and Wikibase. Both are using a namespace with the canonical name 'Property'. We renamed the Semantic MediaWiki namespace and successfully use both extensions in the same wiki.

$IP/LocalSettings.php:

# the namespace names must bechanged before SMW is activated
$wgExtraNamespaces[102] = "SemanticProperty";
$wgExtraNamespaces[103] = "SemanticProperty_talk";
wfLoadExtension( 'SemanticMediaWiki' );
enableSemantics( 'localhost' );

$IP/extensions/SemanticMediaWiki/src/NamespaceManager.php:

public static function getCanonicalNames() {
		$canonicalNames = [
			SMW_NS_PROPERTY      => 'SemanticProperty',
			SMW_NS_PROPERTY_TALK => 'SemanticProperty_talk',
            ...
		];
		return $canonicalNames;

Tested with MW 1.35 and SMW 4.0.2

Reply to "wikibase 1.39 with SemanticMediawiki 4.1.1 errors"