Wikimedia Forum/Archives/2024-08

Having problems with ConfirmEdit Extension.

  Resolved. OP fixed their config file

Hello.

I felt that I should install a MediaWiKi Instance on my own server, and seem to have succeeded so far. But, I'm having a problem with the ConfirmEdit Extension. I also run in to some barriers because I installed everything from Debian 11 packages, which means that my MediaWiKi version is 1.35.

The reason I wanted to set up the extension is the fact that its FancyCaptcha feature should slow down brute-force attacks against my home server. So, these are my relevant configs:

$wgMainCacheType = CACHE_ACCEL;

wfLoadExtensions( ['ConfirmEdit', 'ConfirmEdit/FancyCaptcha'] );

$wgCaptchaClass = 'FancyCaptcha'; 
$wgCaptchaDirectory = '/var/lib/mediawiki/Captcha';
$wgCaptchaDirectoryLevels = 0;
$wgCaptchaSecret = '...';

$wgCaptchaTriggers['edit'] = false; 
$wgCaptchaTriggers['create'] = false; 
$wgCaptchaTriggers['sendemail'] = false; 
$wgCaptchaTriggers['addurl'] = false; 
$wgCaptchaTriggers['createaccount'] = true; 
$wgCaptchaTriggers['badlogin'] = true; 
$wgCaptchaTriggers['badloginperuser'] = true; 
 
$wgCaptchaBadLoginAttempts = 3;
$wgCaptchaBadLoginExpiration = 300; // 300 seconds = 5 minutes $wgCaptchaBadLoginPerUserAttempts = 5;
$wgCaptchaBadLoginPerUserExpiration = 600; // 600 seconds = 10 minutes

Also, I did run the Python script, and populated the correct directory with captcha Images.

The problem is that when I test my setup by making 3 invalid logins (into my own server), I get an error message stating that an Underflow took place, and no further details. This is the point where the Captcha should actually display.

The server log file...

/var/log/apache2/error.log

Shows no corresponding error message.

There is a strong possibility that I'm just doing something wrong, which experienced admins would not do. But I need somebody at this point to give me a hint as to what that could be.

Thank you in advance, Dirk DirkMittler (talk) 02:45, 30 August 2024 (UTC)

Just a heads up that while some users here may be technical enough to help with your question and MediaWiki software was developed for Wikimedia sites, Meta-Wiki is mostly about the larger Wikimedia movement, so fine-grained debugging questions may not get answers here. You might have better luck at mw:. —Justin (koavf)TCM 02:49, 30 August 2024 (UTC)
Not an expert, but you have $wgCaptchaBadLoginPerUserExpiration set but have $wgCaptchaBadLoginPerUserAttempts commented out. This could lead to an underflow as presumably the code tests for an integer value but finds a null or something similarly undefined. MarcGarver (talk) 08:55, 30 August 2024 (UTC)
  • Due to a missing CRLF on that line — xaosflux Talk 09:26, 30 August 2024 (UTC)
    There is every possibility that a CRLF became missing somewhere, due to the way I copied and pasted my config. There will be a Linux-style newline character in my copy. However, I did find the problem. It was this line:
    :::*:$wgCaptchaDirectory = '/var/lib/mediawiki/Captcha';
    :::*:
    
    The name of the directory that contains my captchas is named 'Captchas', not 'Captcha'. Once I corrected that line, everything works. I have my Captchas when they are supposed to appear.
    Dirk DirkMittler (talk) 17:21, 30 August 2024 (UTC)
This section was archived on a request by: — xaosflux Talk 18:32, 30 August 2024 (UTC)

Reminder! Vote closing soon to fill vacancies of the first U4C

You can find this message translated into additional languages on Meta-wiki. Please help translate to your language

Dear all,

The voting period for the Universal Code of Conduct Coordinating Committee (U4C) is closing soon. It is open through 10 August 2024. Read the information on the voting page on Meta-wiki to learn more about voting and voter eligibility. If you are eligible to vote and have not voted in this special election, it is important that you vote now.

Why should you vote? The U4C is a global group dedicated to providing an equitable and consistent implementation of the UCoC. Community input into the committee membership is critical to the success of the UCoC.

Please share this message with members of your community so they can participate as well.

In cooperation with the U4C,

-- Keegan (WMF) (talk) 15:29, 6 August 2024 (UTC)

Page 2

I have some questions 1how come Wikipedia is single page? is the money from Google and Wikipedia enterprize and others not enough for 2 page entries 2why isn't Wikipedia decentralised yet 3why isnt trust and safety intervening there are exterimist admins and stewards , people in janny roles for example the farsi wikipedia telegram is literally not allowing any kind of speech around iranian regime Baratiiman (talk) 15:11, 9 August 2024 (UTC)

@Baratiiman:
  1. What do you mean by "single page"? Could you please explain in detail?
  2. I think one of the major reasons is the technical challenge, as we would have to change our infrastructure significantly.
  3. You can read this page to know more about Office Actions performed by Trust and Safety. If you have any concerns, you may contact them. However, I suggest following local processes to raise your concerns before reaching out to T&S.
SCP-2000 08:35, 13 August 2024 (UTC)
Illogical , it wouldn't be a fraction cost of the current centralized wiki Baratiiman (talk) 18:08, 13 August 2024 (UTC)

Template:Webarchive

can any admin to help import https://en.wikipedia.org/wiki/Template:Webarchive to meta? Manojk (talk) 04:34, 19 August 2024 (UTC)

Georgian Wikiquote

According to this link, Georgian Wikiquote has 192 articles, but this link tells us it has 602 articles, also number is not updated after creating new articles MikheilBeruashvili (talk) 03:47, 19 August 2024 (UTC)

The second link is to the old stats site that doesn't work any more. The current data is available at https://stats.wikimedia.org/#/ka.wikiquote.org – if you look at this view, it reports 776 content pages at the end of July 2024, which is a lot more than the statistics page reports (192). Possibly they use the two different methods to determine what counts as a page. Jdforrester (WMF) (talk) 16:20, 19 August 2024 (UTC)
How could we fix it? Same happens with Moksha Wikipedia (mdf.wikipedia) now, everything with normal with the last one, and the problem suddenly started yesterday, if u know solution, could you look at this project?--MikheilBeruashvili (talk) 05:46, 22 August 2024 (UTC)

Sign up for the language community meeting on August 30th, 15:00 UTC

Hi all,

The next language community meeting is scheduled in a few weeks—on August 30th at 15:00 UTC. If you're interested in joining, you can sign up on this wiki page.

This participant-driven meeting will focus on sharing language-specific updates related to various projects, discussing technical issues related to language wikis, and working together to find possible solutions. For example, in the last meeting, topics included the Language Converter, the state of language research, updates on the Incubator conversations, and technical challenges around external links not working with special characters on Bengali sites.

Do you have any ideas for topics to share technical updates or discuss challenges? Please add agenda items to the document here and reach out to ssethi(__AT__)wikimedia.org. We look forward to your participation!

MediaWiki message delivery (talk) 23:18, 22 August 2024 (UTC)

Request closure from an experienced administrator

Wikijunior is an multilingual subproject which exists within the Wikibooks project. For example, fr.wikibooks.org houses the French Wikijunior project. Here at meta, Wikijunior/Logo is in dire need of closure; it has been open for over a decade. There haven't been comments for more than a year. There has been plenty of discussion, and proposal A *appears* to be the favourite. What this really, deeply needs is for an experienced admin to come in and write a closing statement, so that an "official" logo can be initiated. Thanks, 🌺 Cremastra (talk) 14:24, 26 August 2024 (UTC)