Thread:Project:Support desk/Can't create pages in custom namespace/reply

I got it to work!

In case anyone has the same problem, I used this scheme to create the new namespaces:

// Define constants for my additional namespaces.

define("NS_FOO", 100); // This MUST be even.

define("NS_FOO_TALK", 101); // This MUST be the following odd integer.

// Add namespaces.

$wgExtraNamespaces[NS_FOO] = "Foo";

$wgExtraNamespaces[NS_FOO_TALK] = "Foo_talk"; // Note underscores in the namespace name.

And in the second part, I accidentally set "NS_FOO" and "NS_FOO_TALK" in quotation mark.