Jump to content

Project:Support desk/Flow/2024/06

Add topic
From mediawiki.org
Latest comment: 1 year ago by Saxonwoodward in topic Question
This page is an archive.
Please ask questions on the current support desk.

PluggableAuth 7.1.0 alnog LDAPAuthentication2 on MediaWiki 1.41.1

Hi Everyone

as mention to Manual:Active Directory Integration#:~:text=LDAP Stack Extensions are targeted/qualified for MediaWiki LTS releases only , Does it possible to setup LDAP on MediaWiki 1.41.1 with PluggableAuth 7.1.0 alnog LDAPAuthentication2 ? or i have to downgrade it to version 1.39 (LTS) ? Mohammad Safe (talk) 11:48, 1 June 2024 (UTC)

Linking to Log

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.


Is there a way to wikilink to a specific log_id number? IAmChaos (talk) 01:30, 2 June 2024 (UTC)

Special:redirect/logid/1234 Bawolff (talk) 19:00, 2 June 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Where to find help with testers for Extension

I revamped Extension:Simple Breadcrumb, which became nonfunctional once I upgraded to MW 1.35 1.39. With my changes, it is working well and I'd like to share it with others. First, I think it would be good for somebody else to review the code and do their own testing before I unleash it on the world.

The updated extension code is at https://github.com/HandwovenBox/mediawiki_simple_breadcrumb/tree/master.

Is there a good place to request guinea pigs for my code? Lost Student (talk) 21:17, 2 June 2024 (UTC)

Addendum: I just noticed that somebody else had already linked to my code improvements from the Extension:Simple Breadcrumb page; does that mean that they did some testing as well? Lost Student (talk) 21:22, 2 June 2024 (UTC)

I need to delete a page

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.


the page about my son needs to be deleted. It is false information and is causing a lot of problems in the family 228coffee (talk) 22:31, 2 June 2024 (UTC)

Hi sorry, you're on the wrong place. Please see Project:About. Leaderboard (talk) 08:59, 3 June 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Irreversible error in editing templates

Hello everyone,

I am writing here to ask for support on editing a template previously uploaded to my wiki.

I manually entered the code, creating a new template. It saves successfully and I am able to use it on the other pages.

However, the problem starts to occur when I try to edit the template (for example: changing a link, or changing the color of the block border).

The message I get is as follows:[ec4a1a1c43c870ca8b4d5e53] 2024-06-03 10:33:24: Fatal error of type “Error”

How can I solve it?

Thank you very much Montydave (talk) 10:40, 3 June 2024 (UTC)

Set $wgShowExceptionDetails = true; in LocalSettings.php to get a more detailed error message. Ciencia Al Poder (talk) 13:56, 3 June 2024 (UTC)

Accidental Account Creation

I meant to create an account on an internal MediaWiki page, and thus used my first initial and last name. I'm aware that accounts on MediaWiki cannot be deleted, but could I be granted a "courtesy vanish", where my username is scrambled? Thanks. ToxicDragonfruit (talk) 20:30, 3 June 2024 (UTC)

Hello,
These types of requests must be requested on meta. Please follow instructions at https://meta.wikimedia.org/wiki/Right_to_vanish
You can also just request a rename if you just want the username to be different. Bawolff (talk) 20:43, 3 June 2024 (UTC)

PHP Fatal error:  Cannot declare class ParserOutput

Hello, I am getting this fatal error on my wiki:

Product Version
MediaWiki 1.40.0
PHP 8.3.7 (apache2handler)
ICU 70.1
MariaDB 10.11.8-MariaDB-ubu2204
Lua 5.1.5
Pygments 2.11.2

The complete apache log is the following:

PHP Fatal error:  Cannot declare class ParserOutput, because the name is already in use in var/www/html/mediawiki/includes/parser/ParserOutput.php on line 45, referer: [some page and some action]

This error is almost always logged but only sometimes actually breaks something, e.g. some API, the Change content model script, or some other action called while editing.

Any ideas? Loman87 (talk) 08:00, 4 June 2024 (UTC)

Did you recently update your install ? It sounds a bit like you took an install, copied new files of the new release, but did not remove files of the old release. As ParserOutput has moved directories, you would thus have two conflicting versions of it. —TheDJ (Not WMF) (talkcontribs) 08:12, 4 June 2024 (UTC)
no, I didn't update, I have a new installation installed via a control panel on a VPS. I have just one ParserOutput.php file in includes/parser folder, that correspond to the one I find on the rel-1.40.0. Loman87 (talk) 08:30, 4 June 2024 (UTC)
Does the error message have more than that? Please include full error message.
I agree with TheDj on most likely cause. Try installing using an official version. Bawolff (talk) 09:27, 4 June 2024 (UTC)
you are right, something was wrong in the hosting provider installation; I reinstall 1.41.3 and everything works fine.
Thanks vey much! Loman87 (talk) 14:49, 4 June 2024 (UTC)

Fatal error

Hi team,

I've installed mediawiki from the official download link (https://releases.wikimedia.org/mediawiki/1.41/mediawiki-1.41.1.tar.gz). Environment is PHP.8.2.19 and MySQL 8.2

All seems great until I try to switch language to French or Canadian French then comes a message

[ace29be1f11173093572d0ca] /index.php?title=Sp%C3%A9cial:Pr%C3%A9f%C3%A9rences&useskin=vector&wprov=vctw1 MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 C:\www\mediawiki\includes\parser\Parser.php(882): Parser->lock()

#1 C:\www\mediawiki\includes\parser\Parser.php(4821): Parser->preprocess('Votre page d\xE2\x80\x99...', Object(MediaWiki\Title\Title), Object(ParserOptions)) ....


Backtrace:

from C:\www\mediawiki\includes\parser\Parser.php(6309)

#0 C:\www\mediawiki\includes\parser\Parser.php(882): Parser->lock()

#1 C:\www\mediawiki\includes\parser\Parser.php(4821): Parser->preprocess(string, MediaWiki\Title\Title, ParserOptions)

#2 C:\www\mediawiki\includes\language\MessageCache.php(1442): Parser->transformMsg(string, ParserOptions, MediaWiki\Title\Title)

#3 C:\www\mediawiki\includes\language\Message.php(1464): MessageCache->transform(string, boolean, Language, MediaWiki\Title\Title)

#4 C:\www\mediawiki\includes\language\Message.php(1011): Message->transformText(string)

#5 C:\www\mediawiki\includes\language\Message.php(1059): Message->format(string)

#6 C:\www\mediawiki\includes\linker\Linker.php(2207): Message->text()


Any idea ? Jef-unc (talk) 10:53, 4 June 2024 (UTC)

What extensions do you have installed. Does it still happen if all extensions are disabled?
Does this only happen on Special:Preferences or all pages? Bawolff (talk) 15:39, 4 June 2024 (UTC)
No extension at all or default extensions brings the same result.
It seems to be the on every page and further the markups are not interpretated anymore (such as the sitename that renders as {{ SlTENAME }}and not the site name by itself) Jef-unc (talk) 08:24, 5 June 2024 (UTC)
By any chance does the error message go on longer than that? Bawolff (talk) 10:42, 5 June 2024 (UTC)
Huh, you are the second person to report this issue. Both of you were using the french localization. I wonder if there is a MW bug here. Bawolff (talk) 22:23, 5 June 2024 (UTC)
Here is the complete error message. I've also tried with other skins than default and same result. I wonder about some issue with the Parser.php or with language data (bad escape sequences for apostrophs may be ?)
[b2f0906e38269c1116736832] /index.php/Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 C:\www\mediawiki\includes\parser\Parser.php(882): Parser->lock()
#1 C:\www\mediawiki\includes\parser\Parser.php(4821): Parser->preprocess('Votre page d\xE2\x80\x99...', Object(MediaWiki\Title\Title), Object(ParserOptions))
#2 C:\www\mediawiki\includes\language\MessageCache.php(1442): Parser->transformMsg('Votre page d\xE2\x80\x99...', Object(ParserOptions), Object(MediaWiki\Title\Title))
#3 C:\www\mediawiki\includes\language\Message.php(1464): MessageCache->transform('Votre page d\xE2\x80\x99...', true, Object(Language), Object(MediaWiki\Title\Title))
#4 C:\www\mediawiki\includes\language\Message.php(1011): Message->transformText('Votre page d\xE2\x80\x99...')
#5 C:\www\mediawiki\includes\language\Message.php(1059): Message->format('text')
#6 C:\www\mediawiki\includes\linker\Linker.php(2207): Message->text()
#7 C:\www\mediawiki\includes\linker\Linker.php(2388): MediaWiki\Linker\Linker::titleAttrib('pt-userpage', Array, Array, Object(DerivativeContext))
#8 C:\www\mediawiki\includes\skins\components\SkinComponentLink.php(236): MediaWiki\Linker\Linker::tooltipAndAccesskeyAttribs('pt-userpage', Array, Array)
#9 C:\www\mediawiki\includes\skins\components\SkinComponentLink.php(183): MediaWiki\Skin\SkinComponentLink->applyLinkTitleAttribs(Array, true, Array)
#10 C:\www\mediawiki\includes\skins\components\SkinComponentLink.php(254): MediaWiki\Skin\SkinComponentLink->makeLink('userpage', Array, Array)
#11 C:\www\mediawiki\includes\skins\components\SkinComponentListItem.php(170): MediaWiki\Skin\SkinComponentLink->getTemplateData()
#12 C:\www\mediawiki\includes\skins\components\SkinComponentListItem.php(221): MediaWiki\Skin\SkinComponentListItem->makeListItem('userpage', Array, Array, Array)
#13 C:\www\mediawiki\includes\skins\components\SkinComponentMenu.php(166): MediaWiki\Skin\SkinComponentListItem->getTemplateData()
#14 C:\www\mediawiki\includes\skins\Skin.php(2470): MediaWiki\Skin\SkinComponentMenu->getTemplateData()
#15 C:\www\mediawiki\includes\skins\SkinTemplate.php(641): Skin->getPortletData('user-page', Array)
#16 C:\www\mediawiki\includes\skins\SkinTemplate.php(181): SkinTemplate->getPortletsTemplateData()
#17 C:\www\mediawiki\includes\skins\SkinMustache.php(125): SkinTemplate->getTemplateData()
#18 C:\www\mediawiki\skins\Vector\includes\SkinVector22.php(329): SkinMustache->getTemplateData()
#19 C:\www\mediawiki\includes\skins\SkinMustache.php(92): MediaWiki\Skins\Vector\SkinVector22->getTemplateData()
#20 C:\www\mediawiki\includes\skins\SkinTemplate.php(174): SkinMustache->generateHTML()
#21 C:\www\mediawiki\includes\Output\OutputPage.php(2947): SkinTemplate->outputPage()
#22 C:\www\mediawiki\includes\MediaWiki.php(978): MediaWiki\Output\OutputPage->output(true)
#23 C:\www\mediawiki\includes\MediaWiki.php(613): MediaWiki->main()
#24 C:\www\mediawiki\index.php(50): MediaWiki->run()
#25 C:\www\mediawiki\index.php(46): wfIndexMain()
#26 {main} Jef-unc (talk) 07:30, 6 June 2024 (UTC)
Multiple people have reported something like this, but its unclear what the trigger is. It seems to happen in languages with gendered grammar (e.g. Spanish and french).
Some people report a connection to authorization extensions like extension:Auth_remoteuser.
See phab:T366986. If there is anything about your wiki that would make it different from the average wiki, please let us know in order to help us track down this issue. Bawolff (talk) 18:43, 10 June 2024 (UTC)
May be something more explicit when testing on the 1.39.7 version (same issue when switching language).
<tbody>warning: Undefined property: Parser::$deprecatedPublicProperties in C:\www\mediawiki\includes\debug\DeprecationHelper.php on line 208
Call Stack
#TimeMemoryFunctionLocation
10.83368089264Wikimedia\ScopedCallback->__destruct( )...\ScopedCallback.php:0
20.83368089264<a href="http://www.php.net/function.call-user-func-array:{C:\www\mediawiki\vendor\wikimedia\scoped-callback\src\ScopedCallback.php:102}" target="_new">call_user_func_array:{C:\www\mediawiki\vendor\wikimedia\scoped-callback\src\ScopedCallback.php:102}</a>( $callback = class Closure { public $this = class Parser { private $mTagHooks = *uninitialized*; private $mFunctionHooks = *uninitialized*; private $mFunctionSynonyms = *uninitialized*; private $mStripList = *uninitialized*; private $mVarCache = *uninitialized*; private $mImageParams = *uninitialized*; private $mImageParamsMagicArray = *uninitialized*; public $mMarkerIndex = *uninitialized*; private $mVariables = *uninitialized*; private $mSubstWords = *uninitialized*; private $mExtLinkBracketedRegex = *uninitialized*; private $urlUtils = *uninitialized*; private $mPreprocessor = *uninitialized*; private $mOutput = *uninitialized*; private $mAutonumber = *uninitialized*; private $mStripState = *uninitialized*; private $mLinkHolders = *uninitialized*; private $mLinkID = *uninitialized*; private $mIncludeSizes = *uninitialized*; public $mPPNodeCount = *uninitialized*; public $mHighestExpansionDepth = *uninitialized*; private $mTplRedirCache = *uninitialized*; public $mHeadings = *uninitialized*; private $mDoubleUnderscores = *uninitialized*; public $mExpensiveFunctionCount = *uninitialized*; private $mShowToc = *uninitialized*; private $mForceTocPosition = *uninitialized*; private $mTplDomCache = *uninitialized*; private $mUser = *uninitialized*; public $mOptions = *uninitialized*; public $mTitle = *uninitialized*; private $mOutputType = *uninitialized*; public $ot = *uninitialized*; private $mRevisionId = *uninitialized*; private $mRevisionTimestamp = *uninitialized*; private $mRevisionUser = *uninitialized*; private $mRevisionSize = *uninitialized*; private $mInputSize = *uninitialized*; private $mRevisionRecordObject = *uninitialized*; private $mLangLinkLanguages = *uninitialized*; private $currentRevisionCache = *uninitialized*; private $mInParse = *uninitialized*; private $mProfiler = *uninitialized*; private $mLinkRenderer = *uninitialized*; private $magicWordFactory = *uninitialized*; private $contLang = *uninitialized*; private $languageConverterFactory = *uninitialized*; private $factory = *uninitialized*; private $specialPageFactory = *uninitialized*; private $titleFormatter = *uninitialized*; private $svcOptions = *uninitialized*; private $linkRendererFactory = *uninitialized*; private $nsInfo = *uninitialized*; private $logger = *uninitialized*; private $badFileLookup = *uninitialized*; private $hookContainer = *uninitialized*; private $hookRunner = *uninitialized*; private $tidy = *uninitialized*; private $userOptionsLookup = *uninitialized*; private $userFactory = *uninitialized*; private $httpRequestFactory = *uninitialized*; private $trackingCategories = *uninitialized*; private $signatureValidatorFactory = *uninitialized*; private $userNameUtils = *uninitialized*; protected $deprecatedPublicProperties = *uninitialized*; private $dynamicPropertiesAccessDeprecated = *uninitialized* } }, $args = [] )...\ScopedCallback.php:102
30.83368089464Parser->{closure:C:\www\mediawiki\includes\parser\Parser.php:6471-6473}( )...\ScopedCallback.php:102
40.83368089560Parser->__set( $name = 'mInParse', $value = FALSE )...\Parser.php:6472
50.83368089944Parser->__isset( $name = 'deprecatedPublicProperties' )...\DeprecationHelper.php:217
60.83368089944Parser->__get( $name = 'deprecatedPublicProperties' )...\DeprecationHelper.php:163
</tbody>

Jef-unc (talk) 12:38, 12 June 2024 (UTC)

Hard to say for sure, but i think that is unrelated. Bawolff (talk) 16:51, 12 June 2024 (UTC)
Looks like unrelated but exactly the same steps to reproduce the dysfunction and same steps to revert to normal state. Jef-unc (talk) 07:49, 13 June 2024 (UTC)

Extension help

Hi! I'd posted a note at Extension talk:EmbedVideo (fork), but wasn't sure how soon it would be seen. I would like to embed some Sharepoint (formerly Microsoft Stream) videos on my workplace's wiki. Would I use the following code, but with my workplace's Sharepoint info ala "my.sharepoint.com"?

'stream' => [
 'embed'			=> '<iframe width="%2$d" height="%3$d" src="https://web.microsoftstream.com/embed/video/%1$s?autoplay=false&showinfo=true" frameborder="0" allowfullscreen ></iframe>',
 'default_width'	=> 640,
 'default_ratio'	=> 1.6,
 'https_enabled'	=> false,
 'url_regex'		=> [
  '#id_([\d\w-]+).html#is',
 ],
 'id_regex'		=> [
  '#^([\d\w-]+)$#is'
 ]
]


Thanks for any help! ~ ReaderofthePack (talk) 14:22, 4 June 2024 (UTC)

Problem making account

Hello I try to make account at your page but I don’t understand this question, tree letters in English alphabet? I tried to answer ABC But it’s incorrect, what is the answer then? It is impossible to make account if it’s not this answer I think 51.175.200.251 (talk) 07:30, 5 June 2024 (UTC)

This probably isn't our website. You would have to contact the pwner of the website in question. Bawolff (talk) 10:40, 5 June 2024 (UTC)

VIEWS OF NEMA 23

I know this has come up from time to time on the forums but wanted to bring it up again since I have a couple of NEMA 23 steppers and controllers just laying around. The main factor with being able to run the machines faster is cutting power (mix between the steppers and the router/spindle) and the rigidity of the machine. It seems that with the 76 oz-in stepper motors, the machine is limited to about 10-15 mm/s and about a 1-3 mm DOC (highly dependent upon the material). Anything more and you are at risk of losing steps. For a large machine like the LowRider, it would be advantageous to boost up the cutting power if the rigidity allows for it. I imagine the Dewalt 611 has enough cutting power to allow for faster speeds so that leaves the size of the steppers.

I would place NEMA 23s on the X and Dual Y axis. Dual Z Axis will remain NEMA 17 (it seems more than enough power there).

Has anyone started a mod for installing NEMA 23 stepper motors on the LowRider? I have started some initial designs for the plates and am working to fit a NEMA 23. I mainly wanted to see what people think about it and if there has been any work on the subject. Stepperlink (talk) 08:59, 5 June 2024 (UTC)

This is the support forum for the MediaWiki software stack. We have no knowledge of NEMA 23. You likely are not in the right location. —TheDJ (Not WMF) (talkcontribs) 09:09, 5 June 2024 (UTC)

Reporting a hateful & offensive wiki that you guys seem to be hosting.

Hello. I have a serious matter to address. Apparently, there's this wiki called BonziPEDIA (https://wiki.bonziworld.org/Main_Page) which hosts gore, doxxes (like name leaking), misinformation to put innocents down. Take a look. Please do something about it like deleting, or having the wrongful pages deleted/changed, because it takes a toll on their lives. It really, really concerns me. Thanks in advance. Regardance53409 (talk) 09:51, 5 June 2024 (UTC)

We do not manage that website. Everyone can use the MediaWiki software and host their own copy of it, we do not control them.
Please contact the website author, website hoster or, in extreme circumstances, your local authorities. —TheDJ (Not WMF) (talkcontribs) 10:14, 5 June 2024 (UTC)

I am blocked, a novice user here.

Dear Administrators,

I am trying to use my account after a very long while from date of creation.

I wish to translate as well as edit a few pages for wiki.

First, I recovered my password and then tried to have a look at the preferences.

When I try to actually start working for a page on wikipedia, I cannot login. and I see a message that my IP is blocked all of a sudden. (The expiration of blockage is in 2026)

Please help me to resolve this. Harshadsubhash (talk) 11:38, 5 June 2024 (UTC)

Hello. This is a separate site from Wikipedia, so we cannot help with blocks as they are handled at Wikipedia.
However, please see the instructions at https://en.wikipedia.org/wiki/Wikipedia:Appealing_a_block#Requesting_to_be_unblocked for how to appeal your block (Assuming this is for the english language wikipedia. Each language has a different process). Sometimes people get blocked accidentally when admins try to block someone else, which may be what happened here. Bawolff (talk) 14:15, 5 June 2024 (UTC)

Problem with URLs of thumbnails

My site is version 1.40.1 and is in /var/www/html/site. Mediawiki and the images file is in /var/www/html/mediawiki-1.40.1. I have a symbolic link wiki->/var/www/html/mediawiki-1.40.1 in /var/www/html. My site httpd conf file includes the statement "Alias "/wiki" "/var/www/html/wiki"

When I upload an image the thumbnails are created properly under the images directory. When I try to display a thumbnail, using

File:Mass 6 12 2020.jpg
Massachusetts Covid-19 as of 6/12

the url for the image is given with the full file path: "https://site.org/var/www/html/wiki/images/thumb/4/45/Mass_6_12_2020.jpg/200px-Mass_6_12_2020.jpg"

I do not see why "/var/www/html" appears in this link? Without it I get the correct thumbnail. Any suggestions? Wbean43 (talk) 23:22, 5 June 2024 (UTC)

Please post your LocalSettings.php (excluding any passwords).
Most commonly this is due to setting $wgUploadPath incorrectly. Bawolff (talk) 13:38, 6 June 2024 (UTC)

Internal Server Error after upgrading to 1.41

I followed the directions to upgrade (Manual:Upgrading) from my (functioning) mediawiki-1.36.1 to mediawiki-1.41.1, but now all I get is "Internal Server Error"

I tried setting all these debug options: Manual:How to debug ...in my LocalSettings.php, but still just get the Internal Server Error.

This is running on a university server that I do not have admin access to, but again - worked fine immediately before trying to upgrade. Any suggestions about what I might try? I saw a suggestion for looking at the server logs, but I don't seem to have access to them (or at least I don't know where to look for them - I don't have access to /var/log/apache2 for example) 140.182.101.237 (talk) 22:20, 6 June 2024 (UTC)

You really need the server error log. Bawolff (talk) 13:34, 7 June 2024 (UTC)
I'm not sure what was wrong, but it is now working this morning. I suspect some temporary hiccup on my University's server, but I can't be sure it wasn't something I did.
In case it helps anyone else: I did find a note about getting this Internal Server Error if some of the lines in LocalSettings.php accidentally lack a necessary trailing ";" at the end of each line (because of some editing mistake). I had in fact edited my LocalSettings.php, but didn't see any errors of this kind, so I don't think this was causing my issue this time. OOS1859 (talk) 15:14, 7 June 2024 (UTC)
Typically (Although not always) a typo in LocalSettings.php makes a blank page. Usually (not always) an "Internal server error" message means something wrong more on the web server layer. Bawolff (talk) 15:35, 7 June 2024 (UTC)

I create a "News" namespace and when I try to make a link or transclude a "News" page the wiki create a external link.

<nowiki>[[News:example]]</nowiki>

I'm precise that the problem is related to the word "News" because when I write <nowiki>[[New:example]]</nowiki> that create a internal link. 132.166.177.50 (talk) 12:12, 7 June 2024 (UTC)

Try adding
$wgUrlProtocols = array_diff( $wgUrlProtocols, ["news:"] );
In LocalSettings.php
See manual:$wgUrlProtocols for details Bawolff (talk) 13:32, 7 June 2024 (UTC)
I tried this : $wgUrlProtocols = array_diff($wgUrlProtocols, array('news:')); and got the same result. 132.166.177.50 (talk) 13:50, 7 June 2024 (UTC)

Custom extension not load css

I "create" custom tag extension....

... extension not load css.

What am I messing up?


extension.json

 ...
  "AutoloadClasses": {
                "MKCalendar": "includes/MKCalendar.php"
  },

  "Hooks": {
    "BeforePageDisplay": "MKCalendar::onBeforePageDisplay",
    "ParserFirstCallInit": "MKCalendar::efMKCalendarParserInit"
  },

  "ResourceFileModulePaths": {
    "localBasePath": "modules",
    "remoteExtPath": "MKCalendar/modules"
  },

  "ResourceModules": {
    "ext.MKCalendar.styles": {
      "styles": [
        "mkcalendar.css"
      ]
    }
  }
  ...

MKCalendar.php

//...
  public function onBeforePageDisplay( $out, $skin ): void {
      $moduleStyles[] = 'ext.MKCalendar.styles';
      $out->addModuleStyles( $moduleStyles );
  }
//...


Browser Console:

mw.loader.getState("ext.MKCalendar.styles");
'registered'

Mkepler (talk) 13:10, 7 June 2024 (UTC)

In general, this looks good. Two remarks:
  1. You register MKCalendar::onBeforePageDisplay as a "static" function in the extension.json, but the method itself is not declared as static
  2. You use the "append" operator $moduleStyles[] = on an uninitialized variable
While both things are usually not an issue, different PHP versions and configurations may behave differently.
Can you confirm that the onBeforePageDisplay method is being called properly by MediaWiki core code? Osnard (talk) 06:38, 10 June 2024 (UTC)
OK thank you;
my fault coding. (I fixed what you said in the code so it works now.) Mkepler (talk) 14:22, 10 June 2024 (UTC)

Error Interno

Tengo el siguiente error al hacer una instalacion limpia de wiki 1.41.0 con apache 3.4, php 8.1 y mariadb 10.6.

Error interno

[f7d22212565b9474d1fb5105] 2024-06-07 13:16:01: Excepción grave de tipo "Error"

Realize una instalacion nueva y siguo teniendo el mismo error. Mfrizzera (talk) 13:47, 7 June 2024 (UTC)

@Mfrizzera Manual:How_to_debug Malyacko (talk) 17:50, 7 June 2024 (UTC)

Recently I noticed when I used showJobs.php to check jobs, it always showed that 2 refreshLinks were marked as "abandoned", such problem didn't resolve after php manageJobs.php --type refreshLinks --action repush-abandoned.

I'm wondering if this kind of problem affects the whole site. Zorua Fox (talk) 12:33, 9 June 2024 (UTC)

Some related output:
Terminal

Zorua Fox (talk) 12:39, 9 June 2024 (UTC)

Extension causes wiki to crash (with specific languages)

I'm attaching a bug report that I reported it in phabricator Auth_remoteuser project. There I was told that I should perhaps post it here, as there it seemed that no calls from the extension appeared in the stack trace.

After installing MediaWiki 1.41.1 on a server (Vector skin, MySQL database, language: ES) and making sure installation works fine, I installed Auth_remoteuser (for release 1.41).

Then the wiki crashes. You can see top bar (with correct logged user) and left sidebar. But content area shows internal error (stack trace included later).

Removing the extension, installation works fine again. Instead of removing it, simply changing language to EN causes installation to work fine also. Returning to ES it crashes again.

Some languages tried: ES and FR crash. EN, IT, RU work fine.

All the tried languages work fine if the extension is removed.

For other details or stack trace: https://phabricator.wikimedia.org/T366986 JacoboTheFurst3366 (talk) 07:58, 10 June 2024 (UTC)

I wasn't able to reproduce when i tried, but multiple people have reported this (most without any extensions). Is there anything else unique about your setup?
If you want to try stuff, does removing line 589 [1] of extensions/Auth_Remoteuser/src/UserNameSessionProvider.php have any effect on the error message? (This isnt a fix, just an attempt to understand what is happening) Bawolff (talk) 00:36, 11 June 2024 (UTC)
Commenting the line you point out has no effect on the error message.
If there's anything unique I can think of, it could be that on installation there was no APCu installed, so I did it without caching. Anyway, I've just added caching, and it still crashes the same way. JacoboTheFurst3366 (talk) 08:26, 11 June 2024 (UTC)
As I commented in phabricator task, I've just started all over again, but this time using the MediaWiki LTS version (1.39.7), and the problem is exactly the same. JacoboTheFurst3366 (talk) 08:50, 12 June 2024 (UTC)

I created a custom namespace name 'News' and I wanted to make some links to News pages. So I add the wsUrlProtocol parameter with 'news:' but that still don't work. When I create a internal link to news page the wiki create an external link.

<nowiki>$wgUrlProtocols[] = 'News:';</nowiki> 132.166.177.50 (talk) 07:04, 12 June 2024 (UTC)

you want the opposite of that. News being in wgUrlProtocols prevents its use as a namespace. You need to remove it from the default value of $wgUrlProtocols, not add it. Bawolff (talk) 23:04, 12 June 2024 (UTC)

¿Cómo activar el editor visual?

Acabo de instalar un version de mediawiki pero al editar no aparece el editor visual, es decir, no aparecen los botones, solo la caja para texto antigua. ¿qué debo hacer para activar el nuevo editor visual?

En "preferencias" no aparece la opción "habilitar editor visual". Psjjsierra (talk) 22:20, 12 June 2024 (UTC)

Is VisualEditor listed on the page Special:Version?
¿VisualEditor aparece en la página Special:Version? Bawolff (talk) 16:49, 13 June 2024 (UTC)

Unable to import .xml file with page contents

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'm trying to set up a MediaWiki-run website but I'm currently unable to import page contents via .xml files. I've set up two test subdomains (test.kaloxys.com and test2.kaloxys.com). I have exported a .xml file using Special:Export and I'm able to import the file using the Special:Import page on my second test website (test2.kaloxys.com). Whenever I try to import the .xml file using Special:Import on my first subdomain (test.kaloxys.com) it doesn't work. I receive this message: "Internal error ... Fatal exception of type "Error"". I'm unable to upload screenshots. I've uninstalled and reinstalled MediaWiki on test.kaloxys.com three times. Each time I'm unable to import .xml files.

Please advise me on why this might be happening. I'm happy to send screenshots to illustrate the problem.

Thanks,

Jeremy Jeremywfox (talk) 07:43, 13 June 2024 (UTC)

Hi!
Please enable debug output, by placing $wgShowExceptionDetails = true; in your LocalSettings.php file. Thus you should be provided with more information about the error, which will help to fix it. Osnard (talk) 10:08, 13 June 2024 (UTC)
[94ff1ce56b8489512ac584d5] /index.php?title=Special:Import&action=submit Error: Failed opening required '/home/kaloxysc/test.kaloxys.com/extensions/SecureLinkFixer/includes/../domains.php' (include_path='/home/kaloxysc/test.kaloxys.com/vendor/pear/console_getopt:/home/kaloxysc/test.kaloxys.com/vendor/pear/mail:/home/kaloxysc/test.kaloxys.com/vendor/pear/mail_mime:/home/kaloxysc/test.kaloxys.com/vendor/pear/net_smtp:/home/kaloxysc/test.kaloxys.com/vendor/pear/net_socket:/home/kaloxysc/test.kaloxys.com/vendor/pear/net_url2:/home/kaloxysc/test.kaloxys.com/vendor/pear/pear-core-minimal/src:/home/kaloxysc/test.kaloxys.com/vendor/pear/pear_exception:.:/opt/cpanel/ea-php81/root/usr/share/pear')
Backtrace:
from /home/kaloxysc/test.kaloxys.com/extensions/SecureLinkFixer/includes/HSTSPreloadLookup.php(38)
  1. 0 /home/kaloxysc/test.kaloxys.com/extensions/SecureLinkFixer/includes/Hooks.php(61): MediaWiki\SecureLinkFixer\HSTSPreloadLookup->isPreloaded(string)
  2. 1 /home/kaloxysc/test.kaloxys.com/includes/HookContainer/HookContainer.php(161): MediaWiki\SecureLinkFixer\Hooks->onLinkerMakeExternalLink(string, string, string, array, string)
  3. 2 /home/kaloxysc/test.kaloxys.com/includes/HookContainer/HookRunner.php(2321): MediaWiki\HookContainer\HookContainer->run(string, array)
  4. 3 /home/kaloxysc/test.kaloxys.com/includes/linker/Linker.php(1168): MediaWiki\HookContainer\HookRunner->onLinkerMakeExternalLink(string, string, string, array, string)
  5. 4 /home/kaloxysc/test.kaloxys.com/includes/parser/Parser.php(2175): MediaWiki\Linker\Linker::makeExternalLink(string, string, boolean, string, array, MediaWiki\Title\Title)
  6. 5 /home/kaloxysc/test.kaloxys.com/includes/parser/Parser.php(1574): Parser->handleExternalLinks(string)
  7. 6 /home/kaloxysc/test.kaloxys.com/includes/parser/Parser.php(651): Parser->internalParse(string)
  8. 7 /home/kaloxysc/test.kaloxys.com/includes/content/WikitextContentHandler.php(420): Parser->parse(string, MediaWiki\Title\Title, ParserOptions, boolean, boolean, integer)
  9. 8 /home/kaloxysc/test.kaloxys.com/includes/content/ContentHandler.php(1760): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput)
  10. 9 /home/kaloxysc/test.kaloxys.com/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
  11. 10 /home/kaloxysc/test.kaloxys.com/includes/Revision/RenderedRevision.php(260): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, MediaWiki\Title\Title, integer, ParserOptions, boolean)
  12. 11 /home/kaloxysc/test.kaloxys.com/includes/Revision/RenderedRevision.php(232): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
  13. 12 /home/kaloxysc/test.kaloxys.com/includes/Revision/RevisionRenderer.php(223): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
  14. 13 /home/kaloxysc/test.kaloxys.com/includes/Revision/RevisionRenderer.php(164): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
  15. 14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
  16. 15 /home/kaloxysc/test.kaloxys.com/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
  17. 16 /home/kaloxysc/test.kaloxys.com/includes/Storage/DerivedPageDataUpdater.php(1463): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
  18. 17 /home/kaloxysc/test.kaloxys.com/includes/Storage/DerivedPageDataUpdater.php(1859): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
  19. 18 /home/kaloxysc/test.kaloxys.com/includes/Storage/DerivedPageDataUpdater.php(1751): MediaWiki\Storage\DerivedPageDataUpdater->doParserCacheUpdate()
  20. 19 /home/kaloxysc/test.kaloxys.com/includes/Storage/DerivedPageDataUpdater.php(1596): MediaWiki\Storage\DerivedPageDataUpdater->triggerParserCacheUpdate()
  21. 20 /home/kaloxysc/test.kaloxys.com/includes/import/ImportableOldRevisionImporter.php(242): MediaWiki\Storage\DerivedPageDataUpdater->doUpdates()
  22. 21 /home/kaloxysc/test.kaloxys.com/includes/import/WikiRevision.php(643): ImportableOldRevisionImporter->import(WikiRevision)
  23. 22 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(508): WikiRevision->importOldRevision()
  24. 23 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(636): WikiImporter->importRevision(WikiRevision, WikiImporter)
  25. 24 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(1139): WikiImporter->revisionCallback(WikiRevision)
  26. 25 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(1005): WikiImporter->processRevision(array, array)
  27. 26 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(937): WikiImporter->handleRevision(array)
  28. 27 /home/kaloxysc/test.kaloxys.com/includes/import/WikiImporter.php(755): WikiImporter->handlePage()
  29. 28 /home/kaloxysc/test.kaloxys.com/includes/specials/SpecialImport.php(248): WikiImporter->doImport()
  30. 29 /home/kaloxysc/test.kaloxys.com/includes/specials/SpecialImport.php(121): MediaWiki\Specials\SpecialImport->doImport()
  31. 30 /home/kaloxysc/test.kaloxys.com/includes/specialpage/SpecialPage.php(727): MediaWiki\Specials\SpecialImport->execute(NULL)
  32. 31 /home/kaloxysc/test.kaloxys.com/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run(NULL)
  33. 32 /home/kaloxysc/test.kaloxys.com/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
  34. 33 /home/kaloxysc/test.kaloxys.com/includes/MediaWiki.php(960): MediaWiki->performRequest()
  35. 34 /home/kaloxysc/test.kaloxys.com/includes/MediaWiki.php(613): MediaWiki->main()
  36. 35 /home/kaloxysc/test.kaloxys.com/index.php(50): MediaWiki->run()
  37. 36 /home/kaloxysc/test.kaloxys.com/index.php(46): wfIndexMain()
  38. 37 {main} Jeremywfox (talk) 08:19, 15 June 2024 (UTC)
Looks like an issue with Extension:SecureLinkFixer. It says it lacks this file: https://github.com/wikimedia/mediawiki-extensions-SecureLinkFixer/blob/master/domains.php which is odd, as it should be part of the regular codebase. Can you check if the file /home/kaloxysc/test.kaloxys.com/extensions/SecureLinkFixer/domains.php exists on your server? If not, try to re-install Extension:SecureLinkFixer. Osnard (talk) 09:13, 17 June 2024 (UTC)
Thank you very much for your help, Osnard. I don't need Extension:SecureLinkFixer at the moment, so I deleted the extension from my wiki. Importing now works fine. I might try adding the extension again later.
P.S. You live in a cool part of Europe! Jeremywfox (talk) 12:54, 18 June 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No vertical align in tables?

I am completely astonished that no ability exists to align text vertically within table cells. This really hinders readability of tables. Please add this feature! 144.51.12.162 (talk) 19:00, 13 June 2024 (UTC)

Vertical alignment in tables is possible.
See https://www.mediawiki.org/wiki/Help:Tables#Cell_contents_alignment Bawolff (talk) 21:56, 13 June 2024 (UTC)

Pages in Category "" not showing category name

On one of my category pages, at the bottom the section named Pages in Category that on all other pages shows the category name, is not showing the name. At first I thought it skipped the name, but on viewing the page source, the name of the page is masked out by CSS. Why might this happen and how can I prevent it?


Here is the literal HTML - the inline CSS is killing it.

<h2>Pages in category "<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">Category:Tesserae</span>"</h2>


Other category pages have HTML that looks more like this - there is no span around the category name and it looks as I expect it should.

<h2>Pages in category "Rome"</h2> 47.189.154.111 (talk) 20:06, 13 June 2024 (UTC)

What extensions do you have installed?
Is a DISPLAYTITLE used on that page? Bawolff (talk) 21:53, 13 June 2024 (UTC)
I thought DISPLAYTITLE was not used, but there is a macro on the page that has it.
Testing, and yup that was it. That macro was rarely used on a category page and that's what made it seem random.
Thanks!
I'll start with the noerror or noreplace options or find some other way to do what that macro needs done. 47.189.154.111 (talk) 23:51, 13 June 2024 (UTC)

Vulnerability fixes

Can we resolve the vulnerability of Mediawiki(Version 1.39.1) servers is affected by CVE-2024-4577, without upgrading the PHP, if yes what is the alternate way kindly suggest Nehamohithe (talk) 08:52, 14 June 2024 (UTC)

CVE-2024-4577 is about a PHP issue, not about MediaWiki, so probably you can't (unless you explicitly disable related code in the application if there is any).
In general it is recommended to read through "Security Advisories" associated with the CVE (see https://nvd.nist.gov/vuln/detail/CVE-2024-4577)
Btw. the description states that this vulnerability only exists on "Apache and PHP-CGI on Windows". Unless you run such an installation you may not be affected. Osnard (talk) 09:13, 14 June 2024 (UTC)
@Nehamohithe Furthermore, you are running an ancient outdated insecure software version (1.39.1). See Download. It's up to you to keep your systems safe. Malyacko (talk) 09:10, 16 June 2024 (UTC)

Version support

Does MediaWiki [version 1.39.1] will support upgrading PHP Version from 8.1.13 to 8.1.29 Nehamohithe (talk) 08:58, 14 June 2024 (UTC)

Without having tested this particular combination, I guess it will. patch-level updates are unlikely to cause issues.
If you didn't have issues with 8.1.13 you will most likely have no issues with 8.1.29 either. Osnard (talk) 09:18, 14 June 2024 (UTC)

How to check if user views page (MW 1.39) ?

In my skin a certain component should only be rendered if people view the page. It should not be shown if people edit the page.

In MW 1.37 the following PHP code worked fine, but since 1.39 it no longer works.

Can someone point me in the right direction please?

global $mediaWiki;
( isset($mediaWiki) ) {
   if ( $mediaWiki->getAction() == "view" ) {
       ShowStuff();
   }
}

Stefahn (talk) 18:24, 16 June 2024 (UTC)

https://phabricator.wikimedia.org/T294702 removed that global. Malyacko (talk) 19:43, 16 June 2024 (UTC)
In many situations, you likely can use $this->getContext()->getActionName() —TheDJ (Not WMF) (talkcontribs) 10:01, 17 June 2024 (UTC)

Moving local installation to new PC (Windows)

Almost 20 years ago, I decided to use Mediawiki (32 bit) for note taking/diary entries. I used a local installation on Windows, with localhost as the server. I recently built a new PC, with Windows 10, and installed Mediawiki (64 bit). In terms suitable for a non-coder, how do I go about moving the relevant files from the old version of my wiki to the new installation? I have the old drive it was previously installed on, but it's not setup to boot and be able to run Wampserver. 165.225.80.134 (talk) 21:28, 16 June 2024 (UTC)

You will have to get some system administration experience. Especially because I assume the version on your old PC was also a very old version of mediawiki, mysql and the webserver you used.
It is not going to be very easy, but the essential process is Manual:Upgrading. Please keep your old drive in the EXACT state as it was, as you are likely to have to do the whole process a few times before you work out the kinks.
Your biggest challenge is probably going to import the mysql database, if you haven't done something like that before. You have to get a current MySQL running, then copy the data directories of MySQL from your old drive to your new drive, and then trigger MySQL to upgrade those tables. This is all MySQL tutorials. Hopefully this works in one go, it kind of depends on how old your mysql server was. Use an SQL client to inspect if you correctly imported your installation.
Then you have to install MediaWiki 1.35 and PHP 7.4 and get that running. Then swap the configuration to connect to your imported database, then run MediaWiki's upgrader. Then upgrade to MediaWiki 1.39, then upgrade to PHP 8, then upgrade to MediaWiki 1.41 —TheDJ (Not WMF) (talkcontribs) 09:52, 17 June 2024 (UTC)
Thanks for the guidance. Will give it a go. 165.225.80.134 (talk) 08:59, 19 June 2024 (UTC)

How do I add custom colours to a portable infobox?

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.


For example, I want headers in my portable infobox green. How do I achieve that? Tang Empire (talk) 02:24, 17 June 2024 (UTC)

Never mind I figured it out Tang Empire (talk) 23:55, 19 June 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

translation validation lasted : loop to validate an unmodified translated message

Problem detected on foundation.wikimedia.org may be it is not his right place here: when there is no modification in the translated text (contents of $n modified only), the same message is presented again and again for validation to the translator.

example on -> https://foundation.wikimedia.org/w/index.php?title=Special:Translate&group=page-Template%3ADuplicate+content%2FContent&action=page&filter=%21translated&language=fr

Dernières modificationsToutes les modifications
Marked translation unit as no longer outdated with no changes·il y a quelques secondes
Marked translation unit as no longer outdated with no changes·il y a une minute
Marked translation unit as no longer outdated with no changes·il y a une minut

with no differences in the history :

actudiff 17 juin 2024 à 10:30‎ Wladek92 discussion contributions‎  68 octets 0‎  Marked translation unit as no longer outdated with no changes modifié depuis votre dernière visite annuler
actudiff 17 juin 2024 à 10:23‎ Wladek92 discussion contributions‎  68 octets 0‎  Marked translation unit as no longer outdated with no changes modifié depuis votre dernière visite annuler
actudiff 17 juin 2024 à 10:23‎ Wladek92 discussion contributions‎  68 octets 0‎  Marked translation unit as no longer outdated with no changes modifié depuis votre dernière visite annuler
actudiff 17 juin 2024 à 10:23‎ Wladek92 discussion contributions‎  68 octets 0‎  Marked translation unit as no longer outdated with no changes modifié depuis votre dernière visite annuler
actudiff 17 juin 2024 à 09:21‎ Wladek92 discussion contributions‎  68 octets 0‎  Marked translation unit as no longer outdated with no changes modifié depuis votre dernière visite annuler

shows the same 'no longer updated’ at each attempt to accept as it is and seems validation is delayed delayed delayed.... Any idea ? -- Christian 🇫🇷 FR (talk) 08:37, 17 June 2024 (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.


This [2] page links incorrectly to the archive. I tired to fix it but you have to be an admin to edit it.

Rich Farmbrough 14:31, 18 June 2024 (UTC). Rich Farmbrough (talk) 14:31, 18 June 2024 (UTC)

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

PLEASE HELP! Sidebar Dropdown

Hi everyone,

I try to set up a sidebar dropdown with the little arrows (as seen in the sidebar on many actual MediaWiki pages) for our Wiki. But nothing works. Can you please help!


Sincerely

Merlin 87.191.161.144 (talk) 11:01, 19 June 2024 (UTC)

Can you be more specific or link to an example of what you are trying to do Bawolff (talk) 20:38, 19 June 2024 (UTC)

How do I use the MessageBox module?

I’ve been trying to figure this out for a long time, but I still couldn’t figure it out. I use version 1.41.1 Tang Empire (talk) 23:57, 19 June 2024 (UTC)

See Module:Message box. Malyacko (talk) 06:58, 20 June 2024 (UTC)

To block some words

I am an admin in ta.wiki and I would like to block some vulgar/inappropriate words. Which is correct MediaWiki namespace. I do use MediaWiki:Titleblacklist for block inappropriate title, but I want to know the methods to block in content. AntanO (talk) 11:27, 20 June 2024 (UTC)

@AntanO See Extension:AbuseFilter. This Support Desk is for MediaWiki installation; see https://meta.wikimedia.org/wiki/Tech for Wikimedia wikis. Malyacko (talk) 12:25, 20 June 2024 (UTC)
Thank you! AntanO (talk) 13:47, 20 June 2024 (UTC)

Where to go to code

I can't seem to find the place or link to go to code so I need help. I would appreciate that.

Sincerely,

Holton Winger

P.S I don't know if this website does coding or not

P.P.S My Dad's friend introduced me to coding, so I'm still new to it PlaystationGamer1109 (talk) 01:55, 21 June 2024 (UTC)

You can find the code for mediawiki at https://github.com/wikimedia/mediawiki
There is also lua code used for on wiki templates (see special:allpages/module:)
There is also information at https://developer.wikimedia.org/ Bawolff (talk) 02:55, 21 June 2024 (UTC)

Specify encoding for DumpBackup.php output

Is it somehow possible to specify the encoding for the DumpBackup.php output?

Our language specific characters in our wiki (like German umlauts etc.) are exported as "ü" for "ü" and so on.

I can´t find any solution for this in Manual:DumpBackup.php. 147.161.228.109 (talk) 08:06, 21 June 2024 (UTC)

encoding should always be utf-8. This is the only encoding mediawiki supports. (if your mw install is very very (pre 1.5) rules are slightly more complicated.)
Possibly the dump file is correct and the issue is how you are viewing it. Bawolff (talk) 02:13, 22 June 2024 (UTC)

'notes' are not displayed in MediaWiki on an image transcluded from Commons

Hi all, I have provided a lot of 'notes' on image -> https://commons.wikimedia.org/wiki/File:Screenshot_WDQS_interface_(EN).png, but when i include this image directly with a [[File:... statement in MediaWiki, the notes are no longer appearing although my JavaScript is enabled. The ALT or title of the image inclusion overwrites the note feature on hover. What happens? how to make them active back ? Thanks. --Christian 🇫🇷 FR (talk) 09:38, 21 June 2024 (UTC)

Notes are implemented as a Javascript extension on Commons. In order for them to function on other wiki's you have to ensure that the gadget is installed and enabled on those other wikis. —TheDJ (Not WMF) (talkcontribs) 11:57, 21 June 2024 (UTC)

how to get composer version 2

MW 1.39.6 - Php 7.4.3

Looking at: Composer

Action: wget -cO - https://getcomposer.org/composer-2.phar > composer.phar

checking version: composer --version

result: Composer 1.10.1 2020-03-13 20:34:27


And now? 2003:C2:3F30:C500:51EA:F41C:E2B2:F470 (talk) 09:45, 21 June 2024 (UTC)

> wget -cO - https://getcomposer.org/composer-2.phar > composer.phar
This only downloads composer to your local directory, which might not be in your PATH.
If you run which composer, it will tell you where your current composer version is located. You can either copy composer to that location OR it might be that your composer is actually provided by some sort of package management system like homebrew, rpm etc.. In that last case, refer to the documentation of your package manager to see how to properly update the package that is providing your composer version. —TheDJ (Not WMF) (talkcontribs) 11:56, 21 June 2024 (UTC)
That's it! There has been another composer installed that I didn't know. Thank you. 2003:C2:3F30:C500:5153:CA0C:1C8D:7449 (talk) 12:07, 21 June 2024 (UTC)

Connect to $wgserver from two subnets / server with two ips

Hi,

I try to edit the LocalSettings.php for connecting to one server with one wiki out from two subnets. On the server are two physical connections one for all vpn users and one for all internal users, tried to make use of $wgInternalServer and tried to make an array in $wgServer, both not worked as intended. (also tried canonical server)

For now there are two questions:

  1. if $wgInternalServer is used, how to prevent ip hopping (by connecting to the server, the ip will automaticaly change to the wrong ip)
  2. are there other possibilitys for doing that (the Wiki should only be accessible internal and with vpn (during spliting the network in half for security reasons), not on the regular internet. (mirroring the wiki was not the intention)

Thank you for your Answers. XanthorM (talk) 10:43, 21 June 2024 (UTC)

$wgInternalServer is for CDN configuration, its unrelated.
One way is to give the server a dns name and have all this be handled on the dns side.
Another method is $wgServer = WebRequest::detectServer(); Bawolff (talk) 02:06, 22 June 2024 (UTC)
$wgServer = WebRequest::detectServer();
Worked for this usecase, Thank You XanthorM (talk) 10:52, 22 June 2024 (UTC)

Mediawiki: I want to display all the possible values of a property

I have a property "Type d'évenement" that has 33190 uses. I want to display all the different values possible for that property.

I have a solution that somewhat works, but is limited and very slow

Here's the code :

{{#arraydefine: my.array|{{#ask: [[Type d'événement::+]] |mainlabel=- |headers=hide |?Type d'événement |limit=10000|searchlabel= }}|,|print=list, sort=asc, unique}}

But this solution is very slow and is limited to the first 10000 usages, so I may miss some possible values. What annoys me is that, in the advanced research form, it is perfect and work very fast (look at the "Type d'événement" combobox input):

Here's the field I'm talking about :

{{{field|type|input type=combobox|size=50|values from property=Type d'événement}}}

It means that there is a way to do it perfectly and in a fast way. PageForms extension managed it.

I also tried this solution, that has the same problems :

{{#ask: [[Type d'événement::+]]|?Type d'événement|headers=hide|limit=10000|format=valuerank}}

There is also the search by property that does it really fast.

I have not yet installed any lua extension to do codes in templates but I may try it one day. I can also do some php and js code in the server files if necessary.

I think somewhere the list of unique values of a property exists and that is what SearchByProperty and PageForm uses, but I can't seem to understand how to use it. Aphfug (talk) 12:40, 21 June 2024 (UTC)

We have dissolved our roundtable library and disposed of all books. How do I delete this entire library?

We have dissolved our roundtable library and disposed of all books. How do I delete this entire library? 2601:801:200:7:F5B0:62F1:20CF:8FA9 (talk) 17:50, 21 June 2024 (UTC)

What does this have to do with the MediaWiki software? Please read "About this board" the sidebar. Malyacko (talk) 21:25, 22 June 2024 (UTC)

I would like content removed from my wikipedia page

Please remove the article about plagiarism that was posted on my page today and this was investigated and found to be baseless. If you will not remove this content, please remove the wikipedia page on Simone Badal all together. Conversations are being had with my attorneys as to to the course to take for the instigator of this unfounded claim. Simone Badal (talk) 22:35, 21 June 2024 (UTC)

You don't have a page here. This is also not Wikipedia---for Wikipedia pages, please contact Wikipedia. Clump (talk) 22:42, 21 June 2024 (UTC)
okay, thank you. Can you provide the link as I did reach out and this popped up. Simone Badal (talk) 22:53, 21 June 2024 (UTC)
Seems like this has already been resolved.
however for future reference, see
See https://en.wikipedia.org/wiki/Wikipedia:Contact_us/Article_subjects
Alternatively you can email info-en@wikimedia.org
P.s. as general advice, i would suggest avoiding mentioning lawyers as it tends to make people defensive which is probably the opposite of what you want. Bawolff (talk) 02:00, 22 June 2024 (UTC)

recent changes "Atom" with filter="all-discussions"

... submits:

https://xxxxxxxxxxxx/mediawiki/api.php?namespace=all-discussions&urlversion=2&days=7&limit=50&action=feedrecentchanges&feedformat=atom

... and crashes:

   "error": {
       "code": "badvalue",
       "info": "Unrecognized value for parameter \"namespace\": all-discussions.",
       "*": "See https://xxxxxxxxxxxx/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
   }

but works when I remove the namespace filter.

Is there an extension or update that we are missing?

MW 1.39.6 2003:C2:3F30:C500:8CB3:19C8:DFBE:85B2 (talk) 15:26, 22 June 2024 (UTC)

Difficult to say. Does a similar query work on Wikipedia ? If it doesn’t, please file a ticket in phabricator. —TheDJ (Not WMF) (talkcontribs) 18:58, 23 June 2024 (UTC)
Works in Wikipedia.
You may or may not correct it. I won't learn pabricator. I am a user not your domestique. 2003:C2:3F29:3100:1ED:CF42:21E0:CE3B (talk) 19:31, 26 June 2024 (UTC)

Request For Help

Hi. I apologize if I am posting this request for help in the wrong place; I'm doing so because I have been blocked from all the other Wikimedia sites, and when I try to write to the person who has blocked me, I receive messages that I have been blocked. This seems to have originated at Wikisource, and I have never made any type of edit to Wikisource. The edits I've made over the years are few in number and have always been constructive.

There are two entities that have blocked me: 1) User:Jan.Kamenicek, and 2) Something called Epic, which has blocked me until 2007; the page in which Epic announced that I am blocked seems to have disappeared now, but I am still blocked.

I have not made any edits to any Wikimedia sites in recent history. On the few occasions that I have made edits to Wikipedia, I have done so while logged in to my account name, "Enactataph". My edits have always been constructive.

Again, I have never made any edit on Wikisource. This is what Jan Kamenicek determined:

This IP address is currently blocked. The latest block log entry is provided below for reference:

If Jan Kamenicek and Epic had messaged me about some concern about an IP address, we could have happily clarified the matter by email. I tried to do so, but I seem to be blocked everywhere but here.

I followed the administrative and help links associated with the blocks imposed by Jan Kamenicek and Epic, but these links led to further messages that I was blocked and could not write a message or ask a discussion question. Therefore, I'm writing here, as it's the only source I can access.

Thank you for your consideration and any help you can suggest about this matter.

Sincerely, Enactataph Enactataph (talk) 16:37, 22 June 2024 (UTC)

The IP address that you use is currently blocked. You and your account are not blocked, as can be seen on https://meta.wikimedia.org/wiki/Special:CentralAuth/Enactataph Malyacko (talk) 21:24, 22 June 2024 (UTC)
The block should not apply if you are logged in. Bawolff (talk) 01:47, 23 June 2024 (UTC)

ICOM R20 Handheld scanner

I'm new to the game but I recently bought a "scanner" from one of the online websites and it only goes up to 500 megahertz. Upon checking my local police bands for the county and city there go up to AND pass the 800 megahertz range! Can you suggest a few with prices that would cover anything from 0 - 1,000 megahertz if it goes that far like I said I'm a newbie but want to be able to hear what's going on around me here in the country as well as in the city. mkj31096@gmail.com 2600:1005:B0B0:9B2:9813:86FF:FE2D:DD34 (talk) 17:13, 22 June 2024 (UTC)

You are in the wrong place. Please read the sidebar. MediaWiki is not a "game". Malyacko (talk) 21:22, 22 June 2024 (UTC)

StopForumSpam for MW 1.39

The documentation Extension:StopForumSpam tells me I need MW >= 1.42

The Extension distributor offers me to download a 1.39 version of StopForumSpam, but it won't work:

[aee6dcdb88c9254bcdeef759] /wiki/Quantenfiler Error: Interface 'MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterBuilderHook' not found

Backtrace:

from /var/www/test/mediawiki/extensions/StopForumSpam/includes/Hooks.php(40)
#0 /var/www/test/mediawiki/includes/AutoLoader.php(244): require()
#1 [internal function]: AutoLoader::autoload()
....

is there a way to make it work with MW 1.39? If not, why d 2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talk) 18:26, 22 June 2024 (UTC)

o you offer to download a 1.39 version? 2003:C2:3F30:C500:B1DF:7BBC:6DC1:6C15 (talk) 18:26, 22 June 2024 (UTC)
the extension page says what the latest version needs, older versions may support older mediawiki.
The error message might more be about your version of Extension:AbuseFilter than mediawiki. Bawolff (talk) 01:45, 23 June 2024 (UTC)
Good idea but the error message above is what I got after installing AbuseFilter, 1.39 version via ExtensionDistributor. 2003:C2:3F30:C500:1DB:91B4:A37F:C3BA (talk) 11:11, 23 June 2024 (UTC)
You could maybe file a bug at https://phabricator.wikimedia.org (being sure to add mediawiki-extensions-stopforumspam in the tag field) Bawolff (talk) 15:14, 23 June 2024 (UTC)
As i told TheDJ in another topic. You may or may not correct it. I won't learn pabricator. I am a user not your domestique. 2003:C2:3F29:3100:1ED:CF42:21E0:CE3B (talk) 19:35, 26 June 2024 (UTC)

Edits in namespace

Is there a way to view the number of edits in a given namespace? Such as if I want to view the current total number of edits in the main namespace of a fandom wiki? 202.12.244.244 (talk) 01:20, 23 June 2024 (UTC)

None in default mediawiki.
You can do it pretty easily if you have database access or if you have a database dump. Some extensions may allow this. Bawolff (talk) 01:43, 23 June 2024 (UTC)
Ok, I downloaded the database but I still have no idea how to check the edit count. 202.12.244.244 (talk) 01:58, 23 June 2024 (UTC)
Actually, it was for the wrong wiki. I can't even download the database for the wiki I'm interested in it seems. 202.12.244.244 (talk) 02:00, 23 June 2024 (UTC)

My wiki: test.kaloxys.com. I want to link a Spotify playlist in the header. What’s the easiest and best way to do this? Thanks in advance for all helpful contributions. 🙂✌🏻 Jeremywfox (talk) 07:51, 25 June 2024 (UTC)

Copy the links of Spotify 2.48.52.217 (talk) 10:29, 25 June 2024 (UTC)
Iframe? Leaderboard (talk) 19:03, 28 June 2024 (UTC)

Hide the username

Hello, due to data protection laws, I need to hide the username in publications and make a MediaWiki public. I am using MediaWiki 1.28, how can I do this? Sanrodrigues51 (talk) 13:06, 25 June 2024 (UTC)

Due to data protection laws, you should also upgrade your MediaWiki version (it's 8 years old and no longer supported). —TheDJ (Not WMF) (talkcontribs) 13:19, 25 June 2024 (UTC)
RevDelete i guess Bawolff (talk) 17:43, 25 June 2024 (UTC)

Documentation about MW_CONFIG_CALLBACK

I only found

Special wrapping setups can now define MW_CONFIG_FILE to load a config file other than LocalSettings.php. This is like MW_CONFIG_CALLBACK but works in some cases where MW_CONFIG_CALLBACK will not work.

on MediaWiki 1.17 release notes.

Is there any documentation about those constants used in includes/Setup.php. E.g. MW_USE_CONFIG_SCHEMA_CLASS, MW_USE_LOCAL_SETTINGS_LOADER, MW_SETUP_CALLBACK or MW_CONFIG_FILE. Or examples?

Where do they need to be defined? In auto-prepend-file in the php.ini? Osnard (talk) 14:31, 25 June 2024 (UTC)

i think the only docs are the code comments in includes/Setup.php and includes/BootstrapHelperFunctions.php
Sometimes these defines are used in alternate entry points like the installer or maintenance scripts. So i suppose you could make a wrapper index.php script. Bawolff (talk) 17:40, 25 June 2024 (UTC)

Atom Feeds

Good day, I'm running MediaWiki 1.39.7.

I would dearly appreciate any assistance in enabling and configuring atom feature found on the Watchlist page. If there is a section on the MediaWiki site, I have not been able to find it.

Thank you very much!

Bill Vpilot6 (talk) 18:50, 25 June 2024 (UTC)

It should be enabled automatically.
See also Manual:$wgAdvertisedFeedTypes Bawolff (talk) 04:35, 26 June 2024 (UTC)
When any user clicks the 'Atom' button, they receive this error:
error on line 2 at column 6: XML declaration allowed only at the start of the document.
Sure enough, looking at the page's source code, line 1 of the xml is blank. I'm trying to determine what's adding the blank line at the front. I haven't touched the MW code. Vpilot6 (talk) 14:26, 26 June 2024 (UTC)
Check your LocalSettings.php to make sure you dont have any text before the <?php at the start of the file, and there is no ?> at the end. Bawolff (talk) 16:45, 26 June 2024 (UTC)

Preferences Fatal Exception

hello, i am an editor on the Miraheze wiki Excellent Music Wiki under the name ToTheEdge when i changed my clientside skin from vector to another skin i cannot remember the name of as of now when i went to go change it back it presented me with this error message: [c3a1a7d8e2ee79b9d39613c7] 2024-06-25 21:51:35: Fatal exception of type "MWException" 2601:C2:1900:FB30:31E5:12E7:7231:F8C0 (talk) 21:57, 25 June 2024 (UTC)

i have no permissions besides autoconfirmed on this wiki, i just assumed due to this being a MW Exception that this would be the place to resolve it 2601:C2:1900:FB30:31E5:12E7:7231:F8C0 (talk) 21:58, 25 June 2024 (UTC)
Hi, please ask at miraheze support. Bawolff (talk) 04:34, 26 June 2024 (UTC)

Area Split

I noticed that the main page of mediawiki.org is divided into several parts, and this is not a table I suppose. How can I do this. Using an Add-on? Yanzhengli (talk) 10:09, 26 June 2024 (UTC)

No, by inspecting the CSS/HTML/PHP code, especially in the Vector-2022 skin. Malyacko (talk) 11:15, 26 June 2024 (UTC)
it's simple html from several conditional transcodes and a stylesheet
https://www.mediawiki.org/w/index.php?title=Template:Main_page&action=edit
https://www.mediawiki.org/w/index.php?title=Template:Main_page/styles.css&action=editTheDJ (Not WMF) (talkcontribs) 12:10, 26 June 2024 (UTC)

Include Header/Footer in Word/Pdf exports

To what extend is it possible to have pre-defined document header and footer to be included when exporting documents to either Word or Pdf which which must include various meta data such as Document Cretion Date, Document Update, Revision, Document Owner, Document Classification, etc., based on that these tags can easily be pulled if exists in MediaWikie (or added if not included)? Khmwikiusr (talk) 11:46, 26 June 2024 (UTC)

Such headers/footers are usually build using wikitext templates. The way they are included highly depends on the extension/tool you are using to create the export format. Check out PDF_export. For Word file export, I fear there are no extensions/tools available. Maybe there is some commercial solution. Also see Enterprise_hub. Osnard (talk) 06:58, 27 June 2024 (UTC)

XML Export to Confluence and SharePoint

Just been scratching on the surface of what extension there are available for MediaWiki but while I'm looking at moving couple of thousands pages over from Confluence to MediaWiki and then utilise MediaWiki as central content creator to then be able to either export of feed Confluence and SharePoint with XML data for automtic content creation. Are there any attempts already around this or middleware which can either pull from MediaWiki or simply just tap into the sql database? Khmwikiusr (talk) 11:50, 26 June 2024 (UTC)

I am not aware of any particular project that deals with MediaWiki->Confluence or MediaWiki->SharePoint. But MediaWiki features export formats (e.g. Manual:dumpBackup.php) and APIs (e.g. API:Get_the_contents_of_a_page) that will allow you to fetch its contents and use it elsewhere.
As MediaWiki usually contains free text stored in WikiText format, you will most likely need to convert it into something your target system does understand. If HTML is sufficient for your use case, MediaWiki can provide you with this directly. If not, you'll need to find/implement a suitable converter.
Check out tools like pandoc.
Btw. MediaWiki can also store and export structured data (e. g. via Extension:Semantic MediaWiki), which then again can be exported in various machine readable formats (XML, JSON, ...).
If you are working in a Microsoft ecosystem, there is also a Graph Connector available for MediaWiki. Osnard (talk) 06:51, 27 June 2024 (UTC)

"Allow all users" level invisible for already protected pages, forcing workarounds

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.


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

New 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.


I started a new acount about three minutes ago, only to find that I have been blocked for offensive posting.

I'm not aware that I have ever posted anything on wikipedia, let alone anything offensive. It mentions that this is a posting from my IP address, but I have only been at my current address for a couple of months, and the first month, I had no access to the internet, since I was waiting for my computer to arrive. 122.56.199.56 (talk) 04:26, 27 June 2024 (UTC)

If something happened on some website somewhere, then please provide specific links. Currently nobody else here on mediawiki.org knows what happened exactly and who did what (or not). Malyacko (talk) 05:56, 27 June 2024 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mediawiki backup

How would you do a backup? 2A01:C22:9098:7400:8934:AC78:2626:1051 (talk) 06:37, 27 June 2024 (UTC)

Hi! Please check out Manual:Backing_up_a_wiki Osnard (talk) 06:39, 27 June 2024 (UTC)

Unknown error in PHP's mail() function

Good day all.. I am trying to authenticate my email address within the MediaWiki, but when trying to generate the ConfirmationCode it returns with ERR: Feedback from the mail server: Unknown error in the PHP function mail().

As per MediaWiki there is a instruction on what to do, but unfortunately this does not apply to my .php script.

As per instruction there must be within the "sendmail.php" script an section called "$wgSMTP", but this does not exist in my .php script.

Info: I did setup MediaWiki on the Synology-Server and downloaded from PackageManager within Synology.

Question:

- Can I just add the "$wgSMTP" to the existing .php script?

- Do you have any other solutions?

Any assistance is highly appreciated.

Best, Tim VerticalTec (talk) 14:50, 27 June 2024 (UTC)

What does "per MediaWiki" mean exactly? Which docs / URL?
What is "your .php script" exactly?
We don't know what Synology does or changes. You may have to ask Synology. We have nothing to do with them. Malyacko (talk) 17:29, 27 June 2024 (UTC)
There is no sendmail.php script in mediawiki... Bawolff (talk) 22:50, 27 June 2024 (UTC)
ok.. thanks for that information. VerticalTec (talk) 09:53, 28 June 2024 (UTC)
The file "/vendor/pear/mail/Mail/sendmail.php" exists within MediaWiki, maybe that's been a source of confusion here? Malyacko (talk) 09:58, 28 June 2024 (UTC)
Is this any important to use the MediaWiki?
I am asking as I made another post regarding "Toolbar Buttons gone".
I thought this could be due to not activating the MediaWiki by confirming my email address, which is not possible due to this PHP error.
When I login > settings > at the bottom it say I need to confirm my Email address , but that is not possible VerticalTec (talk) 11:57, 28 June 2024 (UTC)

Wikibase-Install-Error

When trying to add Wikibase to my Mediawiki (1.42.1), I constantly get error notifications.

After following the installation guide from start to end, I get the following error notification:

MediaWiki internal error.

Original exception: [75db538297405b82b1808b17] 2024-06-27 20:27:27: Fatal exception of type "Error"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

As well as:

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\kaiserwiki\LocalSettings.php on line 212


Anything I have to fix? 87.188.109.18 (talk) 20:29, 27 June 2024 (UTC)

The second one means you made a typo in LocalSettings.php. you should fix whatever the typo is.
You should set $wgShowExceptionDetails = true; in LocalSettings.php Bawolff (talk) 22:49, 27 June 2024 (UTC)
Already did that, it lead to the "Parse Error" notification from my original post.
I have no idea, what the typo is, as I just copied the following code from the Wikibase installation guide:
# Load Wikibase Repository wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" ); require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php"; # Load Wikibase Client wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" ); require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
Anything wrong with that code? DerAlteFritzEbert (talk) 06:49, 28 June 2024 (UTC)
Nothing that would obviously cause a parse error (the newlines are wrong, but presumably that is a copy and paste error).
Your LocalSettings file presumably has a lot more than that though. Please post the entire thing (redacting any passwords) Bawolff (talk) 07:05, 28 June 2024 (UTC)

Question

Can I screen record a video & reuse in my YouTube channel?

Also , where to find if I have to give attribution or whatever when reusing content ?

Thank you Saxonwoodward (talk) 20:47, 27 June 2024 (UTC)

Hi, if you are referring to content on Wikimedia Commons (or Wikipedia), generally you can reuse it, if you follow certain conditions. Generally you can find out what the conditions are by clicking on the image file and clicking more information. Usually the conditions are something along the line of crediting the original author and saying what license the image is under.
Different images and videos have different conditions attached so to be sure to check every file being used.
See https://commons.wikimedia.org/wiki/Commons:Reusing_content_outside_Wikimedia
for more details Bawolff (talk) 22:47, 27 June 2024 (UTC)
Thank you so much ! Saxonwoodward (talk) 04:10, 6 September 2024 (UTC)

Upgrading MediaWiki from 1.27.1 to the Latest Version

Hello, community!

I'm currently using MediaWiki version 1.27.1 and looking to upgrade to the latest version available. Could someone guide me through the steps involved in this process? Here are a few specific questions I have:

  1. Upgrade Steps: What are the recommended steps to upgrade from MediaWiki 1.27.1 to the latest stable version? I've tried the upgrade but it looks like there's been some MAJOR schema changes and it errors out asking for missing tables. Ive also tried going to the v1.28.0 but its giving me same error. Table 'user' not found. Are there any particular considerations or prerequisites I should be aware of? My next idea is to setup 1.42.1 with the default db and try and see if a schema compare will let me allow a data migration. but again
  2. Database Migration: Currently, my MediaWiki instance is using SQL Server and I've setup a MariaDB using the sql workbench migration feature. Few warnings about the Auto Increment being dropped but nothing major. I'm particularly worried about the schema changes between the two versions

Any help or guidance on these topics would be greatly appreciated! Thank you in advance. Georgesanjeev (talk) 01:30, 28 June 2024 (UTC)

=== Upgrade Path: ===
  • Direct upgrade to 1.42.1 from MediaWiki 1.33 or earlier versions is not supported
  • Upgrade to MediaWiki 1.35 before transitioning to MediaWiki 1.42 to prevent data loss
  • MediaWiki 1.35 is the oldest version compatible with a direct upgrade to MediaWiki 1.42 Fokebox (talk) 06:59, 28 June 2024 (UTC)
Manual:UpgradingTheDJ (Not WMF) (talkcontribs) 07:22, 28 June 2024 (UTC)
The problem I have here is that, the db level changes between 1.27 and 1.35.
My new db is MYSQL and current one is SQL Server. I tried to setup 1.35 on the new server and import the data but apparently there are quite a few changes schema wise for the data migration to go through .
I aslo tried to setup 1.27.1 on a new server and run through the mediawiki installer but it always errors out with "Table 'mediawiki.cur' doesn't exist" which is strange considering from what Ive read its been "The cur table was used in older versions of MediaWiki wikis to store the current revision of a page"
So im stuck as to where I go from here Georgesanjeev (talk) 20:51, 2 July 2024 (UTC)
Yes, moving from a completely different database system, requires quite a bit of knowledge about SQL to pull off and will be a lot of manual labor.
You can find a full documentation about the history of all (mysql) tables via Manual:Database layout. You will probably want to peruse through all that in order to make it work. I would definitely setup a mysql 1.27 with a mysql setup first to do the SQL to MySQL data migration, before getting started on the actual data migration.
There is also the history of the entire mssql schema at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/REL1_33/maintenance/mssql/
However note that already in 1.33 mssql had major broken parts and was lagging behind the other schema changes, so I would not use it to upgrade to the 1.33 schema. It and it's history may however help in figuring out the history of the schema and the differences with the mysql variant. —TheDJ (Not WMF) (talkcontribs) 10:13, 3 July 2024 (UTC)
So here is the process I find might be the best way to do it.
  1. Backup current mediawiki db from sql server
  2. Using MySql workbench migrate to new MySQL DB (Apparently workbench dropped all auto increments for the primary fields)
  3. Setup 1.35 on new server. Recognsies tables in db and runs upgrader. And the below error.
Error -
Making bot_passwords.bp_user into an unsigned int ...
An error occurred:
Cannot change column 'bp_user': used in a foreign key constraint 'FK__bot_passw__bp_us__2C3393D0'
Do i go about removing all the FKs it reports as errors and then readd them later on? Georgesanjeev (talk) 19:27, 3 July 2024 (UTC)

Toolbar Buttons gone?

Good day all...

I have installed the MediaWiki and started to create the first entry.

Above the editing-field I had the Toolbar Buttons to mark text "Bold, URL, etc.", but after saving the buttons are now gone.

Can anyone explain why and how I can get these Toolbar Buttons back?


THX in advance.. VerticalTec (talk) 09:57, 28 June 2024 (UTC)

Please see the sidebar: Which exact MediaWiki version? After saving what?
Please also check your server logs for errors. Malyacko (talk) 12:50, 29 June 2024 (UTC)
1. Version 1.35.5-0154 (installed on Synology)
2. after fresh install = Toolbar Buttons available
I created new Link > added text > saved (after that Toolbar buttons gone)
3. were would I find the ServerLogs?
Thanks for any assistance, much appreciated. VerticalTec (talk) 10:56, 1 July 2024 (UTC)
  1. That's an ancient version not supported by the MediaWiki developers anymore and with potential security issues. You should talk to Synology
  2. We don't know which editor software Synology includes. Could be WikiEditor, could be VisualEditor, etc. You probably want to contact Synology about this.
  3. We don't know as we did not set up your server. Depends on your server. Malyacko (talk) 11:03, 1 July 2024 (UTC)

Upload files at wiki family website

Hi! I have created a family wiki website and set up files.mywiki.org to store all our files. Everything is working fine, but I need help configuring the upload window in VisualEditor. Currently, files are uploaded to the local wiki (en.mywiki.org), but I want them to be uploaded to files.mywiki.org instead. How can I achieve this? Thank you. Fokebox (talk) 10:08, 28 June 2024 (UTC)

Other words - how to setup VisualEditor to show and upload files not to local wiki but to files.mywiki.org in my case? Fokebox (talk) 12:29, 28 June 2024 (UTC)
What is files.mywiki.org? Is it a shared MediaWiki instance or what? Leaderboard (talk) 19:01, 28 June 2024 (UTC)
files.mywiki.org is files storage just like commons.wikimedia.org file repository for all wikipedia projects Fokebox (talk) 07:44, 29 June 2024 (UTC)
No, files.mywiki.org does not exist. It says "mywiki.org: This domain is available for sale!" Also, the question was which kind of software that non-existing page uses.
MediaWiki does not include code to upload random things to millions of random websites out there. Malyacko (talk) 07:05, 30 June 2024 (UTC)
I need help with configuring our wiki setup. Here's the current structure (previously provided links were provided as an example):
  • files.wikijournal.org: This is where we store all media files.
  • en.wikijournal.org: This is the English version of the website.
When I create a page using VisualEditor on en.wikijournal.org and add media files, they are being uploaded to en.wikijournal.org. I want the files to be uploaded to files.wikijournal.org instead, and for VisualEditor to show files from files.wikijournal.org.
This setup is similar to how Wikipedia uploads all files to commons.wikimedia.org. How can I configure the LocalSettings file to achieve this? Fokebox (talk) 15:31, 30 June 2024 (UTC)
Are the two sites connected in some way (eg using CentralAuth)? Leaderboard (talk) 15:40, 30 June 2024 (UTC)
Yes, they are connected via shared data base at LocalSettings:
# Single Sign On (one entry point for all wikis)
$wgSharedDB = "wikijournal_org"; 
$wgSharedPrefix = "ru__";
$wgCookieDomain = '.wikijournal.org';
and usage files.wikijournal.org as follows:
# Shared files
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'wikijournal_org';
$wgSharedUploadDBprefix = 'files__'; # Table name prefix
$wgRepositoryBaseUrl = "https://files.wikijournal.org/wiki/File:";
Fokebox (talk) 17:08, 30 June 2024 (UTC)
I'm not 100% sure, but https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos might help. Leaderboard (talk) 06:31, 1 July 2024 (UTC)

php deprecation warnings

We have upgraded from MW 1.35 to 1.39 and now the logs are full of php deprecation warnings.

LocalSettings:

$wgDevelopmentWarnings=false

$wgShowDebug=false

php.ini:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT


nonetheless we have thousands of log messages about Parser::$mShowToc was deprecated, $wgAllowImageTag to true is deprecated, InternalParseBeforeSanitize hook was deprecated


and so on. Log files are not readable anymore. How can I suppress that? 2003:C2:3F29:3100:C0D3:82AF:BD5B:6653 (talk) 11:13, 28 June 2024 (UTC)

Those are not "PHP deprecation warnings" but MediaWiki deprecation warnings. You can fix them by fixing/updating whatever custom or third-party code triggers them so log files become readable again. Malyacko (talk) 07:07, 30 June 2024 (UTC)
Those are MediaWiki deprecation warnings, great, so please, fix it. I can't, for because i am user, not developer. Example:
PHP Deprecated:  Use of Parser::$mShowToc was deprecated in MediaWiki 1.35. [Called from efMWNoTOC in /var/www/prod/mediawiki/extensions/NoTOC/NoTOC.php at line 42] in /var/www/prod/mediawiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/prod/mediawiki/includes/HookContainer/HookContainer.php at line 137] in /var/www/prod/mediawiki/includes/debug/MWDebug.php on line 381
PHP Deprecated:  Setting $wgAllowImageTag to true is deprecated since MediaWiki 1.35 in /var/www/prod/mediawiki/includes/debug/MWDebug.php on line 381
This happens when importing a page. As far as i can read it, it is from MWDebug, but i don't do any debugging. Remember, $wgShowDebug=false
So again my question, if i dont want debug messages why does MW log debug messages? It worked in 1.35 without logging and now in 1.39 someone has changed it. This is insane. 2003:C2:3F29:3100:2479:2EC:7B12:C480 (talk) 16:32, 3 July 2024 (UTC)
Regarding the first warning: The "NoTOC" extension (which is not part of default MediaWiki so you likely installed it at some point) is unmaintained software so I'd recommend uninstall it if you don't plan to fix its code locally. Sorry, no idea about the rest. (PS: See also Inclusive language about the last word in the previous comment - thanks.) Malyacko (talk) 19:27, 3 July 2024 (UTC)
You're right. Insane is inappropriate and rude. I apologize. Let me summarize:
  • no debug/deprecation/warning messages in 1.35
  • no configuration settings changed
  • lots of debug/deprecation/warning messages in 1.39
  • no support, instead: "go and fix it yourself"
How would anyone else call that?
I am upset. Someone decides "I'll show you warnings even if you set your parameters not to report them". If the notoc extension is unmaintained, why does anyone care about a setting that no one else uses? For me it's clear, bottom line of 8 yrs Mediawiki: like any other closed circle of developers, you guys are sitting in a spaceship drifting away to outer space. Lost contact to ground control, who cares what users want. Yes i know "we're all volunteers", but believe me though i can't create phab tasks i have read enough of them telling me "it's not a bug, it's a feature". Very disappointing. Only reason why we stick to Mediawiki is: there is no alternative. It is always a pleasure to work with you. 2003:C2:3F29:3100:4570:B197:4BAE:F4C9 (talk) 18:27, 4 July 2024 (UTC)
I found Manual:$wgDeprecationReleaseLimit. It sounds like you guy may want to enable it. No idea why this made you guy think of spaceships though (I am sitting two kilometres below surface in the secret MediaWiki HQ command center instead), and pointing out that you guy assume I'm in some "closed circle of developers" kabal motivated me to continue providing unpaid free support to you guy in my spare time in this thread, to the best of my very little knowledge (maybe I should have not replied at all if radio silence is considered better free support?). In any case, if MediaWiki does not serve your needs and lacks "what users want", you are eligible to request a refund. Malyacko (talk) 18:20, 11 July 2024 (UTC)

Parser cache not working

Recently I found that ParserCache seemed to be not working properly, I checked the relevant logs and found this:

2024-06-28 11:59:51 VM-20-13-debian wiki-ysy: [3c90810a243ce11ef099065f] /index.php?target=%E7%AC%AC502%E8%AF%9D&title=%E7%AC%AC502%E8%AF%9D&variant=zh-hans   InvalidArgumentException: JSON did not have _type_
#0 /www/wwwroot/MediaWiki/includes/parser/ParserCache.php(579): MediaWiki\Json\JsonCodec->unserialize()
#1 /www/wwwroot/MediaWiki/includes/parser/ParserCache.php(240): ParserCache->restoreFromJson()
#2 /www/wwwroot/MediaWiki/includes/parser/ParserCache.php(325): ParserCache->getMetadata()
#3 /www/wwwroot/MediaWiki/includes/page/ParserOutputAccess.php(219): ParserCache->get()
#4 /www/wwwroot/MediaWiki/includes/page/Article.php(617): MediaWiki\Page\ParserOutputAccess->getCachedParserOutput()
#5 /www/wwwroot/MediaWiki/includes/page/Article.php(528): Article->generateContentOutput()
#6 /www/wwwroot/MediaWiki/includes/actions/ViewAction.php(78): Article->view()
#7 /www/wwwroot/MediaWiki/includes/MediaWiki.php(542): ViewAction->show()
#8 /www/wwwroot/MediaWiki/includes/MediaWiki.php(322): MediaWiki->performAction()
#9 /www/wwwroot/MediaWiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
#10 /www/wwwroot/MediaWiki/includes/MediaWiki.php(562): MediaWiki->main()
#11 /www/wwwroot/MediaWiki/index.php(50): MediaWiki->run()
#12 /www/wwwroot/MediaWiki/index.php(46): wfIndexMain()
#13 {main}

P.S. $wgParserCacheType is set to CACHE_MEMCACHED Zorua Fox (talk) 12:18, 28 June 2024 (UTC)

How can I send mail with Proton Mail Bridge?

Hello, all! I have MediaWiki running in a Docker container on an Intel macOS host. Here is the docker-compose file.

Here is part of my LocalSettings.php file.

When I try to verify my email, it says

MY WIKI could not send your confirmation mail. Please check your email address for invalid characters.

Mailer returned: Failed to connect to tls://host.docker.internal:1025 [SMTP: Failed to connect socket: (code: -1, response: )]

And Proton Mail Bridge CLI says

>>> ERRO[Jun 28 16:15:14.999] handler error: local error: tls: bad record MAC  pkg=log/SMTP

There should be no network issues. The Firewall is off, MediaWiki is on the Docker bridge network, and the error makes me think that the request is getting through.

Proton Mail Bridge is in SSL mode (rather than STARTTLS) and I have verified that the username and password match what is given in PMB.

Any ideas?

I am hosting at https://wiki.woftnw.org

Product Version
MediaWiki 1.41.1
PHP 8.1.28 (apache2handler)
ICU 72.1
MySQL 5.7.44
Lua 5.1.5

Stonley (talk) 23:27, 28 June 2024 (UTC)

Gerrit user "SSH Public Keys"

I am in the process of installing a wiki for adaptogenic medicinal herbs at adaptopedia.com. At the moment, however, the site is still running on a VM.

The site's articles are largely finished, now I want to configure the site internationally for as many languages ​​as possible. This already works, but only via a dropdown menu, which in my case means that the menus remain in French and only the article texts are translated.

The optimal solution would be a menu with all languages ​​and the dropdown menu at the top right, both of which offer all languages, as can be seen on "https://www.mediawiki.org/", for example.

To do this, I activated $wgLanguageSelectorLanguages, $wgLanguageSelectorLanguages ​​& $wgGoogleTranslateLanguageSelectorLanguages ​​aso. in the LocalSettings.php (I use Mediawki v1.41):

...

# Enable interlanguage links from Wikidata

wfLoadExtension( 'WikibaseClient' ); $wgWBClientSettings['siteLinkGroups'] = [ 'wikipedia', 'wikibooks', 'wiktionary', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', 'wikivoyage',>

  1. Additional configuration for Interlanguage links

$wgLanguageSelectorLanguages = [ 'de', 'en', 'es', 'fr', 'it', 'pt', 'ru', 'zh', 'ja', 'ar', 'ko', 'hi' ]; # Add more languages as needed $wgLanguageSelectorDetectLanguage = LANGUAGE_SELECTOR_USE_CONTENT_LANG; $wgLanguageSelectorLocation = LANGUAGE_SELECTOR_AS_PORTLET; $wgUseMediaWikiAPI = true;

  1. Enable Google Translate extension for all languages

wfLoadExtension( 'GoogleTranslate' ); $wgGoogleTranslateLanguageSelectorLanguages = [ 'de', 'en', 'es', 'fr', 'it', 'pt', 'ru', 'zh', 'ja', 'ar', 'ko', 'hi' ]; # Add more languages as nee> $wgGoogleTranslateLocation = 'sidebar';

...

and got a username "Adaptopedia" at mediawiki.org so that I can use "Gerrit" via SSH.

Now, as far as I understand, I have to add the "SSH Public Key" of my VM (and later that of the web server after the online migration) to my profile. However, I don't have the option of the "SSH Public Keys" tab in my account and therefore can't authenticate with SSH. I assume that I don't have the user rights and would like to ask how I can get these rights.

Thank you very much for your help

Rafael from Adaptopedia Adaptopedia (talk) 03:03, 29 June 2024 (UTC)

Hi, you shouldn't need an ssh key for this purpose. You only need to setup an ssh key if you plan to submit proposed code changes to us. It sounds like for your use case you don't need to do that as it sounds like you only want to use the code not change it.
For this purpose you should use the https urls when using git clone instead of the ssh ones.
E.g. use
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleTranslate Bawolff (talk) 07:44, 29 June 2024 (UTC)
that's already done! But no languages menu ;)
Already have the "GoogleTranslate" in my 'Extensions directory ;)
me@server:/var/www/html/mediawiki/extensions$ ls | grep Google*
GoogleTranslate
and I can't clone it again!
When I try to do that, I get an error:
Fatal: Target path 'GoogleTranslate' already exists and is not an empty directory. Adaptopedia (talk) 22:13, 29 June 2024 (UTC)
You shouldn't need to setup ssh keys in that case. Is there a step you were stuck on where it requested ssh keys? Bawolff (talk) 23:25, 29 June 2024 (UTC)

wiki images

My hosting provider is about to cancel my wiki.


My images are taking up FAR too much space. I have redundant thumbnails, older versions of images, and outright unused images. I desperately need them off the server. Is there some image management software, or something? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 16:50, 29 June 2024 (UTC)

You can delete everything inside images/thumb as it will get regenerated on the fly when needed. —TheDJ (Not WMF) (talkcontribs) 18:57, 29 June 2024 (UTC)
How about archive? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:39, 29 June 2024 (UTC)
Archive? If you're looking to permanently delete images, see https://www.mediawiki.org/wiki/Manual:Image_administration#Deletion_of_Archived_Files Leaderboard (talk) 07:42, 30 June 2024 (UTC)

MediaWiki internal error: TypeError

Hello, I am very confused considering I have not made any changes to my wiki in weeks, but I am suddenly getting this error now:

MediaWiki internal error.


Original exception: [6f281b91f77165c4ec59342e] /index.php/Main_Page TypeError: PortableInfoboxHooks::onResourceLoaderRegisterModules(): Argument #1 ($resourceLoader) must be of type ResourceLoader, MediaWiki\ResourceLoader\ResourceLoader given, called in /home/vosuehcf/public_html/includes/HookContainer/HookContainer.php on line 159


I am very confused, no files should have been changed? Vosueh (talk) 08:32, 30 June 2024 (UTC)

The error usually indicates a version mismatch - that you need a newer version of portableinfobox extension for your version of mediawiki Bawolff (talk) 22:25, 30 June 2024 (UTC)
It worked! Omg thank you so much sir, I was so stumped and I appreciate this so much! <3 Vosueh (talk) 05:17, 1 July 2024 (UTC)

Managing wiki size

How can I easily manage my wiki's size? For example, deleting pages in the deletion log or other rather unnecessary things? Craighead County History (talk) 18:14, 30 June 2024 (UTC)

You can truncate the objectcache table
You can use compressOld.php script. Bawolff (talk) 22:24, 30 June 2024 (UTC)
@Bawolff: Thank you for the help! Unfortunately, I am unaware how to do so as my wiki is hosted by Miraheze, and, as far as I know, I am unable to perform tasks that require coding. Is there an alternative, or am I wrong? Craighead County History (talk) 23:38, 30 June 2024 (UTC)
You might want to talk to miraheze support about what they expect you to do.
Nothing you can do from the web can decrease wiki's size on disk. When you delete an article, it doesn't really delete it since it is still kept around in case you want to undelete it. Bawolff (talk) 00:28, 1 July 2024 (UTC)