Extension talk:ConfirmEdit/LQT Archive 1

Restricting $wgCaptchaTriggers to certain user groups
I'd like to restrict the 'edit' and 'create' triggers to anonymous users, while registered users should only have to solve the CAPTCHA if they add new external links. Any idea how I could accomplish this? -Wormbo 18:50, 9 January 2009 (UTC)

Mediawiki version 13.4
With the latest Mediawiki version on my site under construction Eco-Diving.Org I get the following Fatal error: Cannot redeclare class SimpleCaptcha in /home1/twofouap/public_html/eco-diving/extensions/ConfirmEdit/ConfirmEdit_body.php on line 66

....Anybody any idea what might be wrong? Thanks in advance --Horst Salzwedel 23:08, 16 February 2009 (UTC)
 * Are you certain you're using the 1.13 version? At Special:ExtensionDistributor/ConfirmEdit, select "1.13.x" from the drop-down and install that instead of whatever you're using now. —Simetrical (talk • contribs) 00:04, 17 February 2009 (UTC)

I use mediawiki 1.16 and I have the same error message, i have corrected the line 66 with the solution taken on Redeclaration error / on MediaWiki 1.12.0 - including solution (up in the posts) I have changed

class SimpleCaptcha { function SimpleCaptcha { global $wgCaptchaStorageClass; $this->storage = new $wgCaptchaStorageClass; }

with

if(!class_exists("SimpleCaptcha")) { class SimpleCaptcha {

But I don't anderstand where put the command confirmEditMerged and witch code put with it... I think the code is

function confirmEditMerged( $editPage, $newtext ) { }

now the website ask me :

Fatal error: Call to undefined method SimpleCaptcha::confirmEditMerged in /my_website/wiki/extensions/ConfirmEdit/ConfirmEdit_body.php on line 23

I had this same error with ConfirmEdit. I think it was caused by an incompatibility with ReCaptcha. I commented out ReCaptcha's line in LocalSettings.php and the error went away.--TheAlmightyGuru 22:42, 19 November 2010 (UTC)

MediaWiki version 1.14.0
I get the following error when I install this: Fatal error: Cannot redeclare class SimpleCaptcha in /home/content/w/a/t/watc1/html/extensions/ConfirmEdit/ConfirmEdit_body.php on line 66

Any idea why? I am using the correct version.

I've been getting a lot of bot/spams and the recaptcha just isn't working like it should. I need something that works! Help!

MediaWiki 1.15.0 and PHP 5.3.0
The extension doesn't seem to work on the newest MediaWiki Version (1.15.0) and the newest PHP Version (5.3.0) - this is the error I get: Parameter 1 to ConfirmEditHooks::confirmEditMerged expected to be a reference

Please fix that. --Regexpert 23:30, 9 July 2009 (UTC)


 * Use the 1.15.x version of the extension. —Emufarmers(T 13:02, 11 July 2009 (UTC)


 * Choosing the 1.15.x release results in the svn error: "Working copy '/mnt/upload5/private/ExtensionDistributor/mw-snapshot/branches/REL1_15/extensions' locked". Cannot proceed :( 66.162.32.234 18:16, 21 July 2009 (UTC)


 * I can confirm that this extension doesn't work with MediaWiki 1.15 and PHP 5.3.0. When I want to edit an article I get an internal error:

''Detected bug in an extension! Hook ConfirmEditHooks::confirmEditMerged failed to return a value; should return true to continue hook processing or false to abort. Backtrace:
 * 1) 0 /users/mydomain/www/wiki/includes/EditPage.php(956): wfRunHooks('EditFilterMerge...', Array)
 * 2) 1 /users/mydomain/www/wiki/includes/EditPage.php(2483): EditPage->internalAttemptSave(false, false)
 * 3) 2 /users/mydomain/www/wiki/includes/EditPage.php(449): EditPage->attemptSave
 * 4) 3 /users/mydomain/www/wiki/includes/EditPage.php(340): EditPage->edit
 * 5) 4 /users/mydomain/www/wiki/includes/Wiki.php(510): EditPage->submit
 * 6) 5 /users/mydomain/www/wiki/includes/Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
 * 7) 6 /users/mydomain/www/wiki/index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
 * 8) 7 {main}''

Can that be fixed? --Plati123 20:23, 30 July 2009 (UTC)
 * I have the same problem. Is there anything that can be done with this? Happy Joe 16:41, 20 August 2009 (UTC)
 * I also have the problem! I think it is a ConfirmEdit bug!
 * same here, mediawiki 1.13.0 and I think php 5.3.0 :/ 195.240.173.128 14:08, 1 February 2010 (UTC)


 * You are using an old version of the extension. Use the version appropiate for your mediawiki version. Special:ExtensionDistributor/ConfirmEdit. And if you have an old 1.13 wiki, update it. - Platonides 21:18, 3 February 2010 (UTC)
 * upgraded to MediaWiki 1.15.1 and the latest ConfirmEdit release. Special:Version. Still the same problem. 195.240.173.128 10:05, 4 February 2010 (UTC)


 * Ok. I have replicated it. ConfirmEdit r36959 is broken. Use the trunk one. That works fine for me. Platonides 22:47, 4 February 2010 (UTC)
 * Thanks a lot, it works now! 195.240.173.128 09:51, 5 February 2010 (UTC)

Page blanking
It seems StrategyWiki was hit by a wave of page-blanking bots that replace entire sections with a single line of text. I suggest adding a new captcha trigger based on excessive shrinkage of a page (e.g. 10+ lines removed), since this will stop most of these bots that operate on open proxies. This is useful for sites that don't explicitly block Tor nodes or other open proxies, while catching any bots that try exploiting them. The catch is that it may snag a few legitimate edits... --Sigma 7 14:29, 15 September 2009 (UTC)
 * You can captcha all edits. 212.179.134.33 16:10, 15 September 2009 (UTC)


 * Use AbuseFilter (see bug 18110). —Emufarmers(T 15:57, 16 September 2009 (UTC)

Doesn't work
Hi, i installed confirmedit on my debian lenny server. But it doesn't work for me. No captcha showed. My wiki version: MediaWiki 	1.15.1 PHP 	5.2.6-1+lenny3 (apache2handler) MySQL 	5.0.51a-24+lenny1-log In version special page, i don't find any ConfirmEdit entry.
 * Have you read the installation instructions? If you don't see it on Special:Version, it's not installed properly. Max Semenik 09:06, 30 November 2009 (UTC)

A note about php.ini
Captcha works great for us at the Venciclopedia. Spam has been reduced to zero since we installed it.

Today, however, we changed our php.ini settings and set the session.save_path to a path that produced the following error.

''PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0''

Captcha didn't work until this was fixed. It kept asking for yet another addition. Hope this info is good for something.--Mark 10:09, 24 December 2009 (UTC)

ConfirmEdit confirmed bot error
I'm having problem while trying to edit with a registered bot (with bot flag) on a site run by MediaWiki engine. I'm getting the error "hookaborted, the modification you tried to make was aborted by an extension hook". Without the Catpcha extension, the bot works properly and no problems occur. I suppose the problem lies in the settings, however, all the settings are these:

$wgGroupPermissions['*'           ]['skipcaptcha'] = false; $wgGroupPermissions['user'        ]['skipcaptcha'] = true; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; $wgGroupPermissions['bot'         ]['skipcaptcha'] = true; // registered bots $wgGroupPermissions['sysop'       ]['skipcaptcha'] = true; $wgCaptchaTriggers['edit']         = true; $wgCaptchaTriggers['create']       = true; $wgCaptchaTriggers['createaccount'] = true;

So having the $wgGroupPermissions['bot']['skipcaptcha'] = true, it shouldn't behave like this. Any idea what I should change to solve this problem? Thanks ahead. --Pavel Dusek 08:31, 18 April 2010 (UTC)

Kurdish Sorani Translation
I've QuestyCaptcha.i18n.php for kurdish sorani (ckb_arab) translated, i hope help the next User :)

/** Kurdish Sorani in Arabic-indic Script calles ckb_arab */ $messages['ckb_arab'] = array(	'questycaptcha-desc' => 'پرسیاری قەدەغەکردنی ئامێری سپام بۆ دەستکاری و دروستکردنی پەڕە و هەژمار',	'questycaptcha-addurl' => 'دەستکاریەکەت بۆ زۆرکردنی بەستەری نوێ. بۆ ڕێگەگرتن لەئامێری سپام، تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسە. (زانیاری زیاتر):',	'questycaptcha-badlogin' => 'بۆ ڕێگرتن لەئامێری شکاندی تێپەڕەوشە، تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسە. (زانیاری زیاتر):',	'questycaptcha-createaccount' => 'بۆ ڕێگەگرتن لەئامێری تۆمارکردنی خۆکار، تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسەوە. (زانیاری زیاتر):',	'questycaptcha-create' => 'بۆ ڕێگرتن لەئامێری دروستکردنی پەڕە, تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسە.(زانیاری زیاتر):',	'questycaptcha-edit' => 'بۆ  ڕێگرتن لەئامێری دەستکاری پەڕە, تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسە.(زانیاری زیاتر):', 'questycaptcha-sendemail' => 'بۆ ڕێگرتن لەئامێری سپامی دروستکردنی هەژماری خۆکار, تکایە وەڵامی پرسیارەکە لەنێو خانەکەدا بنوسە.(زانیاری زیاتر):', 'questycaptchahelp-text' => "ویکیەکەمان هیچ یاسایەکی تێدا نییە، کەڕێگە لەبەڕێزت بگرێت بۆ دەستکاری و نوسین و پەیڤین، بەڵام ئەم ڕێگایانە گیراوەتەبەر بۆ نەهێشتنی یان قەدەغەکردنی ئامێرەکانی سپام و جیاکردنەوەی ئادەمیزاد لەئامێر. ئەگەر کێشەی وەڵامدانەوەی پرسیارەکەت هەیە؟ تکایە پەیوەندی بەبەڕێوبەرانەوە بگرە . زۆر زۆر سوپاس  |بەڕێوبەران

کرتەی گەڕانەوە بکە لەوێبگەڕەکەت بۆ پەڕەی پێشووتان.", ); --Sia Neriman 21:26, 18 April 2010 (UTC)

MediaWiki:Captcha-addurl-whitelist doesnt work
# t-dialin\.net #
 * Iam using Version 1.15.x with MediaWiki 1.15.4
 * $wgCaptchaWhitelistIP works well but the "MediaWiki:Captcha-addurl-whitelist" page doesnt work.
 * Ive got the following lines in it:
 * 1)  Syntax:
 * 2)   * Alles von einem #-Zeichen bis zum Ende der Zeile ist ein Kommentar
 * 3)   * Jede nicht-leere Zeile ist ein Regex-Fragment, das gegenüber den Hostnamen einer URL geprüft wird

--RudolfH2 11:01, 12 July 2010 (UTC)
 * I want to whitelist Hostnames which ends with t-dialin.net
 * Iam using the basic math-version (no graphical captcha) of ConfirmEdit what is wrong?

Failed To Parse Message
This works fine for the calculation but fails for the mathcaptcha

I get the error:

Failed to parse (Missing texvc executable; please see math/README to configure.)

There must be more to this than what's written. I have googled around and see a lot of other suggestions to making parse errors works. I'm not sure which ones apply and which don't.

Does this assume TeX is already turned on? If it does then more documentatin needs to be put in to tell people how to activate it 99.184.221.103 06:03, 2 August 2010 (UTC)vera lynn

If Math (LaTeX rendering) on your wiki isn't enabled (or allowed on your webserver) then this wont work. Most shared servers wont let you do it so you need to find some work arounds (search "mediawiki texvc alternatives" in google) -daniel

Confirm Edit doesn't work on default settings
Hi ! All. I have downloaded and installed Confirm Edit. I have left default settings and it doesn't work.

My Localsettings.php looks like this.

require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); $wgCaptchaClass = 'SimpleCaptcha';
 * 1) Capcha

I would like to have all groups to be confirmet except sysops. And I think I have configure it right

Using ConfirmEdit for file uploads
Hi ,

Thanks for such a great extension. Has definitely improved the security on my site.

I was wondering if I could configure this extension for a Captcha for file uploads. I wanted to enable use of some SWF sites on my wiki, but would like to strictly validate the files as real before having them on the website.

Thanks Veryhuman 17:15, 4 September 2010 (UTC)

ConfirmEdit Blanking Page
I've installed the extetension on 1.16.0 and it appears to work without error messages. However, when a user edits or creates page and clicks save, the page refreshes with the captcha, but the user's text disappears. How do I fix this?

Captcha-desc
Hi, so far it says "Simple captcha implementation". Now that this extension is even a better goodie it should perhaps say "Allows CAPTCHA implementations" or something like it. Cheers --&#91;&#91;kgh&#93;&#93; 15:03, 2 February 2011 (UTC)
 * Cool, thank you. :) --&#91;&#91;kgh&#93;&#93; 10:56, 5 February 2011 (UTC)


 * Thanks for the suggestion! By the time I made the change, I had forgotten where I read the idea, but now I remember. :) Yaron Koren 06:31, 6 February 2011 (UTC)

Class 'SimpleCaptcha' not found
Hi, after trying to install this extension (r81364) with reCAPTCHA I got the following error message: "Fatal error: Class 'SimpleCaptcha' not found in /.../extensions/ConfirmEdit/ReCaptcha.php on line 54". I am using MW 1.16.2 Additionally it stopped displaying the description of the extension on Special:Version. Cheers --&#91;&#91;kgh&#93;&#93; 15:35, 2 February 2011 (UTC)


 * Hi - you need to have both "ConfirmEdit.php" and "ReCaptcha.php" included in LocalSettings.php. Maybe the documentation should be clearer about that. Yaron Koren 16:10, 2 February 2011 (UTC)


 * Hi Yaron, the documentation is ok since I have done so. I included both in my LocalSettings.php. For some reason I have added ReCaptche before and not below ConfirmEdit. This must be the reason. I do not know why I have done this and this must be the reason. I will try again later this evening. Thank you anyway for helping. Cheers --&#91;&#91;kgh&#93;&#93; 16:37, 2 February 2011 (UTC) Edit: I just tried it. It works out perfectly. It always helps reading the instructions correctly. --&#91;&#91;kgh&#93;&#93; 20:35, 2 February 2011 (UTC)