Topic on Extension talk:FlaggedRevs

Custom Namespaces not recognised

6
193.5.216.100 (talkcontribs)

I use a adapted Version of ExtraNamespaces but only the usual 3 Namespaces are recognized (Main, Files, Templates).

In the LocalSettings.php i have only configured Main and then the numbers from the custom namespaces (100, 102 ...). The custom namespaces are properly listed in the special page "Links to this site" for example.

I runned the updateStats.php script manually but with no effect. Any suggestions what might be the problem?

Sirlordrouter (talkcontribs)

It appears that the config from FlaggedRevs.config.php is loaded and not the configuration set in LocalSettings.php. Any suggestions why?

Tacsipacsi (talkcontribs)

Did you define $wgFlaggedRevsNamespaces before including FlaggedRevs? Like this:

$wgFlaggedRevsNamespaces = [ NS_MAIN, 100, 102 ];
require_once "$IP/FlaggedRevs/FlaggedRevs.php";

Then by including FlaggedRevs, you overwrite the custom configuration, so simply move the namespace config below the inclusion.

Sirlordrouter (talkcontribs)

No, the require once is decalred befor any configuration.

This is my configuration in LocalSettings.php

require_once("$IP/extensions/FlaggedRevs/FlaggedRevs.php");

#FlaggedRevs settings

$wgFlaggedRefsNamespaces = array(NS_MAIN, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 220, 222, 224, 226, 228);

$wgFlaggedRevsHandleIncludes = FR_INCLUDES_FREEZE;

$wgFlaggedRevsOverride = true;

$wgFlaggedRevsAutoReview = FR_AUTOREVIEW_CHANGES;

$wgFlaggedRevsTags = array(

            'accuracy' => array( 'levels' => 2, 'quality' => 2, 'pristine' => 3 ),

);

$wgFlaggedRevsWhitelist = array('Main_Page');

Tacsipacsi (talkcontribs)

It’s misspelled: the variable is called $wgFlaggedRevsNamespeces. (Also, the [] notation is preferred instead of array() in MediaWiki code, see my code sample above. The latter causes no problems, but the former is shorter and is more similar to other languages’ array notation.)

Davidnead (talkcontribs)

Hello

I'm having the same problem, even though I've used the right code, and just like your example.

why?

Reply to "Custom Namespaces not recognised"