This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made.
bug with obsolete translations in the title of pages
Latest comment: 1 year ago3 comments2 people in discussion
When a "translate" section is obsolete, it appears in black with a pink background.
On this page and I suspect on many similar pages in French and other languages, there is, according to the line above the list of languages, an obsolete section. But no section with pink background is visible.
In fact there is truly an obsolete translation: the title "Mise en cache des liens" (click on "version traduite" at the top of the page to see it).
Latest comment: 1 year ago5 comments2 people in discussion
When updating MW from 1.37 to 1.38 or 1.39 it gives this error "This version of the HeaderFooter extension requires MediaWiki 1.25+". Anyone had the same issue before? How can this be solved? Irdiism (talk) 17:59, 2 December 2024 (UTC)
What creates that output, after which exact steps performed? How did you "manually download" the extension and which exact branch? Please don't paraphrase but provide exact commands to avoid ambiguity. Malyacko (talk) 10:49, 4 December 2024 (UTC)
Fixing argument to template
Latest comment: 1 year ago2 comments2 people in discussion
Say a template {{A}} accepts n named parameters, i, j, k, ..., and {{B}} is another template which invokes {{A}}, but fixes i=foo and passes all other parameters on.
Is there a way to create {{B}} without manually specifying all the named parameters of {{A}} in B's source code?
I think one technique I've seen to accomplish this is creating a dedicated module to parse the arguments, which I would be interested in learning, but I am also interested if there is a simpler approach. Tule-hog (talk) 22:39, 2 December 2024 (UTC)
Scribunto modules is the only option that doesn't involve manually specifying all parameters in B's source code. Bawolff (talk) 20:24, 6 December 2024 (UTC)
extra text on a French page
Latest comment: 1 year ago8 comments3 people in discussion
RESOLVED
Issue resolved
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.
When a section heading is translated, the Translate extension automatically adds a <span> tag immediately before the section, with its ID corresponding to the untranslated version of the section heading.
Normally, this <span> tag is invisible, but due to a bug, it becomes visible if the section heading contains <code> or other tags. Shirayuki (talk) 13:06, 6 December 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Licenses
Latest comment: 1 year ago5 comments2 people in discussion
Hello guys,
I don't really know how to insert licenses or author information into a Mediawiki project so that they are recognized and displayed by the Mediaviewer. To give an example for my problem: If you look at an image in Wikipdia (or Mediawiki) in the media viewer, you can scroll down and see the author information and license information. Unfortunately, this is not the case in my Mediawiki project, I would be very happy to receive an answer! Agatnor (talk) 15:21, 3 December 2024 (UTC)
All this is done with custom templates, placed on the wikitext filedescription, which are then being scraped by and extension.
The results of that extension then provided additional information in the image info API, which is read by MultimediaViewer. This is all VERY cumbersome because it was not an intentional design. —TheDJ (Not WMF) (talk • contribs) 15:32, 3 December 2024 (UTC)
Thanks for the quick reply!
Is there any other “easier” way to display such things better? I just want to have some kind of legally stable way to display data like author and license type. Agatnor (talk) 12:26, 4 December 2024 (UTC)
Too bad. Can I change the link from “View license” so that the link leads to the page of the file? In my case, the link leads to “File:FileName.png?uselang=de” and not to the actually existing page “File:FileName.png”. Agatnor (talk) 12:37, 6 December 2024 (UTC)
CSS of Infobox
Latest comment: 1 year ago3 comments3 people in discussion
Currently the width of Infobox templates is defined in Template:Infobox/styles.css by "width: 280px;" (line 8).
I'm not sure it works as you want:
on this page, the real width is 324px (on Edge, Firefox and Chrome)
If you want a true width of 280px, you have to add the css:
min-width:280px;
max-width:280px;
But I'm not sure this value is the good one : if you look at the French page (with the second link above), you will see that the template looks very narrow and, because of this, very high.
I will suggest to use the value 320px for the 3 css (because the result for the English page seems the best if you compare the width and the height of the template). Mahabarata73 (talk) 18:15, 3 December 2024 (UTC)
We know this doesn't work. As inboxes are tables, a width will be treated as a min-width with the actual width depending on the contents. These are templates that were created in the course of the last 25 years, and as such they have some legacy that is not exactly as you would now write them from scratch. —TheDJ (Not WMF) (talk • contribs) 20:51, 3 December 2024 (UTC)
Templates where a paramater is followed with a break only if it's used
Latest comment: 1 year ago3 comments2 people in discussion
Greetings!
I"m working on some templates for my media wiki. I did sort out that I need to follow the parameter with a pipe to have it default to being blank, and that's worked out.
But, I have a set of parameters that are grouped into twos. Basically, each is an image, and an image caption. To make it work nice, I need to include a break between the image and the caption. I have six pairs of these in the template.
However, the way I've currently implemented it, I end up with six page brakes (and therefore extra white space) even if none of the parameters have been passed. What might be the best way to only conditionally add the breaks if the image parameter is non-blank?
Something along these lines, maybe (not tested). It checks whether each image parameter exists before printing anything. The HTML comments keep the wikitext neatly on separate lines but sometimes help to make sure extra line breaks don't creep into the output.
Latest comment: 1 year ago2 comments2 people in discussion
i followed the instruction on how to run two wikis on the same server using the one web server setup and it went well. my problem is with the LocalSettings.php since i do not understand php. the script is not able to select the right LocalSetting.php to run the wiki and i always get unknown wiki.
the server is with locally private address hosted. two separate LocalSettings_ar.php and LocalSettings_en.php for each wiki :
<?php
$wikis = [
'earlyintervention.om' => 'ar_ewiki',
'en.earlyintervention.om' => 'en_wiki',
];
if ( defined( 'MW_DB' ) ) {
// Automatically set from --wiki option to maintenance scripts
$wikiID = MW_DB;
} else {
// Use MW_DB environment variable or map the domain name
If its still not working, you could try changing the die( 'Unknown wiki.' ); line to die( 'Unknown wiki. Wiki name is ' . htmlspecialchars( WebRequest::detectServer() ) ); This should at least let you know what mediawiki thinks the server name is, in case it does not match anything on your list in $wikis. Bawolff (talk) 20:20, 6 December 2024 (UTC)
Edit Template
Latest comment: 1 year ago1 comment1 person in discussion
Hi,
While editing template data and click show preview button then previous changes and you changes are showing correctly but it is changing the page text order.
Latest comment: 1 year ago3 comments2 people in discussion
This catedory starts with a text telling users that there are currently 103 skins.
This category is visible in many languages, and this text too.
But if you look at any translated page, you will see the list of skins is very far of this number : 38 for Deutsch, 27 for French, 25 for Spanish for example.
The main reason is that most skins cannot be translated : Skin:Aberrant, Skin:Amethyst to give only 2 examples.
It would be nice if a translation administrator would control all skins in the English category and allow translations with, at least, the title of the skin to be translated as a beginning. Mahabarata73 (talk) 13:09, 4 December 2024 (UTC)
Latest comment: 1 year ago3 comments3 people in discussion
As the title suggests I am currently having issues with my local mediaWiki site. Whenever I edit a page all categories on said page are changed ultimately breaking their links. It is pretty consistent on the categories break, as they change from
I think i've heard of this happening before with visual editor, but i don't remember what the solution was. I think it was something to do with $wgServer, $wgArticlePath or $wgScriptPath.
Yes, you can set $wgUsePathInfo= true; in the LocalSettings.php, however if you do this and you have non UTF-8 characters in the URL it will no longer work. So for example in a swedish wiki the "Settings" page is called "Inställningar" and no longer works. Kantarell90 (talk) 10:35, 9 December 2024 (UTC)
This Flow page will be moved, soon
Latest comment: 1 year ago1 comment1 person in discussion
Hi all. As mentioned in Tech News, starting on December 16, Flow/Structured Discussions pages will be automatically archived and set to read-only on this wiki.
As one of the busiest pages on this wiki using Flow, I plan to move this page earlier than that. I will likely do so on Thursday or Friday this week, or early next week, depending on developer availability (in case anything doesn't go smoothly).
Once moved, this page will become a standard discussion page (using the newer DiscussionTools system instead), but existing Flow-threads will remain active/editable until the 16th. I will also copy across the existing headers from the Flow page to the new page.
Latest comment: 1 year ago2 comments2 people in discussion
When uploading an image, I mistakenly uploaded the wrong file. I then corrected it by uploading the correct file, but everywhere except the image page itself still shows it as the original, wrong file. How to fix? TFAltHist (talk) 05:32, 5 December 2024 (UTC)
Have you tried bypassing your browser cache ? Images are generally cached pretty aggressively and so when it changes it can take a while before this is reflected. —TheDJ (Not WMF) (talk • contribs) 13:59, 5 December 2024 (UTC)
Adjusting Anchor Link Scrolling in MediaWiki
Latest comment: 1 year ago2 comments2 people in discussion
Hi!
I am working on customizing our MediaWiki installation. We are using the Medik skin and have encountered an issue: when an anchor link is clicked, it does not position itself correctly on the page.
I would like to know the best way to resolve this issue and implement smooth and precise scrolling behavior.
Is there a way to implement this functionality globally?
Any guidance, including code examples or documentation references, would be greatly appreciated.
Generally this happens because the page hides or adds all kinds of elements with Javascript, that are not in the original serverside generated html. This is called layout shift. I'm not familiar with Medik, so I cannot say if it's developer has taken this into account or not. —TheDJ (Not WMF) (talk • contribs) 13:57, 5 December 2024 (UTC)
Installing MediaWiki 1.42.3
Latest comment: 1 year ago4 comments3 people in discussion
According to your post, you selected "MariaDB, MySQL, or compatible" and not "postgres". You have to select postgres on the database setup screen in order to use postgres.
If that doesn't appear as an option, it probably means that your version of php has not been compiled with support for postgres. Bawolff (talk) 19:52, 6 December 2024 (UTC)
Problem with RSS feed
Latest comment: 1 year ago6 comments5 people in discussion
Comic 3015: D&D Combinatorics is causing the RSS feed to fail because the ampersand is not correctly encoded in the <title> .
"error on line 47 at column 18: EntityRef: expecting ';'"
That feed is not appear to be produced by the MediaWiki software, so its not something we can help with. You should contact the explainxkcd people. Bawolff (talk) 19:50, 6 December 2024 (UTC)
Cannot execute query while transaction status is ERROR
Latest comment: 1 year ago7 comments3 people in discussion
Hello,
I've been hosting a MediaWiki instance for a friend of mine for a few years now. Recently, we've started getting database errors in various places: when trying to edit pages, view pages, view a page's history, etc.
The error message is always the same. Below is an example backtrace from when I try to view my user page's history:
These errors occur sporadically, and sometimes disappear after trying again a few times.
I noticed the following lines in the debug data panel:
[rdbms] Wikimedia\Rdbms\LoadBalancer::reuseOrOpenConnectionForNewRef: reusing connection for 0/mediawiki
[rdbms] SqlBagOStuff::modifyTableSpecificBlobsForSet [0.389ms] localhost: REPLACE INTO "objectcache" (keyname,value,exptime) VALUES ('mediawiki:messages:en',x'158cb10a83401005ff65bf606f5d6fe3bbca42d0268a4230e5e5b8056bcb907f8f7633304c4683ef0903bd86759be627a503924e2868ecb7912e6c04e4b1a89bb439b27dbc3e3c73712edcd6aaaec6771741c3be4cebfb96700d844583b00516d38ed2ef0f','99991231235959')
[rdbms] Error 5 from SqlBagOStuff::modifyTableSpecificBlobsForSet, database is locked REPLACE INTO "objectcache" (keyname,value,exptime) VALUES ('mediawiki:messages:en',x'158cb10a83401005ff65bf606f5d6fe3bbca42d0268a4230e5e5b8056bcb907f8f7633304c4683ef0903bd86759be627a503924e2868ecb7912e6c04e4b1a89bb439b27dbc3e3c73712edcd6aaaec6771741c3be4cebfb96700d844583b00516d38ed2ef0f','99991231235959') localhost
[SQLBagOStuff] DBError: Error 5: database is locked
Function: SqlBagOStuff::modifyTableSpecificBlobsForSet
Query: REPLACE INTO "objectcache" (keyname,value,exptime) VALUES ('mediawiki:messages:en',x'158cb10a83401005ff65bf606f5d6fe3bbca42d0268a4230e5e5b8056bcb907f8f7633304c4683ef0903bd86759be627a503924e2868ecb7912e6c04e4b1a89bb439b27dbc3e3c73712edcd6aaaec6771741c3be4cebfb96700d844583b00516d38ed2ef0f','99991231235959')
[SQLBagOStuff] SqlBagOStuff::handleDBError: ignoring query error
I'm running MediaWiki 1.42.3 with PHP 8.3.14 (fpm-fcgi). Due to the site running on a (well, relatively) underperforming single-board computer, I'm using SQLite for the database. The wiki can be accessed at https://wf203.net/.
My theory is that multiple PHP-FPM processes (from other visitors and crawlers) are trying to modify the database at the same time (this would also explain the sporadic occurrences of the errors).
If this really is the case, are these errors a bug in MediaWiki or expected behavior? And, in case of the latter, is there a way to work around them without having to switch to MySQL(/PostgreSQL)?
If not, what could be causing this?
I've already tried running the update.php maintenance script just in case, but didn't get any errors or new migrations, so the database itself seems to be fine.
Kind of both. The sqlite backend is not well tested in multithread environments, and the concurrency model of sqlite is a bit different than mysql. So its mediawiki's fault, but also not totally unexpected. Bawolff (talk) 19:24, 6 December 2024 (UTC)
That said, this description also sounds like there might be a misconfiguration. Normally in sqlite in mediawiki there are separate dbs for objectcache and normal stuff, in your error message that appears not the be the case, so something may be misconfigured.
What is the contents of your LocalSettings.php (minus any passwords/keys). In particular, what is the config of $wgLocalisationCacheConf and $wgObjectCaches ? Bawolff (talk) 19:33, 6 December 2024 (UTC)
Neither $wgLocalisationCacheConf nor $wgObjectCaches are defined in LocalSettings.php (I don't remember configuring them either), but the getConfiguration script returns:
This also requires you to create separate databases wikicache.sqlite, mediawiki_l10n_cache.sqlite, mediawiki_jobqueue.sqlite in your sqlite data directory.
you can use the sqlite3 command line tool to do this.
the mediawiki_l10n_cache.sqlite database should have the following schema:
CREATE TABLE l10n_cache (
lc_lang BLOB NOT NULL,
lc_key TEXT NOT NULL,
lc_value BLOB NOT NULL,
PRIMARY KEY (lc_lang, lc_key)
);
PRAGMA journal_mode=WAL;
The mediawiki_jobqueue.sqlite database should have the following schema:
CREATE TABLE job (
job_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
job_cmd BLOB NOT NULL default '',
job_namespace INTEGER NOT NULL,
job_title TEXT NOT NULL,
job_timestamp BLOB NULL default NULL,
job_params BLOB NOT NULL,
job_random integer NOT NULL default 0,
job_attempts integer NOT NULL default 0,
job_token BLOB NOT NULL default '',
job_token_timestamp BLOB NULL default NULL,
job_sha1 BLOB NOT NULL default ''
);
CREATE INDEX job_sha1 ON job (job_sha1);
CREATE INDEX job_cmd_token ON job (job_cmd,job_token,job_random);
CREATE INDEX job_cmd_token_id ON job (job_cmd,job_token,job_id);
CREATE INDEX job_cmd ON job (job_cmd, job_namespace, job_title, job_params);
CREATE INDEX job_timestamp ON job (job_timestamp);
PRAGMA journal_mode=WAL;
The wikicache.sqlite db should have the schema
CREATE TABLE IF NOT EXISTS "objectcache" (
keyname BLOB NOT NULL default '' PRIMARY KEY,
value BLOB,
exptime BLOB NOT NULL
);
CREATE INDEX "exptime" ON "objectcache" (exptime);
PRAGMA journal_mode=WAL;
Also, you should verify that your main database uses the WAL journal mode. If you're not sure, you can use the sqlite3 command to convert it, by opening it with sqlite3 and running PRAGMA journal_mode=WAL;.
Seems like that did the trick! I poked around the wiki for a few minutes but haven't encountered a single error. Thank you! Twolnszq (talk) 07:01, 7 December 2024 (UTC)
Lua Error: Status 127
Latest comment: 1 year ago6 comments2 people in discussion
I've been trying for days to track down a problem with my installation of MediaWiki 1.41.1, which I spent some time rescuing from a spam attack a while back. My NavBoxes aren't working, being replaced with "Lua error: Internal error: The interpreter exited with status 127." My understanding is that 127 is a "file not found" error, but I can't figure out what file it can't find. I'm not certain that it's related to NavBox specifically; I get the impression that it's a more general Lua issue, since I'm seeing the error in a nearly all my Templates and Modules.
Is there a way I can determine what file Lua is looking for? I've got $wgShowDebug set to true but I'm not seeing anything obvious in the logs... though I don't know for sure what exactly I'm looking for. TobyRush (talk) 20:41, 6 December 2024 (UTC)
Okay, I can confirm that it's nothing to do with the Navbox: if I enter a simple command (like =p.Hello .. ', World!')into the Debug Console on any page, I get the status 127 error. My webserver does not allow executables outside of /usr/bin, so I have the following in my LocalSettings.php:
Also, for each error it throws on the page (for example, a page where I have several NavBoxes), it includes this line in the log. Not sure if that's something normal or if it hints at anything:
Error 127 generally means that $wgScribuntoEngineConf['luastandalone']['luaPath'] is set incorrectly,or you are otherwise missing some files in the scribunto extension. Bawolff (talk) 17:47, 7 December 2024 (UTC)
> My webserver does not allow executables outside of /usr/bin, so I have the following in my LocalSettings.php:
Thanks. Yes, I had actually moved the lua binary to that path.
It looks like I wasn't doing anything incorrectly; I finally determined that my web hosting service was indeed locking things down and would not let me run lua scripts (even though they had done so in the past).
This was the last in a long line of issues I had with that webhost, so I've moved to a different web host and copied everything over there. At first I was having the same problem, but I ended up removing the $wgScribuntoEngineConf line altogether (so I just load the extension an set the default engine to 'luastandalone' and things seem to be working now.
I'm pretty sure I had tried that at my old host, but regardless, things are working now on my new server using the lua binaries built in to the scribunto extension. TobyRush (talk) 23:30, 21 December 2024 (UTC)
link to a disambiguation page
Latest comment: 1 year ago6 comments4 people in discussion
On this page, in the last sentence of the first section, there is a link to "the witkitext editor" which arrives on a page with 20 different editors. Which one is the good one ? Could someone improve the link ? Mahabarata73 (talk) 21:40, 7 December 2024 (UTC)
The sentence on Help:Edit Recovery is: "This feature is for the wikitext editor, not VisualEditor, and does not require WikiEditor to be enabled."
The disambiguation page linked to from the word "editor" lists a whole load of editors, including VisualEditor and WikiEditor...
Presumably the words "wikitext editor" could be replaced with text from the first item on the disambiguation list: "the default MediaWiki editor (2003 wikitext editor)".
Latest comment: 1 year ago2 comments2 people in discussion
Traduzi uma página sobre um single musical e estou tendo problemas para enviar pois o sistema alega que há gírias e linguajar "tecnológico", suponho que isso atrapalhe no processo de distribuição de informação, uma vez que desconsidere o palavreado digital como correto, se alguém poder me ajudar ficarei grato. Mateus Cooper Lisboa (talk) 02:08, 8 December 2024 (UTC)
Latest comment: 1 year ago3 comments2 people in 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.
This special page can be seen in different languages but is not translatable: we have to change the language at the top of the page to see it in the desired language.
If you do this and choose french (français), you will find, for "(ipblock-exempt)", the french text "Exemptés de blocage IP".
This translation is very bad: "exemptés" means "people who have this right" when this group name should mean "people who can give this right".
So the good french text of this group should be "Exempteurs de blocage d'IP" ("Exemptés" need to be changed to "Exempteurs" and "IP" need to be changed to "d'IP").
I didn't find how to change this big issue (big because the exact opposite of what it should be) so if someone knows and may fix this, it will be highly appreciated.
1) Such messages are defined at translatewiki.net, in this case at translatewiki:MediaWiki:Group-ipblock-exempt/fr. You can create an account there and fix it yourself. 2) I see no issues on my side as "Exemptés de blocage IP" translates to "exempt from IP blocking" which is the name of the exact user right. But machine translation can often be unreliable, so manual checking by native users may be needed, as in the case here. ToadetteEdit (talk) 16:04, 8 December 2024 (UTC)
My mistake, sorry : I confused the old "ipblock-exempt" group and the new (and apparently empty on mediawiki) "ipblock-exempt-grantor” group.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
PHP Deprecated: (Extension name)'s extension.json or skin.json does not have manifest_version
Latest comment: 1 year ago5 comments2 people in discussion
RESOLVED
Added "manifest_version": 2
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've noticed this deprecation notice on some extensions of mine I've cobbled together over the years
Over half the extensions I have from mediawiki.org have <code>"manifest_version": 2</code> and the rest have <code>"manifest_version": 1</code>.
Cool. Done. In one of the extensions that caused (with ExtensionName replacing the actual name):
PHP Warning: array_key_exists() expects parameter 2 to be array, bool given in /var/www/html/includes/registration/ExtensionProcessor.php on line 830
PHP Fatal error: Uncaught UnexpectedValueException: Missing value for config ExtensionNameEnableFoo in /var/www/html/includes/registration/ExtensionProcessor.php:831 for a "config" value. It was just a leftover from whatever example template I'd based it on, so getting rid of it solved things.
For my own future reference, this is what caused the problem:
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
What do do after repairing job table?
Latest comment: 1 year ago5 comments3 people in discussion
My server ran out of space. I only realised this yesterday, but it meant I needed to repair the job table. Is there any way of re-doing things that failed in the past, but weren't in the job table (any more), i.e. making sure the wiki database is all up to date now? Jonathan3 (talk) 12:17, 9 December 2024 (UTC)
This is hard to say. Many of the tasks handled by jobs have maintenance scripts to refresh essentially all pages or specific pages for that type of change. But these are expensive operations, so doing them for an entire wiki without knowing where the discrepancy is, might not be wise. Additionally, some of the tasks handled by the job queue will also be handled eventually as people use the site again and cause triggers to refire. —TheDJ (Not WMF) (talk • contribs) 13:31, 9 December 2024 (UTC)
Most jobs don't really matter too much if they get dropped. RefreshLinks.php will probably do most the stuff. In rare cases rebuildRecentChanges maybe. Bawolff (talk) 00:21, 11 December 2024 (UTC)
JS hook in the wikicode editor (when the preview is refreshed)
Latest comment: 1 year ago3 comments3 people in discussion
I'd like some custom JS code to be executed when the preview panel in the wiki editor is refreshed. (I am using a custom JS library for mathematical typesetting, and I want it to be run on the preview so that the mathematical content is typeset.) Is there any way to achieve this?
but when I try it out and reload the Preview in the Wiki editor, the expected result does not happen (the math is not rendered) and instead I obtain an error in the JS console: Uncaught TypeError: e.childNodes is undefined. Any idea why this is happening? Sparushau (talk) 13:52, 27 January 2025 (UTC)
Instalation Error
Latest comment: 1 year ago5 comments3 people in discussion
Hello
I am trying to perform a installation of MediaWiki 1.42.3 on my server, and I am encountering the following error:
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 8
How are you doing the installation? Please give exact steps leading to the error. Also state from where you downloaded MediaWiki. – Ammarpad (talk) 13:30, 10 December 2024 (UTC)