-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Semantic MediaWiki:4.0.2 and Wikibase REL1_39 #5414
Comments
What does not work? |
[65fbe57470886b60bb71e1f7] /mediawiki/index.php/Special:NewProperty MediaWiki\Page\PageAssertionException: The given PageIdentity Special:Badtitle/NS122:NewProperty does not represent a proper page Backtrace: from /var/www/mediawiki/includes/page/WikiPageFactory.php(57) |
The error comes from Wikibase. Presumably, something changed in the new Wikibase version you are using. So not an SMW issue. |
possible.. for me it is a problem with the mix of namespaces used by the extensions. but thanks anyway |
I am facing the same issue while trying Wikibase with SemanticMediawiki, I am using the follwing configuration- MediaWiki | 1.38.5 for namespace conf. i am using //to fix-Both extension Wikibase and Semantic MediaWiki add a namespace called "Property" // extra permissions to avoid getting errors when creating new items or properties @zampaleu can you assist me how you cope with this issue. |
You need to change the canonicalNames of the SMW Namespace property (e.g. to smw/property) in the SMW File extensions/SemanticMediaWiki/src/NamespaceManager.php. The reason is, that the function getCanonicalNames() delivers hardcoded namespace names in newer versions that are not affected by setting the above wgExtraNamespaces config. Solution: public static function getCanonicalNames() {
|
I'm using this code for 1.41 in LocalSettings.php:
|
I was trying to run Wikibase and SMW together, but it does not work .
It was working with previous version of SMW and Wikibase with this setting:
$wgExtraNamespaces[WB_NS_PROPERTY] = 'wb/property';
$wgExtraNamespaces[WB_NS_PROPERTY_TALK] = 'wb/property_talk';
Are some changes or new settings ?
The text was updated successfully, but these errors were encountered: