Last modified: 2008-10-12 18:12:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17912, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15912 - Extension special pages not recognized
Extension special pages not recognized
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
Other Linux
: Normal major (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-09 08:53 UTC by Bertrand GRONDIN
Modified: 2008-10-12 18:12 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
moving Special Pages variable out of the main function (1.37 KB, patch)
2008-10-10 09:19 UTC, Bertrand GRONDIN
Details

Description Bertrand GRONDIN 2008-10-09 08:53:37 UTC
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.
Comment 1 Aaron Schulz 2008-10-09 13:11:00 UTC
I can't reproduce this. Do you have several servers? Perhaps one is out of sync.
Comment 2 Bertrand GRONDIN 2008-10-09 13:30:33 UTC
No, just one.
Comment 3 Roan Kattouw 2008-10-09 13:31:59 UTC
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.
Comment 4 Bertrand GRONDIN 2008-10-09 14:00:05 UTC
It's the last version of mediawiki downloaded today by svn. I've this problem for several weeks
Comment 5 Aaron Schulz 2008-10-09 21:14:03 UTC
Is anything else touching $wgExtensionFunctions ?
Comment 6 Bertrand GRONDIN 2008-10-09 21:22:42 UTC
No ! 
Not defined in my LocalSettings.php.
Comment 7 Aaron Schulz 2008-10-09 21:42:46 UTC
No other extension that could be changing it?
Comment 8 Bertrand GRONDIN 2008-10-09 21:54:09 UTC
Yes
Comment 9 Bertrand GRONDIN 2008-10-10 09:19:23 UTC
Created attachment 5415 [details]
moving Special Pages variable out of the main function
Comment 10 Bertrand GRONDIN 2008-10-10 09:20:36 UTC
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. 
Comment 11 Aaron Schulz 2008-10-11 01:12:41 UTC
(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.
Comment 12 Aaron Schulz 2008-10-12 18:00:47 UTC
I suspect initList() is getting called before the extension function that adds the pages.
Comment 13 Aaron Schulz 2008-10-12 18:12:33 UTC
Should be fixed in r42000

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links