Jump to content

Project:Support desk/Flow/2022/02

Add topic
From mediawiki.org
Latest comment: 2 years ago by 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 in topic Recommended character set and collation?
This page is an archive.
Please ask questions on the current support desk.

Requesting new features

Where should i request new features to MediaWiki? Vitaium (talk) 05:37, 1 February 2022 (UTC)

See Bugreport Ciencia Al Poder (talk) 08:49, 1 February 2022 (UTC)

Hosting options for a site with good search function

I'm fairly new to MediaWiki, but my project is coming to a bit of a flat-line as I really need people to be able to search properly before they create a new page themselves, there may already be a page already for that subject.

I am creating a historical list of pubs in my area and want people to be able to add their own pubs if they know about them.

My issue is, I am unable to install Elasticsearch on my current hosting platform as I don't have root access and there is no Java installed.

Any suggestions what to do? Ways to install Elasticsearch?, better (but cheap) hosting platforms??

I am based in Australia.

MediaWiki 1.36.2
PHP 7.4.27 (cgi-fcgi)
MySQL 5.7.37
ICU 69.1

Stevio Bee (talk) 08:16, 1 February 2022 (UTC)

500 Internal Server Error After 1.37 Upgrade

Tonight I have been working on upgrading my MediaWiki site. I upgraded from 1.25 -> 1.28 without a problem, but from 1.28 -> 1.37 I now have 500 errors upon loading the site. I went to my error logs but nothing is showing up, which is odd. (But I'm running on a VPS where I don't have direct access to apache logs.) 67.172.125.138 (talk) 08:46, 1 February 2022 (UTC)

See Manual:How to debug Ciencia Al Poder (talk) 08:53, 1 February 2022 (UTC)
I did those things to no avail. I'm not even getting to a spot where I can throw up debug issues, as far as I can tell. Unless I'm missing something? 67.172.125.138 (talk) 09:05, 1 February 2022 (UTC)
If you can't access server logs on a VPS, that's not a VPS or you don't have the required access level rights to get to them. You'll need the help to the person with access to the logs. We can't do more about this. Ciencia Al Poder (talk) 09:08, 1 February 2022 (UTC)
for the record, also experiencing this on siteground, as far as i can tell nothing generated in the logs. checking with other admin to see if they can see anything but so far just a 500 Sneakers-the-rat (talk) 06:52, 7 February 2022 (UTC)

CSS Not loading

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

I've installed Mediawiki 1.37 and my CSS are not loading.

As said in the doc,

i modified my apache conf:


LoadModule rewrite_module modules/mod_rewrite.so


<VirtualHost *:80>

    Alias /wiki "C:/[...]/www/mediawiki/index.php"

    Alias /w "C:/[...]/www/mediawiki/index.php"

</VirtualHost>


Added a .htaccess:

# Enable the rewrite engine

RewriteEngine On


# Short URL for wiki pages

# RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]


# Redirect / to Main Page

RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]


(tried with and without the commented rewrite rule)

When i show the sources in the browser (Firefox) and click on the stylesheet link, i'm redirected to my main wiki page.

For me, it looks like the problem comes from my apache conf but i can't figure out where the problem is.

Everything seems to be ok (links leads to pointed pages) but no css is loaded


Thanks for your help Hotjice (talk) 10:48, 1 February 2022 (UTC)

Try to follow Manual:Short URL/Apache. There's no recommendation to use Alias Ciencia Al Poder (talk) 11:46, 1 February 2022 (UTC)
The alias for /w seems wrong, should be for "C:/[...]/www/mediawiki/" i think.
Usually you do .htaccess or alias, not both. Having both might interfere with each other.
What are wgArticlePath and $wgScriptPath set to? Bawolff (talk) 11:49, 1 February 2022 (UTC)
Thank you both. I better understand apache config (btw i find it is very complicated:-/)
My $wgScriptPath was set to /wiki. I put it back to /w and it works... Hotjice (talk) 15:16, 1 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Interner Fehler Fataler Ausnahmefehler des Typs „Error“

Hi, I am new to MediaWiki. I have just installed the programm and was so proud to finish the installation. When I opened up the web page, this was the error I found. Any help would be appreciated. 2A04:4540:4704:F600:F5EB:AE46:258F:D606 (talk) 13:15, 1 February 2022 (UTC)

See "Post a new question" in the sidebar, plus Manual:How_to_debug. Thanks. Malyacko (talk) 14:48, 1 February 2022 (UTC)

Is it possible to run DB queries directly from MediaWiki?

I am not a SQL programmer and barely know anything about querying MySQL DBs.

And yet it is still important for me to ask:

Is it possible to run DB queries directly from MediaWiki? 79.176.130.99 (talk) 13:18, 1 February 2022 (UTC)

Which underlying problem would you like to solve? DB queries to find out what exactly? Please also see "Post a new question" in the sidebar - thanks. Malyacko (talk) 14:47, 1 February 2022 (UTC)
I want to solve this underlying probelm:
Project:Support desk/Flow/2022/01#h-How_to_print_the_URL_of_any_redirect_I_have?-2022-01-28T16:57:00.000Z
I thought to solve it by querying the name and/or URL of any redirect I have, in some dedicated webpage. 79.176.130.99 (talk) 16:12, 1 February 2022 (UTC)
Malayacko it is unclear to me why you asked me to read this webpage, perhaps you found an XY problem in my post? If I sinned, I hope you will forgive me. 79.176.130.99 (talk) 16:13, 1 February 2022 (UTC)
There used to be Extension:Asksql there is also manual:Sql.php.
However easiest is probably to install something like phpmyadmin. Bawolff (talk) 17:12, 1 February 2022 (UTC)

How best to centralize all main content in a webpage?

I would assume that this CSS approach would be enough:

Putting in MediaWiki:Common.css:

.page-PAGE_NAME #mw-content {
    text-align: center;
}

Do you find any problem with that approach?

Can there be any "collision" with other main styles? 79.176.130.99 (talk) 14:38, 1 February 2022 (UTC)

How to reduce the number of sites

Hi, we are deleting sites, but the number of sites in the field for search is only increasing. How can we fix this? Thanks! 129.177.147.44 (talk) 15:24, 1 February 2022 (UTC)

Please read "Post a new question" in the sidebar. What "sites"? How do you "delete"? How to see some "increase"? Malyacko (talk) 15:28, 1 February 2022 (UTC)

Cannot read from remote repo, Permission denied (Public key)

Hi, I'm trying to upload a branch for review for pywikibot, however I am being denied when I run git review -R.


I have checked that I have uploaded my public SSH key which is showing as valid and I was able to download the repo with my credentials, however I am unable to upload my changes.


I have also run: $ ssh -vv -p 29418 hexagonson@gerrit.wikimedia.org

and this confirmed a successful connection over SSH. I can paste that below in a separate comment if that would help.

The below is the error message. Any help would be appreciated, thanks. If you need any further info like OS etc please advise as I'm new to this.


$ git review -R

hexagonson@gerrit.wikimedia.org: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists. Lorcan Hex (talk) 16:55, 1 February 2022 (UTC)

Probably the git remote named gerrit is wrong.
If the latest commit on your branch is the new one you could try old school version:
git push origin HEAD:refs/for/master Bawolff (talk) 17:04, 1 February 2022 (UTC)

The action you have requested is limited to users in the group: Administrators.

Hi Team,

I am getting this issue in our community wiki help special page.

Please suggest?


Thanks Akki30 (talk) 17:28, 1 February 2022 (UTC)

Please see "Post a new question" in the sidebar and elaborate what is unclear, plus which action this is about on which exact page. Malyacko (talk) 18:53, 1 February 2022 (UTC)
Because you're not an admin, presumably. Bawolff (talk) 02:03, 2 February 2022 (UTC)
^^ "Post a new question " , I am not getting this?
In my wiki site, there is page called "Our Help special page".
When I am Clicking on it , its showing me error below:
Permission error
You do not have permission to read this page, for the following reason:
The action you have requested is limited to users in the group: Administrators.
We are using :
Wiki 1.35.7
PHP 7.4
MariaDB: 10.6.5 Akki30 (talk) 08:38, 2 February 2022 (UTC)
See the previous replies in this thread. What is unclear, and what is your question? Malyacko (talk) 10:00, 2 February 2022 (UTC)

Uncaught errors when attempting upgrade from 1.36 to 1.37

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'm trying to update my wiki to 1.37.1 from 1.36.2. I've uploaded the new files successfully (overwriting old ones in the main folder; I have a backup of the old version), but cannot run the update script successfully. Attempting it through the browser gives a blank page; running the script at the command line gives the below error (I've replaced the actual root path with [wikipath] to make this a bit shorter).

PHP Fatal error:  Uncaught Error: Interface 'MediaWiki\Actions\Hook\GetActionNameHook' not found in /[wikipath]/includes/HookContainer/HookRunner.php:35

Stack trace:

#0 /[wikipath]/includes/AutoLoader.php(117): require()

#1 [internal function]: AutoLoader::autoload('MediaWiki\\HookC...')

#2 /[wikipath]/includes/MediaWikiServices.php(267): spl_autoload_call('MediaWiki\\HookC...')

#3 /[wikipath]/includes/exception/MWExceptionHandler.php(130): MediaWiki\MediaWikiServices::getInstance()

#4 /[wikipath]/includes/exception/MWExceptionHandler.php(201): MWExceptionHandler::rollbackPrimaryChangesAndLog(Object(Error), 'mwe_handler')

#5 /[wikipath]/includes/exception/MWExceptionHandler.php(170): MWExceptionHandler::handleException(Object(Error), 'mwe_handler')

#6 [internal function]: MWExceptionHandler::handleUncaughtException(Object(Error))

#7 {main}

  thrown in /[wikipath]/includes/HookContainer/HookRunner.php on line 35

It did seem a few files didn't update correctly, leaving a few older version files intact, but I think I've found and updated all of those now. I also spotted a few files which have been deprecated; the files for those from the older MediaWiki version are still there. Could that be a problem too?

Is there an easy way to fix this without restoring the old version and starting over? Guybrush (talk) 06:52, 2 February 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I have created the following JavaScript code to add an imageless call now button.

In Skin:Timeless I have the problem that it covers the footer, although it should appear after the last child of the body tag.

How would you solve that problem?

document.body.insertAdjacentHTML('beforeend', `
<aside class="all_textual_cnb_wrapper">
	<a dir="ltr" class="all_textual_cnb_link" href="tel:PHONE_NUMBER">Call now ✆</a>
</aside>
`)

newStyle = document.createElement("style");
newStyle.type = "text/css";
newStyle.innerHTML +=`
	.all_textual_cnb_wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9999;
		padding: 0 0 5px 0; /* vertical-centralization fix */
		font-size: 36px;
		font-weight: bold;
		background: #149714;
	}

	.all_textual_cnb_link {
		color: #fff;
	}
	.all_textual_cnb_link:hover {
		color: #fff;
		text-decoration: none;
	}
	.all_textual_cnb_link:active {
		color: red !important; /* fix a collide with MediaWiki */
	}
	.all_textual_cnb_link:focus {
		color: #fff;
	}
`;
document.head.appendChild(newStyle);

79.176.130.99 (talk) 12:56, 2 February 2022 (UTC)

How would you format a webpage which you include in your homepage?

MediaWiki 1.36.1.

I seek to develop an understanding about how best it is to format a webpage included in my MediaWiki website's homepage.


This might be a good wrapper for the included webpage:

<includeonly>

CONTENT

</includeonly>

<noinclude>
[[Category:homepage_content]]
</noinclude>

But some here may prefer to do it otherwise and I want to know how.


Please share your general way (your preferred code pattern) for a webpage included in your homepage. 79.176.130.99 (talk) 13:32, 2 February 2022 (UTC)

This thread lacks a description of an underlying problem to solve, or what a "webpage" is exactly. You're free to create a wiki page and transclude it into the wiki homepage. Malyacko (talk) 14:14, 2 February 2022 (UTC)
Well, I can't edit but the underlying problem to solve is that putting too much of HTML and/or MediaWiki source code in my homepage will make my homepage problematic to maintain, hence I need to call the relevant content from other webpages.
A webpage for that matter is any web-browser-accessible page created by PHP which isn't the homepage itself, isn't a category page or isn't a special webpage. 79.176.130.99 (talk) 15:00, 2 February 2022 (UTC)
According for the rest Malyacko said, yes, transclusion is the term I needed in the question.
What I seek is personal experience advice for how to transclude data when it comes to the homepage (when it comes to transcluded content which serves to construct a large major data structure of the homepage). 79.176.130.99 (talk) 15:04, 2 February 2022 (UTC)
From reviewing the history of the homepage of mediawiki.org I understand that User:HappyDog did the wonderful syntax of the current output in year 2006.
User:TheStallion99 which may no longer be active contributed
And User:Armagetron made the new design.
Maybe you would like to go some tips on how to solve the problem described here and how things to take into account when creating major responsive webpages in MediaWiki syntax. 79.176.130.99 (talk) 17:22, 2 February 2022 (UTC)
Past readers can check Project:Support desk/Flow/2022/01#h-My_question-2022-01-31T11:28:00.000Z in which I already covered that the MediaWiki homepage on this very wiki loads its content from Template:Main_page. Maybe you'd like to check the code and transclusion documentation and ask specific questions if anything is unclear. Malyacko (talk) 19:54, 2 February 2022 (UTC)
@Malyacko
I have already checked the code you mentioned as well as somewhat the transclusion documentation.
Here I seek some best practices for transcluding webpages into an homepage.
As far as I know I am not violating any community rule in asking this.
If transclusion in the homepage doesn't have any best practices or is 100% identical for transclusion in any other webpage than I welcome such a response. 79.176.130.99 (talk) 00:01, 3 February 2022 (UTC)
What is supposed to be a "best practice" when talking about a single line of code to transclude a page? As written before, specific questions would be welcome. Malyacko (talk) 07:56, 3 February 2022 (UTC)
"If transclusion in the homepage doesn't have any best practices or is 100% identical for transclusion in any other webpage than I welcome such a response."
Yes, it works the same for the Main Page as for any other page. Jonathan3 (talk) 22:25, 3 February 2022 (UTC)

WikiCommons images not loading

MediaWiki 1.27.7


Recently, my wiki has been having issues in loading images from the commons resulting in massive red links within our articles. Me and a few other techs think this may be due to our MediaWiki version being too outdated. Would this be an accurate assertion, or can we still load images from that version? RockfordRoe (talk) 14:59, 2 February 2022 (UTC)

Are you talking about Error creating thumbnail ?
I've seen it too, might be a wider spread issue. Please file a Phabricator ticket. —TheDJ (Not WMF) (talkcontribs) 15:04, 2 February 2022 (UTC)
This may be tracked already as T300366 Ciencia Al Poder (talk) 15:26, 2 February 2022 (UTC)

Sometime, the urls switch to localhost

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

On some occasions (loging in, saving modifications of a page, trying to see discussions in the WikiForum are the one i have seen), the IP adress switches to "localhost" (it's a very early test, no DNS name).

For me, it's the same (that's why i didn't notice it earlier) but for other testers, it is.

When I navigate through the pages, initiate editing or disconnect, i don't have this url changing.

Does anyone have a clue ? Hotjice (talk) 15:29, 2 February 2022 (UTC)

Be sure you have $wgServer set to a public IP or domain name, not localhost or some dynamic value.
If it was set to localhost before, you may need to clear the cache (some pages may have links cached with localhost). Another option is to set $wgCacheEpoch to force a cache refresh. Ciencia Al Poder (talk) 15:35, 2 February 2022 (UTC)
Thank you, my $wgServer was set to localhost. Hotjice (talk) 08:41, 3 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

CSS for popups

Working on a skin. I would like to change the font color and background color for the popups that appear when hovering over a link. Any ideas? Flounder ceo (talk) 17:33, 2 February 2022 (UTC)

Which "popups" extension is this about? Please see "Post a new question" in the sidebar. Malyacko (talk) 08:29, 3 February 2022 (UTC)
Thank you for the reply. I'm working on Skin:DarkVector. As it stands the popups show with orange lettering on a white background. Adding this code to darkvector.less changes the background behind the text to dark gray. There is still more work to do.
.mwe-popups-extract {
background-color: #393939;
} Flounder ceo (talk) 22:46, 3 February 2022 (UTC)

API Edit Page

Hi,

I want to edit the Mediawiki trough a API Edit page. I used the pyhton code from here with an Botuser:

API:Edit

I get the message that the user is successfully logged in and the CSRF_Token is created. Then at the Edit paragraph, get the response that

"{'error': {'code': 'permissiondenied', 'info': 'The action you have requested is limited to users in one of the groups: Users, xx-ContentAdmin-Test, xx-ContentEditor-Test, xxx-ContentOwner-Test.', '*': 'See https:/xxx.org/mediawiki/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."

The Bot user I am using has the permissions with are mentioned in the Error message.

What could be the reason for this "Permissiondenied"?

BR

Carla



S = requests.Session() URL = "https://influencer-test.sos-kd.org/mediawiki/api.php"

# Step 1: GET request to fetch login token

PARAMS_0 = {

    "action": "query",

    "meta": "tokens",

    "type": "login",

    "format": "json"

}

R = S.get(url=URL, params=PARAMS_0)

DATA = R.json() LOGIN_TOKEN = DATA['query']['tokens']['logintoken']

print("LOGIN_TOKEN" + LOGIN_TOKEN)

# Step 2: POST request to log in. Use of main account for login is not

# supported. Obtain credentials via Special:BotPasswords

# (https://www.mediawiki.org/wiki/Special:BotPasswords) for lgname & lgpassword

PARAMS_1 = {

    "action": "login",

    "lgname": "Botxxxtest",

    "lgpassword": "botxxxtest@123456xxx",

    "lgtoken": LOGIN_TOKEN,

    "format": "json"

}

R = S.post(URL, data=PARAMS_1)

# Step 3: GET request to fetch CSRF token

PARAMS_2 = {

    "action": "query",

    "meta": "tokens",

    "format": "json"

}

R = S.get(url=URL, params=PARAMS_2)

DATA = R.json()

CSRF_TOKEN = DATA['query']['tokens']['csrftoken']

# Step 4: POST request to edit a page

PARAMS_3 = {

    "action": "edit",

    "title": "TITLEOFPAGEHERE_xxx",

    "token": CSRF_TOKEN,

    "format": "json",

    "appendtext": "Hello",

}

R = S.post(URL, data=PARAMS_3)

DATA = R.json() CarlaSch (talk) 18:30, 2 February 2022 (UTC)

You probably have the wrong grants set for the botuser. Bawolff (talk) 05:00, 3 February 2022 (UTC)

Path to the GNU diff3 utility

$wgDiff3 = "";

===

Where should I point wgDiff3? The following are my Configure Command locations.

'./configure' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/opt/alt/php73' '--exec-prefix=/opt/alt/php73' '--bindir=/opt/alt/php73/usr/bin' '--sbindir=/opt/alt/php73/usr/sbin' '--sysconfdir=/opt/alt/php73/etc' '--datadir=/opt/alt/php73/usr/share' '--includedir=/opt/alt/php73/usr/include' '--libdir=/opt/alt/php73/usr/lib64' '--libexecdir=/opt/alt/php73/usr/libexec' '--localstatedir=/var' '--with-curl=/opt/alt/curlssl11/usr' '--sharedstatedir=/usr/com' '--mandir=/opt/alt/php73/usr/share/man' '--infodir=/opt/alt/php73/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/alt/php73/etc' '--with-config-file-scan-dir=/opt/alt/php73/link/conf' '--disable-debug' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-huge-code-pages' '--enable-opcache' '--enable-opcache-file' '--enable-shmop' '--enable-unicode' '--enable-xml' '--with-bz2' '--with-freetype-dir=/usr' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-layout=GNU' '--with-libxml-dir=/opt/alt/libxml2/usr' '--with-mhash' '--with-openssl-dir=/opt/alt/openssl11' '--with-openssl=/opt/alt/openssl11' '--with-password-argon2=/usr' '--with-pcre-jit' '--with-pcre-regex' '--with-pic' '--with-png-dir=/usr' '--with-readline' '--with-t1lib=/opt/alt/t1lib/usr' '--with-webp-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--without-gdbm' '--without-pear' '--with-litespeed' '--enable-pcntl' '--without-mysqli' '--disable-mbstring' '--disable-bcmath' '--disable-dba' '--disable-dom' '--disable-fileinfo' '--disable-json' '--disable-intl' '--disable-pdo' '--disable-phar' '--disable-posix' '--disable-soap' '--disable-sockets' '--disable-sysvsem' '--disable-sysvshm' '--disable-sysvmsg' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter' '--disable-zip' '--without-gd' '--without-imap' '--without-xmlrpc' '--without-xsl' '--without-ldap' '--without-pgsql' '--without-snmp' '--without-sodium' '--without-tidy' '--without-enchant' '--without-recode' '--without-mssql' '--without-pspell' '--without-unixODBC' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' MW2022 (talk) 05:34, 3 February 2022 (UTC)

The versions are
1. MediaWiki version: 1.37.1
2. PHP Version: 7.3.33
3. MySQL Version: 10.3.31 MW2022 (talk) 05:35, 3 February 2022 (UTC)
From the commandline run
which diff3
To find full path. Bawolff (talk) 07:28, 3 February 2022 (UTC)

Redis cache

How do I use redis instead of APC? There is no enableSemantics() in the "LocalSettings.php" file.


The current entries in the "LocalSettings.php" file are

## Shared memory settings

$wgMainCacheType = CACHE_ACCEL;

$wgMemCachedServers = []; MW2022 (talk) 05:45, 3 February 2022 (UTC)

I set my "LocalSettings.php" file to the following. Is this the right way? How do I check if redis is working?
## Shared memory settings
$wgMainCacheType = 'redis';
$wgSessionCacheType = 'redis';
$wgMemCachedServers = [];
# Add more configuration options below.
unset( $wgFooterIcons['poweredby'] );
wfLoadExtension( 'LiteSpeedCache' );
$wgObjectCaches['redis'] = [
    'class'                => 'RedisBagOStuff',
    'servers'              => [ '127.0.0.1:6379' ],
    // 'connectTimeout'    => 1,
    // 'persistent'        => false,
    // 'password'          => 'secret',
    // 'automaticFailOver' => true,
]; 2401:7400:C807:2568:483C:64DF:7B70:99A7 (talk) 07:23, 3 February 2022 (UTC)
Looks reasonably correct. Bawolff (talk) 07:26, 3 February 2022 (UTC)

I created an account mr_bandit, cannot get blessed

I am the "bandit" who worked at Ono-Sendia.

I created the account, added a password, then tried to get it confirmed via an email.

I do not get the email. My email is bandit@cruzio.com

Please advise .. yours ... bandit 2601:1C0:4F00:FBE0:9D9B:83C4:F9F2:4BCD (talk) 05:59, 3 February 2022 (UTC)

Please read "Before you post" in the sidebar. This is a support forum for the MediaWiki software. No idea what "Ono-Sendia" is. Malyacko (talk) 07:57, 3 February 2022 (UTC)

Media Wiki Editor tiny

Mediawiki question Version (1.37.1) My-SQL...

I installed Editor tiny, everything works but i cannot integreat uploaded pictures in tiny... I uploaded some pictures yesterday and i wanted to integrate the picture today with tiny but i dosn t work... ?! Thanks so much for an answer micha-muck@web.de 2A02:8070:1C3:3440:FC5A:29C5:1EFA:9512 (talk) 07:13, 3 February 2022 (UTC)

What is "Editor tiny" exactly? What does "integrate" mean exactly and practically? Malyacko (talk) 07:58, 3 February 2022 (UTC)

Customizing MediaWiki

I am looking to develop an application based on MediaWiki. I propose to use MediaWiki 1.35.5 and PHP 7.3.33. I want to support custom edit-pages. It is clear how this can be done.

Custom Features needed:

  1. I wish to customize processing when article is submitted:
  2. I wish to store the created content in a custom table that I am going to define.
  3. I wish to be able to control when the HTML page for the article is generated, when it is available for search engines to index and render.
  4. Is it possible to accomplish the above? How exactly can it be achieved@Satyanarayana Krishnamurthy? Satyanarayana Krishnamurthy (talk) 07:43, 3 February 2022 (UTC)
It is a bit unclear from your post: Are you looking to pay someone to do those things? If so, i would suggest emailing someone on the list at Professional development and consulting directly. Bawolff (talk) 08:17, 3 February 2022 (UTC)
No, I am not paying anybody. I propose to do the development myself, by creating an extension. From what I read about Extensions, I can only change the EditPage. But I want to change the behaviour of MediaWiki wrt saving and publishing. Can this be done or not?@Satyanarayana Krishnamurthy Satyanarayana Krishnamurthy (talk) 04:28, 4 February 2022 (UTC)

Using php/API to edit all pages in category

The API documentation seems really good. But to save reinventing the wheel I though I'd ask: is there already a php script somewhere that I could modify to do this? Or should I just use pywikipediabot despite not knowing Python? :-) It'll not be a simple regex replacement per page so I'm hesitant about that. Thanks in advance for any advice. Jonathan3 (talk) 10:51, 3 February 2022 (UTC)

See API:Client_code#PHP and also Manual:Chris_G's_botclassesAmmarpad (talk) 17:33, 4 February 2022 (UTC)

Problem with automatic redirect

I have a page in my wiki whose name consists of a single character: the German special character ß. When the page was created on an older version of mediawiki there were no problems, only today I noticed that the page can no longer be accessed. When I click on a link to the page, I am automatically redirected to a page with the string %c3%9f, and then to an (empty) page with the name SS.


How can I please access the page again? 88.72.100.99 (talk) 12:03, 3 February 2022 (UTC)

%c3%9f is how web browsers represent ß. I think what might be happening is that first letters get capitalized, but ẞ is relatively new so it is capitalized as SS instead. But if somehow that's not what is in the db, you might not be able to get to the page.
If you know the page id, you can get access via ?curid=pageidhere . You can probably find page id from api or db. Bawolff (talk) 02:42, 4 February 2022 (UTC)
I managed to get the ID of the page via the last changes of a user (pagename&oldid=pageid), but when I try to access the page via ?curid=pageid I get the error message "Object not found".
But, after some searching here on the site, I came across $wgCapitalLinks. After setting $wgCapitalLinks to false I was able to access the page again and rename it. After that I had to set $wgCapitalLinks back to default because otherwise some other links didn't work anymore. 188.102.137.174 (talk) 04:08, 4 February 2022 (UTC)
Fwiw - oldid is the revision id not the page id. Bawolff (talk) 05:19, 5 February 2022 (UTC)

Is there a page on this wiki or another that gives an overview all software projects that are possible related to Wikimedia? For example, the organization of WMF developer teams, toolforge, wikimedia cloud, external desktop and apps/websites, and userscripts.

If not, should I create one? Lectrician1 (talk) 16:18, 3 February 2022 (UTC)

No (as I don't see which problem a single page would solve), and no (as someone would have to have a complete overview plus maintain that page for years to come). :) Malyacko (talk) 17:03, 3 February 2022 (UTC)
The page will not be a complete list of all software in Wikimedia, but a general overview on the large stuff and how it is connected. For example, how all of the Wikimedia product teams work and what they work on, what Wikitech is, how Toolforge works and what it's used for, what is WMcloud WMFlabs, what are/is the difference between userscripts and modules, and how people connect to MediaWiki using APIs.
> I don't see which problem a single page would solve
Right now new developers have no way of understanding the "development strucuture" of the Wikimedia community or a list of broad software projects they can work on and see who works on it. I personally am a relatively new developer and it took me about a period of 3 months to eventually learn what all of those things mentioned above are, what they do, and what their differences are. Such a page would allow developers to see how "Wikimedia works" and where they should look say they want to develop a tool for a wiki, an application using data from a wiki, or contribute to the development of MediaWiki itself. Lectrician1 (talk) 18:53, 3 February 2022 (UTC)
I think the up-coming Developer Portal might be working towards something like what you're describing. Sam Wilson 06:43, 4 February 2022 (UTC)
There is actually Upstream projects which lists most of this —TheDJ (Not WMF) (talkcontribs) 23:32, 4 February 2022 (UTC)

EditPage does not have a context title set

Installed software

Product Version
MediaWiki 1.37.1
PHP 7.4.27 (apache2handler)
MariaDB 10.3.32-MariaDB-0ubuntu0.20.04.1
Page Forms 5.3.4 (d619170)

Upgraded from 1.35 to 1.37.1 and also Page Forms version that is compatible to new MW software.

Using page forms and getting above error "EditPage does not have a context title set " when I try to preview a page. However saving a page is successful without any error. Gachangi (talk) 18:01, 3 February 2022 (UTC)

Are you using the right version of page forms for your version of mediawiki? Bawolff (talk) 05:18, 5 February 2022 (UTC)
Yes, version 5.3.4 is what is recommended for 1.37.1 Gachangi (talk) 14:25, 5 February 2022 (UTC)

Help Me Please

Hallo. Hab nen Nagelneuen Stick bestellt. Läuft beschissen und bleibt nur hängen. Gparted hat Mir jetzt das angezeigt -<i>Die Unterstützung für 64-bittige Dateisysteme wurde nicht aktiviert. Die längeren Felder, die diese Eigenschaft benötigt erlauben die Erstellung der Prüfsumme in voller Stärke. Geben Sie „-O 64bit” an, um dies zu korrigieren.          Was kann bzw muss Ich jetzt machen?  2A02:908:898:11C0:42C0:CD89:C297:2F0E (talk) 02:49, 4 February 2022 (UTC)

Hallo,
ich verstehe nicht ganz, was das mit MediaWiki zu tun hat... Können Sie das bitte präzisieren? MountainGoat92 (talk) 07:42, 4 February 2022 (UTC)

MediaWiki on WebSpace: SyntaxHighlight without Phyton?

Hi!

I'd like to use MediaWiki on a (Linux-) Webspace with limited binary access. So e.g. Phyton is not available.

Therefore I cannot use SyntaxHighlight_GeSHi which is important for me.

Are there any other supported extensions or is there perhaps a compiled pygmentize binary available? I searched the internet but I found no solution.

Category:Syntax highlighting extensions shows only outdated extensions and therefore it his not helpful.

Any clue how to proceed?


TIA GreatOmLivesOnADisc (talk) 12:16, 4 February 2022 (UTC)

Edit Summaries question

I have a stupid question, but I don't find awnser , it's possible to force the user to write in the summaries before sending his editing? Nicolas senechal (talk) 15:57, 4 February 2022 (UTC)

See "forceeditsummary" on Manual:$wgDefaultUserOptions Malyacko (talk) 19:13, 4 February 2022 (UTC)
Thank you, I want the same but it stops the user and not just a remind. Nicolas senechal (talk) 09:50, 9 February 2022 (UTC)

My wiki's throwing errors.

I run a wiki for a video game server i run, and it's been relatively issue free so far.


However, today, it's started generating this internal error when i do things like block IP adresses or mass delete:


[Yf3n1psryAlUM7CKnb-XtQAAABI] 2022-02-05 02:58:30: Fatal exception of type "DomainException"


It seems to work as it should once i reload the error page.


How do i fix this? 204.116.144.175 (talk) 03:05, 5 February 2022 (UTC)

Mediawiki: 1.36.1
PHP: 7.4.27 (cgi-fcgi)
MariaDB: 10.3.32-MariaDB-cll-lve
ICU: 63.1 204.116.144.175 (talk) 03:17, 5 February 2022 (UTC)
Please set $wgShowExceptionDetails=true; to give a detailed error message. Bawolff (talk) 05:17, 5 February 2022 (UTC)
Here's what it prints when i go to the Special:Block page:
[Yf4KAoHZj6Hg0n9zPvSL6AAAAIA] /wiki/index.php?title=Special:Block/192.126.132.114 DomainException: wgSFSIPListLocation does not appear to be a valid URL.
Backtrace:
from /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(196)
#0 /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(86): MediaWiki\StopForumSpam\DenyListUpdate::fetchDenyListIPsRemote()
#1 /home/gearstat/public_html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1707): MediaWiki\StopForumSpam\DenyListUpdate::MediaWiki\StopForumSpam\{closure}(boolean, integer, array, NULL, array)
#2 /home/gearstat/public_html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1539): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#3 /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(90): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#4 /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(44): MediaWiki\StopForumSpam\DenyListUpdate::loadDenyListIPs()
#5 /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/DenyListManager.php(67): MediaWiki\StopForumSpam\DenyListUpdate->doUpdate()
#6 /home/gearstat/public_html/wiki/extensions/StopForumSpam/includes/Hooks.php(213): MediaWiki\StopForumSpam\DenyListManager::isDenyListed(string)
#7 /home/gearstat/public_html/wiki/includes/HookContainer/HookContainer.php(338): MediaWiki\StopForumSpam\Hooks::onOtherBlockLogLink(array, string)
#8 /home/gearstat/public_html/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#9 /home/gearstat/public_html/wiki/includes/HookContainer/HookRunner.php(2740): MediaWiki\HookContainer\HookContainer->run(string, array)
#10 /home/gearstat/public_html/wiki/includes/specials/SpecialBlock.php(529): MediaWiki\HookContainer\HookRunner->onOtherBlockLogLink(array, string)
#11 /home/gearstat/public_html/wiki/includes/specialpage/FormSpecialPage.php(134): SpecialBlock->preText()
#12 /home/gearstat/public_html/wiki/includes/specialpage/FormSpecialPage.php(186): FormSpecialPage->getForm()
#13 /home/gearstat/public_html/wiki/includes/specialpage/SpecialPage.php(646): FormSpecialPage->execute(string)
#14 /home/gearstat/public_html/wiki/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run(string)
#15 /home/gearstat/public_html/wiki/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#16 /home/gearstat/public_html/wiki/includes/MediaWiki.php(913): MediaWiki->performRequest()
#17 /home/gearstat/public_html/wiki/includes/MediaWiki.php(546): MediaWiki->main()
#18 /home/gearstat/public_html/wiki/index.php(53): MediaWiki->run()
#19 /home/gearstat/public_html/wiki/index.php(46): wfIndexMain()
#20 {main} 204.116.144.175 (talk) 05:26, 5 February 2022 (UTC)
The other errors are a little different, but they all seem to do with wgSFSIPListLocation not being a valid URL.
Considiering that it seems to have something to do with StopForumSpam, i may as well show what i have set to wgSFSIPListLocation set to in my config:
$wgSFSIPListLocation = "{$wgScriptPath}/listed_ip_30_all.txt"; 204.116.144.175 (talk) 05:34, 5 February 2022 (UTC)
$wgScriptPath is a script relative path. Try "$IP/listed_ip_30_all.txt" instead. – Ammarpad (talk) 06:27, 7 February 2022 (UTC)

Nuevo proyecto (hablo en español)

Hola quiero saber directamente como crear un wiki como wikidex.Claramente porfavor.Ponganme un link o algo así.Tengo una cuenta en Wikimedia llamada TakemichiHanagaki por cierto.Como hago un wiki? 191.85.11.134 (talk) 04:14, 5 February 2022 (UTC)

See "Set up and run MediaWiki" on the frontpage at MediaWiki. Malyacko (talk) 05:37, 5 February 2022 (UTC)
Hello, Malyacko... can i send aou a video or can i get you an login ?
I can not upload pic in tiny editor
Regards Mmichael M.
micha-muck@web.de 2A02:8070:1C3:3440:48C8:39B2:A693:1106 (talk) 10:08, 5 February 2022 (UTC)
Wrong place, I guess? :) This conversation is about creating a wiki, not about uploading pictures in an editor Malyacko (talk) 18:56, 5 February 2022 (UTC)
Yo soy quien aloja wikidex.net. Lo correcto es seguir los manuales que hay enlazados en MediaWiki. Si no tienes los conocimientos técnicos para eso, lo mejor es ubicar tu wiki en un alojamiento existente: Hosting services Ciencia Al Poder (talk) 10:45, 5 February 2022 (UTC)

SSL Error when using the Visual-Editor

After setting up a new Mediawiki on XAMPP I get the following error while using the visual editor:

Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK

Product Version
MediaWiki 1.37.1
PHP 8.1.2 (apache2handler)
MariaDB 10.4.22-MariaDB
ICU 70.1
Lua 5.1.4
Pygments 2.10.0

Most important stuff in my LocalSettings:

$wgServer = "https://wiki.pseudocode.site";

$wgGroupPermissions['*']['edit'] = true;

$wgGroupPermissions['*']['read'] = true;

This is related to the following articles, and yes I've read every one of them:

Extension talk:VisualEditor/2021#h-(Curl_error:_60)_SSL_peer_certificate_or_SSH_remote_key_was_not_OK_(MediaWiki_1.-2021-01-29T10:45:00.000Z

Project:Support desk/Flow/2021/03#h-Installed_software-2021-03-07T21:26:00.000Z

https://stackoverflow.com/questions/64606013/get-an-ssl-error-when-accessing-visualeditor-for-mediawiki

https://phabricator.wikimedia.org/T261054 2A01:C23:8878:FE00:E90F:AE63:D777:7863 (talk) 12:55, 5 February 2022 (UTC)

Please see: Extension:VisualEditor#Troubleshooting
Specifically, check what url VE is trying to access (Web inspector should tell you), then check curl what happens and then make that not fail in your webserver config. ;) —TheDJ (Not WMF) (talkcontribs) 23:49, 5 February 2022 (UTC)

Which page-templates any skin must have?

I think about creating a new skin aimed for all-core websites and I don't know which page-templates any skin creator must create.

I would assume that these are needed:

  • Regular ("article") page
  • Category page
  • Search results page
  • Special page

Is that all? 79.176.130.99 (talk) 14:25, 5 February 2022 (UTC)

Would you want to create a media-wiki skin? ↠Tanbirzx () 18:48, 5 February 2022 (UTC)
Maybe. 79.176.130.99 (talk) 20:05, 5 February 2022 (UTC)
That's not really how skins work. Bawolff (talk) 21:21, 5 February 2022 (UTC)
I'd be glad for further elaboration on this particular saying...
Perhaps you meant that there is a general template file with sub files for each "content-type". 79.176.130.99 (talk) 10:03, 6 February 2022 (UTC)
See Manual:How to make a MediaWiki skinAmmarpad (talk) 17:07, 6 February 2022 (UTC)

Api

Is it possible to get the same list of pages with one API operation as generated by this page? Zamkorus (talk) 16:23, 5 February 2022 (UTC)

How can i change or remove the line that joins the "left-navigation" div and "right-navigation" div?"

In most wiki pages with the vector skin or legacy vector skin, you can see a blue responsive line that joins both navigation divs. No matter how much I try, I cannot change its color, only the position with the "::after" css pseudo option. Can somebody please help me locate that line in the code or the files of the vector skin so I can change its color or remove it entirely?

Here is a capture of the line I'm talking about:

https://mega.nz/file/G5xHFYII#bBa2oo7AGleueG4WNZ2PEJojM3ZHd1XVlM6gH0lTZM8 Thomas Magruder (talk) 18:08, 5 February 2022 (UTC)

That's not where that line is set. Its on ".mw-body" as border: 1px solid #a7d7f9; or border: 1px solid #a7d7f9; (vector or vector-2022 respectively) —TheDJ (Not WMF) (talkcontribs) 23:32, 5 February 2022 (UTC)

Completing map rendering when using tabs

I am using both the Extension:Maps and the Extension:Tabs extensions, with a Leaflet map on one of the later tabs. When I load the page, the map starts to render, but then the Tabs logic comes into play, and the first tab is shown, and the map hidden as the page reshuffes. When I choose the Map tab, it just shows a partial map, with only a few tiles done, presumably because it was interrupted. See https://fanbase.johnbray.org.uk/Category:Novacon. It works if the map is in the first tab, but that does not fit in my design. How can I persuade it to finish? I asked in the Maps help, but am also asking here, as I guess there are problems more generally with rendering with element hiding Vicarage (talk) 09:19, 6 February 2022 (UTC)

Wikimedia IP range ban for Verizon?

According to a Wikipedia Administrator, Wikimedia has instituted an IP range ban for Verizon FIOS affecting many users. After contacting Verizon, they are looking into it but do not know why this is happening. According to an old article, the number of affected users could be in the millions.

See: [1] and [2]

Article source: [3] 108.34.231.7 (talk) 11:29, 6 February 2022 (UTC)

So just to be clear, the political aspects of this are entirely wikipedia's concern - whether the block is valid politically is off topic here.
However it seems like there is some technical confusion what is going on.
You say you are blocked via https://en.wikipedia.org/wiki/Special:BlockList?wpTarget=45.133.192.0%2F23&blockType=&limit=50&wpFormIdentifier=blocklist but your IP is not in that range.
There's a couple posibilities:
  • you are mistaken about your ip address or your block. That seems likely given that 45.133.192.0/23 is blocked here as well, but you made the above post just fine. If you really were being blocked you wouldn't be able to write here.
  • there is some sort of bug where we are displaying the wrong block message.
  • you are sending an x-forward-for header with a blocked ip in it (unlikely)
  • you have a block related cookie (i'm not sure if this is a thing for ip blocks) - try using your browser in incognito mode to rule this out. Bawolff (talk) 12:06, 6 February 2022 (UTC)
Thanks for the reply!
*Incognito doesn't work either.
*An Admin at Wikipedia explained that it's due to an IP range ban at Wikimedia. Yet another suggested is because I might have used a VPN before and I need to wait 24 hours for "that block to clear".
*Perhaps it is a cookie issue still? I'll try installing different browsers and/or resetting the PC. 108.34.231.7 (talk) 12:37, 6 February 2022 (UTC)
So the screenshot you posted was for a range ip block. Generally the 24 hour autoblock doesn't apply to that block type.
There is both a global ban on 45.133.192.0/23 as well as a local enwikipedia ban (the global ones apply here as well, where the local one does not). The screenshot you posted suggests you were hitting the local one. Regardless you should not hit it if your ip is not in the range. Bawolff (talk) 12:44, 6 February 2022 (UTC)
Thanks again for your help! Will see if anything else works. 108.34.231.7 (talk) 12:48, 6 February 2022 (UTC)
Can you also paste the output of https://en.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=blockinfo
You can get your x-forwarded-for header at https://www.iplocation.net/http-browser-header (slightly misleading as that website adds some extra stuff to it) Bawolff (talk) 12:50, 6 February 2022 (UTC)

Wiki being attacked by spammers

Hello my wiki is being attacked by spam accounts I am wondering if there is a way to permanently wipe those accounts from the site so that their usernames are not longer appearing in the user log.


My wiki is the mediawiki version. 2600:1702:9A0:76E0:C9E7:5D33:469F:A882 (talk) 07:12, 7 February 2022 (UTC)

First thing: Extension:ConfirmEdit and Extension:QuestyCaptcha helped my wiki being protected from spam.
To figtht spam generally read Manual:Combating spam .
Especially to remove spammy content use Extension:Nuke Carchaias (talk) 09:05, 7 February 2022 (UTC)

class= mw-collapsible mw-collapsed not working in Mediawiki:Sitenotice

Mediawiki:Sitenotice contains some contend that appears on top every single page of a wiki. It is empty by default but can be used to inform users of sitemaintenance or other relevant information.

I recently tried class= mw-collapsible mw-collapsed within the Mediawiki:Sitenotice and it works on the pagecontent itself but not on all other pages that display the Sitenotice. Other classes like class=wikitable or inline css-styling works fine but not the collapsible stuff.

Any ideas are welcome. Carchaias (talk) 09:18, 7 February 2022 (UTC)

This is correct, mw-collapsible only works on content, not on notices. It's also not clear to my why anyone would add collapsible content to a sitenotice. —TheDJ (Not WMF) (talkcontribs) 13:09, 7 February 2022 (UTC)

VisualEditor and Drawio

Hello,

I would like to add a button in the VisualEditor that initiates drawio syntax. I have made it with the WikiEditor. But I could not make it with the VisualEditor. I am still new with js, so I hope I can have some guidance.

I am not sure if this is doable, if not please share other solutions/ways to have drawio in VE.

Your help is much appreciated. Thank you.

AIDInn - pmbd (talk) 13:35, 7 February 2022 (UTC)
There is currently an implementation for this in the BlueSpice MediaWiki distribution. So it is doable. Hopefully this gets merged soon into the original Extension:DrawIOEditor. Osnard (talk) 16:49, 7 February 2022 (UTC)
Hello @Osnard, I was wondering if there any news about this feature i.e. adding a functional button within VisualEditor for initiating Drawio? I have searched for answers at BlueSpice but I couldn't reach any. Your help is much appreciated. AIDInn - pmbd (talk) 11:37, 1 June 2022 (UTC)
Actually yes: My colleague has just recently started with the work on this.
May may want to monitor https://gerrit.wikimedia.org/r/q/project:mediawiki%252Fextensions%252FDrawioEditor+status:open Osnard (talk) 10:38, 2 June 2022 (UTC)
Really appreciate your reply. Thank you AIDInn - pmbd (talk) 14:04, 8 June 2022 (UTC)

change payment method for monthly contribution

Hello

I contribute monthly to Wikipedia. My credit card info has changed. How do I provide new payment information?

Thank you. Fabdana (talk) 21:19, 7 February 2022 (UTC)

@Fabdana: Please email donate@wikimedia.org for information about how to do this (but don't send the actual new CC details). Sam Wilson 01:05, 8 February 2022 (UTC)

Problem: i see only search page after upgrade

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello. i made upgrade to 1.37.1

now i can see only the search page.

if i try to go to any page, even "specials pages", i get always the search page

help! Brunodapei (talk) 22:32, 7 February 2022 (UTC)

Link to wiki?
There is not enough info here, but i would guess rewrite rule issue. Bawolff (talk) 01:30, 9 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"edit section" of a section included by a template edits template, not current page

Hi, I have a few different types of pages in my wiki and I would like to have strong cohesion by using a template for each of these types of pages so users know exactly what sections to include. However, if a template is structured like <nowiki>== Section Name == {{Section Content}}</nowiki>, then when you go to edit the page that has used the template, and click "edit section", it takes you to the template, not the page you're looking at. Is there ANY way to change this behavior? I still want to include the edit section links, so removing them and forcing people to edit the whole page is not really a solution. 2601:18D:87F:E790:688F:1BEC:C807:AFAA (talk) 01:37, 8 February 2022 (UTC)

Most common solution is to disable the automatic section edit links, and then manually add some that point to the right place. Bawolff (talk) 01:29, 9 February 2022 (UTC)

Control print behavior of Table of Contents

How does one toggle the Table of Contents to be printed or omitted from the standard browser print dialogue?

I have the odd situation where I'm printing some company Wiki documents, and the ToC is floated to the right using the tocright template, but the actual ToC doesn't appear in printouts. The text on the page is shifted as if wrapped around the ToC however there's just blank whitespace where the ToC should properly be. Tdsmart (talk) 04:51, 8 February 2022 (UTC)

This is controlled by print stylesheets.
You can override in MediaWiki:print.css Bawolff (talk) 01:27, 9 February 2022 (UTC)

pl add TELUGU Language

Telugu is 4th biggest language speaking in the world by more than 15 crore population and it was classical language of 2000 years (certified by Indian Government ) Bvprasadtewiki (talk) 06:03, 8 February 2022 (UTC)

where should that language be added? Ciencia Al Poder (talk) 09:37, 8 February 2022 (UTC)
In the mediawiki.org main page right side down in Other Languages ...column Bvprasadtewiki (talk) 11:02, 8 February 2022 (UTC)
I guess {{Languages }} needs to be modified to add the "te" language, and start translating pages into that language.
This should have been brought up at Project:Current issues, though Ciencia Al Poder (talk) 11:09, 8 February 2022 (UTC)
@Bvprasadtewiki Please read "Post a new question" in the sidebar Malyacko (talk) 10:34, 8 February 2022 (UTC)
@ciencia al poder yos you got my point "te" is to be added 117.195.160.126 (talk) 19:08, 8 February 2022 (UTC)
Please start translating Template:Main page to Telugu, and once it's done we'll add the language. Ciencia Al Poder (talk) 08:58, 9 February 2022 (UTC)

Is adding advertisements via JavaScript problematic?

MediaWiki 1.36.1 with Skin:Timeless to which I consider to add advertisements (Outbrain/Taboola/Adsense/Custom).


I do programming primarily with vanilla JavaScript.

I do some basic PHP theming for Drupal websites but I am not a PHP programmer and certainly lack knowledge in MediaWiki PHP coding standards.


I think it would be relatively simple for me to add advertisements with JavaScript, compared to backendly re-skinning skins which for me personally might be an overkill.

Is adding advertisements via JavaScript problematic? 79.176.130.99 (talk) 08:50, 8 February 2022 (UTC)

Don't see any reason why it would be problematic Bawolff (talk) 01:26, 9 February 2022 (UTC)

Module error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Just got this error:

Lua error in package.lua at line 80: module 'Module:Pagetype/config' not found.
Backtrace:
[C]: in function "error"
package.lua:80: in function "load"
package.lua:99: ?
(tail call): ?
mw.lua:487: in function "executeModule"
mw.lua:757: in function "loadData"
Module:Pagetype:13: in function "init"
package.lua:103: in function "require"
Module:About:26: ?
(tail call): ?
mw.lua:518: ?
[C]: ?

The module 'Module:Pagetype/config' does exist and contains no errors.

Any help please? <3

EDIT: Sorry, just fixed itself????? Thatgaypigeon (talk) 09:47, 8 February 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki Completely breaks after upgrade to Ubuntu 20.04

Hello.

I have a server that was, up until recently, running Ubuntu 16.04 server. After upgrading to 18.04 server, the server would not allow us to login. After doing some configurations to the LocalSettings.php file, this issue was resolved.

Now I am trying to upgrade to Ubuntu 20.04 server. After the upgrade, the website I am running on MediaWiki now just completely breaks. I cannot connect to the website even though the server itself is running just fine. I get an "ERR_CONNECTION_REFUSED" error. I took a snapshot so I can revert back to 18.04 if necessary. I would just like to get this to work.

I honestly just need to know where to even start. Was there some weird configuration of some system settings in 20.04 that weren't present in 18.04? Anything like that? As far as I know everything is configured as it should so... not sure why the connection isn't working.

During the actual upgrade, I selected the options to have it update the files to newer versions and to not delete the obsolete packages as, when I deleted them during my upgrade to 18.04, the wiki broke completely as well. I also redid this with keeping the old files and obsolete packages and this did not work either.

Any pointers? Remember I took a snapshot so anything you might want me to try that might be risky is fine. I can simply revert to the previous snapshot if it breaks. (Of course if it is anything harmful to the actual integrity of the machine or something a snapshot won't fix, don't suggest it :) )

Thanks for any help you can give. Mpb8877 (talk) 20:29, 8 February 2022 (UTC)

What does the webserver log say? Malyacko (talk) 21:37, 8 February 2022 (UTC)
Yeah....You're gonna have to tell me where that's located. This server has a ton on it. What's the filepath? Mpb8877 (talk) 00:05, 9 February 2022 (UTC)
Most common place for log files (if using apache) is /var/log/apache2/error.log, but it can vary a lot depending on your setup.
To me, it sounds like you might have a firewall running preventing connections, or your webserver is not running (you said earlier your "server" was running, but its unclear to me if you just mean that your server is up or if you verified that the web server process is actually currently running) Bawolff (talk) 01:25, 9 February 2022 (UTC)
So I checked basically all the error logs in that folder you mentioned and it does not have any new errors in it after the update. All of the files include old errors form months ago. If I try to connect there are no new errors from recently in any of the logs.
How would I check if the actual server process is running? I just meant the machine was running. Mpb8877 (talk) 16:08, 9 February 2022 (UTC)
It depends on your setup, but if you are using apache, a common way is:
systemctl status apache2
You can alternatively look at all running processes by doing
ps aux
You can also use netstat to see if anything is bound to port 80.
For ubuntu specific system administration questions you might get better responses at an ubuntu specific forum. Bawolff (talk) 16:17, 9 February 2022 (UTC)
Okay so it looks like the problem involved connecting Mediawiki to the correct PHP version and making sure I had mbstring installed. Now the wiki will load but it says all of our users login information is incorrect. It won't let us sign in. Any ideas? It is not a cookie issue. The error message is legit just "Incorrect password entered. Please try again." And we know they are correct. Mpb8877 (talk) 16:46, 9 February 2022 (UTC)
Maybe a problem with object caching (e.g. apc, memcache).
Try setting $wgSessionCacheType=CACHE_NONE;
(if that works it means something is broken with object caching which will make other things really slow so you should still try and find underlying cause even if that fixes login) Bawolff (talk) 05:33, 10 February 2022 (UTC)
Well here's my status.
When I updated from Ubuntu 16.04 to 18.04 when I tried to login in I got the error:
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."
This was fixed simply by adding the line $wgMainCaheType=CACHE_DB;
Then I updated to 20.04 and the error message changed to the one I mentioned: "Incorrect password entered. Please try again"
When I added the line $wgSessionCacheType=CACHE_NONE; it went back to the original long error. In fact, if you keep changing and picking different combinations of both the $wgSessionCacheType and the $wgMainCaheType it keeps jumping between the 2 errors.
Any idea what this means or where to go form here? Mpb8877 (talk) 15:31, 10 February 2022 (UTC)
Any ideas on this? 66.227.171.78 (talk) 21:40, 12 February 2022 (UTC)

Does the Wikipedia API request limit apply to each installation of a client, or all installations of a client

Hello! Do the request limits described here:

“To avoid impacting other API users, limit your clients to no more than 200 requests/sec to this API overall. Many entry points additionally specify and enforce more restrictive rate limits.”


From here:

https://www.mediawiki.org/wiki/Wikimedia_REST_API


Apply to all installations of a client running simultaneously, or only one installation of a client at a time?


For example, there is a wikipedia client that uses this REST API. It has one million users. Should the limit ensure that across all one million users, there are never more than 200 requests a second? Or should it ensure that each installation never reaches more than 200 requests a second?


Thank you. 68.175.1.183 (talk) 04:09, 9 February 2022 (UTC)

Its probably per ip address so i guess the latter. However, if you're concerned you can ask in #wikimedia-operations on irc libera.
Make sure you include contact info in the user agent so you can be contacted if there is an issue. Bawolff (talk) 07:30, 9 February 2022 (UTC)

How to create a "role" for a user where that role is the only one that can edit articles

Hello all, I am trying to create a website that is more unique than just any kind of wiki site (meaning that it doesn't directly involve just anyone with or without an account to edit), and involves history, using evidence, using the historical method/process, that sort of thing. Therefore just giving everyone the power to edit (even if they just signed up with an account) is extremely unfavorable. So, as the title says, I wanted to ask if anyone knew a way if you could create a process where if you want to edit articles, other than just contributing to the discussion, you have to read a short set of rules explaining the guidelines of how to edit on the site and the historical method/process that is used. To which then after they would read it they would get an "Editor role" which grants them the ability to create and edit articles. I know someone might say that I should just put in along with the process of Signing Up, but this is unfavorable as well because, as everyone might know, people tend to not read things when signing up to make an account for something, and so telling them that if they want to start editing, then they would have to go through a different process and read a short set of rules before starting.

So if someone could point me in the right direction of potentially what extension/plugin(s) I should use or how I could create such, or other, I would be greatful

Thanks Guillaume Taillefer (talk) 00:42, 10 February 2022 (UTC)

trying to bump my question since no one has seemed to notice it Guillaume Taillefer (talk) 23:18, 10 February 2022 (UTC)
Manual:User rights Malyacko (talk) 20:23, 11 February 2022 (UTC)
This is one thing that MediaWiki really got right. You can easily revoke editing rights from the user group and then create an "Editor" group to give them back to those who you select. Don't forget that if you trust your editors you can also give them "skipcaptcha". You set it up by adding a few lines to LocalSettings.php, then user Special:UserRights to grant the editor permissions to a user. Flounder ceo (talk) 00:41, 16 February 2022 (UTC)
First off I would like to apologise for not replying for a while, but I would also like to thank your guys' response and help. This has greatly helped me and brought me into the right direction of where I need to be. To clear it up, do you mean the captcha part as in you could add some sort of captcha where it leads you to having to read a set of rules to become editor if you aren't one already, and if you are already one you will be able to skip it? Otherwise, and even so, how would I be able to implement this system where if someone wants to become an editor, they must go through the process which brings them to the rules page for an editor, to which they will have to read and accept it (maybe setting a timer will make them do it), where the wiki will put their user under the Editor group, which allows for them to edit? Thanks Guillaume Taillefer (talk) 00:55, 16 February 2022 (UTC)
A lot of wikis use CAPTCHAs but if you don't then you don't need to worry about it. One example is if you have a CAPTCHA for edits that add external links.
Unless your wiki is highly in demand I would not make it too complicated. Just have a group with restricted permissions for noobs, and then upgrade them when you see they aren't spammers or vandals. Flounder ceo (talk) 02:05, 23 February 2022 (UTC)

1.36.1 with Timeless skin.

I have a "Contact" page which is programmatically an "article" page.

In my "Contact" page, I have created a telephone number with this pattern:

[tel:0505000000 0505-000-000]

The output includes a clickable link but it also includes a small arrow image typically appearing nearby links. This image is based on this CSS:

.mw-parser-output a.external, .link-https {
    /* background-image: url(/resources/src/mediawiki.skinning/images/external-rtl.svg?f3a42); */
    background-position: center left;
    background-repeat: no-repeat;
    padding-left: 13px;
}

I can remove the image with CSS per webpage-CSS-class but I seek a way to do so from the link MediaWiki-syntax directly without pasting CSS in Common.css.

Is what I desire currently possible? 79.183.15.1 (talk) 04:14, 10 February 2022 (UTC)

Something like
<span class="plainlinks">[tel:1234 phone]</span> Bawolff (talk) 05:30, 10 February 2022 (UTC)
I find it an elegant solution.
Thanks, 79.183.15.1 (talk) 15:52, 10 February 2022 (UTC)

How to edit Special:Search

Dear ∀,
Is it possible to edit Special:Search from the frontend as a privileged user (c.q. how), or will I need server access?
Thank you in advance!
Ciciban (talk) 09:29, 10 February 2022 (UTC)

You can edit some of the system messages.
Add &uselang=qqx to any query to see which to edit.
Not sure whether this is what you had in mind. Jonathan3 (talk) 18:28, 10 February 2022 (UTC)
@Jonathan3:
Thank you for your hint.
Special:Search?uselang=qqx shows me some titles of page modules like "search", "search-summary" and "helppage-top-gethelp". I guess, these modules are, what I would like to edit. Is this possible from the front end, with admin/buerocrat rights?
Yours, Ciciban (talk) 07:42, 12 February 2022 (UTC)
Yes, they are pages like MediaWiki:search-summary that can be edited. Jonathan3 (talk) 14:49, 12 February 2022 (UTC)
🙏🏻 Ciciban (talk) 13:48, 13 February 2022 (UTC)
@Jonathan3:
Making a page https://wiki3.railml.org/wiki/MediaWiki:Search-summary did not change anything in page https://wiki3.railml.org/index.php?search=Suchterm&title=Special%3ASearch&go=Seite :(
What am I doing wrong?
Thanks, Ciciban (talk) 10:45, 28 February 2022 (UTC)
Seems to be working all right now :-) Jonathan3 (talk) 11:42, 28 February 2022 (UTC)

Check Special:Version automatically

Dear ∀,
Is there a tool to check Special:Version for module versions with known security issues?
Thank you in advance!
Ciciban (talk) 09:40, 10 February 2022 (UTC)

No, but its been on my wishlist for years. Bawolff (talk) 02:14, 11 February 2022 (UTC)
@Bawolff:
Thank you for your answer.
Is there a place, where the vulnerable core/ext/libs/etc versions are listed so I could parse it against my Special:Version page with a homebrewed script?
Yours, Ciciban (talk) 07:54, 12 February 2022 (UTC)
Not really no
MW core (and the libraries included with core) should have CVEs assigned for any vulns, and there should be announcements on mediawiki-announce mailing list. This also goes for extensions bundled with mediawiki core.
non bundled extensions are up to the author of the extension in question. Bawolff (talk) 11:19, 12 February 2022 (UTC)

Estimating editing time

I guess it would be possible to estimate by looking looking at the revision table and assuming that each edit took, say, one minute, unless the next edit was sooner. And maybe if two edits are within, say, five minutes of each other you could assume that the second edit took that length of time.

Are there any extensions that do this type of thing already? Jonathan3 (talk) 14:18, 10 February 2022 (UTC)

Hello!


After upgrading Mediawiki to 1.35.2 (from 1.31.12) via apt on Debian 10 first we needed to change

'variables' => [],

to

'variables' => ["character_set_connection" => "utf8mb4"],

in

/var/lib/mediawiki/includes/libs/rdbms/database/Database.php:409

to be able to access pages with Umlauts in them.


But since then the search is nonfunctional for strings that have hits in page titles or site content:


   A database query error has occurred. This could indicate an error in the software.

   

   Backtrace:

   

   #0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)

   #1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

   #2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

   #3 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)

   #4 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(2007): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

   #5 /usr/share/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)

   #6 /usr/share/mediawiki/includes/libs/rdbms/database/DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)

   #7 /usr/share/mediawiki/includes/Revision/RevisionStore.php(2373): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)

   #8 /usr/share/mediawiki/includes/Revision/RevisionStore.php(2315): MediaWiki\Revision\RevisionStore->fetchRevisionRowFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, array)

   #9 /usr/share/mediawiki/includes/Revision/RevisionStore.php(1105): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, Title)

   #10 /usr/share/mediawiki/includes/search/RevisionSearchResultTrait.php(52): MediaWiki\Revision\RevisionStore->getRevisionByTitle(Title, boolean, integer)

   #11 /usr/share/mediawiki/includes/search/RevisionSearchResult.php(16): RevisionSearchResult->initFromTitle(Title)

   #12 /usr/share/mediawiki/includes/search/SqlSearchResult.php(34): RevisionSearchResult->__construct(Title)

   #13 /usr/share/mediawiki/includes/search/SqlSearchResultSet.php(59): SqlSearchResult->__construct(Title, array)

   #14 /usr/share/mediawiki/includes/search/SearchResultSet.php(73): SqlSearchResultSet->extractResults()

   #15 /usr/share/mediawiki/includes/search/SearchResultSet.php(184): SearchResultSet->count()

   #16 /usr/share/mediawiki/includes/search/SearchEngine.php(201): SearchResultSet->shrink(integer)

   #17 /usr/share/mediawiki/includes/search/SearchEngine.php(96): SearchEngine->maybePaginate(Closure)

   #18 /usr/share/mediawiki/includes/specials/SpecialSearch.php(388): SearchEngine->searchText(string)

   #19 /usr/share/mediawiki/includes/specials/SpecialSearch.php(179): SpecialSearch->showResults(string)

   #20 /usr/share/mediawiki/includes/specialpage/SpecialPage.php(600): SpecialSearch->execute(NULL)

   #21 /usr/share/mediawiki/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)

   #22 /usr/share/mediawiki/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)

   #23 /usr/share/mediawiki/includes/MediaWiki.php(940): MediaWiki->performRequest()

   #24 /usr/share/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()

   #25 /usr/share/mediawiki/index.php(53): MediaWiki->run()

   #26 /usr/share/mediawiki/index.php(46): wfIndexMain()

   #27 {main}


Searching for something that does not exist works.


Where could we search for the problem? What could we do?


Thank you!


Sincerely, 2A02:2454:8D62:E400:0:0:0:10 (talk) 14:41, 10 February 2022 (UTC)

This sounds like you updated your database as well, or the database was originally not correctly configured or something... ??? You shouldn't have to override the raw settings of the database connection.
Is this an old mediawiki install ? was it upgraded multiple times in the past as well ? Was the mysql install perhaps updated ? —TheDJ (Not WMF) (talkcontribs) 21:21, 10 February 2022 (UTC)
Hello!
Yes, it is an old installment, running for about a decade now. Debian, database and MediaWiki are updated once a year or so.
What could we do without setting everything up anew? 2A02:2454:8D62:E400:0:0:0:10 (talk) 15:48, 12 February 2022 (UTC)

Short URL and visual editor

Hi,

i just install fresh mediawiki 1.36.3 (few hours ago i install 1.37.1) and i do Manual:Short URL.


I add to .htaccess:

RewriteEngine On

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]


and LocalSettings.php

$wgScriptPath       = "";

$wgScriptExtension  = ".php";

$wgArticlePath = "/wiki/$1";

$wgUsePathInfo = true;


After that "Short URL" works well but Extension:VisualEditor/pl doesnt work. I get an error every time i try to edit any page

Error contacting the Parsoid/RESTBase server (HTTP 400)


It seems this line crashing Extension:VisualEditor/pl


RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]


My index.php is in /public_html/index.php.


Can someone know how to fix it? Bimmerwiki (talk) 15:11, 10 February 2022 (UTC)

VisualEditor makes requests to /rest.php. Check your logs and you should be able to find the url request. Either the url is wrong (broken wgScript ?) or the webserver for that url is not giving a correct response for some reason. —TheDJ (Not WMF) (talkcontribs) 21:17, 10 February 2022 (UTC)

SVG logo with correct font

Is it possible to use an SVG logo with text and have it display with the correct font?

I can work out how to download and use a Google Font (or use it directly from Google) for use on content pages. Just not on the logo.

Thanks. Jonathan3 (talk) 18:25, 10 February 2022 (UTC)

No not really. Font rendering is dependent on the font being installed on the client, so unless you ship the font inside the svg (which im not 100% sure you even can...), then no.
The best way is to flatten the rendered text before exporting the SVG. I believe there is a way to do that while also preserving the raw text, so that it still works for accessibility... But i'm not an SVG expert. —TheDJ (Not WMF) (talkcontribs) 21:12, 10 February 2022 (UTC)

"Edit" doesnt work

I have my first MediaWiki installed on a server, all is fine but while pressing EDIT button, only blue bar of progress comes and stays forever in 1/3 of lenght.


EDIT SOURCE CODE works fine, but default EDIT not.


Also when trying to switch tab in PREFERENCES special page, there is no reaction, only first tab is active :(


Any access issue? Any hint what to check? 195.74.51.67 (talk) 20:00, 10 February 2022 (UTC)

Have you checked the browser inspector console for errors ? —TheDJ (Not WMF) (talkcontribs) 21:08, 10 February 2022 (UTC)
Thanks! That was good hint! Hosting was blocking something... But, after unlocking I see progress in loading but it ends with error:
Error contacting the Parsoid/RESTBase server: (curl error: no status set)
195.74.51.67 (talk) 19:37, 11 February 2022 (UTC)

Wikibase Intallation Port Problem

I used XAMPP to install mediawiki (localhost:80). Before docker configuration, I could visit my mediawiki page with no issues. I then followed the instruction:Wikibase/Docker using Docker to install Wikibase. The wikibase hostname is localhost and port is 80(in the yml:     ports: - "80:80"). However, after installation, while the two processes and containers run withno issues, I got the error when I tried to reopen localhost: "Port 80 in use by "Unable to open process" with PID 18036!"

I tried to change the config fire for Apache to make it listen to 8080. I can then open localhost but cannot open mediawiki.


How to solve this issue?


Thanks! 130.191.26.99 (talk) 03:03, 11 February 2022 (UTC)

Only one thing is allowed to listen to port 80 at a time. You can't have both XAMPP and docker both listening on 80.
> I tried to change the config fire for Apache to make it listen to 8080. I can then open localhost but cannot open mediawiki.
Its unclear if you mean your docker or your xampp install, if you restarted apache, and if you were opening localhost or localhost:8080, or if "mediawiki" means your xampp mediawiki or your docker mediawiki. Bawolff (talk) 11:30, 12 February 2022 (UTC)
Thanks. Let me make myself clear. I installed mediawiki on XAMPP and can be accessed using "localhost/mywiki". The port for APACHE is 80. Then I installed the wikibase using Docker. In the yaml file for wikibase, currently I used
host: localhost
port:80:80
following the instruction.
But when I run the docker, the wikibase was not shown in the mediawiki/special pages. Should I change the port in yaml to 81:81? I didn't install mediawiki on docker. Do you mean I need to install mediawiki on docker as well? ChineseWikiClubBot (talk) 17:47, 16 February 2022 (UTC)

Bug reporting re rest v1

I've noticed that
https://en.wikivoyage.org/api/rest_v1/page/summary/Sun_River
gives the somewhat disappointing extract of
"Not to be confused with Sunriver (Oregon)."
because it picks up the disambiguation template at the top of the page. Most summary requests seem to be robust to this. (I have an hunch of why this is, namely that an image is positioned between the dab template and the lead section.)
I'm not well familiar with the bug reporting process nor the general culture around here... is this something I would report on phabricator?
Thanks Brycehughes (talk) 03:46, 11 February 2022 (UTC)
This is because lists are allowed in the summary. https://en.wikivoyage.org/wiki/Template:Confused unlike for instance https://en.wikivoyage.org/wiki/Template:Other_uses is not wrapped in a span with the class "noexcerpt" to explicitly exclude it from the excerpt..
Also en.wikivoyage seems to use list formatting for indentation, which really should be replaced with CSS styling (like en.wp) and use role=note (helps google create the right abstract blob too). —TheDJ (Not WMF) (talkcontribs) 09:43, 15 February 2022 (UTC)
Thanks. I'll bring this up over at en.wikivoyage then. Brycehughes (talk) 13:25, 15 February 2022 (UTC)
Hi @TheDJ. Re the second half of your response re CSS styling/role=note, is that documented anywhere? Or do you have an example perhaps.
Working through this at en.wikivoyage we've hit a bit a snag where we cannot wrap the ":" in the noexcerpt span, but leaving the ":" out of the span causes the API extract to return just "\n". So I think we have to implement both of your suggestions, we're just somewhat unsure how to go about implementing the second.
Thanks again Brycehughes (talk) 22:34, 15 February 2022 (UTC)
Hmm, weird. Not entirely sure what is going wrong there, if it works for other_uses, you'd expect it to work here... There must be something about that following block that makes that lead text ineligible somehow compared to other pages. Did notice there was an error in the HTML of confused, but correcting that didn't help.
Anyway, you'll want to look at the HTML generated by Module:Hatnote and for the styling look at this stylesheetTheDJ (Not WMF) (talkcontribs) 12:46, 17 February 2022 (UTC)
I made some changes to the html of confused and other uses templates to already be slightly better, though I didn't deal with the indentation, but you can easily adapt that from the above example I think.
However it seems that page banner template is what is causing the extracts parser to get confused. Swapping the order of the confused template makes the extract work and I have no idea why that matters.
The page banner template outputs a bunch of invisible content. Maybe it thinks these (empty) elements are part of the 'actual' leadcontent and that trips it up. I'd advise to definitely add 'noexcerpt' to the hidden span with country data, maybe it will help. —TheDJ (Not WMF) (talkcontribs) 13:08, 17 February 2022 (UTC)
Many thanks for your help with this. Will continue the discussion at wv Brycehughes (talk) 18:05, 22 February 2022 (UTC)
How to report a bug Malyacko (talk) 20:22, 11 February 2022 (UTC)

No me gusta la nueva interfaz.

La nueva interfaz esta muy incomoda de utilizar Tornitiu (talk) 05:59, 11 February 2022 (UTC)

Puedes dejar tus impresiones en Talk:Reading/Web/Desktop_Improvements Ciencia Al Poder (talk) 10:30, 11 February 2022 (UTC)

MediaWiki Auth_remoteuser not able to config it correctly

Hello,


since 5 days i´m trying to configure Auth_remoteuser in my runing MediaWiki. I was able to config the LDAPStack and PluggableAuth correctly, but now i am hanging to get Extension Auth_remoteuser working. I have created a vhostfile and put it in to /etc/apache2/sites-available/intranet.conf and /etc/apache2/sites-enabled/intranet.conf

I have created a AD Serviceuser "d-http-krb@DE444400.VW-GROUP.COM" and created and copied krb5.keytab file, assigned spn.

Set my LocalSettings.php

But i´m not able to login to by SSO. Is anyone there that could help me?

kind regards

Daniel DanielBoi79 (talk) 09:10, 11 February 2022 (UTC)

<VirtualHost *:80>
  ServerName gehlert
  DocumentRoot "/var/www/html/intranet"
  # Sollte das Modul nicht geladen sein wird dieses geladen
  <IfModule !mod_auth_kerb.c>
    LoadModule auth_kerb_module /usr/lib/apache2/modules/mod_auth_kerb.so
  </IfModule>
  # Wenn AD User vielen Gruppen zugehörigen sind kann die FieldSize schnell ausgereizt werden und man rennt in einen Fehler
  # Deshalb wird diese hier vergrößert
  LimitRequestFieldSize 32768
  <Location "/intranet">
AuthType Kerberos
AuthName "Intranet"
KrbAuthRealms DE444400.VW-GROUP.COM
Krb5Keytab /etc/krb5.keytab
KrbServiceName Any
KrbLocalUserMapping On
AuthLDAPBindDN "d-http-krb@DE444400.VW-GROUP.COM"
AuthLDAPBindPassword "SecurePW"
AuthLDAPURL "ldap://DE444400S00001.DE444400.VW-GROUP.COM/OU=USERS,OU=AHGEHLERT,DC=DE444400,DC=VW-GROUP,DC=COM?sAMAccountName,mail,displayName?sub?(objectClass=*)"
require ldap-attribute attribute="value"
  </Location>
  #Für Debugging ist dieses LogLevel von Vorteil, im Produktiveinsatz kann dies auskommentiert werden.
  LogLevel trace8
ErrorLog ${APACHE_LOG_DIR}/intranet.error.log
CustomLog ${APACHE_LOG_DIR}/intranet.access.log combined
</VirtualHost> DanielBoi79 (talk) 09:12, 11 February 2022 (UTC)
LocalSettings.php
wfLoadExtension( 'Auth_remoteuser' );
$wgAuthRemoteuserUserName = null;
$wgAuthRemoteuserUserNameReplaceFilter = [
    '@DE444400.VW-GROUP.COM$' => ''
]; DanielBoi79 (talk) 09:14, 11 February 2022 (UTC)
Debug Log Apache 2
[Fri Feb 11 09:15:12.510941 2022] [http:trace4] [pid 172826] http_request.c(436): [client 10.59.132.235:63663] Headers received from client:
[Fri Feb 11 09:15:12.511626 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Host: gehlert
[Fri Feb 11 09:15:12.511647 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
[Fri Feb 11 09:15:12.511654 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[Fri Feb 11 09:15:12.511660 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Accept-Language: de,en-US;q=0.7,en;q=0.3
[Fri Feb 11 09:15:12.511666 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Accept-Encoding: gzip, deflate
[Fri Feb 11 09:15:12.511672 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   DNT: 1
[Fri Feb 11 09:15:12.511677 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Connection: keep-alive
[Fri Feb 11 09:15:12.511683 2022] [http:trace4] [pid 172826] http_request.c(439): [client 10.59.132.235:63663]   Upgrade-Insecure-Requests: 1
[Fri Feb 11 09:15:12.511854 2022] [authz_core:debug] [pid 172826] mod_authz_core.c(817): [client 10.59.132.235:63663] AH01626: authorization result of Require ldap-attribute attribute="value": denied (no authenticated user yet)
[Fri Feb 11 09:15:12.511867 2022] [authz_core:debug] [pid 172826] mod_authz_core.c(817): [client 10.59.132.235:63663] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Fri Feb 11 09:15:12.511893 2022] [auth_kerb:debug] [pid 172826] src/mod_auth_kerb.c(1963): [client 10.59.132.235:63663] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Fri Feb 11 09:15:12.511903 2022] [core:trace3] [pid 172826] request.c(117): [client 10.59.132.235:63663] auth phase 'check user' gave status 401: /intranet/index.php
[Fri Feb 11 09:15:12.511965 2022] [http:trace3] [pid 172826] http_filters.c(1125): [client 10.59.132.235:63663] Response sent with status 401, headers:
[Fri Feb 11 09:15:12.511972 2022] [http:trace5] [pid 172826] http_filters.c(1134): [client 10.59.132.235:63663]   Date: Fri, 11 Feb 2022 09:15:12 GMT
[Fri Feb 11 09:15:12.511978 2022] [http:trace5] [pid 172826] http_filters.c(1137): [client 10.59.132.235:63663]   Server: Apache/2.4.41 (Ubuntu)
[Fri Feb 11 09:15:12.511985 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   WWW-Authenticate: Negotiate
[Fri Feb 11 09:15:12.511991 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   WWW-Authenticate: Basic realm=\\"Intranet\\"
[Fri Feb 11 09:15:12.511997 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   Content-Length: 454
[Fri Feb 11 09:15:12.512003 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   Keep-Alive: timeout=5, max=100
[Fri Feb 11 09:15:12.512008 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   Connection: Keep-Alive
[Fri Feb 11 09:15:12.512014 2022] [http:trace4] [pid 172826] http_filters.c(955): [client 10.59.132.235:63663]   Content-Type: text/html; charset=iso-8859-1
[Fri Feb 11 09:15:43.041949 2022] [http:trace4] [pid 172828] http_request.c(436): [client 10.59.132.235:63666] Headers received from client:
[Fri Feb 11 09:15:43.041980 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Host: gehlert
[Fri Feb 11 09:15:43.041983 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
[Fri Feb 11 09:15:43.041985 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[Fri Feb 11 09:15:43.041996 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept-Language: de,en-US;q=0.7,en;q=0.3
[Fri Feb 11 09:15:43.041999 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept-Encoding: gzip, deflate
[Fri Feb 11 09:15:43.042001 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   DNT: 1
[Fri Feb 11 09:15:43.042003 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Connection: keep-alive
[Fri Feb 11 09:15:43.042005 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Upgrade-Insecure-Requests: 1
[Fri Feb 11 09:15:43.042007 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Authorization: Basic dncwMDExNzpMZWluYWRJb2IxOTc5
[Fri Feb 11 09:15:43.042073 2022] [authz_core:debug] [pid 172828] mod_authz_core.c(817): [client 10.59.132.235:63666] AH01626: authorization result of Require ldap-attribute attribute="value": denied (no authenticated user yet)
[Fri Feb 11 09:15:43.042078 2022] [authz_core:debug] [pid 172828] mod_authz_core.c(817): [client 10.59.132.235:63666] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet)
[Fri Feb 11 09:15:43.042090 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(1963): [client 10.59.132.235:63666] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Fri Feb 11 09:15:43.042912 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(1046): [client 10.59.132.235:63666] Using Any/localhost@ as server principal for password verification
[Fri Feb 11 09:15:43.042925 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(752): [client 10.59.132.235:63666] Trying to get TGT for user vw00117@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.054587 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(662): [client 10.59.132.235:63666] Trying to verify authenticity of KDC using principal HTTP/gehlert@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.057617 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(705): [client 10.59.132.235:63666] krb5_rd_req() failed when verifying KDC
[Fri Feb 11 09:15:43.057637 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(662): [client 10.59.132.235:63666] Trying to verify authenticity of KDC using principal HTTP/gehlert@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.060697 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(705): [client 10.59.132.235:63666] krb5_rd_req() failed when verifying KDC
[Fri Feb 11 09:15:43.060715 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(662): [client 10.59.132.235:63666] Trying to verify authenticity of KDC using principal HTTP/gehlert@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.063710 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(705): [client 10.59.132.235:63666] krb5_rd_req() failed when verifying KDC
[Fri Feb 11 09:15:43.063728 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(662): [client 10.59.132.235:63666] Trying to verify authenticity of KDC using principal HTTP/gehlert@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.066613 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(705): [client 10.59.132.235:63666] krb5_rd_req() failed when verifying KDC
[Fri Feb 11 09:15:43.066659 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(662): [client 10.59.132.235:63666] Trying to verify authenticity of KDC using principal HTTP/gehlert@DE444400.VW-GROUP.COM
[Fri Feb 11 09:15:43.069522 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(705): [client 10.59.132.235:63666] krb5_rd_req() failed when verifying KDC
[Fri Feb 11 09:15:43.069538 2022] [auth_kerb:error] [pid 172828] [client 10.59.132.235:63666] failed to verify krb5 credentials: Key version is not available
[Fri Feb 11 09:15:43.069545 2022] [auth_kerb:debug] [pid 172828] src/mod_auth_kerb.c(1128): [client 10.59.132.235:63666] kerb_authenticate_user_krb5pwd ret=401 user=(NULL) authtype=(NULL)
[Fri Feb 11 09:15:43.069558 2022] [core:trace3] [pid 172828] request.c(117): [client 10.59.132.235:63666] auth phase 'check user' gave status 401: /intranet/index.php
[Fri Feb 11 09:15:43.069601 2022] [http:trace3] [pid 172828] http_filters.c(1125): [client 10.59.132.235:63666] Response sent with status 401, headers:
[Fri Feb 11 09:15:43.069604 2022] [http:trace5] [pid 172828] http_filters.c(1134): [client 10.59.132.235:63666]   Date: Fri, 11 Feb 2022 09:15:43 GMT
[Fri Feb 11 09:15:43.069606 2022] [http:trace5] [pid 172828] http_filters.c(1137): [client 10.59.132.235:63666]   Server: Apache/2.4.41 (Ubuntu)
[Fri Feb 11 09:15:43.069608 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   WWW-Authenticate: Basic realm=\\"Intranet\\"
[Fri Feb 11 09:15:43.069611 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Content-Length: 454
[Fri Feb 11 09:15:43.069613 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Keep-Alive: timeout=5, max=100
[Fri Feb 11 09:15:43.069615 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Connection: Keep-Alive
[Fri Feb 11 09:15:43.069617 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Content-Type: text/html; charset=iso-8859-1
[Fri Feb 11 09:15:45.130915 2022] [http:trace4] [pid 172828] http_request.c(436): [client 10.59.132.235:63666] Headers received from client:, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130955 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Host: gehlert, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130963 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130971 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept: image/webp,*/*, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130977 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept-Language: de,en-US;q=0.7,en;q=0.3, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130983 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Accept-Encoding: gzip, deflate, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130990 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.130997 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   DNT: 1, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131003 2022] [http:trace4] [pid 172828] http_request.c(439): [client 10.59.132.235:63666]   Connection: keep-alive, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131057 2022] [authz_core:debug] [pid 172828] mod_authz_core.c(817): [client 10.59.132.235:63666] AH01626: authorization result of Require all granted: granted, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131067 2022] [authz_core:debug] [pid 172828] mod_authz_core.c(817): [client 10.59.132.235:63666] AH01626: authorization result of <RequireAny>: granted, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131097 2022] [core:trace3] [pid 172828] request.c(310): [client 10.59.132.235:63666] request authorized without authentication by access_checker_ex hook: /favicon.ico, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131255 2022] [filter:trace4] [pid 172828] mod_filter.c(168): [client 10.59.132.235:63666] Content-Type 'image/vnd.microsoft.icon' ..., referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131266 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'application/xml', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131273 2022] [filter:trace2] [pid 172828] mod_filter.c(185): [client 10.59.132.235:63666] Content-Type condition for 'deflate' did not match, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131280 2022] [filter:trace4] [pid 172828] mod_filter.c(168): [client 10.59.132.235:63666] Content-Type 'image/vnd.microsoft.icon' ..., referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131286 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'application/rss+xml', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131291 2022] [filter:trace2] [pid 172828] mod_filter.c(185): [client 10.59.132.235:63666] Content-Type condition for 'deflate' did not match, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131298 2022] [filter:trace4] [pid 172828] mod_filter.c(168): [client 10.59.132.235:63666] Content-Type 'image/vnd.microsoft.icon' ..., referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131304 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'application/x-javascript', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131310 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'application/javascript', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131316 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'application/ecmascript', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131322 2022] [filter:trace2] [pid 172828] mod_filter.c(185): [client 10.59.132.235:63666] Content-Type condition for 'deflate' did not match, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131328 2022] [filter:trace4] [pid 172828] mod_filter.c(168): [client 10.59.132.235:63666] Content-Type 'image/vnd.microsoft.icon' ..., referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131334 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'text/html', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131340 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'text/plain', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131347 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'text/xml', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131361 2022] [filter:trace4] [pid 172828] mod_filter.c(180): [client 10.59.132.235:63666] ... did not match 'text/css', referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131367 2022] [filter:trace2] [pid 172828] mod_filter.c(185): [client 10.59.132.235:63666] Content-Type condition for 'deflate' did not match, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131386 2022] [http:trace3] [pid 172828] http_filters.c(1125): [client 10.59.132.235:63666] Response sent with status 200, headers:, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131394 2022] [http:trace5] [pid 172828] http_filters.c(1134): [client 10.59.132.235:63666]   Date: Fri, 11 Feb 2022 09:15:45 GMT, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131400 2022] [http:trace5] [pid 172828] http_filters.c(1137): [client 10.59.132.235:63666]   Server: Apache/2.4.41 (Ubuntu), referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131408 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Last-Modified: Fri, 28 Jan 2022 15:07:25 GMT, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131415 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   ETag: \\"3c2e-5d6a5cadd4540\\", referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131422 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Accept-Ranges: bytes, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131428 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Content-Length: 15406, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131435 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Keep-Alive: timeout=5, max=99, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131440 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Connection: Keep-Alive, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery=
[Fri Feb 11 09:15:45.131447 2022] [http:trace4] [pid 172828] http_filters.c(955): [client 10.59.132.235:63666]   Content-Type: image/vnd.microsoft.icon, referer: http://gehlert/intranet/index.php?title=Spezial:Anmelden&returnto=Hauptseite&returntoquery= DanielBoi79 (talk) 09:16, 11 February 2022 (UTC)

How to switch of Welcome Message in WikiEditor

I did an Update to V 1.35 last night. Now all users exept Admins get a popup Welcome to Message (with the option to use VisualEditor) when editing a page by the classic WikiEditor. Admins get this message one time and it disappears, but other users get it each time they do an edit. How to switch this of?

SOLVED: I added

$wgGroupPermissions['*']['writeapi'] = true; 

to my LocalSettings.php. Now this is gone. Carchaias (talk) 11:14, 11 February 2022 (UTC)

Error when starting visual editor by some users

Some of my users can not work with VisualEditor they get an Error

Error contacting the parsoid/RESTBase server (HTTP 403)

Even on the same computer, same browser - just change the User account an you are out of VisualEditor.

SOLVED: I added

$wgGroupPermissions['*']['writeapi'] = true; 

to my LocalSettings.php. Now this is gone. Carchaias (talk) 11:24, 11 February 2022 (UTC)

That's the default, so it shouldn't have any effect unless you were setting it to something other than true. Bawolff (talk) 11:23, 12 February 2022 (UTC)
In fact it was some lines away ;-). Thank you. Carchaias (talk) 15:34, 8 March 2022 (UTC)

Visual Editor not displaying category correctly in the Options Menu

When using the visual editor and when I add a category to a page if there was a previous category on that page it is displayed in red with the below text

Index.php?title=Category:Knowledge Management Options Menu Category Problem Sample Any suggestions on why this might be occuring? The same thing is happening with inserting media to a page too.

Thanks, for your help. ThomHarriman (talk) 16:33, 11 February 2022 (UTC)

That is weird. I haven't seen this before. Some questions:
Hi Mark.
  • Does the category already exist? Yes the category already exists.
  • Does it do this for all categories or just this one? All categories.
  • If you try to save it, is the category added correctly? Yes. If I delete it and add it again, then save it and then reopen the article again in the visual editor it shows up the same way again. It adds the correct wiki text to the bottom of the article as you would expect.
The really odd thing it does it with images too that are added to an article with the visual editor.
A real mystery. ThomHarriman (talk) 20:44, 15 February 2022 (UTC)
Could you post the MediaWiki version you're using? Are you using the NodeJS parsoid or the php parsoid? MarkAHershberger(talk) 23:28, 15 February 2022 (UTC)
We are at MediaWiki 1.35.1. Help me on the other question how do I know? The version of parsoid 0.12.1 ThomHarriman (talk) 18:16, 16 February 2022 (UTC)

Override CSS for specific pages?

Is there a way to override the CSS for particular pages of a wiki, such as the main page? (e.g. something like using one skin for the main page and using a different skin for all other pages) 67.173.191.196 (talk) 19:59, 11 February 2022 (UTC)

Extension:TemplateStyles Malyacko (talk) 20:21, 11 February 2022 (UTC)
The body tag also has per page class names you can use. Bawolff (talk) 05:03, 12 February 2022 (UTC)
Do template styles override CSS only for particular elements (i.e. body text) within a page, or can it also allow overriding of the entire page's CSS (e.g. hiding the logo at the top left, or hiding the sidebar, etc.)? 67.173.191.196 (talk) 05:51, 13 February 2022 (UTC)
Templatestyles only allows styling the content area. Use Mediawiki:common.css of you need to override the whole page. Bawolff (talk) 06:58, 13 February 2022 (UTC)
Can common.css be used to override the CSS of only particular pages (instead of applying globally to all pages)? 67.173.191.196 (talk) 23:18, 13 February 2022 (UTC)
Yes by using selectors like body.page-Foo Bawolff (talk) 23:57, 13 February 2022 (UTC)

upload autobio

how do I upload an autobiography to this page MBlacksher (talk) 03:22, 12 February 2022 (UTC)

@MBlacksher You don't, as it is out of scope for this website (mediawiki.org). Please also read "Post a new question" in the sidebar - thanks. Malyacko (talk) 13:12, 12 February 2022 (UTC)
If you are loking for english wikipedia, try w:WP:teahouse and w:WP:AFC, although generally they dont want autobiographies either. Bawolff (talk) 21:30, 12 February 2022 (UTC)

wfErrorLog replacement?

wfErrorLog has been disabled. What is the replacement? 2003:C2:3F04:7000:D82E:FEE9:F2EA:20B9 (talk) 17:13, 12 February 2022 (UTC)

Manual:How to debug Malyacko (talk) 19:50, 12 February 2022 (UTC)
Another case of a simple solution made complicated ... for what?
Is there a function I can use to simply write one line of text to a simple text file, without having to configure anything? 2003:C2:3F04:7000:6986:B5BC:42BE:4AA5 (talk) 23:02, 18 February 2022 (UTC)
For having better maintainable code. Nothing is "simple". phab:T74572 Malyacko (talk) 15:21, 19 February 2022 (UTC)

Adding a script to head without an extension

In MediaWiki 1.37.1, what is the best way to add a script to head without installing any extensions?

Perhaps putting the following code (credit) in the end of LocalSettings.php?

$wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
  $out->addInlineScript( '<script>...</script>' );
};

Thanks, 79.183.15.1 (talk) 18:38, 12 February 2022 (UTC)

Any opinion? 79.176.94.174 (talk) 00:53, 17 February 2022 (UTC)
what is the best way to add a script to head without installing any extensions?
My first thought would be to instead use Common.js; is there a reason that you can't include whatever you need to there? What are you trying to add in the script? Sam Wilson 02:51, 18 February 2022 (UTC)
(Oh, and by the way, if you log in we can ping you and you can be notified of replies.) Sam Wilson 02:51, 18 February 2022 (UTC)
@Samwilson
Thanks.
I can do that, sure, I was just curious about a backend way without an extension.
Thanks, 79.176.94.174 (talk) 18:53, 18 February 2022 (UTC)
Oh right, sure.
I don't think there is a non-hacky way to do it. :-) Sam Wilson 00:14, 19 February 2022 (UTC)

「Pages transcluded on」 doesn't Show Page list

「Pages transcluded on」 doesn't Show Page list

Would it be possible to Show Page list?


MediaWiki1.37


Tempalte page?

https://48pedia.org/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:%E3%83%AB%E3%83%93&action=info&uselang=en


link

https://48pedia.org/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%AA%E3%83%B3%E3%82%AF%E5%85%83/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:%E3%83%AB%E3%83%93&hidelinks=1&hideredirs=1&uselang=en

--translate.google 182.170.159.40 (talk) 14:43, 13 February 2022 (UTC)

I noted that the interwiki link on help button of Visual Editor which links to

URL of wiki/$wgArticlePath/Mw:Special:MyLanguage/Help:VisualEditor/User_guide

does not work.

It goes to an error page which says,

Bad title: The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters that cannot be used in titles.

I found this link works properly on Wikipedia, let's say,

https://en.wikipedia.com/wiki/Mw:Special:MyLanguage/Help:VisualEditor/User_guide

Is there any further settings to do to figure this issue out?

Thanks. Teetrition (talk) 16:40, 13 February 2022 (UTC)

What do you set $wgArticlePath in your LocalSettings.php? – Ammarpad (talk) 07:37, 14 February 2022 (UTC)
Thanks for replying.
It's /$1. I suspected that it may be something to do with $wgArticlePath and I've tried setting it to the default value (/wiki/$1) but nothing changed.
I also noticed that some sites which set it to /$1 work properly like
https://wiki.mozilla.org/Mw:Special:MyLanguage/Help:VisualEditor/User_guide
and some do NOT even they set $wgArticlePath to the default value, for example,
https://tmbw.net/wiki/Mw:Special:MyLanguage/Help:VisualEditor/User_guide Teetrition (talk) 09:49, 14 February 2022 (UTC)
Do you use $wgArticlePath for defining other values? Could be a double quote vs single quote thing. Bawolff (talk) 01:42, 15 February 2022 (UTC)
@Ammarpad @Bawolff
Thanks for your replying me. I found the solution to figure this issue out by chance. Just set the option Forward of Mediawiki interwiki link from no to yes on page Special:Interwiki (Extension interwiki needed, manual database operation is also viable).
The legend on said special page says,
Forward:
No, External HTTP requests to the local wiki using this interwiki prefix in the URL will result in a "Bad title" error page.
Yes, External HTTP requests to the local wiki using this interwiki prefix will be redirected to the target URL of the interwiki (i.e. treated like links to local pages). Teetrition (talk) 06:43, 23 March 2022 (UTC)
I think we misunderstood you earlier. I thought you meant that $wgArticlePath was literally in the url (not its value, but actually the word "$wgArticlePath") Bawolff (talk) 07:38, 23 March 2022 (UTC)

intl

When starting the MediaWiki installer I get "

MediaWiki 1.37 internal error

Installing some PHP extensions is required.

Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

intl (more information)"

I uncommented the extension=intl line in the php.ini file and nothing changed. 2A00:23C7:3D09:6001:A4C6:8713:6AD7:E010 (talk) 00:57, 14 February 2022 (UTC)

You may need to restart the webserver, or be sure you're editing the right php.ini. See Manual:Php.ini for more information Ciencia Al Poder (talk) 08:28, 14 February 2022 (UTC)
Depends on you os,but its usually extension=php_intl.so or php_intl.dll consult the docs for your version of php. Bawolff (talk) 01:40, 15 February 2022 (UTC)

VisualEditor does not work on new Server

Hi!

I want to move our Wiki to a new Server (MediaWiki 1.37.1 on Ubuntu 20.04.3 LTS). It works well e.g. using source editor but using VisualEditor does nothing. The Wiki stays on the page. There is no output in Apache error log.

Apache access los shows:

xxx.xxx.xxx.xxx - - [14/Feb/2022:11:48:56 +0100] "GET /w/index.php?title=Hauptseite&veaction=edit HTTP/1.1" 200 20968 "http://NEWSERVERURL/w/index.php?title=Hauptseite&veaction=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15"

vs. this call from the old server (MediaWiki 1.35) where VisualEditor works:

xxx.xxx.xxx.xxx - - [14/Feb/2022:11:49:43 +0100] "GET /mediawiki/rest.php/OLDSERVERURL/v3/page/html/Hauptseite/774?redirect=false&stash=true HTTP/1.1" 200 9277 "-" "VisualEditor-MediaWiki/1.35.2"

Any clue where to look to solve this issue? GreatOmLivesOnADisc (talk) 11:59, 14 February 2022 (UTC)

Problem was solved via changes in LocalSettings.php as stated at User:Andrujhon/Allow Parsoid Server.
The error was misleading because there was no Parsoid error shown. GreatOmLivesOnADisc (talk) 15:00, 14 February 2022 (UTC)

Passwords not working. No clue why.

I recently upgraded my server to Ubuntu 20.04 from 18.04 and suddenly the passwords for my accounts no longer work. They worked fine in 18.04 but now when my users try to login it always says "Incorrect password entered. Please try again"

I have checked the entire "Manual How to debug/Login problems" page but none of the info there is working. I have tried everything it says. I have opened the Dev tools for Chrome and seen that some of the files aren't even loading with the error "Failed to load response data. Connection is closed, can't dispatch pending call to Network.getResponseBody" I am not exactly sure what this means but it seems relevant.

Did anyone experience anything like this? I have been looking at this for a week and can't seem to get it to work. I just want to upgrade my server to 20.04. Mpb8877 (talk) 15:53, 14 February 2022 (UTC)

I would guess something wrong with webserver. Check apache logs. Does it happen with both http/2 and 1.1? Bawolff (talk) 01:39, 15 February 2022 (UTC)
So when I update Ubuntu to 20.04, the wiki breaks because it is trying to use 2 versions of php. (the previous version 7.2 and the updated version that comes with 20.04: php7.4) Once I disable php7.2 it then gives an error of needing mbstring installed. So I install that and restart apache. Then it says I need DOM installed. So I install that and restart apache again. This finally allows the wiki to load but again, passwords don't work. I checked the apache error log. Any login attempt just says the password is wrong and there is no update to the apache2 error log at all. Funnily enough it had way more errors when I installed mbstring and DOM than when I can't login. Nothing appears in the apache2 error log when I can't login. Still not sure what is going on.
Where should I go from here?
FYI the last and most recent error I get in my apache error log is right after DOM finishes installing. The error is: PHP Warning:  session_id(): Cannot change session id when session is active in /var/www/html/includes/Setup.php on line 775 Mpb8877 (talk) 20:07, 15 February 2022 (UTC)
Mpb8877 (talk) 20:05, 15 February 2022 (UTC)

Visual file markup - default display

Is there a method to set on "LocalSetting.php" which should be the default display of an uploaded image? I have seen there are four display modes:

  • Basic
  • Thumbnail
  • Framed
  • Frameless

How can I set "basic" as default? it seems to me that thumbnail is the default mode. 213.144.69.113 (talk) 16:43, 14 February 2022 (UTC)

There is no setting for this, they are 4 explicit choices available to all editors of a wiki and part of the syntax for wikitext. If you want however you can create your own skin and apply any styling you want to all four different modes. —TheDJ (Not WMF) (talkcontribs) 09:27, 15 February 2022 (UTC)

Page ID in Revision History

Hello,

Is there a way to display the page id in the revision history of mediawiki? (Same thing that shows in the logs of approved versions, it shows the page id of every single approved revision) Is that even possible?


Thank you for your help. AIDInn - pmbd (talk) 20:50, 14 February 2022 (UTC)

Inadvertent Version Upgrade - How to rollback?

Hi,

We have a pretty interesting situation here. We've inherited an environment that breaks several basic principles, one of them being environmental segregation... so our the MediaWiki project in our Dev server actually connect to the Prod DB - I know, I was unaware until now...

To sum it up, one of our devs wanted to experiment with upgrading MediaWiki, and thought she was safe to do so in Dev (as you should be). However, we now have a business-critical wiki that's down, displaying the "A database query error has occurred. This may indicate a bug in the software." error. I've been able to track down the fact that this seems to be due to an inadvertent upgrade, and that running the maintenance/update.php file is likely needed.

However, I have a few questions that I'm hoping someone can help me with:

- Is there a way we can find out what version we were on before this accident? We've queried around the DB, and also checked the DefaultSettings.php file... but I'm not sure these values are correct

- Is there some way to roll back to the previous version? Or any way to find out what steps were taken to do this accidental upgrade? It definitely seems like the entire upgrade process wasn't finished since update.php likely wasn't run

Lastly, one thing you should know is that we have a Wiki Family setup - unfortunately it seems to deviate from your recommended process... we have a single file-system project, and multiple databases. However, instead of defining a $wikiId as is recommended in your manual, my predecessors decided to write some wonky code to determine the wiki from the URL path directly.

Hoping you can help, thanks for any feedback! 155.190.8.5 (talk) 23:34, 14 February 2022 (UTC)

Do you have a backup of the system before anything was attempted? If so, the DefaultSettings.php in the backup would have the version number of the old wiki.
If you have not run update.php, back up your database now.
After it is backed up, run update.php. MarkAHershberger(talk) 00:06, 15 February 2022 (UTC)
Is there a way we can find out what version we were on before this accident? We've queried around the DB, and also checked the DefaultSettings.php file... but I'm not sure these values are correct
DefaultSettings.php in the old wiki (your current production system?) installation (before anything was touched) would have the correct version.
Also see the updatelog table which may have helpful information.
Is there some way to roll back to the previous version?``
Restore the files to the older version. Recover the old DB from backup.
Or any way to find out what steps were taken to do this accidental upgrade? It definitely seems like the entire upgrade process wasn't finished since update.php likely wasn't run
If update.php was not run, then you should just need to restore the files on disk, I think. MarkAHershberger(talk) 00:11, 15 February 2022 (UTC)
> It definitely seems like the entire upgrade process wasn't finished since update.php likely wasn't run
That's basically the entirety of the update process other than changing files.
What's the db query error (set $wgShowExceptionDetails =true;) Bawolff (talk) 01:35, 15 February 2022 (UTC)
Thank you guys for your prompt responses. I hadn't even thought about a DB backup, yep we had one available & have already restored it. The broken wiki is back up now, thanks! 155.190.8.5 (talk) 15:49, 15 February 2022 (UTC)

unable to update image

Hi!

i want to replace a image and get following message

german: mwstore://local-backend/local-public/4/4a/2019-11-28_08h34_48.png gespeichert werden.

translate: mwstore://local-backend/local-public/4/4a/2019-11-28_08h34_48.png unable to save.

what could i do?

i use windows-installation.

regards Jan JanTappenbeck (talk) 06:59, 15 February 2022 (UTC)

Manual:Common errors and symptoms#Error: Could not open lock file for "mwstore://local-backend/local-public/./../image.png Malyacko (talk) 09:25, 15 February 2022 (UTC)

Visual Editor is not working (Parsoid/RESTBase)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello Team,

Here is my local setup.


MediaWiki 1.35.5
PHP 7.4.27 (apache2handler)
MariaDB 10.4.22-MariaDB-1:10.4.22+maria~focal
ICU 67.1
Lua 5.1.5



Error:

Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

Since I have segregated my extension under dir /var/www/html/settings/ExtensionSettings.php

Thanks Akki30 (talk) 08:24, 15 February 2022 (UTC)

Parsoid/Debugging. Also, which exact branch and version of VE/Parsoid is this about? Malyacko (talk) 09:24, 15 February 2022 (UTC)
"name": "VisualEditor",
"version": "0.1.2",
"author": "Alex Monk",
What do you mean by branch , sorry I did not get. Akki30 (talk) 11:02, 15 February 2022 (UTC)
When you installed VisualEditor, how did you download it and install it? MarkAHershberger(talk) 23:49, 15 February 2022 (UTC)
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor.git
cd VisualEditor
git submodule update --init
Or can possible this issue due to localhost?
since I am trying this on . http://localhost:8081 Akki30 (talk) 06:37, 16 February 2022 (UTC)
Which documentation do you follow and where? Malyacko (talk) 19:01, 16 February 2022 (UTC)
It looks like you checked out the development branch of VE instead of the REL1_35 one. I'm not sure that will make a difference, but it might.
Could you try the REL1_35 branch? MarkAHershberger(talk) 16:00, 16 February 2022 (UTC)
its just giving me error Switching to visual editing…and parsoid pop-up in background Akki30 (talk) 06:20, 17 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Shared actor table breaks revision store

Hi,

we have set up second wiki for a foreign language for which we'd like to share users and sessions. Everything works fine so far, but we're having some trouble that appears to be related to the revision store. As per the recommendation on the manual page, we have added the actor table to $wgSharedTables. This however has broken extensions such as Extension:Replace Text, the root cause being in the revision store though, where the getRevisionByTitle function fails as it attempts a join on the actor table, which we have deleted on the foreign language wiki so it can't possibly get out of sync with the main wiki.

It is my understanding that having the table in $wgSharedTables should be all that's necessary here to make things work, but that does not appear to be the case.

We're currently running version 1.35.1. The main wiki is at https://coppermind.net and the foreign language one at https://es.coppermind.net.

Any help is appreciated! MarvinRoesch (talk) 17:21, 15 February 2022 (UTC)

I would suggest reporting at https://phabricator.wikimedia.org sounds like a bug in replace text. Bawolff (talk) 06:29, 16 February 2022 (UTC)
Thanks, but I have since found out that other jobs are also affected, e.g. Elastica writes and others. It also looks like it's not just the actor table, but user and user_properties as well. I have temporarily copied them over from the shared database to the language-specific one again and all jobs ran properly - as was to be expected.
Are these tables not intended to be deleted despite being "shareable"? MarvinRoesch (talk) 12:05, 16 February 2022 (UTC)

MediaWiki Installation Error

MediaWiki version: 1.37.1

PHP version: 7.4.27


Hi, I want to install "MediaWiki" on my computer for testing purposes. However, I ran into some errors.


Deprecated: Premature access to service container [Called from TemplateParser::getTemplate in C:\xampp7.4\htdocs\MVC\includes\TemplateParser.php at line 120] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in C:\xampp7.4\htdocs\MVC\includes\MediaWikiServices.php at line 267] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in C:\xampp7.4\htdocs\MVC\includes\ServiceWiring.php at line 618] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'MainConfig' [Called from TemplateParser::getTemplate in C:\xampp7.4\htdocs\MVC\includes\TemplateParser.php at line 120] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in C:\xampp7.4\htdocs\MVC\includes\ServiceWiring.php at line 827] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in C:\xampp7.4\htdocs\MVC\includes\ServiceWiring.php at line 346] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'LocalServerObjectCache' [Called from ObjectCache::getLocalServerInstance in C:\xampp7.4\htdocs\MVC\includes\objectcache\ObjectCache.php at line 256] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375

Deprecated: Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in C:\xampp7.4\htdocs\MVC\includes\objectcache\ObjectCache.php at line 149] in C:\xampp7.4\htdocs\MVC\includes\debug\MWDebug.php on line 375


The directory where I installed "MediaWiki" is MVC. Mustafa MVC (talk) 18:03, 15 February 2022 (UTC)

You haven't told us very much. Does this happen after your wiki is installed or during installation? If it is after installation, what extensions do you have?
You might look at this task in phabricator: Premature access to service container. MarkAHershberger(talk) 23:48, 15 February 2022 (UTC)
I encountered this problem during installation. The only thing I did was to throw the version I mentioned above into the htdocs folder. Mustafa MVC (talk) 17:03, 17 February 2022 (UTC)
None of these are errors just warnings so canprobably be ignored.
Most likely the fault of an extension. Bawolff (talk) 06:27, 16 February 2022 (UTC)

Integrate Zotero Citation Manager into MediaWiki

I'm trying to integrate some existing JS code that queries a Zotero database into a wiki I am building. Zotero is an open source citation manager.

Info on Zotero here:

https://www.zotero.org

Zotero has a WebAPI that would serve our purposes for getting access to the data stored there. I’ve found some existing javascript code that uses the API (I think via a CORS request) to query an online Zotero citation database and display information about items that match the request in a browser.

Here’s that JS code:

https://github.com/BLE-LTER/Zotero-JavaScript-Search-Client

There are 2 demos on that page labeled ‘Basic’ and ‘Complete Example’ that demonstrate what I want to do with JS but I need to have the results appear on a MW page.  The code has 3 JS modules and CSS sheet.

Can someone give me some hints on how to easily (!) incorporate this code into my wiki?

It seems like I could use create a gadget, a widget, or just put the code in common.js and maybe access it via a template?? I'd want to use the code on a few pages of the wiki.

Any hints, pitfalls, suggestions would be most appreciated.

Thanks, Brad udall (talk) 20:52, 15 February 2022 (UTC)

A gadget would probably be the best way. Have a look at the usage for the extension and ask questions here. MarkAHershberger(talk) 23:42, 15 February 2022 (UTC)
On wikipedia they use Citoid for this i think. Bawolff (talk) 06:26, 16 February 2022 (UTC)

Any suggestions?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Following a recent discussion with a friend about who can edit wikipedia, I clicked on 'edit' to check. To my surprise, I found I was blocked, for behaving badly in some way (I don't really understand the jargon) while editing - even though I've never edited anything. This block was recently extended for one year. It doesn't even seem to be mu IP address, but that could be my limited understanding of these matters.

After much frustrating investigation I find I can't create an account and it seems I'm thereby blocked from any means of communicating with anyone about this. I've used wikipedia since its inception and I'm one of those who donates small amounts when requested, but I now feel cheated.

It's not a practical problem - I still don't wish to edit anything in particular - but the I've supported wikipedia all these years in the belief that I could edit something if I had a sound reason to do so. That belief has just gone up in smoke. And my inability to communicate this to anybody who might be able so help gives it a horribly Kafka-esque twist. Does anyone have any suggestions about what I can do to get this corrected? 149.86.66.16 (talk) 20:53, 15 February 2022 (UTC)

IPs are blocked for a variety of reasons. If your friend can edit Wikipedia, maybe you can use his network connection to create an account and edit wikipedia.
This is not the right place to ask about IP bans, though. Please see IP block exemption for more info. MarkAHershberger(talk) 23:37, 15 February 2022 (UTC)
Thank you 149.86.64.156 (talk) 23:36, 16 February 2022 (UTC)
You're collateral damage from someone's vandal-fighting. The easiest way around it would be to create an account from another IP address and then use it to log in from home. If you wanted to pursue the matter you could then ask on-wiki or use the emailuser function to contact an admin who could unblock your IP address. Flounder ceo (talk) 00:26, 16 February 2022 (UTC)
Thank you 149.86.64.156 (talk) 23:36, 16 February 2022 (UTC)
Thank you both. 149.86.64.156 (talk) 23:32, 16 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Get error in Wikibase Client extension

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi

For Change siteGlobalID from es to eswiki, me empty wbc_entity_usage table

and change $wgWBClientSettings['siteGlobalID'] = 'es'; to $wgWBClientSettings['siteGlobalID'] = 'eswiki'; in LocalSettings.php file

But get following error in MW 1.35.5

[bb68aeddeebdcdff167b271c] /wiki/Main_Page Wikibase\DataModel\Services\Lookup\EntityLookupException from line 51 of /path/w/extensions/Wikibase/lib/includes/Store/RevisionBasedEntityLookup.php: Failed to access name from content_models using id = 2

Backtrace:

#0 /path/w/vendor/wikibase/data-model-services/src/Lookup/RedirectResolvingEntityLookup.php(51): Wikibase\Lib\Store\RevisionBasedEntityLookup->getEntity()
#1 /path/w/extensions/Wikibase/client/includes/Hooks/SiteLinksForDisplayLookup.php(96): Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup->getEntity()
#2 /path/w/extensions/Wikibase/client/includes/Hooks/SiteLinksForDisplayLookup.php(82): Wikibase\Client\Hooks\SiteLinksForDisplayLookup->getSiteLinksForItemId()
#3 /path/w/extensions/Wikibase/client/includes/Hooks/LangLinkHandler.php(269): Wikibase\Client\Hooks\SiteLinksForDisplayLookup->getSiteLinksForPageTitle()
#4 /path/w/extensions/Wikibase/client/includes/Hooks/LangLinkHandler.php(290): Wikibase\Client\Hooks\LangLinkHandler->getEffectiveRepoLinks()
#5 /path/w/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandler.php(98): Wikibase\Client\Hooks\LangLinkHandler->addLinksFromRepository()
#6 /path/w/extensions/Wikibase/client/includes/Hooks/ParserOutputUpdateHookHandler.php(80): Wikibase\Client\Hooks\ParserOutputUpdateHookHandler->doContentAlterParserOutput()
#7 /path/w/includes/HookContainer/HookContainer.php(155): Wikibase\Client\Hooks\ParserOutputUpdateHookHandler->onContentAlterParserOutput()
#8 /path/w/includes/HookContainer/HookRunner.php(1242): MediaWiki\HookContainer\HookContainer->run()
#9 /path/w/includes/content/AbstractContent.php(594): MediaWiki\HookContainer\HookRunner->onContentAlterParserOutput()
#10 /path/w/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()
#11 /path/w/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#12 /path/w/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#13 /path/w/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#15 /path/w/includes/Revision/RenderedRevision.php(197): call_user_func()
#16 /path/w/includes/poolcounter/PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#17 /path/w/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#18 /path/w/includes/page/Article.php(810): PoolCounterWork->execute()
#19 /path/w/includes/actions/ViewAction.php(80): Article->view()
#20 /path/w/includes/MediaWiki.php(532): ViewAction->show()
#21 /path/w/includes/MediaWiki.php(313): MediaWiki->performAction()
#22 /path/w/includes/MediaWiki.php(945): MediaWiki->performRequest()
#23 /path/w/includes/MediaWiki.php(548): MediaWiki->main()
#24 /path/w/index.php(54): MediaWiki->run()
#25 /path/w/index.php(47): wfIndexMain()
#26 {main}

in other language wiki (frwiki and enwiki) not problem but only on this language wiki (eswiki) get error !!!

Please help me !! Beginneruser (talk) 21:44, 15 February 2022 (UTC)

I have to reset all Wikibase repo entry
So run sudo php populateEntityUsage.php in extensions/Wikibase/client/maintenance
I want get new Entity for eswiki siteGlobalID in wbc_entity_usage table
but after run query get old Entity of es siteGlobalID in wbc_entity_usage table Beginneruser (talk) 21:52, 15 February 2022 (UTC)
Please help me Beginneruser (talk) 09:25, 16 February 2022 (UTC)
Ops Problem solved
I debug error and try for resolve this
content_models table in database of Wikibase repo site requirement backup Beginneruser (talk) 10:22, 16 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PAGE NOT FOUND

Hi

I upgrade the FW and now on 192.168.1.1 I get following error :

PAGE NOT FOUND

The page you were looking for doesn't exist!

Teltonika solutions:


This is RUT950

And FW RUT9XX_R_00.06.08.6_WEBUI

HELP !!! 176.10.34.13 (talk) 08:43, 16 February 2022 (UTC)

Please read Before you post in the right side of this page. Ciencia Al Poder (talk) 09:54, 16 February 2022 (UTC)

Fatal error authenticating user.

Hello, I've just inherited this from a team member who left abruptly. Thankfully he left detailed installation instructions for our production server. It is behind our institution's firewall though, so I can't link it.

According to his notes, it looks like he recently upgraded from MediaWiki 1.25.3 to 1.37.0, which included restoring the SQL database, running GUI Install "Upgrade", copied the LocalSettings.php over, images and media.

But this error message "Fatal error authenticating user" usually pops up when we try to login.... however it actually does not prevent us from logging in. I am wondering if it could be some artifact from the upgrade, or possibly a configuration of the LDAP extensions or Apache HTML/SSL configuration.

Any help would be appreciated.

Best I can tell, we are using

OS RHEL 8.5
MediaWiki 1.37.0
PHP 7.4.19
MySQL 8.0.26
Apache 2.4.37

Some other relevant configuration notes:

SELINUX is disabled.

firewalld is disabled.

Extensions:

AccessControl

LDAPProvider

     ldapprovider.json
                             "server": "tmh.tmhs",
                              "port" : "636",
                              "user": "redacted",
                             "pass": "redacted",
                             "enctype": "ssl",
                             "options": [
                                    {"LDAP_OPT_DEREF": 1}
                              ],
                             "basedn": "DC=tmh,DC=tmhs",
                             "groupbasedn": "DC=tmh,DC=tmhs",
                             "userbasedn": "DC=tmh,DC=tmhs",
                             "searchattribute": "samaccountname",
                             "searchstring": "USER-NAME@redacted",
                             "usernameattribute": "samaccountname",
                             "realnameattribute": "cn",
                             "emailattribute": "mail"

PluggableAuth

LDAPAuthentication2 Elijahrockers hm (talk) 22:16, 16 February 2022 (UTC)

Как работает Пукипедия?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Совсем избрехались, а?;) Бла, бла, бла - ваш педиковский "устав": "Много новых статей на коммерческие темы слишком рекламны для В. и удаляются, а авторы блокируются." "При наличии материальной заинтересованности в предмете статьи (вы это серьезно?)) не желательно ее создавать." Ух ты!.. А в то же самое время пулеметно штампуются статейки, например о выходе (еще только в будущем!) расейских фильмов. Чистая реклама с целью наживы)))  И кто подобное пишет? Да вы и пишите за бабло, друг друга покрывая. И здесь все разворовали... Русским только дай, да пальцы успей поджать;))))))))))) 85.140.1.84 (talk) 23:16, 16 February 2022 (UTC)

Вы не там выражаете свои возмущения! Fokebox (talk) 07:56, 17 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Please help me understand Manual:Footer

From Manual:Footer.

$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'places' ) {
        $footerlinks['test'] = $skin->footerLink( 'test-desc', 'test-page' );
    };
};

So far I understood:

  1. We assign an anonymous function with the arguments Skin, $skin, string $key, array &footerlinks to a hook named SkinAddFooterLinks
  2. If the value of the variable $key is identically 'places' than the array child 'test' is assigned what exactly?

Please translate this code into plain English. 79.176.94.174 (talk) 09:04, 17 February 2022 (UTC)

A link (i.e. a snippet of html starting with <a href=...), where the text of the link is the contents of the page named MediaWiki:test-desc (or equivalently i18n message with that name) and the target of the link is whatever page is written on the page MediaWiki:test-page.
In mediawiki syntax its sort of like doing [[{{MediaWiki:test-page}}|{{MediaWiki:test-desc}}]]
See also https://github.com/wikimedia/mediawiki/blob/master/includes/skins/Skin.php#L1101
Using the var_dump() function can also be helpful for understanding code. Bawolff (talk) 10:05, 17 February 2022 (UTC)
The footer in a skin has three areas:
  • info: with the copyright info, last modified etc
  • places: the links
  • icons: icons, basically another kind of links :)
these are all 'footer links'. So each item within the array is a single link. Each item has a name (in the example it is test). This name is used to give an id attribute to the link (in this case 'footerlinks-places-test' will become the final id). The value is just HTML, but there is a convenience function footerLink() in the base Skin class to make sure they look the same most of the time.
  • test-desc: Means that the textual contents for the link will be retrieved from translation key test-desc (MediaWiki:test-desc)
  • test-page: Means that the link that will be used is retrieved from translation key test-page (MediaWiki:test-page)
So for this to work, you should also add translation keys test-desc and test-page in the languages in which you intend to use this. —TheDJ (Not WMF) (talkcontribs) 10:35, 17 February 2022 (UTC)
Hi! I am having the same problem with understanding. I am doing exactly like described in the manual Manual:Footer, but I cannot see the link. Nothing. I have tried different skins, but no luck. My wiki is written in Cyrillic. All the pages are named in Cyrillic to. So, the code I use (for example) is like this:
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
    if ( $key === 'places' ) {
        $footerlinks['Страница'] = $skin->footerLink( 'Название страницы', 'Страница' );
    };
};
Can this issue be related to the language?
Thank you! 2A0C:5C84:1:2000:0:0:0:6333 (talk) 17:58, 16 June 2023 (UTC)
You're supposed to put the name of the MediaWiki: namespace pages as the two arguments to footerLink. Otherwise this looks fine.
Allegedly at some point skin->footerLink is getting replaced with SkinComponentMenuLink::getTemplateData Bawolff (talk) 23:20, 17 June 2023 (UTC)

I recall that there is a way, applicable in all core skins, to add a content area between #mw-content and the footer.

By no means do I mean "footer links", rather a region outside the footer, buffering between #mw-content to the footer. 79.176.94.174 (talk) 15:20, 17 February 2022 (UTC)

If, in a given core skin, suddenly #mw-content is no longer a thing, I just meant to the main content area, of course. 79.176.94.174 (talk) 15:51, 17 February 2022 (UTC)

v100 to break sites?

I just read this article (https://www.bleepingcomputer.com/news/software/mozilla-warns-chrome-firefox-100-user-agents-may-break-sites/) saying that Chrome and Firefox will break sites when their versions reach 100. Will this affect Wikimedia sites? George Ho (talk) 17:16, 17 February 2022 (UTC)

It won't. Bawolff (talk) 06:12, 18 February 2022 (UTC)
According to the developer tool, something called content-scripts.js:1 will be affected. How do you explain that? George Ho (talk) 06:00, 27 February 2022 (UTC)
You need to ask "the developer tool" (whatever that is) for an explanation, I'm afraid. Nobody can tell without sufficient information and clear steps to reproduce and browser information and a URL and where to see that "something"... :) Malyacko (talk) 12:11, 27 February 2022 (UTC)
The developer tool is what's also called "Inspect" in Google Chrome via right-click menu or key "F12" on your keyboard. Also, almost every browser has developer stuff, like Firefox and Safari.
  1. On desktop: Press F12 or (if on Chrome) right-click to open menu and click "Inspect".
  2. Go to the "Issues" tab, which will bring up "Audit usage of..."
  3. Click the "Audit usage" message.
  4. Scroll down to "AFFECTED RESOURCES"
  5. Click "content-scripts.js:1", which will open some coding that I'm not very familiar with. George Ho (talk) 23:49, 27 February 2022 (UTC)
This seems to be some Google service only available in Google Chrome. This still lacks clear steps to reproduce as I had asked for a URL, or where (URL!) to find something called "content-scripts.js". Malyacko (talk) 17:38, 28 February 2022 (UTC)

Rollout of the new audio and video player

Please help translate to your language

Hello,

Over the next months we will gradually change the audio and video player of Wikis from Kultura to Video.js and with that, the old player won’t be accessible anymore. The new player has been active as a beta feature since May 2017.

The new player has many advantages, including better design, consistent look with the rest of our interface, better compatibility with browsers, ability to work on mobile which means our multimedia will be properly accessible on iPhone, better accessibility and many more.

The old player has been unmaintained for eight years now and is home-brewn (unlike the new player which is a widely used open source project) and uses deprecated and abandoned frameworks such as jQuery UI. Removing the old player’s code also improves performance of the Wikis for anyone visiting any page (by significantly reducing complexity of the dependency graph of our ResourceLoader modules. See this blog post.). The old player has many open bugs that we will be able to close as resolved after this migration.

The new player will solve a lot of old and outstanding issues but also it will have its own bugs. All important ones have been fixed but there will be some small ones to tackle in the future and after the rollout.

What we are asking now is to turn on the beta feature for the new player and let us know about any issues.

You can track the work in T100106

Thank you, Amir 17:59, 17 February 2022 (UTC)

MediaWiki message delivery (talk) 17:59, 17 February 2022 (UTC)

API for creating redirects?

I feel like I should know this, and I've looked and not found anything, but it seems like the sort of thing that should exist… so: is there an API for creating redirect pages? I'm making a little WikiEditor dialog for adding to and listing the current page's redirects. (I know API:Redirects can do the listing.) Sam Wilson 02:40, 18 February 2022 (UTC)

No, i think you just have to use action=edit with the text #REDIRECT[[.. Bawolff (talk) 06:11, 18 February 2022 (UTC)
Hmm yeah that's what I thought, glad I'm on the right track! Thanks. But then I found that ContentHandler::makeRedirectContent() does more than I thought it would, and it feels like it should ideally be used. I might add an API method. Sam Wilson 06:49, 18 February 2022 (UTC)
Actually, if the content model isn't know beforehand then it becomes trickier. Something like:
$services = MediaWikiServices::getInstance();
$contentHandler = $services->getContentHandlerFactory()
    ->getContentHandler( $redirectTitle->getContentModel() );
$content = $contentHandler->makeRedirectContent( $targetTitle );
$pageUpdater = $services->getWikiPageFactory()
    ->newFromTitle( $redirectTitle )
    ->newPageUpdater( $this->getUser() );
$pageUpdater->setContent( SlotRecord::MAIN, $content );
$pageUpdater->addTag( 'redirectmanager' );
$comment = $this->msg( 'redirectmanager-edit-summary' )
    ->inLanguage( $services->getContentLanguage() )
    ->parse();
$pageUpdater->saveRevision(
    CommentStoreComment::newUnsavedComment( $comment ),
    EDIT_INTERNAL | EDIT_AUTOSUMMARY
);
$saveStatus = $pageUpdater->getStatus();
Sam Wilson 07:32, 18 February 2022 (UTC)

spambotinvasion lookin4smallmediawikis automated attax from international ?zombiecomputerz(?)

hundreds and thousands of them arrivin in http://sub-bavaria.de/wiki/Spezial:Letzte_Änderungen since 2013.... :|[

______________________________________________________________

unable to build in antispam plugins as mentioned in Manual:Combating spam

______________________________________________________________

spam is waste of electricity, time, attention, energy....

______________________________________________________________

noone seems to care about those ugly and dirty guerillamarketer botnets  :-(

why can't these sad clickbait victims mess up their own living rooms......

they probably earn 1 cent per click.


extinction rebellion now!


#degrowth please


#fridaysforfuture 194.246.144.13 (talk) 09:45, 18 February 2022 (UTC)

How can we help you? Ciencia Al Poder (talk) 10:48, 18 February 2022 (UTC)

My Mediawiki-instance does not display images

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have been running my own mediawiki-instance for many years.

Unfortunately, I did not care for upgrades for a long time. Some months ago I exported the actual data as XML of my wiki and made a fresh install of mediawiki and then I reimported the data.

I do not have a great number of images in this wiki. I have only now noticed that no images are displayed in the new installation.

I copied the images folder from the old installation to the new mediawiki folder.

But nevertheless the images are not shown - I only see the red colored name of an image-file as link - a link to an empty article.

Please look at one of that pages in my wiki:

[4]https://grubit.at/fg_mediawiki/index.php/PhpMyAdmin#Beziehungen

Many thanks in advance for hints. ThanksforHelp (talk) 09:50, 18 February 2022 (UTC)

Manual:Errors and symptoms#Image Thumbnails not working and/or appearing Malyacko (talk) 12:07, 18 February 2022 (UTC)
Sorry, I am not able to find any information in this manual that could help me.
.. and sorry about the link to my site above. It does not work because of an underline in the path.
Here is my attempt to create a new link to show my problem on the real site:
https://grubit.at/fg_mediawiki/index.php/PhpMyAdmin#Beziehungen
... hope, this works. ThanksforHelp (talk) 10:24, 22 February 2022 (UTC)
I would also like to add that I can very well add a new image to the wiki, i.e. upload new images.
But any images already present in the /image directory will not be displayed. I don't get any error message.
I still have a copy of the database from the old version of the wiki. Could this be helpful? ThanksforHelp (talk) 20:12, 23 February 2022 (UTC)
You can try to debug like this:
Each image is available via http with an url like www.example.org/images/8/8b/phpmyadmin_1.png
The file structure on your webserver resembles this url: The image should be stored under /<wikipath>/images/8/8b/phpmyadmin_1.png
You can compare the paths of the image in the wiki with the actual file system and figure out what might be wrong.
You can also search for the image on your filesystem with find /<wikipath>/ -iname *phpmyadmin*. You should find something. Maybe the directories somehow got mixed up.
To find the path and name of the image, you can go to /index.php?title=Spezial:Logbuch/upload to see a log of all images that should be available. There you can click an image to get to the "meta-page" of that image. On the image page you can see links to the image itself which you can use to look up the name and path. Na-oma (talk) 09:25, 25 February 2022 (UTC)
Thank you for answering me.
The images are all available on the server. I checked the filesystem on the server using the find command.
I checked the availability of one of the images, that are not displayed on the wiki page:
cd /srv/www/htdocs/fg_mediawiki/images
find . -name "Phpmyadmin_5.png"  
./thumb/0/0c/Phpmyadmin_5.png
./0/0c/Phpmyadmin_5.png
Now I tried to access the image over HTTP and it works as you can see:
https://grubit.at/fg_mediawiki/images/0/0c/Phpmyadmin_5.png]
The following link does not show an image, because it is a folder that contains 3 images of different size. - okay that is obvious:
https://grubit.at/fg_mediawiki/images/thumbs/0/0c/Phpmyadmin_5.png
The Mediawiki Special Page Logbuch shows only one image file, that I added some days ago.
https://grubit.at/fg_mediawiki/index.php?title=Spezial:Logbuch/upload
or https://grubit.at/fg_mediawiki/index.php/Spezial:Dateien ThanksforHelp (talk) 10:47, 25 February 2022 (UTC)
There's only one image on your wiki: https://grubit.at/fg_mediawiki/index.php/Spezial:Dateien
Remember that images must be uploaded through Special:Upload and not placed directly on the images directory on the server, otherwise the wiki will not know about them.
Exporting an XML dump only generates the text of the pages, but not the images. The same when importing it.
You can import those images running importImages.php. Be warned that you should import those images from a different folder and not the existing folder where they'll be uploaded. Otherwise, the script will give errors because it won't be able to overwrite those files. You can copy the folder to another location and delete everything except the image you have on the wiki, to prevent such errors, remove the already existing file on the copied folder and all thumbnails, then import all images from that copied folder (it can work recursively) Ciencia Al Poder (talk) 11:19, 25 February 2022 (UTC)
Thank you very much.
Some days ago I alread copied all the images in a separate folder (using the bash find command) - without the thumbnails.
Today I'll try the script importimages.php. This sounds good. ThanksforHelp (talk) 10:43, 26 February 2022 (UTC)
Many, many thanks for this hint.
I executed the PHP script. First I could not see any changes on the wiki in the browser. Then I changed one image manually and suddenly all the other images appeared.
I suspect this may be due to the cache. ThanksforHelp (talk) 16:18, 26 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really want to upload this file.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Dear Support,

I have an installation of mediawiki 1.37.1, on Centos 7 OS, with PHP 7.4.27.

I have file_uploads = On in the PHP and $wgEnableUploads = true;

Until 15th February 2022 I was capable to upload images and files, but since 15th I cannot. The error message is the oune i the topic. I've tried different options by setting PHP upload_tmp_dir to a different path with writting permissions and it doen't work.


In 17th of Feb, I've added two parameters in LocalSettings.php

$wgMaxImageArea = 8.1e7;

$wgMaxShellMemory = 524288;

because some thubmnails were not displayed correctly. But nothing else as far as I remember...


This happens with any type of file, and I don't see any message on apache logs, neither in the wiki log...

Do you know what can I do to debut this error?


Thanks in advance, 80.103.64.50 (talk) 20:10, 18 February 2022 (UTC)

I solved the issue. After doing some checks, I've realized that I didn't have free space on the disk, so after freeing some space I was capable to upload new files.
Best, 80.103.64.50 (talk) 14:40, 21 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Bulk change a category name without an extension

MediaWiki 1.37.1

How to bulk change a category name without an extension?

For example, from:

[[category:x]]

To:

[[category:y]]

In all relevant articles in the webpage, in one operation. 79.176.94.174 (talk) 23:03, 18 February 2022 (UTC)

Extension:ReplaceText Bawolff (talk) 07:18, 19 February 2022 (UTC)

Content is gone after updating and moving to a new server

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I was asked to take care of an wiki that used to be hosted on a university server. It was very outdated (Version 1.28). Because I read that updating an old version can be tricky I asked the hosting company to do the work for me. The current situation is like this: I have a functioning installation of WM (Version 1.37) here: www.krimpedia.de

I can access the wiki and create new pages. This wiki is connected to the right database as LocalSettings.php shows and a look inside this database via phpmyadmin tells me, it's the right one and all the data is there. But none of the hundreds of pages is showing.

The hosting company basically told me to figure it out myself. I have no experience with setting up wikis whatsoever. Could you please help and give me a hint what I can do? Thanks 77.8.182.146 (talk) 09:42, 19 February 2022 (UTC)

I would guess that $wgDBname, $wgDBserver or $wgDBprefix are pointing to a different db than the one you are looking at in phpmyadmin. Bawolff (talk) 23:28, 19 February 2022 (UTC)
Thank you so much. It was indeed $wgDBprefix 77.1.66.168 (talk) 11:51, 20 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After upgrading from 1.31 to 1.37 I can´t edit pages

Hi everyone,

II run mediawiki on a cloud server which. After installing mediawiki with plesk I updated it to version 1.37. But since them I can´t edit pages.

The error message is after press the save button:

"It seems like your browser doesn't support Unicode. This is required to edit Pages, so your edit hasn't been published."


Can anybody help me?


Thanks 91.249.203.80 (talk) 13:35, 19 February 2022 (UTC)

Дампы английской Википедии

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Где можно взять копии английской википедии за 2002, 2003 и 2004 годы. За 2001 год это Ностальгия, а что за другие годы.--Блинов Рюрик Петрович (talk) 06:54, 20 February 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to reagain access to mw if you're blocked as an administrator?

I "inherited" a MW which wasn't updated for years. For security reasons the server administrators blocked all accounts - including the MW administrator's. Is there a way to regain access? I have access to the server and the database. 77.1.66.168 (talk) 12:11, 20 February 2022 (UTC)

sysops by default have the "unblockself" right, which makes them able to unblock themselves. Take a look at LocalSettings.php and see if this right has been revoked, and comment-out that line.
You should be able to unblock yourself after that, visiting the Special:BlockList page on your wiki and finding your name.
If the block prevents you from logging in, check if $wgBlockDisablesLogin has been set to true in LocalSettings.php and comment it out. Ciencia Al Poder (talk) 12:22, 20 February 2022 (UTC)
You could also create a new admin account with manual:createAndPromote.php Bawolff (talk) 01:14, 21 February 2022 (UTC)
Thank you for your answer.
Unfortunately there is no entry in the LocalSettings.php that refers to a sysop.
Is it possible to set up a new sysop-account via LocalSettings.php or as an entry in the database? 95.116.175.7 (talk) 09:35, 21 February 2022 (UTC)
Check Bawolff response for creating a new admin account Ciencia Al Poder (talk) 09:49, 21 February 2022 (UTC)

How to make a MediaWiki website more dynamic?

For generally all users, my website is currently "static".

I wish to add some dynamicity.

Is there some documentation / some community guidelines / some tip-list here about how to make a website more dynamic?


I would theorize that this guide would have three chapters:

  1. How to make your homepage more dynamic
  2. How to make your non-homepage webpages more dynamic
  3. How to make all webpage more dynamic (global)

Chapter 1 example

  • Add an article counter
  • Display the last 5 new pages as with {{Special:NewPages/5}}
  • Display the last 5 most viewed categories of the month

Chapter 2 example

Chapter 3 example

  • Pop up some JavaScript


---


Well, you get the idea.

I feel a bit lost and need some guidance and help.

I feel like I am not getting the full potential of MediaWiki just because of that problem of being lost with how to make my website a bit more dynamic.

I need some inspiration. 79.176.94.174 (talk) 16:04, 20 February 2022 (UTC)

#1 probably requires you to write some custom code.
#2 see Manual:Interface/Sidebar
#3 see Manual:Interface/JavaScript Malyacko (talk) 17:16, 20 February 2022 (UTC)
That's fine, I like to code !
What I seek here is more of a guidance / "cookbook" / I did this. 79.176.94.174 (talk) 14:35, 21 February 2022 (UTC)
@Yaron Koren
Here is an idea for a blog article :) 79.176.94.174 (talk) 14:36, 21 February 2022 (UTC)
You can try to ask for specific problems and not a generic "how to make X more dynamic". Ciencia Al Poder (talk) 14:37, 21 February 2022 (UTC)
@Ciencia Al Poder indeed and I have done that but currently I just don't have any specific problems left :)
I just need some MW content development mentoring. 79.176.94.174 (talk) 14:43, 21 February 2022 (UTC)
What does "content development mentoring" mean? What does "dynamic" mean? What's the description of an actual non-abstract underlying problem to solve, instead of a rather unclear (buzz)word like "dynamic"? Malyacko (talk) 14:49, 21 February 2022 (UTC)
@Malyacko
Mentoring here means examples for dynamic content.
Dynamic (content) here means that the output of each backend load would generally be different.
I nicely reject the abstraction that each question here must be about an underlying problem to solve or at least that no exceptions would be allowed.
If I'm ought to define a problem, it's my personal lack of creativity on the matter :) 79.176.94.174 (talk) 16:05, 21 February 2022 (UTC)
In that case, https://xyproblem.info/ applies and I wish good luck with coding. :) Malyacko (talk) 11:27, 22 February 2022 (UTC)
Why do you say an XY problem applies if I didn't start with a solution? 79.176.94.174 (talk) 22:48, 22 February 2022 (UTC)
@Malyacko I am still waiting for your reply. 79.176.94.174 (talk) 06:44, 27 February 2022 (UTC)
I think I've said everything already: "Make stuff dynamic" sounds like some solution and it's unclear what the actual underlying problem is. Malyacko (talk) 12:12, 27 February 2022 (UTC)
Well the problem to solve is my fear or anxiety of not knowing all major ways to suggest content to the user in dynamic ways --- each backend load, both in the peripheral level (sidebar, footer, popups, etc.) and in the central level (specific webpages such as the homepage).
The only solution I seek here is guidance about general ideas to try to implement. 79.176.94.174 (talk) 17:52, 27 February 2022 (UTC)
In each backend load, some of the peripheral content should be different. 147.161.15.92 (talk) 20:46, 21 February 2022 (UTC)
@Malyacko
You got the information you asked for, didn't you? 79.176.94.174 (talk) 11:21, 22 February 2022 (UTC)
Code for article counter:
[[Special:Statistics|{{NUMBEROFARTICLES}}]]
Mediawiki.org currently has 64,527 articles. Flounder ceo (talk) 02:12, 23 February 2022 (UTC)

Persistent TOC in Sidebar like Citizen Skin?

How do I make the TOC persistent in the sidebar like the Citizen Skin does?


You can basically scroll up or down the entire page and have the TOC always in the left sidebar for fast easy access to the entire page headers. I'm new to Media Wiki, CSS and JS so if you have a completed code to do this that be amazing 105.224.220.227 (talk) 18:50, 20 February 2022 (UTC)

By adjusting the CSS code of your favorite skin to behave like that, for example after investigating the Citizen skin how it does that. Or by using the Citizen Skin instead. Malyacko (talk) 14:51, 21 February 2022 (UTC)

How to make a user read a set of rules in order to gain the role of "Editor"

Hello all, I had asked a question not too long ago about how to create an "Editor" role (as I am a bit of a noob and didn't know you could create roles and restrict user rights). However now I want to know if there is a way to implement a system where if a user reads a certain page that lists rules for being an Editor, and they accept the rules, it would give them the Editor role and so give them access to editing and creating articles, etc (this is of the fact that every user who isn't an Editor cannot edit on the site). I would also like to note that I don't want one where instead it is implemented into the Sign-Up Process. I highly prefer that this process be separate from the Sign-Up process because as you know, people tend to not read things while signing-up. So I prefer it, again, to be a separate process. If anyone could help me I would be very grateful, thanks Guillaume Taillefer (talk) 20:25, 20 February 2022 (UTC)

I am bumping this post back up since no one has responded to it yet. Guillaume Taillefer (talk) 23:21, 22 February 2022 (UTC)
You might be able to use Manual:$wgAutopromote and Manual:$wgAutopromoteOnce You can set conditions to promote users to be able to edit.
Sadly there is no condition that depends on "has the user viewed a certain page". Na-oma (talk) 09:36, 25 February 2022 (UTC)

What settings for Manual:dumpBackup.php would save the most data from the wiki?

I'm in the middle of experimenting and can't work out the relationship between these two. Should I use both or just --include-files?

  --uploads   Include upload records without files
  --include-files Include files within the XML stream

Also, can I use --full and --logs together?

 --full      Dump all revisions of every page.
 --logs      Dump all log events.

Thanks. Jonathan3 (talk) 23:53, 20 February 2022 (UTC)

It seems that --full gives the same result as either --full --include-files or --full --logs.
And --full --uploads adds details of uploads within <upload> tags (timestamp, contributor, comment, filename etc).
--full --uploads --include-files saves the biggest file of all so far. Jonathan3 (talk) 00:17, 21 February 2022 (UTC)

SMTP Server Online Exchange

Hello,


we use wikimedia for internal documentation. We use an exchange server in the cloud as email server. We have already adjusted the SMTP settings. When we try to send confirmation emails the message appears:

authentication failure [SMTP: Invalid response code received from server (code: 421, response: 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [FR0P281CA0010.DEUP281.PROD.OUTLOOK.COM])]


Versions:

MediaWiki: 1.26.2

PHP: 5.5.30 (fpm-fcgi)

MySQL: 5.6.28


How can we fix that? Hendrik Fritzen (talk) 10:49, 21 February 2022 (UTC)

Looks like PHP 5.5 doesn't support TLS 1.2. You should upgrade PHP, and also MediaWiki, since MediaWiki 1.26 is really old and no longer supported. Ciencia Al Poder (talk) 10:54, 21 February 2022 (UTC)

PHP 8.0 support

Hi , As per compliance policy we need to update PHP 7.4 to PHP 8.0. Kindly advise by when MediaWiki will be compatible with PHP 8.0 202.21.223.87 (talk) 11:26, 21 February 2022 (UTC)

Kindly search and check documentation at Compatibility#PHP. Malyacko (talk) 14:50, 21 February 2022 (UTC)

Trouble with upgraded wiki

Greetings!

I have a wiki (chuckfurnace.com/opus) that I attempted to upgrade from 1.25 to 1.37.1. In the Web browser I am seeing the following. Can you suggest any next steps to clear this up and get it working?

Many thanks!


[YhMjCHHsmWjvwHIS0FQ48QAAABc] /opus/ Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1146: Table 'chuckfurnace_com_4.opus_revision_comment_temp' doesn't exist (mysql.chuckfurnace.com)

Function: MessageCache::loadFromDB(en)-small

Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `opus_page` JOIN `opus_revision` ON ((page_id = rev_page)) JOIN `opus_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `opus_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `opus_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `opus_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)

Backtrace:

from /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/Database.php(1809)

#0 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)

#1 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#2 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#3 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/Database.php(2012): Wikimedia\Rdbms\Database->query(string, string, integer)

#4 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#5 /home/chuckfurnace/chuckfurnace.com/opus/includes/libs/rdbms/database/DBConnRef.php(324): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(574): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)

#7 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(452): MessageCache->loadFromDB(string, NULL)

#8 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(375): MessageCache->loadFromDBWithLock(string, array, NULL)

#9 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(1115): MessageCache->load(string)

#10 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(1043): MessageCache->getMsgFromNamespace(string, string)

#11 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(1014): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)

#12 /home/chuckfurnace/chuckfurnace.com/opus/includes/cache/MessageCache.php(956): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)

#13 /home/chuckfurnace/chuckfurnace.com/opus/includes/language/Message.php(1379): MessageCache->get(string, boolean, LanguageEn)

#14 /home/chuckfurnace/chuckfurnace.com/opus/includes/language/Message.php(903): Message->fetchMessage()

#15 /home/chuckfurnace/chuckfurnace.com/opus/includes/language/Message.php(993): Message->format(string)

#16 /home/chuckfurnace/chuckfurnace.com/opus/includes/Title.php(720): Message->text()

#17 /home/chuckfurnace/chuckfurnace.com/opus/includes/MediaWiki.php(141): Title::newMainPage()

#18 /home/chuckfurnace/chuckfurnace.com/opus/includes/MediaWiki.php(161): MediaWiki->parseTitle()

#19 /home/chuckfurnace/chuckfurnace.com/opus/includes/MediaWiki.php(891): MediaWiki->getTitle()

#20 /home/chuckfurnace/chuckfurnace.com/opus/includes/MediaWiki.php(564): MediaWiki->main()

#21 /home/chuckfurnace/chuckfurnace.com/opus/index.php(53): MediaWiki->run()

#22 /home/chuckfurnace/chuckfurnace.com/opus/index.php(46): wfIndexMain()

#23 {main} Jukha (talk) 14:02, 21 February 2022 (UTC)

Did you run update.php as the error message suggests?
Recent MediaWiki versions expect upgrades to jump from LTS or versions after the last LTS. If you are testing the upgrade or have a backup, I'd recommend upgrading to 1.35 first and then from that to 1.37 Ciencia Al Poder (talk) 14:40, 21 February 2022 (UTC)
I did, I got
Can not upgrade from versions older than 1.27, please upgrade to that version or later first.
so! how do I upgrade to 1.35? Jukha (talk) 15:07, 21 February 2022 (UTC)
You should upgrade to intermediate versions.
IIRC, you can upgrade from 1.25 to 1.35 in one step (you can download it from the main page here). Copy files and run update.php on the 1.35 installation!
And then, from 1.35 to 1.37 in another step. Run update.php again, this time from the 1.37 installation. Ciencia Al Poder (talk) 15:39, 21 February 2022 (UTC)

Alternative for wfFindFile

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I am trying to fix an error which stats tat Use of wfFindFile was deprecated in MediaWiki 1.34.


Since wfFindFile is deprecated, what is the exact alternative for this function?


Zohaib 182.189.202.95 (talk) 11:13, 22 February 2022 (UTC)

See Manual:GlobalFunctions.php#wfFindFile() Ciencia Al Poder (talk) 11:16, 22 February 2022 (UTC)
wfFindFile was deprecated in MediaWiki 1.34. Documentation states that:
  • RepoGroup::singleton(), RepoGroup::destroySingleton(), RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all deprecated. Use MediaWikiServices instead.
I want to know how to use MediaWikiServices to find a file? 182.189.202.95 (talk) 13:22, 22 February 2022 (UTC)
Oh, right.
Try this:
MediaWikiServices::getInstance()->getRepoGroup()->findFile()
Ciencia Al Poder (talk) 14:02, 22 February 2022 (UTC)
It worked like a charm, thank you. 182.189.202.95 (talk) 14:14, 22 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

log in

I can't log in 2601:181:4600:2590:0:0:0:5670 (talk) 23:34, 22 February 2022 (UTC)

See "Post a new question" and "Before you post" in the sidebar. Malyacko (talk) 09:56, 23 February 2022 (UTC)

OAuth Authentication

I followed https://www.mediawiki.org/wiki/Extension:OAuth2_Client this link for configuring OAuth for Media-Wiki application. I have few quires in the configurations mentioned in this link.

  1. As mentioned in the link need to run "composer install" to install php dependencies. to install composer we need to have php.exe in our system; Can you please tell us how to install composer in app-service. Or any other way we can use php dependencies
  2. In localsettings.php we need to some settings I had doubt what we need to use in some settings value can you please help me with that. $wgOAuth2Client['configuration']['authorize_endpoint']     = ''; $wgOAuth2Client['configuration']['access_token_endpoint']  = ''; $wgOAuth2Client['configuration']['api_endpoint']           = ''; $wgOAuth2Client['configuration']['redirect_uri']           = ''; $wgOAuth2Client['configuration']['username'] = 'username'; $wgOAuth2Client['configuration']['email'] = 'email'; $wgOAuth2Client['configuration']['scopes'] = 'openid email profile'; 2409:4071:4D8B:9AC9:907D:4E37:EA41:10AC (talk) 12:00, 23 February 2022 (UTC)

API Amount of edited pages

Hi all,


I am struggling with getting data from our website. I need to collect the amount of edited pages over the past 3 years.

I have limited knowledge of the API and use, I started trying to make an API query like this: ApiSandbox#action=query&format=json&prop=revisions&list=allpages&rvprop=timestamp%7Cuser&rvstartid=2123&rvstart=2021-01-01T10%3A49%3A54.000Z&rvend=2021-12-31T10%3A49%3A54.000Z

In an attempt to get a list of pages changed in 2021.

I tried this query as well, ApiSandbox#action=query&format=json&prop=pageprops&list=allrevisions&ppcontinue=&arvprop=&arvslots=&arvstart=2021-01-01T10%3A48%3A54.000Z&arvend=2021-12-31T10%3A48%3A54.000Z

No luck.


Any help would be greatly appreciated.

Thank 81.245.4.226 (talk) 12:40, 23 February 2022 (UTC)

You should probably use direct sql access for this, it will be a lot easier than api for broad statistics.
If you are going to use the api, you might want to use the generator= option. E.g. like: https://www.mediawiki.org/w/api.php?action=query&format=json&prop=revisions&generator=allpages&rvprop=timestamp%7Cuser&gaplimit=max Bawolff (talk) 06:23, 24 February 2022 (UTC)

Creating an account

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi all,

I found my profile on openwaterpedia but data, birth date and some swimming results are not correct.


Where can I create new account so that I can update all informations?

Thanks AleksandraKabelis (talk) 13:42, 23 February 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki having some sort of php password error

Running a wiki on a server running Ubuntu18.04 using php7.2. After upgrading the server to 20.04 the wiki breaks but mainly because the php7.4 that comes with Ubuntu 20.04 is fighting with php7.2. After disabling php7.2 and enabling php7.4 I just need to install mbsting and dom and things work out. However, all our account passwords no longer work. I was wondering if this was because of the change to php7.4 but I wasn't sure. However, if I try to enable php7.2 instead the wiki will not connect. This is mainly because the libphp7.2-so is suddenly missing and if I try purging all php versions and reinstalling 7.2, it says I still have 7.2. 7.4 gets purged just fine but for some reason 7.2 lingers and will not go away. So if I try to reinstall it to get that library file back, Ubuntu swears I already have it. So I am not sure what to do. Anyone know of php7.4 freaking out passwords?

I should note we are using an LDAP system and I checked our configuration and LDAP is as it should be and the LDAP credentials work to log into the actual server but not the wiki site. I feel like it has got to be some of weird php interaction with our passwords.

Any ideas? Mpb8877 (talk) 15:54, 23 February 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 17:10, 23 February 2022 (UTC)
It sounds like some weird interaction between ldap and php version. I would enable all php error reporting and mediawiki debug logging to see if there are any php errors (see How to debug) Bawolff (talk) 06:14, 24 February 2022 (UTC)
Okay so I am running MediaWiki 1.27.1 which means I have to switch to LDAPAuthentication2. I ran the instructions on the wiki and get a HUGE Error when adding the wfLoadExtension( 'LDAPAuthentication2' ); line to the bottom of LocalSettings.php.
It gives me this:
Fatal error: Uncaught Exception: /var/www/html/extensions/LDAPAuthentication2/extension.json: unsupported manifest_version: 2 in /var/www/html/includes/registration/ExtensionRegistry.php:195 Stack trace: #0 /var/www/html/includes/registration/ExtensionRegistry.php(137): ExtensionRegistry->readFromQueue() #1 /var/www/html/includes/Setup.php(39): ExtensionRegistry->loadFromQueue() #2 /var/www/html/includes/WebStart.php(137): require_once('/var/www/html/i...') #3 /var/www/html/index.php(40): require('/var/www/html/i...') #4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 195
Any idea what this means? Mpb8877 (talk) 16:34, 28 February 2022 (UTC)
If you really run ancient MediaWiki 1.27.1 then there are way bigger issues due to lots of security issues. Please upgrade for your own safety. Malyacko (talk) 17:39, 28 February 2022 (UTC)
It seems I am indeed getting some sort of LDAP error. My PHP log writes this after a login attempt failed:
  • [authentication] Login failed in primary authentication by MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider:LdapAuthenticationPlugin
  • [session] SessionBackend "{session}" data dirty due to dirty(): {callers}
  • [session] SessionBackend "{session}" save: dataDirty={dataDirty} metaDirty={metaDirty} forcePersist={forcePersist}
  • [authmanager-stats] Login attempt
  • QuickTemplate::__construct was called with no Config instance passed to it
  • MediaWiki::preOutputCommit: all transactions committed
  • MediaWiki::preOutputCommit: pre-send deferred updates completed
Is there someway to update that Ldap plugin or is that depreciated or...? Any idea what the problem could be here based on this error log? Mpb8877 (talk) 15:30, 28 February 2022 (UTC)

Howdy,


we are running a wiki for more than 15 years now. Currently we are using MW 1.35 LTS, MySQL 8.0, PHP 7.2. Unfortunately the database tables and columns use an odd mixture of character sets (some latin1, some utf8) as well as various collations (latin1_bin, utf8_bin, utf8_general_ci, even some latin1_swedish_ci ... for whatever reasons) - this chaos happened long before I joined the wiki. Simply no one took care.


To cleanup the mess, I consider exporting all data and re-import it with a certain character set and collation. I believe I know how to do it, but I am wondering which character set and collation to use. What are the recommended defaults?


For test purposes, I created a new empty wiki using install.php, but I don't understand the result. The tables are created with character set 'binary' (except searchindex = 'utf8'), and the column's collation NULL. Could this be the default? 2003:C2:3F04:7000:1972:2771:5008:44D (talk) 17:06, 23 February 2022 (UTC)

I'm in the same boat, except I have nobody else to blame.
I got some help here but didn't get round to doing anything about it: Project:Support desk/Flow/2019/10#h-Database_engine_and_collation-2019-10-20T13:41:00.000Z.
Also here: Project:Support desk/Flow/2019/02#h-"Illegal_mix_of_collations"_error-2019-02-23T22:24:00.000Z. Jonathan3 (talk) 20:08, 23 February 2022 (UTC)
Generally yes - using binary collation with null charset is the default. Some people alternatively use utf8mb4 as the charset, and a unicode collation like utf8mb4_0900_as_cs (or a regional variant).
You might be able to use ALTER statements to change this without reimporting but you have to be careful none of the current data gets converted and im not sure how alter handles that. Whatever you do keep backups and have test pages that have accents and emoijis in the title to ensure they dont break. Bawolff (talk) 06:12, 24 February 2022 (UTC)
Luckily we do have a complete test wiki. I will have to perform some more tests. Meanwhile thanks for your answers! 2003:C2:3F04:7000:653A:4544:CCD8:41F4 (talk) 10:46, 24 February 2022 (UTC)
Difficult task. Here are some intermediate results.
First I tried ALTER TABLE to binary. Maybe this will work with the Mediawiki application, but there is one reason why I did not continue to explore. Binary means we will not be able to read the contents of text columns in the MySQL shell. Example:
mysql> alter table category convert to character set binary;
mysql> select * from category limit 1;
+--------+----------------------+-----------+-------------+-----------+
| 151434 | 0x4C697374656E       |       599 |           3 |         0 |
+--------+----------------------+-----------+-------------+-----------+
1 row in set (0,00 sec)
The result is not practical for me, so I stopped here.
Next idea was ALTER TABLE to utfmb4. This might work with Mediawiki, - I don't know -, but once more it did not solve my original problem within MySQL shell. Any special characters e.g. german umlauts appear to be cryptic glyphs in the shell, before ALTER TABLE as well as after.
mysql> alter table category convert to character set utf8mb4;
mysql> select * from category where cat_id=151642;
+--------+-----------+-----------+-------------+-----------+
| 151642 | Städte   |      2505 |           0 |         0 |
+--------+-----------+-----------+-------------+-----------+
1 row in set (0,00 sec)
mysql> select * from category where cat_title='Städte';
Empty set (0,00 sec)
mysql> select * from category where cat_title like 'St%dte';
+--------+-----------+-----------+-------------+-----------+
| 151642 | Städte   |      2505 |           0 |         0 |
+--------+-----------+-----------+-------------+-----------+
1 row in set (0,00 sec)
To solve the special characters issue, it seems to be necessary to first convert to binary and then in a second step to utf8mb4.
mysql> alter table category convert to character set binary;
mysql> alter table category convert to character set utf8mb4;
This is only half of the jackpot. The conversion to binary changes the columns' data types to varbinary, so the second ALTER just sets the table's defaults. It is necessary to restore the columns:
mysql> alter table category modify cat_title varchar(255) character set utf8mb4 unique not null default 'NULL';
Now everything is fine within the MySQL shell:
mysql> select * from category where cat_title='Städte';
+--------+-----------+-----------+-------------+-----------+
| 151642 | Städte    |      2505 |           0 |         0 |
+--------+-----------+-----------+-------------+-----------+
1 row in set (0,00 sec)
The double conversion is not my invention, I found it on the web:
//nicj.net/mysql-converting-an-incorrect-latin1-column-to-utf8/
Other users seem to have the same problem. It is a "devil of a job" to manually convert each single table and column, especially because we'll have to restore any single column attribute which is very error-prone. Therefore the script this guy developed might be useful (//github.com/nicjansma/mysql-convert-latin1-to-utf8).
Currently I am running some tests with this script. Still having issues. There are a few duplicate keys, which I need to eliminate before doing the conversion, not a big issue. Some of the columns seem to be left unchanged for whatever reason. The drama is going on ... 2003:C2:3F04:7000:BD3F:81F4:1009:92AD (talk) 09:03, 4 March 2022 (UTC)
Thanks for reporting back! I'm reading with interest. Jonathan3 (talk) 19:17, 4 March 2022 (UTC)
Conversion of the test wiki succeeded! We have had some duplicate keys in the page and pagelinks table which I had to cleanup before I could finish the task. (Think of page names like "Cäsar" and "CÄSAR"). Another issue was the searchindex. My solution: Drop the table before running the conversion script, then after conversion I imported an empty searchindex table, modified charset/collation and recreated the index by rebuildtextindex.php
Now we are testing, testing, testing.
All tables, all columns with old character sets and collations have been changed. Great script. Now there is only one small thing left. Newer tables like e.g. actor use only binary types. (Though $wgDBTableOptions = ENGINE=InnoDB, DEFAULT CHARSET=utf8 ...!) I'm turning towards other things now and may get back to the binary columns another time. 2003:C2:3F04:7000:E9C9:486C:B6FB:98EA (talk) 14:59, 6 March 2022 (UTC)
One last hint for whoever may be interested in the results. The above-mentioned script changed the text table, old_text column from mediumtext latin1 to mediumtext utf8mb4 just as intended. This has one little disadvantage. The search/replace feature cannot handle REGEXP, then. The result will always be "Error 3995: Character set [...] cannot be used in conjunction with 'binary' in call to regexp_like"
Solution: ALTER TABLE `ppdb`.`text` MODIFY `old_text` mediumblob NOT NULL; 2003:C2:3F04:7000:20F1:2D93:3B5D:D6BD (talk) 09:43, 31 March 2022 (UTC)
And one more hint, if s.o. decides to follow the above-mentioned procedure, then you should take a look at Project:Support desk/Flow/2022/06#h-Special:Mostlinked_and_WantedPages_never_ending-2022-06-21T08:58:00.000Z 2003:C2:3F30:A000:55E0:6D6D:CE8:3CD5 (talk) 12:47, 4 August 2022 (UTC)
Should this information (preferred charset = binary / utf8mb4_0900_as_cs) be more visible on the MediaWiki installation page? Valerio Bozzolan (talk) 14:15, 15 March 2024 (UTC)
No. This is a very individual solution for our wiki, I cannot recommend it for general usage
e.g. we now did the upgrade to mediawiki 1.39 and the update.php script that we are forced to call (otherwise the installation is not complete) modifys lots of database columns back to varbinary. They shouldn't do that but they do.
See Project:Support desk/Flow/2024/03#h-update.php_1.39_removes_charset_of_several_columns-20240309150500 2003:C2:3F21:FD00:682B:745E:5DA7:60C2 (talk) 10:44, 20 April 2024 (UTC)

http 500 error due to setting user preferences - how to revert to defaults?

https://c34.org/wiki/


HELP! A user (ME!) changed some of the account user preferences -- one or more may be Appearance (skin, possibly date/time) and possibly in the Editing preferences.

The result is the http 500 error and the user (ME!!) can no longer sign on (this has been for 1+ years) so the user (ME!!) has been able to view only as a guest.


How can we revert all of a user's preferences (MINE!) back to DEFAULT so that it wipes out whatever/whichever changes are causing this server general error?


I guess alternately, can one user's Preferences be copied over to another's (I have a temp new account that is fine and if those preferences could be applied en mass over to the problem account that should (fingers crossed) fix the issue.


TY,

Ken K KWKloeber (talk) 23:39, 23 February 2022 (UTC)

thanks for the help KWKloeber (talk) 02:19, 24 February 2022 (UTC)
So first off, i would suggest enabling php error reporting and setting $wgShowExceptionDetails=true; (see How to debug) in order to better understand where the error is coming from.
You can use userOptions.php to change options for everyone. I don't think its possible to change for a specific user only outside of Special:preferences, the api or editing the db. Bawolff (talk) 06:02, 24 February 2022 (UTC)
Ok, thank you @Bawolff
Alternately, is there anyway to "combine" two accounts -- and then trash one of them?
The new account is fine, but of course doesn't have the data from of the old one, so if they could be combined...... KWKloeber (talk) 18:32, 24 February 2022 (UTC)

What can I edit?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


If this wiki is for the MediaWiki software, system and other stuff and things, then what should I edit if I am registered? Guard, please answer this question. Lobber11232 (talk) 01:06, 24 February 2022 (UTC)

@Lobber11232: You can edit pretty much all of the wiki, and should feel free to help improve documentation about whatever part of the MediaWiki ecosystem that you know best. What are you interested in? Sam Wilson 03:32, 24 February 2022 (UTC)
(Oops, I didn't realise that this user is not here in good faith. Oh well.) Sam Wilson 03:35, 24 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, myself CX Zoom, I just found out that on clicking the link to English language from bn:উইকিপিডিয়া:আলোচনাসভা & hi:विकिपीडिया:चौपाल, I am taken to en:Ministry of Foreign Affairs of Ukraine. However, on clicking the English language link from sa:विकिपीडिया:विचारसभा, I am taken to the correct destination, i.e., en:Wikipedia:Village Pump. Despite all of them being connected together in the same Wikidata item. Can someone explain what's happening here, or is it happening just for me? (Did I ask at the right place?) —‍CX Zoom (A/अ/অ) (let's talk|contribs) 07:19, 24 February 2022 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how do I turn off banner ads?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'm running 1.38.0-wmf.23 (5306f97). My question is reg. Wikipedia and related sites. I've asked at WP-en, and no-one was able to offer much help. It didn't use to be so bad, but in the last few months the wiki project has been flooded with ads that I'm sure are all terribly, terribly important, but I'm not interested. I've opted out of all banner ads in my user prefs, yet I still see the same ads hundreds of times. Some articles have so many ads that I have to scroll down a couple pages before I get to the text. Makes navigating a pain. Doesn't matter how many times I dismiss them, they (or at least some of them) keep popping back up. The latest noticeable one (because it's a vibrant green and because trying to click on the 'dismiss' button as often as not takes me to the link instead) is the Ukrainian banner. Yeah, it sucks what's happening in Ukraine, but really, once is enough.

So, how do I turn all this crap off? Kwamikagami (talk) 09:44, 24 February 2022 (UTC)

try putting the following in meta:Special:mypage/global.css:
#centralNotice { display:none !important}
p.s. you can complain about central notice campaigns at meta:Talk:CentralNotice/Calendar. The ukrainian thing is unrelated to current events,just a bit of a coincidence. Bawolff (talk) 06:49, 25 February 2022 (UTC)
Thanks, Bawolff. That appears to have take care of most of the problem. I'm still getting local banner ads for Covid, welcome messages and the like, but so far at least it none have popped back up after I've dismissed them. Kwamikagami (talk) 07:14, 25 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Use a new skin

Hi all, I wish to use a new skin Skin:Citizen on test.wikipedia.org. I read the installation instructions but it's not clear to me about how to actually install it. Thus, I'm unable to use it over there. Can someone help? —‍CX Zoom (A/अ/অ) (let's talk|contribs) 11:26, 24 February 2022 (UTC)

We will not install random pieces of software on test.wikipedia.org for no particular reason, I'm afraid... Malyacko (talk) 20:22, 24 February 2022 (UTC)
Does it have to be installed on the server or something? Is it not something I can do just for myself? —‍CX Zoom (A/अ/অ) (let's talk|contribs) 20:47, 24 February 2022 (UTC)
You can't do it yourself on test.wikipedia.org. You could create your own mediawiki wiki where you can install other software. Bawolff (talk) 06:38, 25 February 2022 (UTC)
On test.wikipedia.org/wiki/Special:Version under "Installed skins", you can see which skins are installed an can be used/tried there.
Installing a Skin can not be done by a normal user.
You could install a mediawiki yourself and then install the Skin:Citizen, see Manual:Installation_guide. Maybe a docker image would be the easiest. There might also be mediawiki hosters/farms that let you install and test arbitrary skins. Na-oma (talk) 09:00, 25 February 2022 (UTC)

Extension:Auth remoteuser

we have made changes as per the document. We are facing issue that application is not getting redirected to MS-Login page and giving error based on the error configured in authentication settings of Azure Web App. 2409:4071:D9F:D0CC:AD9F:842C:952C:7016 (talk) 15:00, 24 February 2022 (UTC)

Please see "Post a new question" in the sidebar. Also, what "document"? Malyacko (talk) 20:21, 24 February 2022 (UTC)

Weird error from ContactPage extension

I feel quite sure I haven't changed anything in my tiny personal MediaWiki, but if I try to use my ContactPage extension now, and include an email address for the contact, I get this error on the Contact page:

Error from Contact Page

If I try the Contact Page with NO email address, then it properly forwards a copy to my personal email (as MW site admin), like always. It's only if an email address / any email address is added, that it gives this error. And doesn't forward anything.

Of course, a Contact page is pretty useless if contactees can't tell you their email address.

I only have the standard / default ContactPage extension settings in my LocalSettings.php. It was working a few weeks ago, but now that I tested it again, it doesn't. Real frustrating... I swear I don't want a Ph.D. in MW troubleshooting... I just want to post content on my wiki! Sigh.

Any ideas?

Edit: Thanks Malyacko; I have:

  • MediaWiki 1.35.1
  • PHP 7.3.33 (cgi-fcgi)
  • MySQL 5.7.32-35-log

Here's my site's contact page. RedKnight7 (talk) 15:16, 24 February 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 20:21, 24 February 2022 (UTC)
Are you on linux? Which MTA (e.g. postfix, sendmail, qmail, etc) is installed? Can you verify it works using commandline tools like "mail"?
Alternatively try switching to SMTP instead. Bawolff (talk) 06:37, 25 February 2022 (UTC)
Hi, my host provider SiteGround maybe is? ... to make a long story short, I found the solution with the help of someone better at MW than I. He also wrote something up specifically for this issue and ContactPage. See this recent post.
Thanks so much for trying to help, but I doubt anyone here could've figured it out without interactively pounding away at it. Going in ping pongs in the Support forum with everybody pitching in 5 things for me to read or try would've probably only resulted in me really screwing up my MW install far past the simple core problem, sigh. RedKnight7 (talk) 20:46, 5 March 2022 (UTC)
Check the last post of www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2016/05#h-Enabling_email%3A_Unknown_error_in_PHP%27s_mail%28%29_function-Database_error-2016-05-21T09%3A36%3A00.000Z
$wgEmergencyContact (and possibly $wgPasswordSender) have to be set. I do not know if they have to be working email accounts, but it would not hurt. Na-oma (talk) 09:03, 25 February 2022 (UTC)

VisualEditor conflicts with templates ("Error contacting the Parsoid/RESTBase server (HTTP 500)")

Hello friends! After installing the latest version of MediaWiki (1.37.1) I can't get VisualEditor (VE) to work with templates. VE works great without templates. Also, VE allows you to initially insert a template into an article. But if you try to edit an article with the help of VE, in which the template has already been inserted, then when you start editing, the error "Error contacting the Parsoid/RESTBase server (HTTP 500)" occurs. At the same time, the standard wiki markup editor works correctly with templates in articles. And one more observation - if you remove the template from the article using the standard editor, then VE will edit this article normally again.

In other words, the presence of {{}} in the code of a wiki article causes VE to crash.

If anyone has come across a similar issue and managed to solve the problem, please share the solutions!

Thank you in advance! 171.33.249.12 (talk) 03:27, 25 February 2022 (UTC)

I had the same issue on 1.35.8 with php 8.1 and fixed it by switching to php 7.4.
I found the hint for the solution here: phabricator.wikimedia.org/T270377 77.109.186.169 (talk) 22:29, 25 November 2022 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, sorry for the bother in advance. Mine is not a support request but a simple question, as I can't seem to find the right key words to find any information about it on the wiki.


I have a simple table with a collapsed nested table inside it. When you expand the nested table all elements on the same row get expanded too. Is there a way to make all elements under the collapsed table "not print on the page"?

What I'm looking for is basically an usual dropdown menu with the ability to scroll between all elements.

<div style="display:inline-table;">
<div style="width: 15em; height:15em; overflow:auto;">
{| class="wikitable" style="width: 100%; background:white"
|Data 1
|Data 2
|
{| class="mw-collapsible mw-collapsed"
|+'''List'''
|-
| Element
|-
| Element
|-
| Element
|-
| Element
|-
| Element
|}
|-
| colspan="3" |Text
|}</div></div>
Fishettone (talk) 13:18, 25 February 2022 (UTC)
You'll have to set position:absolute css styles. Ciencia Al Poder (talk) 13:29, 25 February 2022 (UTC)
Yes, thanks a lot for the help, position:absolute did the trick perfectly. Fishettone (talk) 14:31, 25 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Intermittent DB-Errors: DBTransactionStateError after "Error 5 database is locked"

I inherited a Wiki which throws DBTransactionStateError (induced by "Error 5 from SqlBagOStuff::updateTable, database is locked REPLACE INTO objectcache") on ~1% of all requests, from index.php or load.php.

Hosting: Shared 1&1/Ionos

OS: Debian GNU/Linux 10 (buster) Linux infong-fr69 4.4.299-icpu-082 #2 SMP Tue Jan 11 15:46:04 UTC 2022 x86_64 GNU/Linux

PHP: PHP 7.4.25

DB: SQLite (3.27.2) (WAL mode, but errors appeared w/o WAL too)

Version: 1.35.5 (errors appeared before, upgraded some days ago from 1.35.0, the wiki exists since more than 11 years and has been upgraded ever since)

Load: 15 users, maybe 5 active in a day, very low load.

From https://phabricator.wikimedia.org/T89180 I gathered, that this is because of some incompatibilities with SQLite when all tables are in a single SQLite file.

I know that I can probably fix this by splitting my SQLite DB file into 4 files: $db, wikicache, l10n_cache, jobque and adding the appropriate settings in LocalSettings.php, like it is done in the current SqliteInstaller.php.


But I have additional questions:

My Deployment:

  1. Is it fine to run SQLite with these changes or should I completely disable caching?
  2. Can I just create the new DB files and change LocalSettings.php, or do I have to do any additional steps?
  3. Do I have to remove the obsolete tables from the main DB file?
  4. Do I have to disable WAL again for the main DB?
  5. When creating a backup, do I still only have to backup the main db file, or the jobqueue too?
  6. I will leave $wgMainCacheType disabled, but should I switch localizationcache to files instead of SQLite DB? Manual:$wgLocalisationCacheConf says "'file' is significantly faster than storing data into the database (see discussion)"

Wikimedia Development:

  1. Why not use BEGIN IMMEDIATE / set the trxMode for offending transactions?
  2. Why not implement a retry logic on BUSY errors? Are you interested in Patches or is this just not worth the effort?
  3. It seems faulty generated CSS files with stacktraces in it still get delivered and cached on the client. Shouldn't resources that generated errors NOT get cached (either status 503 or set appropriate expire headers)? Na-oma (talk) 13:38, 25 February 2022 (UTC)
Short update: everything works, these are the steps I took:
  1. create the new DB files as per the 1.35.5 installer: wikicache, $dbname_l10n_cache, $dbname_jobqueue
  2. Run all remaining jobs (dunno if thats necessary)
  3. Change the LocalSettings.php as per the 1.35.5 installer.
  4. Cleared out any rows in the tables in the old db: objectcache l10n_cache, job (job should be empty anyway). This should not matter, but saves some space. Tables themselves are kept of course.
  5. Return the main $dbname to non-WAL-mode (DELETE). (Just for consistency with the installer. This is probably does not matter.)
Everything is as smooth as SQLite can be ;)
Lessons Learned: Always run a new install in a separate directory and copy over the data, never just replace files in an old install.
Open questions:
  1. Is it worth switching $wgLocalisationCacheConf to files?
  2. Does the job DB/Table have to be included in Backup?
  3. I am still wondering, why CSS files with exceptions are cached? Na-oma (talk) 20:49, 8 March 2022 (UTC)

Azure Postgres Questions

Does mediawiki support Azure PostgreSQL? Our DBA is able to create a schema, but with the same user, the application is unable to create a schema in Azure. SSL is enabled. Bthetfo (talk) 16:23, 25 February 2022 (UTC)

Should work. Bawolff (talk) 03:32, 26 February 2022 (UTC)
@Bthetfo See this Manual:PostgreSQL. I think it will work. ↠Tanbirzx () 08:15, 28 February 2022 (UTC)

I am locked out of my e-mail so I created a new e-mail account which I want to associate with my account here so I can log in to wiki

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I am locked out of my e-mail so I created a new e-mail account which I want to associate with my account here so I can log in to wiki 2600:1700:1D0:2130:7437:7B88:CEB8:3815 (talk) 21:36, 25 February 2022 (UTC)

You can't unless you are already logged in. Bawolff (talk) 21:49, 26 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Slo translation

Hi. I've been torturing Hungary for hours now.... How can I bypass saving, since translation is on adequate level already....? Kind regards @ModriDirkac ModriDirkac (talk) 13:37, 26 February 2022 (UTC)

Please see "Post a new question" in the sidebar and provide basic info what this is about and where. Malyacko (talk) 12:14, 27 February 2022 (UTC)
See Talk:Content translation/2022/02#h-SLO_translation-2022-02-25T22:47:00.000Z. You could try publishing into userspace and moving it from there. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 15:05, 28 February 2022 (UTC)
I figured it out. I went through all paragraphs and made it to 95% or less unmodified and then acknowledged each one as ok to the end and once again from end to begining. But it was excessive.work with no real benefit. ModriDirkac (talk) 17:54, 28 February 2022 (UTC)

I've just installed a new installation of MediaWiki, and one of the problems is that the sidebar is not updating.

That means, when using the documented link to get to the sidebar, I am able to make changes. Those do show in a browser when going to https://anthrazit.no/index.php/MediaWiki:Sidebar.

They do however not show when using this link https://anthrazit.no/index.php/MediaWiki:Sidebar/en, or any other language specific link.

So I assume that it does have something with language to do, but I don't know what.

The installation has $wgLanguageCode = "en";

Installed software

Product Version
MediaWiki 1.37.1
PHP 7.3.20 (litespeed)
MySQL 5.7.23
ICU 63.1

GordonBernstein (talk) 18:28, 26 February 2022 (UTC)

> They do however not show when using this link https://anthrazit.no/index.php/MediaWiki:Sidebar/en, or any other language specific link.
They aren't supposed to. It should show up in the actual sidebar though. Bawolff (talk) 21:48, 26 February 2022 (UTC)

I think that the picture of Christian Brando do not respect his right as a human being

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


There are more pictures of him as a personable human as described by all those who knew him. Do not believe the vultures who took him to the court hoping to make money from his father via him. Please Do Not zero him from a human to a mugshot.

He was not a serial killer he made a mistake and paid his dues and died early because it was too much for him . There is no need to zero his humanity into a mugshot. He was a son of a legend . His father did many things to the human rights. and the simplest thing for Christian is to be treated as a human and add a real picture of this guy instead a mugshot of him while he was suffering.

I hope that his dark skin and oriental features has nothing to do with turning him into a criminal instead of a human being.

Please change the picture because he was loved by so many people and he was so kind to the poor and orphans. Dr. Osaqeel (talk) 00:08, 27 February 2022 (UTC)

@Dr. Osaqeel Welcome to the support desk for the MediaWiki software itself. If you refer to some content on some unmentioned website, then please refer to that website. Please also see "Post a new question" in the sidebar. Thanks. Malyacko (talk) 12:13, 27 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Force update #time function

Hello, is there any update rate for the refresh of the {{#time: U}} function? I have a problem on Silesian Wikipedia with the use of time-depending template call, see:https://szl.wikipedia.org/w/index.php?title=U%C5%BCywacz:Krol111/brudnopis&diff=343602&oldid=343267

The template call should change a picture today, but still shows the old one. Do you know when will the picture change or maybe you know any better solution for my problem? Deleting cache or doing any edit on the article probably solves problem, but I want this to work for everyone without extra actions. Thank you in advance! Krol111 (talk) 23:01, 28 February 2022 (UTC)

The older time functions like {{CURRENTHOUR}} refresh faster, you could try using them.
Otherwise you have to use ?action=purge in the url. Bawolff (talk) 05:15, 1 March 2022 (UTC)
Thank you for the answer! Unfortunally {{CURRENTWEEK}} etc will destroy the continuity of the increasing number on new year. But maybe I can manage it with CURRENTYEAR to repair the continuity on new year.
Is there any info about the estimate refresh times of {{#time: U}} and {{CURRENTWEEK}}? Is this device depending, is there any maximum time? Krol111 (talk) 11:37, 1 March 2022 (UTC)
Currenthour will change the refresh rate if it is anywhere on the page, it doesn't have to be used for the template. Currenthour has a higher refresh rate then currentweek.
Its mostly not device dependent (there is a complex caveat to that). Parser limit report will have info about expire times. Bawolff (talk) 15:52, 1 March 2022 (UTC)