Thread:Project:Support desk/Method of Declaring Content Namespaces in one array doesn't work/reply (2)

When I tried declaring content namespaces as an array like this format as described with content namespaces (see above):

$wgContentNamespaces = array( NS_MAIN, NS_HELP, NS_PROJECT, NS_CUSTOMNAMESPACE );

I got a blank page. I did not add a line to the end of my LocalSettings.php to view error messages. I simply put each additional content namespace on a separate line. I'm trying to figure out why I can create new pages using forms with CreateBox but not with Semantic Forms and I am wondering if it would make any difference at all to declare content namespaces on separate lines instead of as an array.

I define my namespace constants first, e.g. snippet (starting at 3210):

define("NS_VOL",3216); define("NS_VOL_TALK",3217);

Then add namespaces, e.g. snippet:

$wgExtraNamespaces[NS_VOL] = "Volunteers"; $wgExtraNamespaces[NS_VOL_TALK] = "Volunteers talk";

Then make them content namespaces, e.g. snippet:

$wgContentNamespaces[] = NS_VOL; $wgContentNamespaces[] = NS_VOL_TALK;

Then enable subpages,

$wgNamespacesWithSubpages[NS_VOL] = true;

Then if it's working as it should, I would configure lockdown and other settings dependent upon the namespaces, e.g. $wgNamespaceProtection.

I'm just trying to debug "invalid or virtual namespace -1" errors when creating new pages using Semantic Forms (but not CreateBox). The way I am declaraing $wgContentNamespaces[] is different than described in the manual so I thought I would just check this as a possible source of error.