When is the Widget namespace created?
Hello:
I've installed the Widget extension (version 0.9.2) on MediaWiki v1.15.1.
When is the Widget namespace created?
Shouldn't I be able to see it right after unpacking the extension in the extensions directory and adding the include statement in LocalSettings.php?
I've checked at Special:AllPages and I do not see the new namespace.
Thank you for any advice you can give me.
Patricia Barden 19:27, 3 February 2012 (UTC)
Yes, you should be seeing Widget namespace on Special:AllPages right after adding it to LocalSettings.php
Do you see any error messages in error log?
Thank you for your response.
I have error reporting turned on and there are no errors showing up. Additionally, I checked the Apache error log and did not see anything there either.
So, I decided to set up a clean install of MW 1.15.1 and try out the Widgets extension there. The namespace showed up without any problem.
So, I had to figure out what was causing the namespace not to show up on the production site.
There appears to be a conflict with a custom namespace that was set up for portal pages. If I comment out the following lines in LocalSettings.php, then the Widget namespace appears:
$wgExtraNamespaces =
array(100 => "Portal",
101 => "Portal_Talk"
);
$wgNamespacesWithSubpages[100] = true;
Do you have any idea how to fix this? We definitely do not want to stop using portal pages on our wiki.
Thank you for any help you can give me with this.
Patricia Barden 20:06, 6 February 2012 (UTC)
Hmm, I have a similar setup on my wiki with a working widgets extension. I guess you have to use the ns constant instead of the ns number. Did you define your namespaces?
# Define namespaces
define("NS_PORTAL", 100);
define("NS_PORTAL_TALK", 101);
# Name namespaces
$wgExtraNamespaces[NS_PORTAL] = "Portal";
$wgExtraNamespaces[NS_PORTAL_TALK] = "Portal_Talk";
# Subpages for namespaces
$wgNamespacesWithSubpages[NS_PORTAL] = true;
Cheers