Page MenuHomePhabricator

Extension special pages not recognized
Closed, ResolvedPublic

Description

After installing and configuring the extension, all the special pages are not recognized :

  • Special:Stableversions
  • Special:Unreviewedpages
  • Special:OldReviewedpages
  • Special:Reviewedpages
  • Special:RatingHistory

The configuration in my LocalSettings.php is :

#Flagged Review
include_once( "$IP/extensions/FlaggedRevs/FlaggedRevs.php" );
$wgFlaggedRevsNamespaces= array (0, 12, 104, 106, 108);
$wgFlaggedRevsComments= true;

I can review page, I've updated the database. But these special pages are non recognized.


Version: unspecified
Severity: major
OS: Linux
Platform: Other

Details

Reference
bz15912

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:20 PM
bzimport set Reference to bz15912.

I can't reproduce this. Do you have several servers? Perhaps one is out of sync.

Are you sure your version of MediaWiki is recent enough? The SVN HEAD version of FlaggedRevs probably depends on core features that were added quite recently; if you're running an older version, you should use the FlaggedRevs release for that version.

It's the last version of mediawiki downloaded today by svn. I've this problem for several weeks

Is anything else touching $wgExtensionFunctions ?

No !
Not defined in my LocalSettings.php.

No other extension that could be changing it?

moving Special Pages variable out of the main function

Attached:

The problem seem to provide by including code about special page into efLoadFlaggedRevs() function.
I moved them before this function and these special pages are now recognized.

Instead to commit directly into subversion server, I prefered to commit simply a patch.

(In reply to comment #10)

The problem seem to provide by including code about special page into
efLoadFlaggedRevs() function.
I moved them before this function and these special pages are now recognized.

Instead to commit directly into subversion server, I prefered to commit simply
a patch.

This patch will fail if the user defined the namespaces *after* the flaggedrevs include line.

I suspect initList() is getting called before the extension function that adds the pages.