Extension talk:FlaggedRevs/archive 3


 * Extension talk:FlaggedRevs/archive 1
 * Extension talk:FlaggedRevs/archive 2

FlaggedRevs not working under xampp-win32-1.7.2 ?
After updating my Webserver to xampp-win32-1.7.2 (PHP 5.3.0 (apache2handler) MySQL 5.0.51a - http://www.apachefriends.org/de/xampp-windows.html) Mediawiki 1.15.1 with Flagged Revisions r48774 (empty Wiki) faults with:

Any help would be greatly appreciated! --RayTRoX 01:51, 13 October 2009 (UTC)


 * Is it the FlaggedRevs from ? Voice of All 02:18, 14 October 2009 (UTC)


 * Its the r48774 downloaded with the snapshot function from the Extension page (Download snapshot for MediaWiki 1.15.x) --RayTRoX 20:48, 16 October 2009 (UTC)


 * Removing the references from the markUnderReview function worked for me and the updated code matches the latest code in SVN. -- NivekNodle 19:12, 25 November 2009 (UTC)

''» I just updated my Ubuntu Server to 04.10 and I get a very simular error. Would someone be so kind and explain a fix to me? Commenting the markUnderReview function in FlaggedRevs.hooks.php didn't work for me.  >>> I had the same issue, seems there's a lot of issues with PHP 5.3.0, I rolled my PHP back to 5.2.6 (1.6.8 xampp), this corrected the extension errors, I say a lot of errors, when I really mean I couldnt get any to work!!

FlaggedRevs doesn't work for "Talk:" namespace?
I've added NS_TALK to $wgFlaggedRevsNamespaces in my LocalSettings.php, but it doesn't seem to have any effect. --148.2.224.140 07:22, 15 October 2009 (UTC)
 * No you can't do that. Aaron 09:35, 15 October 2009 (UTC)
 * Why is that? Is there a special infrastructure for Talk pages (internally within MediaWiki) or is it just a decision (by FlaggedRevs developers) to disallow it? The use case I'd like to use it for is to have some sort of flagged discussion, e.g. the discussion before a specific version of an article is marked as "quality". --Robert 148.2.224.140 09:12, 16 October 2009 (UTC)

opt out/in?
For my uses, only some of the pages in the main namespace require reviews. We do not want to force users to have to review a document when it is not required (too much overhead for what we require the wiki for). So it would be nice if there was a magic word or something similar to enable/disable reviewing. From what I can see, there is no such funcionality atm. --Boy.pockets 02:48, 27 October 2009 (UTC)

Review a page programmatically
Is there any "clean" (ie. expected) way (api, functions, ...) to programmatically review a page ? I have to import a huge quantity of pages that should also be reviewed, and I would like to write a small script (or a special page) that would allow me to review them all.

Edit: To be more clear, is the following code enough to review a page, or is there any additional action needed to have a properly validated page ? $title = Title::newFromText($titleStr); $article = new Article(title); $rev = Revision::newFromTitle( $title ); $flags = null; FlaggedRevs::autoReviewEdit( $article, $user, $rev->getText, $rev, $flags, false ); FlaggedRevs::markRevisionPatrolled( $rev );

By advance, thanks for any help :)

--Gizmhail 08:42, 29 October 2009 (UTC)
 * There is a reviewAllPages.php script in /FlaggedRevs/maintenance. Voice of All 16:11, 11 November 2009 (UTC)
 * This only seems to make pages "sighted" - if we know we are importing from another data source that is really a "quality" set of data this script does not seem to allow marking pages with the right levels to give a "quality" page indication - any suggestions? (I've tried to figure out what the call in reviewAllPages.inc to FlaggedRevs::autoReviewEdit( $article, $user, $text, $rev, $flags, true ); is doing but I cannot see how the $flags should be set. Thanks --Rob C 09:35, 9 March 2010 (UTC)

new pages vandalization
Hi! I wonder if there is a way to prevent new pages vandalization. Just like $wgFlaggedRevsAutoReviewNew, but for non-editors users. I mean the first thing a user wants to enter in the new created page to be automatically send to draft and the stable page to look something like "Awaiting approval". What i am trying to do is initiating of RevisionReview and at ArticleInsertComplete hook approve it so that the next edit to that page will be automatically send to draft. My solution is a little twisted but does not stop the first edit. I'll be grateful for any suggestion. Thanks 4 your time.

Sqlite ?
Hi,

How to install FlaggedRevs with sqlite ? 92.158.89.96 14:21, 13 November 2009 (UTC)


 * It's not supported yet. Though the .sql file was just changed today to use sqlite compatible indexing. Aaron 07:54, 1 December 2009 (UTC)

are there any news about this ? 217.8.61.111 09:50, 5 May 2010 (UTC)

Special Rights for Page Author
Hi

I'd like to set up a Wiki, where the original authors of the pages get mid-level flagrights for their own, but only low-level rights for other pages. Plus there's one user(group) with high-level rights. Is that possible with FlaggedReview? How so? Or may I be able to change the source (slightly) to achive this (i only had a short look at it yet. Maybe someone can point out a good starting point?)

Additionally, it would be great, if pages created by normal authors are automatically set to need a mid-level flag to be displayed (as stable), but pages from "high-level" users need a high-level flag.

Any help is appreciated - thx

Rename 'stable' and 'draft' tabs?
Is there any way to rename the 'stable' and 'draft' pages to something like 'approved' and 'development'? Thanks! --Gkullberg 15:08, 4 December 2009 (UTC)
 * You can edit 'MediaWiki:revreview-current' to say something other than draft. The other message was removed in recent versions (e.g. "stable" is now the name of the original page tab, such as "article"/"image"/"category"...). Aaron 07:58, 5 December 2009 (UTC)

1176 : Key 'PRIMARY' doesn't exist in table 'flaggedrevs'
After following the setup, I can't save any text and there is this error :


 * 1176 : Key 'PRIMARY' doesn't exist in table 'flaggedrevs'
 * Sounds like you are using a developmental version. Be sure to use the "snapshot link" to download a supported version, like 1.15. Aaron 16:41, 7 December 2009 (UTC)

How to make newest templates always show up?
I know the expected behavior is: "These revisions will remain the same even if included templates are changed or images are overwritten." But, I'd like to always show the newest templates and images, even on pages that haven't been reviewed yet. This could reduce tedium approving pages manually just to push through template/image updates, such as navboxes and other widely-used stuff. How can I change FlaggedRevs to behave like this? Thanks in advance. --Torley 16:08, 7 December 2009 (UTC)
 * It helps to make images and templates reviewable. Since reviewing them "cascades" to everything that uses it (pages use the latest stable template/file version). Aaron 13:14, 11 December 2009 (UTC)
 * I just tested this and it works as expected. Thank you VERY much, Aaron! --Torley 19:44, 29 December 2009 (UTC)

Weird Errors with $wgLanguageCode
Currently I have $wgLanguageCode = 'es' in my localsettings. According to Manual:$wgLanguageCode it should be 'Es', because that's the name of the language file. Error 1.

I'm running flaggededs perfectly fine, except that some messages are in the spanish and others in english. When you click the -/+ symbol next to the EYE on the top right, the message in English. The link next to it, though, links to the right page in Spanish. All of this goes to English exclusivelly when I change 'es' for 'Es'.

Any ideas on this? Perhaps is a bug...perhaps I'm a dumbass :( --Mark 02:11, 11 December 2009 (UTC)

misspelling
Can someone please correct the spelling of "receive" from the incorrect "recieve" three times on the extension page? thank you 96.250.77.160 07:27, 20 December 2009 (UTC)

Review without edit right
Is there a way to let users without edit right review an article? (I already know how to make the form show up, but submiting the review doesn't work) Sidcom 22:22, 20 December 2009 (UTC)
 * There is no way other that changing some code. Aaron 02:47, 30 December 2009 (UTC)
 * Mkay, i did that. But i think, this should be checked on again, because you establish the "review" right, which should be the decisive one. You should use the same check for wether or not the form is shown and wether or not the review is saved. As it is, users with review but no edit right get to see a seemingly functional form, but the data is not saved (and there is no error msg). As it is, such a rights setup may not seem necessary or useful, but once you use different extensions, this can mess things up. The fact, that you also need edit rights should at least be lined out in the user rights section (especially since there is no error msg, so debugging this was a pita ;) ).

FlaggedRevs & DPL
We currently use DPL to query content from pages within a Namespace. That Namespace has FlaggedRevs turned on. What I'm seeing is that DPL is querying the draft content and not the stable page content. This might be a DPL question, but is there any known way to have DPL query the stable content instead? --Gkullberg 22:32, 22 December 2009 (UTC)
 * Some versions of DPL may have the stablepages pararm (only/exclude). Aaron 00:38, 27 December 2009 (UTC)
 * Nice, that's exactly what I was looking for. Thanks Aaron. --Gkullberg 19:27, 4 January 2010 (UTC)

Key 'rev_id' doesn't exist in table 'revision'
I got the following error while trying to run updateStats.php:

ValidationStatistics...Error in numRows: Key 'rev_id' doesn't exist in table 'revision' (localhost) Backtrace:
 * 1) 0 /srv/www/htdocs/mediawiki/extensions/FlaggedRevs/maintenance/updateStats.inc(185): Database->numRows(false)
 * 2) 1 /srv/www/htdocs/mediawiki/extensions/FlaggedRevs/maintenance/updateStats.php(13): update_flaggedrevs_stats
 * 3) 2 {main}

I´m using MW 1.15, and download the specific version of this extension in the snapshot link. Any ways to solve that?

Setup -FlaggedRevs
when i am trying to set up the Flagged Rev, 7th step will not execute, it cause the following error

Populating and updating flaggedrevs_promote table ...doing user_id from 1 to 2 Fatal error: Class 'FlaggedRevs' not found in D:\wamp\www\mediawiki-1.13.3\exten sions\FlaggedRevs\maintenance\updateAutoPromote.inc on line 26

help me to install flagged Revs-1.13.x extention in my mediawiki -1.13.3

Issues with Postgresql (FlaggedRevs-MW1.15-r58382)
I've run into a bunch of problems installing this release with a Postgresql installation.

The maintenance upgrade fails with a number of errors.


 * 1) The table flaggedpage_pending is not created.
 * 2) The line in FlaggedRevs.php

$wgExtNewIndexes[] = array('flaggedrevs', 'key_timestamp', "$base/postgres/patch-fr_img_name.sql" );

should actually be

$wgExtNewIndexes[] = array('flaggedrevs', 'fr_img_sha1', "$base/postgres/patch-fr_img_name.sql" );


 * 1) The timestamp field for fr_img_timestamp is not correctly formatted for Postgresql. This is fixed in FlaggedRevision.php by changing

$revRow = array(               'fr_page_id'       => $this->getPage,                'fr_rev_id'            => $this->getRevId,                'fr_user'              => $this->getUser,                'fr_timestamp'     => $dbw->timestamp( $this->getTimestamp ),                'fr_comment'       => $this->getComment,                'fr_quality'       => $this->getQuality,                'fr_tags'              => self::flattenRevisionTags( $this->getTags ),                'fr_text'              => '', # not used anymore                'fr_flags'             => $textFlags,                'fr_img_name'      => $this->getFileName,                'fr_img_timestamp' => $dbw->timestamp( $this->getFileTimestamp ),   <=== Add call to $dbw->timestamp                'fr_img_sha1'      => $this->getFileSha1                );

There's another bug with an invalid SELECT, but I haven't sorted that out yet.

P.S.

There's a SELECT GROUP BY problem -

A database error has occurred Query: SELECT oi_name, oi_archive_name, oi_size, oi_width, oi_height, oi_metadata, oi_bits, oi_media_type, oi_major_mime, oi_minor_mime, oi_description, oi_user, oi_user_text, oi_timestamp, oi_deleted, oi_sha1, MAX(fr_quality) AS fr_quality FROM oldimage LEFT JOIN flaggedrevs ON ((oi_sha1 = fr_img_sha1 AND oi_timestamp = fr_img_timestamp)) WHERE (oi_name = 'Signup_verify1.png') GROUP BY oi_name,oi_timestamp ORDER BY oi_timestamp DESC LIMIT 50 Function: LocalFile::getHistory Error: 1 ERROR: column "oldimage.oi_archive_name" must appear in the GROUP BY clause or be used in an aggregate function

This is a pretty common problem when you try to use MySQL GROUP BY semantics with Postgresql, which is much stricter.

In strict SQL terms, the above SELECT statement doesn't make sense. I assume you're trying to merge records with identical timestamps and SHA1 values and use the highest quality value. Unfortunately, this statement won't work with Postgresql.

The code comes from FlaggedRevs.hooks.php in the addToFileHistQuery function.

P.P.S.

Here's another timestamp formatting problem in FlaggedRevs.hooks.php

This is what the code should be -

public static function addToFileHistLine( $hist, $file, &$s, &$rowClass ) { if( !$file->isVisible ) return true; // Don't bother showing notice for deleted revs # Quality level for old versions selected all at once. # Commons queries cannot be done all at once... if( !$file->isOld || !$file->isLocal ) { $dbq = wfGetDB(DB_SLAVE); <= Move DB connect out of line, then add $dbq->timestamp call below $quality = $dbq->selectField( 'flaggedrevs', 'fr_quality',                               array( 'fr_img_sha1' => $file->getSha1, 'fr_img_timestamp' => $dbq->timestamp( $file->getTimestamp )),                                __METHOD__ ); } else { $quality = is_null($file->quality) ? false : $file->quality; }               # If reviewed, class the line if( $quality !== false ) { $rowClass = FlaggedRevsXML::getQualityColor( $quality ); }               return true; }


 * Some changes were made and backported. Aaron 23:37, 12 January 2010 (UTC)

Unexpected behavior with Tags, namespaces
I am running a snapshot of the development Mediawiki (phase3-nightly-r60791) and an SVN checkout of FlaggedRevs (Rev 60951) on XAMPP 1.7.3 (Apache 2.2.14, MySQL 5.1.41, PHP 5.3.1). I am trying to enable FlaggedRevs on only 7 custom namespaces of the wiki and set 4 tags (accuracy, depth, tone & readability) but the configuration settings in LocalSettings.php are not being reflected in the site.

The two main problems I am experiencing are:

1. The only page that shows a "Current revision (unreviewed)" is the Main_Page. Given the settings (see below) I would expect only the pages in the custom namespaces to show the FlaggedRevs tag. I've tried setting $wgFlaggedRevsWhitelist = array( 'Main_Page' ); but the FlaggedRevs still show on Main_Page.

2. The number and content of the tags are not reflecting what is in LocalSettings.php. The "tone" tag was on Main_Page in the default installation but now does not show in the FlaggedRevs reviewing display at the bottom of Main_Page.

Here are the FlaggedRevs settings in LocalSettings.php:

Any help is greatly appreciated! --208.145.81.105 01:16, 13 January 2010 (UTC)
 * Make sure your settings appear *after* the include/require line for FlaggedRevs. Aaron 05:37, 13 January 2010 (UTC)
 * Now we're getting somewhere - thank you! I'm seeing the namespaces showing FlaggedRevs and the tags are showing up correctly.
 * Most extensions have that "gotcha". It's funny, I was just thinking about that the day before you posted it. Aaron 20:14, 13 January 2010 (UTC)

populateSha1.php
Executing the script populateSha1.php reports: "Done 0 files in 0.0 seconds" can this be correct? --FarwayK 21:25, 24 January 2010 (UTC)
 * If you have no images or the script was already ran before, you can get that. I wouldn't worry. Aaron 02:35, 25 January 2010 (UTC)

Now, what if you don't have the file??? using MediaWiki 1.15.3 Josvanreenen 12:20, 22 April 2010 (UTC)
 * I canot find populateSha1.php either. I just downloaded the extension from http://www.mediawiki.org/wiki/Special:ExtensionDistributor/FlaggedRevs and choose 1.15. --Popol0707 10:51, 7 May 2010 (UTC)

Setup instructions
The Extension:FlaggedRevs instructions seem to be outdated / incorrect. Shouldn't it be updated, or at least mention the updated version in the the Readme.txt for newer builds? --FarwayK 21:25, 24 January 2010 (UTC)
 * What about it is outdated? Aaron 23:29, 24 January 2010 (UTC)


 * Feedback from --Rob C 11:43, 26 January 2010 (UTC)
 * With MW v1.15.1 the populateSha1.php file is now in /mwdir/maintenance/archives which suggests that it is not a "current" script - should it still be run?
 * My own answer (that needs checking :-)) - this populateSha1.php script appears to be a run-once upgrade script and populates the img_sha1 field for any existing image files that may already be in a MW installation; I assume that as this script is now archived that a brand new MW install does not need this to be run as img_sha1 gets updated by MW for each image upload? (found refs to img_sha1 in LocalFile.php and LocalRepo.php)
 * So how about updating to indicated the correct location of populateSha1.php? I know it is a minor thing, but it does not inspire confidence in the documentation and by inference the product to just "let this slide"
 * I downloaded the FlaggedRevs extension using the download link mentioned in setup section and selected MW 1.15.x as version as advised in Setup section, got FlaggedRevs r48774, this is missing the /mwdir/extensions/FlaggedRevs/client mentioned in Setup section step 3 - is this important? (it seems to be working without so suspect no longer needed - hence Setup text needs to alter?)
 * Make '/extensionshttp://www.mediawiki.org/w/index.php?title=Extension_talk:FlaggedRevs&action=edit/FlaggedRevs/' readable. The '/client'/ is actually for the newer, trunk (1.16), version. I've just added a mention of that to the instructions. Aaron 22:44, 26 January 2010 (UTC)

The script update.php does not exist. --Popol0707 10:59, 7 May 2010 (UTC)
 * What version of MW are you using? It's there for 1.15. Jpatokal 01:40, 12 May 2010 (UTC)

Moving pages
Would it be possible to require moved pages to be flagged before actually being moved? Moving pages is quite invasive action and when performed by a novice should IMHO be checked by a more experienced user. Lampak 09:40, 19 February 2010 (UTC)
 * Just use  and  . Requiring flagging is just weird. Aaron 23:14, 19 February 2010 (UTC)

Place the SimpleUI in the Header line
How do i get the SimpleUI up into the "firstHead" line? Sidcom 10:29, 5 March 2010 (UTC)
 * thats's just what I was looking for...
 * Trying css first. - Arent 13:44, 31 March 2010 (UTC)

API examples are not working
For example I'm trying to run the example for show unreviewed pages: This returns:  Unrecognized value for parameter 'list': unreviewedpages So I tried adding the parameter &urstart in the following combinations (I know I've got a page in main namespace 0 called "A"):
 * api.php?action=query&list=unreviewedpages&urnamespace=0&urfilterlevel=0
 * api.php?action=query&list=unreviewedpages&urstart=A&urnamespace=0&urfilterlevel=0
 * api.php?action=query&list=unreviewedpages&urstart="A"&urnamespace=0&urfilterlevel=0
 * api.php?action=query&list=reviewedpages&urstart=&%22A%22&urnamespace=0&urfilterlevel=0
 * api.php?action=query&list=reviewedpages&urstart=&%22&A&%22&urnamespace=0&urfilterlevel=0

I've manually added Wikisysop to editor group as the page Special:UnreviewedPages originally failed unless you are in the editor group and I thought it might be that causing problems. I'm running: MW1.15.1 FlaggedRevs r60856 --Rob C 09:55, 9 March 2010 (UTC)

Fatal error
That shows up on this page: http://www.theopedia.com/BHS

--64.22.206.26 14:05, 16 March 2010 (UTC)
 * Fixed in r63818. These are very new changes. Aaron 14:54, 16 March 2010 (UTC)

Performance hit with FlaggedRevs enabled
MediaWiki 1.15.1, PHP 5.2.8, MySQL 5.0.51a-community-log, Flagged Revisions (Version r60856)

I noticed issues with my MW response time (some of which is server) and during investigation I've noticed that flaggedrevs is adding about 1.5 seconds to page load times (rough test using firebug net panel, cache disabled and forcing page re-load; first time with flagged revs and second time with it removed from LocalSettings.php). This is a really useful extension to indicate page status are there any suggestions on what it could be? Is there any location for profiler outputs and test pages to test profiler with to see what MW extensions are doing i.e. standardised performance test pages that I could put in my MW and then compare my profiler output with the developer or Mediawiki/Wikipedia test results? Many thanks --Rob C 16:32, 26 March 2010 (UTC)

Followup comment - tried enabling MediaWiki file cache ($wgUseFileCache = true;$wgFileCacheDirectory = "$IP/cache";) to speed things up and this failed as "list all" and "approved" links in the flagged revs header on the page did not have the correct URL on the cached page (e.g. got this http://localhost/appwiki/index.php?title=Special:Stableversions&page=Main_Page rather than http://iww.intranetserver.com/appwiki/index.php?title=Special:Stableversions&page=Main_Page )--Rob C 13:12, 31 March 2010 (UTC)

How do I show review status on quality page for all users
If a page has a "draft" then both the draft and the stable version get the icon stating the review status - the stable page shows its a quality revision or whatever with the rankings. However if the page doesn't have a draft - ie the head revision is stable, then the icon isn't displayed. I think its useful to always have the "quality" marking for the quality page, even when there is no draft.

How can we display the revision icon even for stable head revision pages.
 * Sounds like $wgFlaggedRevsLowProfile = 0; Aaron 19:34, 9 April 2010 (UTC)

How do I track "aged" revisions
I'd like to be able to track pages that were last reviewed at some time in the past, but which might have gone out of date subsequently. Is there any way to do a report that shows all reviewed pages sorted by oldest "flagged" date first - and ideally starting from items over a year since their last review?

DPL can list all the reviewed items, but I don't believe there is any way to list review dates of the flagged revision, or to restrict the recovered set to just those with an X month old revision date.

Thank you. Hamish

Transclusion of stabilized pages
Hello. When I'm trying to transclude stabilized page into another, I'm getting in resulting compound page text from newest (not reviewed) transcluded page. But I need to transclude it's reviewed version, not current (draft). Is there ability to do this?

I found similar questions in archive (1, 2), but seems, that this problem has been not resolved yet. — Solon 12:16, 26 April 2010 (UTC)

Hiding Draft Version for logged in users
I am trying to hide the draft version from a group of logged in users. I was able to find this article Manual:Preventing_access#Showing_only_approved_versions but it didn't tell me what I needed to do. Anyone know what I should do?

Altusnamura

PHP 5.3 compatibility
Back in revision 50154 (2009-05-03), FlaggedRevs was updated to be compatible with PHP 5.3: diff

However, I just downloaded "A snapshot of version r60856 of the FlaggedRevs extension for MediaWiki 1.15.x", which should date from Jan 2010, and the change above is nowhere in sight -- so FlaggedRevs breaks on PHP 10.3. This is despite the fact that SVN r60855 does contain the change. Downloading the SVN trunk instead fixed this, but that apparently doesn't work with MW 1.15 anymore. What's going on? Jpatokal 06:46, 10 May 2010 (UTC)


 * To answer my own question, it looks like the REL1_15 branch has not incorporated this particular change.  Would be nice to add it in there... Jpatokal 06:49, 10 May 2010 (UTC)
 * Done in r66648 Aaron 21:40, 26 May 2010 (UTC)

Regression in later versions preventing page creation in custom namespace
I don't know where to report bugs in FlaggedRevs but wanted to mention a bug that I have reproduced in r66853 and r66861 where FlaggedRevs is apparently preventing the creation of new pages when the pages are in a custom namespace. I can create pages and subpages but not if they are a page in a custom namespace, e.g. Mycustomnamespace:Mypage. I've rolled back to r66092 which appears to function much more quickly (later revs were lagging for 2-3 seconds) and allows the creation of the page in the custom namespace. Any ideas if this is a known bug and how to fix it?
 * I can't reproduce that in /trunk and don't have enough info. FR isn't really related to page creation. Aaron 21:39, 26 May 2010 (UTC)