Last modified: 2013-04-10 01:16:30 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 T49020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47020 - Error after installation of FlaggedRevs: Call to undefined method ParserOutput::getFileSearchOptions()
Error after installation of FlaggedRevs: Call to undefined method ParserOutpu...
Status: VERIFIED INVALID
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
master
PC Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-08 19:39 UTC by Willer
Modified: 2013-04-10 01:16 UTC (History)
2 users (show)

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


Attachments

Description Willer 2013-04-08 19:39:46 UTC
Error after instalation of FlaggedRevs:

Fatal error: Call to undefined method ParserOutput::getFileSearchOptions() in /var/www/Mediawiki_eac/extensions/FlaggedRevs/backend/FlaggedRevs.class.php on line 591
Comment 1 Alex Monk 2013-04-08 19:54:13 UTC
MediaWiki version?
Comment 2 Willer 2013-04-08 21:07:28 UTC
1.18
Comment 3 Andre Klapper 2013-04-09 09:19:04 UTC
Which exact version? There are several 1.18 versions...

And how did you download and install FlaggedRevs (I am wondering if the version fits to the MediaWiki version)?
Comment 4 Willer 2013-04-09 10:41:01 UTC
Sorry for the incomplete information.

My mediawiki instalation version is 1.18.5

The flaggedrevs was installed by git, which took the latest version of the extension, and another attempt was made by 'snapshoot' page of the wiki extension on average.

Thanks.
Comment 5 Andre Klapper 2013-04-09 11:20:18 UTC
(In reply to comment #4)
> The flaggedrevs was installed by git, which took the latest version of the
> extension

It seems like there is no REL1_18 branch, so did you check out git master, or the REL1_19 branch which should be closer to the MediaWiki codebase that you use?
It's unlikely that the most recent development version of FlaggedRevs works well with such an old version of MediaWiki.
Comment 6 Willer 2013-04-09 14:57:23 UTC
Well,

I update my Mediawiki to 1.20.3 version and this problem is solved. But some behaviors occurred:


1º: 
When the variable is like "$wgFlaggedRevsOverride = true;", the stable version isn't the default pages but the modified page and the modified pages are usually displayed before approval. 


*I dont know what i do. Can you help me?! This is priority****
----------------------------------------------------------------


2º:

When the variable is like "$wgFlaggedRevsWhitelist = true;", the mediawiki presents:

"Warning: in_array() expects parameter 2 to be array, boolean given in /var/www/mediawiki/extensions/FlaggedRevs/backend/FlaggedRevs.class.php on line 895"

It's the function "inReviewNamespace" in the code:

    if ( in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) {

----------------------------------------------------------------


3º:

When the variable is like "$wgFlaggedRevsExceptions = true;", the mediawiki presents:

"Warning: Invalid argument supplied for foreach() in /var/www/mediawiki/extensions/FlaggedRevs/frontend/FlaggablePageView.php on line 170"


It's the function "userViewsDraftByDefault" in the code:


     foreach ( $wgFlaggedRevsExceptions as $group ) {

----------------------------------------------------------------


Ps.: My FlaggedRevs is the las stable version from mediawiki.org/wiki/Extension:FlaggedRevs

Thanks too much.
Comment 7 Alex Monk 2013-04-09 15:02:17 UTC
(In reply to comment #6)
> 2º:
> 
> When the variable is like "$wgFlaggedRevsWhitelist = true;", the mediawiki
> presents:
> 
> "Warning: in_array() expects parameter 2 to be array, boolean given in
> /var/www/mediawiki/extensions/FlaggedRevs/backend/FlaggedRevs.class.php on
> line
> 895"
> 
> It's the function "inReviewNamespace" in the code:
> 
>     if ( in_array( $title->getPrefixedDBKey(), $wgFlaggedRevsWhitelist ) ) {
> 
> ----------------------------------------------------------------
> 
> 
> 3º:
> 
> When the variable is like "$wgFlaggedRevsExceptions = true;", the mediawiki
> presents:
> 
> "Warning: Invalid argument supplied for foreach() in
> /var/www/mediawiki/extensions/FlaggedRevs/frontend/FlaggablePageView.php on
> line 170"
> 
> 
> It's the function "userViewsDraftByDefault" in the code:
> 
> 
>      foreach ( $wgFlaggedRevsExceptions as $group ) {


Both of these variables are expected to be arrays, not 'true'.
Comment 8 Willer 2013-04-09 15:15:40 UTC
Sorry, but I don't know.

How do I set the array to this variable "$wgFlaggedRevsOverride"? Could you give me an example? 

but the pages that were not reviewed are displayed normally? Is there any way to make the page appears for the users only after authorization?

Sorry for so many questions and doubts. I'm having trouble. And I appreciate all the support.
Comment 9 Aaron Schulz 2013-04-10 01:16:30 UTC
(In reply to comment #8)
> Sorry, but I don't know.
> 
> How do I set the array to this variable "$wgFlaggedRevsOverride"? Could you
> give me an example? 
> 

$wgFlaggedRevsOverride is boolean, he said that the others were arrays, which they are.

> but the pages that were not reviewed are displayed normally? Is there any way
> to make the page appears for the users only after authorization?
>

You can't hide new pages like this. A new (and unreviewed) page is visible to everyone by default. It's not clear how that would be implemented. I guess one could change the "unreviewed page" notice to something like "this page is unreviewed, click here to see it" and hide all the content until that link is clicked. Anyway, this feature is not present.

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


Navigation
Links