Jump to content

Project:Support desk/Flow/2023/02

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.

Set wgArticleCountMethod to any, then waited 24 hours for cache to clear, then visited Special:Statistics?action=purge, the number of pages does not change

When I visit Special:Statistics, my site tells me I have 69 content pages, yet when I click on "Content Pages", this brings me to a page which lists 132 pages.

I then went to LocalSettings.php, and added the following line:

$wgArticleCountMethod = 'any';

I waited 24 hours for caches to clear and revisited the Special:Statistics page and it still says 69 content pages.

My page listing includes "hideredirects=1", so my expectation is to see the number 132 in the "Content Pages" section of statistics.

How can I further debug this?

(I'm using Mediawiki 1.39.1 on PHP 8.1.14) Alberto56789 (talk) 14:11, 1 February 2023 (UTC)

If you change Manual:$wgArticleCountMethod, you'll need to run the Manual:updateArticleCount.php script Ciencia Al Poder (talk) 16:12, 1 February 2023 (UTC)

Searching for a Phone Book, or something similar

Hey Guys,

We are implementing a MediaWiki for our fire brigade as an "information system" and therefore i'm searching for an appropriate solution to implement something like a "phone book". We have a lot of contacts with different backgrounds, e.g. catering, transportations, shelters, politicans, doctors, different companies and more.

And therefore we are looking for a solution to easily manage these contacts and find them fast, best would be with something like tags oder categories.

thanks

Manuel Reinmanu (talk) 16:03, 1 February 2023 (UTC)

Maybe Extension:Cargo to store/query the data and Extension:Page Forms for the data entry/query forms. Jonathan3 (talk) 20:04, 1 February 2023 (UTC)

Edit shortcut not working in Firefox

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.


On this site, Wikipedia and wikis elsewhere, I can use keyboard shortcuts like ctrl-option-v for editing with VE, ctrl-option-h for page history, etc. (Mac). I used to be able to hit ctrl-option-e for (source) editing/viewing, but on Firefox nothing happens even though the shortcut is suggested when the cursor hovers over the "edit source" link.

I have already made sure that there are no add-ons hijacking this shortcut. Any ideas why this is happening? Cavila 16:22, 1 February 2023 (UTC)

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

Page content lost, while DB is ok

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


Hi all,

I've been looking for similar cases to mine, but I've been unable to find one, hope this is not a dupe.


Long story short, we recently lost the DB where our MediaWiki was in, while the disk content was intact. We manage to restore a not very fresh version of the DB.

The wiki is not very frequently updated, but we keep adding content, so there could be a certain level of out of synch


The effect we see is that we are able to login but no pages are found at all. We get all the time the error saying that at this moment there is no content in this page.

We are able to see all the pages references in special - all pages, but links are not reaching the content.


This was not an upgrade error, MediaWiki was up to date. Jangjaytxia (talk) 20:40, 1 February 2023 (UTC)

So to confirm, your old db backup is from the same version of mediawiki as you are currently using?
Most likey cause would be if the db dump missed some tables.
So first off, verify that the revision, actor, comment and text tables all have rows in them.
If that's all true, i guess pick a specific page, find it in the page table, look at page_latest value, find that id number in the revusion table, find rev_actor make sure it is in the revision table, rev_comment_id and make sure there is a corresponding entry in comment table, and so forth until you have identified what is missing. Bawolff (talk) 08:11, 2 February 2023 (UTC)
Very interesting... I can see that all tables have data, but in the revision table, all entries have rev_comment_id=0, rev_actor=0, and probably less important, rev_deleted=0.
Can this be the cause? I remember one of the chaps mentioning that he ran a script to try to fix the content...
May I manually update values to something? Jangjaytxia (talk) 14:04, 2 February 2023 (UTC)
rev_deleted = 0 is normal (means not revision deleted).
The other two will cause this problem. This is very similar to what the db looks like pre actor migration (e.g. pre the 1.35 upgrade) so you could try upgrading (make sure to keep backups in case it doesnt work or make the problem worse) Bawolff (talk) 15:15, 2 February 2023 (UTC)
upgrade worked like a charm!
Thanks for the tip. Jangjaytxia (talk) 19:10, 5 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

New section at a specific level

Is there a way to tell Special:NewSection which level to use? By default it uses a level-2 section heading ("=="). What if you want it to use level-3? dcljr (talk) 00:08, 2 February 2023 (UTC)

No, but consider using preload instead. Bawolff (talk) 08:04, 2 February 2023 (UTC)

Wiki-Statistics

Hello,

I have a question concerning statistics.

If I use the extended statistics I get for the number of content pages ca. 900

- if I "count" the pages which are in the main namespace, there are ca. 700

Could you tell me, where the difference might come from?

What are the criteria for "content page"? Amanave (talk) 07:13, 2 February 2023 (UTC)

Manual:$wgContentNamespaces. Depending on your settings there may also be the requirement pages have one link. See manual:$wgArticleCountMethod.
Sometimes things can happen to make stats innacurate. There is a script you can run to recount the articles. Bawolff (talk) 08:00, 2 February 2023 (UTC)

Keine Funktion

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.


Hallo zusammen

Ich habe Mediawiki installiert und Benutzer eingerichtet.

Allerdings sehe ich nur die Hauptseite, aber keinerlei Funktionen.

Ich kann keine neuen Seiten erstellen, keine Dateien hochladen, etc.

Wenn ich es richtig verstanden habe, muss ich den Usern die Benutzergruppe "Benutzer" zuweisen. Diese Benutzergruppe steht allerdings unter Benutzerrechte nicht zur Verfügung.

Was muss ich tun, um Mediawiki funktionstüchtig zu machen?

Besten Dank für eure Unterstützung.

Gruss Rolf 31.10.155.28 (talk) 07:24, 2 February 2023 (UTC)

Hi, see "Post a new question" in the sidebar, and see Manual:Installing_MediaWiki. If you performed some steps, please provide URLs/exact page names and steps you performed. Thanks! Malyacko (talk) 11:24, 2 February 2023 (UTC)
Hi, not needed anymore... I have installed Dokuwiki now and this works fine. 31.10.155.28 (talk) 14:13, 3 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgLogos is not working

{{{text}}}

After trying to follow this page Manual:$wgLogos mine shows up blank. However if I browse to it via URL, from localhost or another computer, I can view it. So I guess that means the permissions are good.

Here is the $wgLogos settings in the LocalSettings.php file

$wgLogos = [

        '1x' => "/images/mylogo.png",           // path to 1x version

];


The actual path of the logo on disk is /var/lib/mediawiki/images/mylogo.png


If I change the above '1x' to a 2x or 1.5x, the default, "set $wgLogos..." image comes back. So it seems to be some formatting thing or something.

The mylogo.png image is 135x135 pixels and 47.4KB in size.

I also see the lines in LocalSettings.php file:

$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];

...

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;

...

$wgScriptPath = "/mediawiki";


Here is my version information pulled from my special pages

MediaWiki 1.35.6
PHP 8.1.2-1ubuntu2.9 (apache2handler)
MariaDB 10.6.11-MariaDB-0ubuntu0.22.04.1
ICU 70.1

Entry point URLs

Entry point URL
Article path /mediawiki/index.php/$1
Script path /mediawiki
index.php /mediawiki/index.php
api.php /mediawiki/api.php
rest.php /mediawiki/rest.php

Wakemeforlunch (talk) 08:05, 2 February 2023 (UTC)

You need to create a second version of your png, reduced to 100 pixels. Then add the "icon" line. Flounder ceo (talk) 18:15, 2 February 2023 (UTC)
> I also see the lines in LocalSettings.php file: ...
Having two lines like that generally means the last one specified wins.
Based on what you wrote, i suspect you need to instead do
$wgLogos = [
        '1x' => "/mediawiki/images/mylogo.png",           // path to 1x version
];
more generally, verify at what url the image is served at. Bawolff (talk) 19:43, 2 February 2023 (UTC)
@Flounder ceo
you're saying I need two files? one 135x135 px for the 1x version and a second one 100x100 px for icon? I don't see where in the documentation it says you have to specify both those but I gave it a try, and it still does the same thing. The LocalSettings.php now looks like this.
$wgLogos = [
        '1x' => "/images/mylogo.png",           // path to 1x version
        'icon' => "/images/mylogo100.png",           // path to icon version
];
and I now have two files like this
/var/lib/mediawiki/images/mylogo.png
/var/lib/mediawiki/images/mylogo100.png
However this did not work.
Also, I mentioned those previous variables, $wgResourceBasePath and $wgScriptPath because $wgScriptPath is mentioned in this article Manual:FAQ#How do I change the logo? and $wgResourceBasePath is not mentioned in the article, but in the LocalSettings.php file it is there but says do not modify.
The change the logo article also says:
Caution: Do not simply overwrite the default logo installed with MediaWiki (/resources/assets/wiki.png); this file will be overwritten when you upgrade.
and $wgResourceBasePath has a default value of /resources/assets/wiki.png which makes it seem like I shouldn't touch it.
## The URL paths to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/wiki.png" ];
I hope you can understand the confusion here...
@Bawolff
I tried this method before actually. I used method #2 mentioned in this article Manual:FAQ#How do I change the logo?
perhaps I don't understand the $wgScriptPath variable but I was under the impression that it was just the root of the URL, which in my case was /mediawiki
However, when I tried using "{$wgScriptPath}/images/mylogo.png"; as the value for my icon, it broke the site. Now it seems to be working. Not sure what changed or why it's working now. Is it better to use the literal path /mediawiki/images/mylogo.png or path including the $wgScriptPath variable?
I currently have rectified the issue by using the built-in lines:
## The URL paths to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogos = [ '1x' => "{$wgResourceBasePath}/images/mylogo.png" ];
It is working like this. Wakemeforlunch (talk) 20:45, 2 February 2023 (UTC)
> Is it better to use the literal path /mediawiki/images/mylogo.png or path including the $wgScriptPath variable?
It doesn't really matter. Using $wgScriptPath means if you ever change it, you only have to change it in one place. The downside is it can be more confusing because you have to specify it after specifying $wgScriptPath, and you must use " not ' for the string.
> you're saying I need two files? one 135x135 px for the 1x version and a second one 100x100 px for icon? I don't see where in the documentation it says you have to specify both those but I gave it a try, and it still does the same thing.
Some skins want different sized logos. It really depends on what skin you are using. See also manual:$wgLogos Bawolff (talk) 21:28, 2 February 2023 (UTC)
Many skins run fine with the 1x 135 px file but some, like Vector 2022, want the icon 100 px file. As long as you're doing it, you might as well add the 100 px and future-proof your site somewhat. Flounder ceo (talk) 13:51, 3 February 2023 (UTC)

What should I do to write code blocks?

I want to write pascal code on my website, I tried <syntaxhighlight> for code blocks but it didn't work. Is there another method, can you help me? Saliha96 (talk) 13:59, 2 February 2023 (UTC)

What exactly did not work? Please also see "Post a new question" in the sidebar. Malyacko (talk) 15:49, 2 February 2023 (UTC)
maybe try <nowiki> and <code>. Flounder ceo (talk) 18:10, 2 February 2023 (UTC)
I dont think syntaxhighlight (pygments) supports pascal, but it supports related languages like delphi or modula-2.
If you cant get syntaxhighlight to work, <pre> is the best alternative. Bawolff (talk) 19:51, 2 February 2023 (UTC)
I share code blocks of delphi language on my site. I want it to appear as in the example url below.
https://tr.wikibooks.org/wiki/C_Sharp_Programlama_Dili/%C4%B0lk_program%C4%B1m%C4%B1z
I added syntaxhighlight_GeSHi to my site. My site did not open as soon as I added it to the LocalSettings.php file. I'm using MediaWiki version 1.39. Saliha96 (talk) 07:19, 3 February 2023 (UTC)

Bringing the Contents to the side bar

How can I bring the "Contents" list to the side bar just like wikipedia? The Contents list is getting longer and longer that I have to scroll a lot. SakagamiYae (talk) 15:23, 2 February 2023 (UTC)

This is done via the Vector skin, in the Vector-2022 variant. Either you install and run an unstable software version of MediaWiki, or you wait for the most recent MediaWiki release to include this. Malyacko (talk) 15:49, 2 February 2023 (UTC)

Changed the Domain

I changed the domain that is linked to my wiki, the new domain works, but some times clicking on a internal link takes me to the old domain (which is not conected any where).

When I pass with the mouse on links in the side bar I see the new Domain, but when I pass on links in the home page I see the old domain and when clicking I get diverted to the old domain.

I tried to edit the page, but when I click on save I get diverted to the old domain.

What can I do ? 147.234.64.59 (talk) 18:01, 2 February 2023 (UTC)

Review LocalSettings to make sure everything points to the new domain. Flounder ceo (talk) 18:05, 2 February 2023 (UTC)
Clicking on save and going to the wrong place generally means that $wgServer is incorrect in LocalSettings.php. generally internal links use relative urls and should not be affected by domain changes as long as the path stays the same. Bawolff (talk) 19:53, 2 February 2023 (UTC)

user name in use

hello, my name is Nesrin Sanad and I am a public figure, I tried to create an account with my name but it kept sayin that my name is in use! when I search for my name in Wikidata I don't find anything. can you please help to get my name available again so I can create my own account 213.147.115.43 (talk) 20:20, 2 February 2023 (UTC)

It looks like someone already registered that account, and then got blocked. You would have to use a different name. Possibly you could get a usurption but im not sure - see [[
Wikipedia:Changing username/Guidelines]]
You might have better luck asking at w:WP:Teahouse Bawolff (talk) 21:38, 2 February 2023 (UTC)

How can I make my own like mediawiki? So like make my own site like this

I’m trying to make a wiki page, but start from brand new instead of using an already existing wiki site, how do I make it? Disasterology System (talk) 02:37, 3 February 2023 (UTC)

See Manual:Installing MediaWikiAmmarpad (talk) 07:45, 3 February 2023 (UTC)

IP Blocked for EDIT or ACCOUNT Creation

WHY is MediaWiki saying my IP address is on a DNSBL and blocking me from editing or creating an account on the wiki I want to contribute to.


I am NOT a bad guy; my IP is not on a single list ON THE PLANET. 47.210.1.3 (talk) 04:33, 3 February 2023 (UTC)

You should probably ask the operators of the wiki in question. We don't even know which website you are talking about, or what blocklist they are using. Bawolff (talk) 05:21, 3 February 2023 (UTC)

Observe discussion

In our wiki we want to monitor the discussions of the entire wiki to be able to reply immediately to all discussions.

What's the best way to get an overview of all the actual/unanswered discussions? 195.88.117.25 (talk) 07:11, 3 February 2023 (UTC)

Use Special:RecentChangesAmmarpad (talk) 11:14, 3 February 2023 (UTC)

Bonjour,

je ne trouve pas comment avoir le sommaire dans le menu latéral comme sur le site Mediawiki (avec icône de sélection en haut à gauche).

Merci pour votre aide

---------------------------

Hello,

I can't find how to have the TOC in the sidebar like on the Mediawiki site (with selection icon at the top left).

Thanks for your help Pacha35 (talk) 09:58, 3 February 2023 (UTC)

These are provided by Skin:Vector/2022Ammarpad (talk) 11:14, 3 February 2023 (UTC)
Thank you for you answer,
it's OK except the site logo : there is a site name link instead. Pacha35 (talk) 16:40, 3 February 2023 (UTC)
See manual:$wgLogos Bawolff (talk) 18:08, 3 February 2023 (UTC)
Thanks for your answer.
I have tried to use codes of this page (with correct logos path), but I don't arrive to display a 135x135 logo, just a 20x20 logo and the site name.
Do you know exactly what I have to write in Localsatting to display only a 135x135 logo (png format). Pacha35 (talk) 22:51, 3 February 2023 (UTC)

pagebreaking before tables in printout

In printouts longish tabels do a pagebreak before when they do not fit on the paper. That in many cases results in one page with just a header and the table starting in the next page. I added a class in mediawiki:Print.css and applied it to the table, but that doesnot affect anything.

.noPagebreakBeforeTable { page-break-before:avoid; } Any ideas? Carchaias (talk) 10:58, 3 February 2023 (UTC)

Can you link to a page with the issue? – Ammarpad (talk) 11:12, 3 February 2023 (UTC)

How to know the data string I am receiving to which IMEI

Hello,


I am trying to decode the data from Teltonika device, however I am receiving the data without IMEI, how toknow whcih IMEI this data belongs to?


Example :

00000000000003C30810000001861706DAD40020E7C54A0EEE444D000C006510000D000C0616014703F0011503C800EF01064328E3440031B5000AB600064268BC18000D0000000001861706B3C40020E7B0980EEE497200090071110012000C0616014703F0011503C800EF01064328CF440032B50008B600064268D31800120000000001861706A80C0020E7AB6A0EEE4A670008005F10000E000C0616014703F0011503C800EF01064328D6440031B5000AB600064268F118000E0000000001861706A03C0020E7A88E0EEE4A710009004C10000C000C0616014703F0011503C800EF01064328D9440031B5000AB600064268E418000C0000000001861706986C0020E7A6FA0EEE491A000A003F0F0011000C0616014703F0011503C800EF01064328D7440031B5000BB600064268B7180011000000000186170694840020E7A6330EEE47F8000B00250E0013000C0616014703F0011503C800EF01064328D3440031B5000AB600064268F118001300000000018617066D740020E79F490EEE2D5E000D000C11001B000C0616014703F0011503C800EF01064328CB440031B50008B6000642688D18001B00000000018617063AAC0020E7996A0EEE12BB000E000B100014000C0616014703F0011503C800EF01064328D1440031B5000AB600064268DE180014000000000186170636C40020E799400EEE10D9000D000110000F000C0616014703F0011503C800EF01064328CC440032B5000AB6000642693418000F00000000018617062EF40020E797AD0EEE0D0F000D00120F000E000C0616014703F0011503C800EF01064328CB440031B5000AB6000642689618000E00000000018617061F540020E795AB0EEE0860001000070F0009000C0616014703F0011503C800EF01064328D3440031B5000AB6000642697818000900000000018617060BCC0020E7933F0EEE04B5000D001A0F0006000C0616014703F0011503C800EF01064328C7440031B5000BB6000842694E180006000000000186170603FC0020E792010EEE0360000E002C100004000C0616014703F0011503C800EF01064328C7440032B5000AB600064269671800040000000001861705EC8C0020E78F580EEE01FC0010006B100003000C0616014703F0011503C800EF01064328CB440032B5000AB6000642691F1800030000000001861705E0D00020E78DB10EEE02750010006F100009000C0616014703F0011503C800EF01064328C8440032B5000AB6000642696C1800090000000001861705D5180020E78A7B0EEE037500110063100008000C0616014703F0011503C800EF01064328C8440031B5000AB600064269491800080000100000763D


in the above data I cannot find IMEI, how to match it to the correct device.

The IMEI for the above device is 000F383636373238303631333532343134 ( its is not there in the sent data)

Appreciate your help.


Thank you,

Khaled Khaledmajzoub (talk) 11:36, 3 February 2023 (UTC)

@Khaledmajzoub This is the support desk for MediaWiki. This question does not seem to be about MediaWiki. Malyacko (talk) 11:50, 3 February 2023 (UTC)

messed up my LocalSettings.php

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 tried to install some extensions, but after adding wfLoadExtension(... to the LocalSettings.php the wiki didn't load anymore. I removed wfLoad... and still get this error:


MediaWiki internal error.


Original exception: [56ebe3557aeb6dc567f9430c] /Main_Page Error: Interface 'MediaWiki\Hook\ParserModifyImageHTML' not found

Backtrace:

from /var/www/mediawiki/extensions/PageImages/includes/Hooks/ParserFileProcessingHookHandlers.php(38)

#0 /var/www/mediawiki/includes/AutoLoader.php(117): require()

#1 [internal function]: AutoLoader::autoload()

#2 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(244): spl_autoload_call()

#3 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(150): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()

#4 /var/www/mediawiki/includes/HookContainer/HookContainer.php(473): Wikimedia\ObjectFactory\ObjectFactory->createObject()

#5 /var/www/mediawiki/includes/HookContainer/HookContainer.php(156): MediaWiki\HookContainer\HookContainer->getHandlers()

#6 /var/www/mediawiki/includes/HookContainer/HookRunner.php(2845): MediaWiki\HookContainer\HookContainer->run()

#7 /var/www/mediawiki/includes/parser/Parser.php(1726): MediaWiki\HookContainer\HookRunner->onParserAfterTidy()

#8 /var/www/mediawiki/includes/parser/Parser.php(659): Parser->internalParseHalfParsed()

#9 /var/www/mediawiki/includes/content/WikitextContent.php(327): Parser->parse()

#10 /var/www/mediawiki/includes/content/AbstractContent.php(548): WikitextContent->fillParserOutput()

#11 /var/www/mediawiki/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()

#12 /var/www/mediawiki/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()

#13 /var/www/mediawiki/includes/Revision/RevisionRenderer.php(217): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()

#14 /var/www/mediawiki/includes/Revision/RevisionRenderer.php(154): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()

#15 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()

#16 /var/www/mediawiki/includes/Revision/RenderedRevision.php(197): call_user_func()

#17 /var/www/mediawiki/includes/poolcounter/PoolWorkArticleView.php(137): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#18 /var/www/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()

#19 /var/www/mediawiki/includes/page/ParserOutputAccess.php(281): PoolCounterWork->execute()

#20 /var/www/mediawiki/includes/page/Article.php(691): MediaWiki\Page\ParserOutputAccess->getParserOutput()

#21 /var/www/mediawiki/includes/page/Article.php(506): Article->generateContentOutput()

#22 /var/www/mediawiki/includes/actions/ViewAction.php(80): Article->view()

#23 /var/www/mediawiki/includes/MediaWiki.php(543): ViewAction->show()

#24 /var/www/mediawiki/includes/MediaWiki.php(320): MediaWiki->performAction()

#25 /var/www/mediawiki/includes/MediaWiki.php(930): MediaWiki->performRequest()

#26 /var/www/mediawiki/includes/MediaWiki.php(564): MediaWiki->main()

#27 /var/www/mediawiki/index.php(53): MediaWiki->run()

#28 /var/www/mediawiki/index.php(46): wfIndexMain()

#29 {main}


Exception caught inside exception handler: [56ebe3557aeb6dc567f9430c] /Main_Page Error: Interface 'MediaWiki\Hook\ParserModifyImageHTML' not found

Backtrace:

from /var/www/mediawiki/extensions/PageImages/includes/Hooks/ParserFileProcessingHookHandlers.php(38)

#0 /var/www/mediawiki/includes/AutoLoader.php(117): require()

#1 [internal function]: AutoLoader::autoload()

#2 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(244): spl_autoload_call()

#3 /var/www/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory/ObjectFactory.php(150): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()

#4 /var/www/mediawiki/includes/HookContainer/HookContainer.php(473): Wikimedia\ObjectFactory\ObjectFactory->createObject()

#5 /var/www/mediawiki/includes/HookContainer/HookContainer.php(156): MediaWiki\HookContainer\HookContainer->getHandlers()

#6 /var/www/mediawiki/includes/HookContainer/HookRunner.php(2845): MediaWiki\HookContainer\HookContainer->run()

#7 /var/www/mediawiki/includes/parser/Parser.php(1726): MediaWiki\HookContainer\HookRunner->onParserAfterTidy()

#8 /var/www/mediawiki/includes/parser/Parser.php(659): Parser->internalParseHalfParsed()

#9 /var/www/mediawiki/includes/cache/MessageCache.php(1326): Parser->parse()

#10 /var/www/mediawiki/includes/language/Message.php(1333): MessageCache->parse()

#11 /var/www/mediawiki/includes/language/Message.php(930): Message->parseText()

#12 /var/www/mediawiki/includes/language/Message.php(982): Message->format()

#13 /var/www/mediawiki/includes/skins/Skin.php(756): Message->parse()

#14 /var/www/mediawiki/includes/skins/SkinMustache.php(74): Skin->printSource()

#15 /var/www/mediawiki/skins/Vector/includes/SkinVector.php(329): SkinMustache->getTemplateData()

#16 /var/www/mediawiki/includes/skins/SkinMustache.php(56): SkinVector->getTemplateData()

#17 /var/www/mediawiki/includes/skins/SkinTemplate.php(144): SkinMustache->generateHTML()

#18 /var/www/mediawiki/includes/OutputPage.php(2644): SkinTemplate->outputPage()

#19 /var/www/mediawiki/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()

#20 /var/www/mediawiki/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML()

#21 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output()

#22 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report()

#23 /var/www/mediawiki/includes/MediaWiki.php(586): MWExceptionHandler::handleException()

#24 /var/www/mediawiki/index.php(53): MediaWiki->run()

#25 /var/www/mediawiki/index.php(46): wfIndexMain()

#26 {main} PKFP (talk) 13:35, 3 February 2023 (UTC)

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

Hi!

I would like to use the StructuredDiscussions extension to create a discussion that is linked to a wiki page. Right now I have to go to Special Pages -> Enable Structured Discussions and enter the name of the discussion page I would like to create.

Now I would like to be able to embed a link on a wiki page that redirects to "Enable Structured Discussions" and ideally creates a page that has the name format '[wiki page] Discussion' (maybe there is a way to pre-fill the form that is opened when clicking on "Enable Structured Discussion" with the name of the page that linked me there?). Or maybe there is some kind of workaround for that.

I tried to find a way to make a form for creating a StructuredDiscussion page but it seems it's not possible to make a template for that.

Help is very appreciated. :) 2A02:810A:B80:3388:F88F:653A:CEC9:E635 (talk) 14:56, 3 February 2023 (UTC)

Incorrect translation of a message on Special:ContentTranslation

Hello. Where is it possible to translate the message reporting the minutes passed since the translation draft was last edited (on the Special:ContentTranslation dashboard)? I would like to update the translation as it is currently incorrect and very annoying for Slovenian (sl). It says after (x minutes) instead of (x minutes) ago. The div class is 'cx-last-updated'. I tried hard to find it in translatewiki and elsewhere but to no avail. TadejM (talk) 19:43, 3 February 2023 (UTC)

That translation is provided by Moment (https://momentjs.com) not MediaWiki. So unfortunately it cannot be changed here. – Ammarpad (talk) 08:28, 4 February 2023 (UTC)

Error creating directory shellbox

I'm running a Mediawiki install locally on XAMPP.


When I attempt to view Common.css, I'm getting the error -

Warning: mkdir(): No such file or directory in C:\xampp\htdocs\mediawiki\vendor\wikimedia\shellbox\src\FileUtils.php on line 113.

Internal error

[25778356fbad990ba5a19c4d] /mediawiki/index.php/MediaWiki:Common.css Shellbox\ShellboxError: Error creating directory shellbox-0093d7cde73873f0


I'm running:

MediaWiki 1.39.1
PHP 7.4.33 (apache2handler)
MariaDB 10.4.27-MariaDB

In LocalSettings.php, I have:

$wgTmpDirectory = "C:\xampp\htdocs\mediawiki\images\temp";


That directory is writable and has full permissions.

I can't think of anything else to try.

Thanks for any suggestions. Redheadkelly (talk) 23:47, 3 February 2023 (UTC)

Just for anyone who might come across this issue...
I had been using an older version of Mediawiki since it was just a local install. I upgraded to Mediawiki to 1.39.1, which required upgrading XAMPP to support php 7.4.33. It didn't solve the problem, but when I removed $wgTmpDirectory from LocalSettings.php, it worked. Redheadkelly (talk) 05:52, 5 February 2023 (UTC)

The Evelution theme broke my wiki

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


I installed the Evelution theme, then it broke my wiki.

It just said

This page isn’t working

My wikis name is currently unable to handle this request.

HTTP ERROR 500 Noisybigeyes (talk) 03:52, 4 February 2023 (UTC)

It got fixed! 202.169.97.112 (talk) 04:24, 4 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to allow bureaucrats to create (local) rights dynamically?

Like how stewards can create (global) rights without modifying LocalSettings.php, how can I make bureaucrats do the same? The last available username (talk) 04:30, 4 February 2023 (UTC)

You need an extension. The one stewards use is extension:CentralAuth but it is oriented more to having multiple wikis. Bawolff (talk) 07:24, 8 February 2023 (UTC)
@Bawolff: I already have that extension installed, is there any way I can modify it to also allow dynamic (local) groups that can be modified by bureaucrats? The last available username (talk) 08:09, 8 February 2023 (UTC)

Problem in TemplateEngine.php

I get the following message:

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/clients/[...]/[mywiki]/extensions/SemanticMediaWiki/src/Utils/TemplateEngine.php on line 120.

Any clue of its possible cause/fix. Dessources (talk) 12:40, 4 February 2023 (UTC)

I applied the following temporary fix:
if (isset($value)) // line inserted at line 120
$complied = str_replace( [ 'Template:' . $key . '', '{{#' . $key . '}}' ], $value, $complied );
and the message disappears. Dessources (talk) 12:49, 4 February 2023 (UTC)

Mediawiki behind Nginx proxy working inconsistently

I'm using the official Mediawiki Docker container to host a wiki on port 8181. I have Nginx Proxy Manager running as a reverse proxy for the Mediawiki.


Whenever I enter the URL in my browser, the page loads partially. Looking at the logs of the Mediawiki container, only status "200" is reported. The logs of Nginx Proxy Manager however, list many "connect() [...] failed (22: invalid argument) [...]", along with warnings about upstream prematurely closing the connection and "upstream temporarily disabled while connecting to upstream".


Does anyone have an idea what might be going wrong? I have verified that if I connect directly to port 8181, bypassing the proxy, everything works as expected. I've also tried all Nginx configuration that I've found online for people having a similar issue, to no avail sadly. 80.112.178.13 (talk) 19:50, 4 February 2023 (UTC)

Oh also, I've set the $wgCdnServers setting to allow for the local ip of the container:
$wgUseCdn = true;
$wgCdnServers = array();
$wgCdnServers[] = "10.89.0.2:80";
$wgCdnServersNoPurge = array();
$wgCdnServersNoPurge[] = "10.89.0.2";
Setting the subnet "10.0.0.0/8" in $wgCdnServersNoPurge doesn't change anything either. 80.112.178.13 (talk) 19:53, 4 February 2023 (UTC)
Error 22 definitely leads me to think it is an nginx config issue, but what, i dont know. Bawolff (talk) 22:26, 4 February 2023 (UTC)
Alright, that's at least a good pointer. How would Mediawiki behave if the CdnServers were misconfigured? Would it respond with 403? 80.112.178.13 (talk) 22:48, 4 February 2023 (UTC)
if you mean $wgCdnServers was misconfigured, it would just show the wrong ip address when you edit not logged in.
Some other misconfigurations might result in a 500 error. It is unlikely anything would cause a 403 Bawolff (talk) 23:00, 4 February 2023 (UTC)
For anyone stumbling on this later, I figured out what was going wrong:
The official Mediawiki Docker image (tag 1.35.1) does not play well with Nginx' `proxy_http_version 1.1;`. This was set by default in our configuration, so fixing it to be `proxy_http_version 1.0;` fixed the problem (without significant performance downsides on the scale that we're using the wiki, namely an internal wiki for a small company).
Hopefully that helps someone else! 80.112.178.13 (talk) 10:33, 9 May 2023 (UTC)
This sounds like nginx isn't understanding the http 1.1 stream that it is receiving from MediaWiki. Common issues have been with http stream compression (there was a bug in MediaWiki at some time with this, you can disable this functionality however), and also issues with old versions of nginx.
Thank you for reporting back ! —TheDJ (Not WMF) (talkcontribs) 08:24, 10 May 2023 (UTC)

User access rights to pages

Is it possible to set up pages so that only certain users can see the content? if yes how ? 79.227.68.4 (talk) 21:03, 4 February 2023 (UTC)

Per page read restrictions aren't well supported. That said, see extension:Lockdown Bawolff (talk) 22:23, 4 February 2023 (UTC)

How to install old backup?

How to install old backup?

I'm not sure if this is a backup generated by MediaWiki, by an MW plugin, or by the webhost.

How to install on a new host?

The directory top level looks like this:

Volume in drive C has no label.

Volume Serial Number is 24DB-CF61

Directory of C:\Users\johna\OneDrive\Documents\Guns\New Install 1-30-2021\Unzip\mw19.421_78457.2021-02-06_04-22-32

02/04/2023  02:14 PM    <DIR>          .

01/26/2023  08:47 AM    <DIR>          ..

02/01/2021  12:20 AM    <DIR>          tests

02/01/2021  12:20 AM    <DIR>          skins

02/01/2021  12:20 AM    <DIR>          resources

02/01/2021  12:20 AM    <DIR>          cache

01/31/2021  03:44 PM    <DIR>          cgi-bin

02/01/2021  12:20 AM    <DIR>          mw-config

02/01/2021  12:58 AM    <DIR>          maintenance

02/01/2021  12:20 AM    <DIR>          languages

02/01/2021  12:20 AM    <DIR>          vendor

02/01/2021  12:20 AM    <DIR>          includes

02/03/2021  04:39 AM    <DIR>          images

02/01/2021  12:20 AM    <DIR>          docs

02/03/2021  01:26 PM    <DIR>          extensions

11/04/2019  11:39 PM                95 FAQ

12/18/2020  05:08 AM         1,151,718 HISTORY

02/04/2023  02:15 PM                 0 dir.txt

12/18/2020  05:08 AM             8,245 img_auth.php

12/18/2020  05:08 AM            13,101 CREDITS

12/18/2020  05:08 AM             1,977 index.php

12/18/2020  05:08 AM             3,581 INSTALL

11/04/2019  11:39 PM            19,421 COPYING

11/04/2019  11:39 PM               102 composer.local.json-sample

12/18/2020  05:08 AM             1,951 load.php

02/05/2021  09:12 AM            13,780 LocalSettings.php

12/18/2020  05:08 AM             4,752 composer.json

12/18/2020  05:08 AM               168 CODE_OF_CONDUCT.md

02/06/2021  04:22 AM             2,249 mw19.421_78457.2021-02-06_04-22-32

12/18/2020  05:08 AM             4,610 opensearch_desc.php

03/20/2018  04:32 PM                22 phpinfo.php

12/18/2020  05:08 AM             1,525 README.md

12/18/2020  05:15 AM            90,300 RELEASE-NOTES-1.35

12/18/2020  05:08 AM           156,532 autoload.php

12/18/2020  05:08 AM               998 rest.php

11/04/2019  11:39 PM               199 SECURITY

12/18/2020  05:08 AM             4,490 api.php

02/06/2021  04:23 AM         1,633,146 softperms.txt

02/06/2021  04:22 AM         2,666,914 softsql.sql

02/02/2021  06:03 PM               108 .htaccess

12/18/2020  05:08 AM            23,539 thumb.php

12/18/2020  05:08 AM             1,439 thumb_handler.php

12/18/2020  05:08 AM            12,142 UPGRADE

12/18/2020  05:08 AM             1,428 jsduck.json

              29 File(s)      5,818,532 bytes

              15 Dir(s)   9,859,399,680 bytes free Johnywhy (talk) 22:16, 4 February 2023 (UTC)

Depends on what is in softsql.sql. if its a full db dump, then you are in luck.
See Manual:Restoring a wiki from backup Bawolff (talk) 22:23, 4 February 2023 (UTC)
softsql.sql appears to be a full dump. Trying now. Johnywhy (talk) 22:37, 4 February 2023 (UTC)
@Bawolff
- Do i simply run the following in mysql admin?
mysql -u wikidb_user -p wikidb < dump_of_wikidb.sql
- Create an empty db first?
- Should i get old username/pw from backup? Where? Johnywhy (talk) 23:25, 4 February 2023 (UTC)
You can check the sql file to see if it creates the database (see if it has a line like CREATE DATABASE, somewhere near the beginning after the SETs).
The username/password is for your db server. It might not be the same as the one for the old site. The old site db username/password would be in LocalSettings.php (look for $wgDBname, $wgDBpass ) Bawolff (talk) 04:04, 5 February 2023 (UTC)
Thx! Here's the beginning of the sql file. As you can see, it's a Softaculous backup. That scares me. I'm worried something will fail. Is it a MediaWiki .sql file? Or a Softaculous .sql file? Same thing?
It appears there's no CREATE, so i believe i need to create a new db. To avoid any changes to the .sql file, i assume i should use the same db name for the new db. And ensure the username/pw match the values in LocalSettings.php
-- Softaculous SQL Dump
-- http://www.softaculous.com
--
-- Host: localhost
-- Generation Time: February 6, 2021, 4:22 am
-- Server version: 10.3.27
-- PHP Version: 7.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `gunsywtx_retort`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_credentials`
--
CREATE TABLE `account_credentials` ( Johnywhy (talk) 04:34, 9 February 2023 (UTC)
So yes, it probably wants you to create the database first.
The format is a mysql dump file. This is a pretty standard way to backup a database.
the first table in what you posted is namdd account_credentials. That is not a table name mediawiki uses, but it could be a mediawiki extension, or possibly the db backup has both mediawiki and non mediawiki things.
Keep the file around. If something goes wrong you can always start over and try again. Bawolff (talk) 07:04, 9 February 2023 (UTC)

Не показывается миниатюра

Я загружаю картинку, а у меня вместо миниатюры вот это, я не понимаю в чём дело: [1]

Так же это происходит не со всеми картинками, некоторые нормально отображаются 2.63.169.18 10:00, 5 February 2023 (UTC)

How to hide the sidebar in a mediawiki site when you are not logged in

On my mediawiki site, you need to log in to view and edit pages. But the sidebar is displayed even when you are not logged in. Since there is some confidential information, I would like to show the sidebar only when you are logged in.

Thank you. 77.190.17.192 (talk) 16:11, 5 February 2023 (UTC)

This is not possible now. You can make a feature request however. (See How to make feature request) – Ammarpad (talk) 17:31, 6 February 2023 (UTC)
It would be possible to write an extension to do this, but afaik nobody has. Bawolff (talk) 17:37, 6 February 2023 (UTC)

Server error?

74240475

Ongoing fetch errors, last 8 hours. Always cp4039. Request from 122.56.196.252 via cp4039 cp4039, Varnish XID 967763452 Error: 503, Backend fetch failed at Sun, 05 Feb 2023 20:07:54 GMT 122.56.196.252 (talk) 20:36, 5 February 2023 (UTC)

You need to contact the website that you refer to. Malyacko (talk) 13:31, 8 February 2023 (UTC)

Tagging as 'Needs more detail' / listing tagged pages

Hello,

I am new to mediawiki but I haven't been able to find what I am looking for. I know that when you link to a page that doesn't exist it shows up as "Wanted". But I am looking for a way to flag already created pages as 'needing more details'. While also having a page similar to the 'wanted pages' that I can go to and see a list of these tagged pages.


It would be Ideal if I could tag sections of a page as needing more details and have a page listing all of the page/sections that are flagged, but just having a list of pages that need attention would be fine.


I have tried looking though the list of extensions but I do not recall seeing what I was looking for. Perhaps someone in the community could point me in the right direction or tell me if such a thing exists.


thank you, 2600:1700:6950:69A0:50C:6CF4:9907:D06D (talk) 22:14, 5 February 2023 (UTC)

Normally people use templates and categories for this (sometimes hidden categories)
See help:categories and help:templates Bawolff (talk) 00:07, 6 February 2023 (UTC)

How to properly delete a 'ghost' article?

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.


Further to Issue in searching Wiki keyword I have taken a dive into the actual database and have found we have four instances of two articles with the same page title "Widget:<Widget name>". One is in ns=0 and one is ns=274. For example, Widget:Google Document. Their page ids are different.

Is there a proper way to delete the 'ghost' articles in ns=0?

I can load the 'ghost' version from the Article namespace using w/index.php?curid=xxx and by adding parameters check the page history &action=history and page information &action=info The later confirms the page is in the Article namespace.

I am not the original wiki admin and my best guess based on examine the page histories is the Extension:Widgets was installed early in the wiki's life, the articles were created, then the extension was disabled/removed, stranding these articles, possibly in ns=0.

A number of years later the Widgets extension was added/enabled and new versions of the Widgets:<Widget name> were created. I am left to again guess that the software did not make the connection to the older articles in ns=0.

I have tried appending the parameter &action=delete when viewing the ns=0 version of the articles but it again an Internal error and traceback. Peculiar Investor (talk) 03:46, 6 February 2023 (UTC)

You can sometimes do that by using the API.
Easiest way is to run cleanupTitles.php Bawolff (talk) 08:17, 6 February 2023 (UTC)
Worked like a charm. Thank you very much.
It found and fixed the four instances and now search is no longer returning an Internal error. Peculiar Investor (talk) 11:11, 6 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue after Domainchange

hi,

i moved the files and DB to the new Domain and in LocalSettings.php i changed the $wgserver to new domain.


but i just get the following error now :


[Y@CsDGEvTkV-NWAv74m3pgAAAA0] / Error: Class 'MediaWiki\ResourceLoader\MessageBlobStore' not found

Backtrace:

from /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/ServiceWiring.php(929)

#0 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LocalisationCache.php(1065): Wikimedia\Services\ServiceContainer::{closure}()

#1 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LocalisationCache.php(499): LocalisationCache->recache()

#2 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LocalisationCache.php(373): LocalisationCache->initLanguage()

#3 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LocalisationCache.php(314): LocalisationCache->loadItem()

#4 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LanguageFallback.php(106): LocalisationCache->getItem()

#5 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LanguageFactory.php(186): MediaWiki\Languages\LanguageFallback->getAll()

#6 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LanguageFactory.php(144): MediaWiki\Languages\LanguageFactory->newFromCode()

#7 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/libs/MapCacheLRU.php(274): MediaWiki\Languages\LanguageFactory->MediaWiki\Languages\{closure}()

#8 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LanguageFactory.php(145): MapCacheLRU->getWithSetCallback()

#9 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/language/LanguageFactory.php(128): MediaWiki\Languages\LanguageFactory->getRawLanguage()

#10 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/ServiceWiring.php(453): MediaWiki\Languages\LanguageFactory->getLanguage()

#11 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()

#12 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()

#13 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService()

#14 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/MediaWikiServices.php(855): MediaWiki\MediaWikiServices->getService()

#15 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/ServiceWiring.php(2060): MediaWiki\MediaWikiServices->getContentLanguage()

#16 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()

#17 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()

#18 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/MediaWikiServices.php(301): Wikimedia\Services\ServiceContainer->getService()

#19 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/MediaWikiServices.php(1940): MediaWiki\MediaWikiServices->getService()

#20 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/session/SessionManager.php(224): MediaWiki\MediaWikiServices->getUserNameUtils()

#21 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/session/SessionManager.php(130): MediaWiki\Session\SessionManager->__construct()

#22 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/Setup.php(440): MediaWiki\Session\SessionManager::singleton()

#23 /var/www/vhosts/htk.de/test.wiki.htk.de/mediawiki/includes/WebStart.php(86): require_once(string)


the MessageBlobStore is located at same paths and are available as in "old" Domain.. 185.119.34.152 (talk) 07:31, 6 February 2023 (UTC)

It seems most likely that some of your mediawiki files are corrupt or didn't transfer properly. Try redownloading mediawiki. Bawolff (talk) 08:21, 8 February 2023 (UTC)

Close indexing in Robots.txt

Recently I noticed that the article editing is involved in the search. It used to be enough Disallow:/index.php ?, but now the directory address (visual and code editor) has changed and has become like this: /wiki/Nitrogen fertilizers?action=edit&veswitched=1&oldid=2968. How to disallow that directory in robots.txt ? Thanks for attention. Vladlen Terezhe (talk) 08:33, 6 February 2023 (UTC)

Edit pages would have noindex meta tags so it really shouldn't matter what is in robots.txt Bawolff (talk) 03:09, 7 February 2023 (UTC)

Unable to reset password

Hello,

when trying to create new account for HermannSW, I get told that I have one:

Special:CentralAuth/HermannSW

But I am unable to reset password with "forgot your password" for that.

Can you please help me to get password reset to registered email address for that account?

Regards,

Hermann. 2A02:8071:683:5F00:CB3D:E7A2:8CA9:A063 (talk) 09:34, 6 February 2023 (UTC)

Unfortunately, if you haven't set an email and/or it hasn't been confirmed, there's no way to recover your account, because you can't demonstrate you own that account.
You'll have to create a new one. Ciencia Al Poder (talk) 14:28, 6 February 2023 (UTC)

fatal error « Shellbox\ShellboxError » on mediawiki after new page creation

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.


Occurs once from my tablette with skin desktop version :

Erreur interne
Aller à la navigationAller à la recherche
[c6482d8b-b371-4217-9b3b-9bbc7ca5feff] 2023-02-06 10:16:19: Erreur fatale de type « Shellbox\ShellboxError »

when trying to access link memcached -> https://www.mediawiki.org/wiki/Manual:Memcached/fr on page -> https://www.mediawiki.org/wiki/Manual:ClearCacheStats.php/fr

transitional : link memcached ok after reload

Christian 🇫🇷 FR (talk) 10:29, 6 February 2023 (UTC)

The error is (already) reported here: https://phabricator.wikimedia.org/T292663Ammarpad (talk) 17:24, 6 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Fatal exception of type 'Error' - Math extension

After installing the Math extension and trying to add a simple "<math>0</math>" command the page doesnt load properly and shows "[14d0dd0b3c5f7a55d370b9a3] 2023-02-06 12:41:34: Fataler Ausnahmefehler des Typs „Error“" which translates to Fatal exception of type 'Error'.

I installed Math from this link: https://extdist.wmflabs.org/dist/extensions/Math-REL1_35-53e3cef.tar.gz. I know its not the newest verion but thats due to me not having the newest mediawiki version.


I also noticed that the Math-Status Specialpage shows Test Comparing the generated SVG with the reference failed.


Does someone know where this comes from, or how to solve this? Thanks in advance. Linzm99 (talk) 12:44, 6 February 2023 (UTC)

I installed a slightly newer version of Math and it works now! I propably missed something with the other install. Linzm99 (talk) 13:07, 6 February 2023 (UTC)

Missing revision after upgrade

I'm trying to upgrade an instance that is running 1.31.6. After I do the upgrade I get the following:

The revision #76147 of the page named "Main Page" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted.

I can see that revision in the revision table. But maybe it's not for the "Main Page"? Oldmanwaterfall (talk) 14:49, 6 February 2023 (UTC)

oh boy, welcome to the club. The support desk houses tons of these problems. From what I learned, and if you have a backup, upgrade incrementally. There is a database corruption that happens somewhere at around or after 1.35 (I believe), so upgrade in steps Rebastion2 (talk) 08:49, 7 February 2023 (UTC)
Thanks I tried a new upgrade but went to the latest Legacy LTS 1.35.9 and it seemed to have worked like I expected. I'll go with this for now. Oldmanwaterfall (talk) 13:59, 13 February 2023 (UTC)

Extensión:CreateWiki

I need help to install the CreateWiki extension to create wikis. Extension:CreateWiki/es Lomeno 24 (Contact me here) 01:16, 7 February 2023 (UTC)

Good. But what is the question? :) Pierpao (talk) 15:24, 7 February 2023 (UTC)

File:FileName generates incorrect URL (file://filename)

I've migrated and upgraded an old mediawiki to 1.35.8 and am now fixing up the configuration. The content loads but file links aren't working properly (they are working on the old wiki). For example, [[File:Monitor_Code_Block.jpg]], does not show the file and instead creates a url file://Monitor_Code_Block.jpg, instead of the correct URL. I've tried running php maintenance\rebuildall.php but that didn't help. The files were copied to the upgraded wiki in the images folder. $wgScriptPath, $wgUploadPath and $wgServer seem to be set correctly. 196.24.216.2 (talk) 08:37, 7 February 2023 (UTC)

To expand on what I do see, the image replaced with a citation looking like "[[3]], where the inner [3] is a URL pointing to "file:dcom_.png" in this example (not even a valid file URL in fact). I've tried running php maintenance\refreshImageMetadata.php, but that didn't help either. 196.24.216.2 (talk) 13:04, 7 February 2023 (UTC)
Do you have $wgUrlProtocols set to something other than its default in LocalSettings.php? If so, what is it set to? Bawolff (talk) 19:50, 7 February 2023 (UTC)
Thanks, that was the problem! It included 'file:'. Changing that to 'file://' fixed my problem as per the bug description in your link. 196.24.216.2 (talk) 07:39, 8 February 2023 (UTC)

Problem with login and user data

I use MediaWiki for a private single user purpose in a cPanel managed commercial host, and used its upgrade mechanism to upgrade from 1.37.6 to 1.39.1. Before upgrade and after upgrade I was able to log into MW. However, there was a problem with one page, and I decided to revert to the complete backup of 1.37.6 cPanel had made for me to see if it worked there.

After this, I was not able to log in any more. I tried also to create a new user, and it succeeded partly - a new user was created, but the username I gave was not registered in the mySQL database, while my full name was, and after I logged out, there was no way to log back in.

Also, cPanel sets the wiki admin user name and password, and these did not work either anymore, and setting it again and saving through cPanel has no effect on the MW. I tried to upgrade to 1.39.1 again, and the same situation continues.

I am able to browse the mySQL with cPanel, and I see e.g. the user I created in mw_user as "Unknown user", but with my name as the "Full name". This unknown user is the only row in the mw_user table. My former two users (admin and normal) are visible in the mw_actor table.

Any ideas? Khk2 (talk) 18:12, 7 February 2023 (UTC)

wiki shows old version for unregistered users

MediaWiki 1.34.1 PHP 7.3.33-4+0~20220627.98+debian10~1.gbp40b3e4 (fpm-fcgi) MySQL 5.7.36-39-log ICU 65.1

Hello, the wiki https://organindex.de regularly shoes an older version for unregistered users, no clue why. And yes, I know there should have been a SW update long ago (we suffer from various bugs), but I'm not an admin and can't do anything here unfortunately.

If one is registered and logged in all is fine and actual. Any hints for this? Thanks Subbass1 (talk) 08:00, 8 February 2023 (UTC)

Sounds like cdn (e.g. varnish, cloudfront, etc) cache Bawolff (talk) 23:18, 8 February 2023 (UTC)
Thanks, and how to resolve? --Subbass1 (talk) 11:01, 9 February 2023 (UTC)
If you have Varnish or some cache frontend, you'll have to configure it properly to accept PURGE requests from MediaWiki, and configure Manual:$wgCdnServers. Otherwise, you'll have to tell us what caching layers have you set up Ciencia Al Poder (talk) 19:06, 10 February 2023 (UTC)
Thanks, I save it (I'm just a normal user, no admin, no chance to do thelike, and they're not very competent or cooperative unfortunately). Perhaps for future - it's really irritating -Subbass1 (talk) 16:28, 12 February 2023 (UTC)

after an upgrade to the latetest version no data is displayed

Hi,

After an upgrade to the latest version no data is displayed

There is currently no text in this page. You can ....

If I migrate to a different host with an older version, it works fine.

How to procede,

Regards, Johan 77.165.163.129 (talk) 12:08, 8 February 2023 (UTC)

Hi, please see "Post a new question" in the sidebar (what "older version"? what "latest version"?) and Manual:How_to_debug - thanks! Malyacko (talk) 13:31, 8 February 2023 (UTC)

Error creating thumbnail: Error code: 2

Error creating thumbnail:


vendor/wikimedia/shellbox/src/Command/limit.sh:

line 4: $'\r': command not found


vendor/wikimedia/shellbox/src/Command/limit.sh:

line 6: syntax error near unexpected token `$'{\r''


vendor/wikimedia/shellbox/src/Command/limit.sh:

line 6: `cleanup() {


Error code: 2

Any ideas how fix that? Awailable (talk) 17:02, 8 February 2023 (UTC)

What version of mediawiki, where did you obtain mediawiki from, how did you transfer it to your server (did you use ftp in text mode?) Which OS? Bawolff (talk) 19:49, 8 February 2023 (UTC)
Version mediawiki: 1.38.4 Awailable (talk) 12:57, 11 February 2023 (UTC)
Is there a solution to this? 195.80.103.225 (talk) 07:24, 28 September 2023 (UTC)
Still need to know which operating system. Also what version of bash is installed on the server (what is the result of bash --version Bawolff (talk) 11:11, 29 September 2023 (UTC)
I have the same error. Version: 5.0.17(1)-release (x86_64-pc-linux-gnu) 198.16.213.160 (talk) 13:42, 31 October 2023 (UTC)

Hosting service dropped MediaWiki support totally

I have used Aplus.net as my hosting service for 20 years. And I have used MediaWiki on it for 15 years. Recently, I found my wiki not working and Aplus says they have discontinued support for MediaWiki totally. They would not even try to help me recover my data in readable form. Please help me recover my family history in readable form. Thanks in advance. Aiksiongkoh (talk) 19:30, 8 February 2023 (UTC)

We neither have any relation nor access to random third-party servers such as Aplus.net. You have to contact Aplus.net for content on Aplus.net, or use your local data backups if existing. Malyacko (talk) 20:52, 8 February 2023 (UTC)
I have the backup data and I need help to go from there to get a working wiki. I have the contents of mwiki folder and databases folder. Like I said Aplus.net absolutely refuses to help. Thanks. Aiksiongkoh (talk) 16:40, 9 February 2023 (UTC)
Manual:Installing MediaWiki, Manual:Importing XML dumps. If you have specific questions at certain stages, feel free to bring them up with sufficient context. Malyacko (talk) 19:49, 9 February 2023 (UTC)
The specific problem is below.
http://askoh.net/mwiki
How to fix?
Thanks Aiksiongkoh (talk) 21:14, 9 February 2023 (UTC)
Uff, that software version is 14 years old. You could try to run php refreshLinks.php in the "maintenance" directory of MediaWiki. Malyacko (talk) 21:36, 9 February 2023 (UTC)
Your database dump seems to be severely screwed up. Page content is assigned to random pages, including MediaWiki: messages.
What do you have to restore the wiki and what did you do to restore it? Ciencia Al Poder (talk) 21:57, 9 February 2023 (UTC)
Thank you very much for helping.
Aplus.net has maintained a total blackout on MediaWiki so I don't know what they did to my wiki.
In my hosting directory I see the following:
/
    ...
    askoh.com
        public
            mwiki
                .conf
                bin
                ...many folders
                maintenance
                ...
                index.php
                ...many files
    askoh.net
        public
            mwiki
                images
                skins
                LocalSettings.php
    databases
        askoh21321_archive.zip
        askoh_back32112
        askoh21321
wiki_...many files
        Test_askohsitea328321
        test_askohsitea975176
        askoh_archive.zip
    mwiki
        .conf
        .restore
http://askoh.com/mwiki does not work at all now. It was an early version of
http://askoh.net/mwiki Aiksiongkoh (talk) 19:27, 10 February 2023 (UTC)
Database backup should consist of a single .sql file (maybe compressed in .zip/.gz/.xz/.7z) that you must restore on a new *empty* database server (database with no existing tables, etc).
Manual:Restoring a wiki from backup has useful information about the process.
You may try to use the same MediaWiki files that your host provided first, to see if you can have a working wiki with the same version you were using before. You seem to have two mediawiki installation folders, in askoh.com/public/mwiki and askoh.net/public/mwiki. If the version of MediaWiki was too old, it may not work due to recent PHP versions. In that case, you should upgrade to MediaWiki 1.35 (not 1.39, because of phab:T326071). Ciencia Al Poder (talk) 10:36, 11 February 2023 (UTC)

Andrew DeCaro

I Was Blocked by Yamla over a month and i can't edit anything from wikipedia for 6 months and i need some help pleasse 98.186.55.18 (talk) 20:06, 8 February 2023 (UTC)

Whatever Wikipedia website this is about, you need to bring that up there on that website. mediawiki.org is for the MediaWiki software and not for policies of other websites. Malyacko (talk) 20:50, 8 February 2023 (UTC)

Can't log in after restore (RESOLVED)

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


I am trying to recover a wiki (that is an older, but unknown version) that died for unknown reasons. I have an SQL dump, and the original LocalSettings.php file. After doing the SQL import, and copying the current version into the web directory (without the LocalSettings), the installer recognizes the files, takes a long time updating them, and apparently succeeds. The wiki appears to be working, more or less, but I can't log in using the account created during install. I have no idea why. Taustinoc (talk) 23:24, 8 February 2023 (UTC)

You should log in with the original account you had in the wiki. I don't think an upgrade with the install script would create a new user.
Since you mention the installer takes a long time, I wonder if it might be timeouting in the middle. Running maintenance/update.php would have been a safer bet.
If you can't log in with the existing user (and you are sure you have the right password), maybe it's some kind of incompatibility between password hashes, although I don't think there should be any. What's the type ofo hash of that user? As in, what's the beginning of the user_password field in the user table for that account? (the value before the second : defines the kind of hash) Platonides (talk) 01:34, 9 February 2023 (UTC)
update.php says everything is up to date. Unfortunately, I don't have the password for the original account, though I might be able to get it.
As an experiment, I reinstalled it as an open wiki, and tried to create a normal account. I get this error:
[314f82c5ce98981f49fd8cfc] 2023-02-09 04:26:28: Fatal exception of type "CannotCreateActorException"
Also, it won't let me create an account with a username of admin, because that already exists, but changePassword.php says "no such user: admin"
So I think something is not right somewhere, but I'm not finding anything useful on the error message. Taustinoc (talk) 04:33, 9 February 2023 (UTC)
> [314f82c5ce98981f49fd8cfc] 2023-02-09 04:26:28: Fatal exception of type "CannotCreateActorException"
That definitely sounds not right. I would guess something went wrong with update.php. also, consider setting $wgShowExceptionDetails=true; in LocalSettings.php Bawolff (talk) 07:10, 9 February 2023 (UTC)
Well, I recovered the admin account. Had to dig the correct username out of the SQL dump and use changePassword.php, but I can now log in as the admin.
And, for reasons unknown, I can create new accounts how.
But there's a *lot* of pages that return "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page." However, if I do a search for content specific to that page in the SQL dump, it's clearly there.
And when I search for a page that isn't there, I get
[19d7ba82cd4f297e2334e1eb] /index.php?title=Special:Search&search=Code+%28roll+option%29 Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target.
Backtrace:
from /var/www/html/vendor/wikimedia/assert/src/Assert.php(49)
#0 /var/www/html/includes/Title.php(4190): Wikimedia\Assert\Assert::precondition()
#1 /var/www/html/includes/Title.php(4171): Title->assertProperPage()
#2 /var/www/html/includes/Revision/RevisionStore.php(1828): Title->getId()
#3 /var/www/html/includes/Revision/RevisionStore.php(1733): MediaWiki\Revision\RevisionStore->ensureRevisionRowMatchesPage()
#4 /var/www/html/includes/Revision/RevisionStore.php(1609): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots()
#5 /var/www/html/includes/Revision/RevisionStore.php(2348): MediaWiki\Revision\RevisionStore->newRevisionFromRow()
#6 /var/www/html/includes/Revision/RevisionStore.php(1286): MediaWiki\Revision\RevisionStore->loadRevisionFromConds()
#7 /var/www/html/includes/search/RevisionSearchResultTrait.php(52): MediaWiki\Revision\RevisionStore->getRevisionByTitle()
#8 /var/www/html/includes/search/RevisionSearchResult.php(16): RevisionSearchResult->initFromTitle()
#9 /var/www/html/includes/search/SqlSearchResult.php(36): RevisionSearchResult->__construct()
#10 /var/www/html/includes/search/SqlSearchResultSet.php(60): SqlSearchResult->__construct()
#11 /var/www/html/includes/search/SearchResultSet.php(73): SqlSearchResultSet->extractResults()
#12 /var/www/html/includes/search/SearchResultSet.php(184): SearchResultSet->count()
#13 /var/www/html/includes/search/SearchEngine.php(201): SearchResultSet->shrink()
#14 /var/www/html/includes/search/SearchEngine.php(157): SearchEngine->maybePaginate()
#15 /var/www/html/includes/specials/SpecialSearch.php(447): SearchEngine->searchTitle()
#16 /var/www/html/includes/specials/SpecialSearch.php(229): SpecialSearch->showResults()
#17 /var/www/html/includes/specialpage/SpecialPage.php(701): SpecialSearch->execute()
#18 /var/www/html/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#19 /var/www/html/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#20 /var/www/html/includes/MediaWiki.php(904): MediaWiki->performRequest()
#21 /var/www/html/includes/MediaWiki.php(562): MediaWiki->main()
#22 /var/www/html/index.php(50): MediaWiki->run()
#23 /var/www/html/index.php(46): wfIndexMain()
#24 {main} Taustinoc (talk) 17:23, 9 February 2023 (UTC)
No text in the page also points to avtor table referential integrity issues. Bawolff (talk) 20:18, 9 February 2023 (UTC)
Would that explain the error in searching for pages that don't exist (and I don't seem to be able to create them) also?
More important, is there a fix? Taustinoc (talk) 20:25, 9 February 2023 (UTC)
You're probably affected by the bug phab:T326071 (fixed, but 1.39.2 hasn't been released yet).
There's no (easy) recovery for this. Just restore your backup again, but upgrade to 1.35 first. Then you can upgrade to 1.37 Ciencia Al Poder (talk) 21:44, 9 February 2023 (UTC)
That does seem to be the same error. I'll give it a go. Taustinoc (talk) 21:57, 9 February 2023 (UTC)
Well, I don't get errors when I try to create a page, but there were still a bunch of pages that have no content. Which turned out to be pages whose names started with lower case letters. $wgCapitalLinks and cleanupCaps.php seems to be taking care of that. If it also cleans up the template pages, I think I'm good. Thanks. Taustinoc (talk) 22:21, 9 February 2023 (UTC)
Well, cleanupCaps.php didn't fix the templates, but I can use Move to fix those. There aren't that many. So I'm good to go.
Thank you, everyone. Taustinoc (talk) 03:56, 10 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Template:Warning

Hello, I want to create templates like the wikipedia templates, that have the color band according to the use that can be given to them, they are maintenance templates, that I need, for the articles of my wiki.

they are maintenance templates

Lomeno 24 (Contact me here) 00:10, 9 February 2023 (UTC)

Then just copy the templates from wikipedia to your wiki! Fokebox (talk) 08:34, 9 February 2023 (UTC)
Ok, thanks Lomeno 24 (Contact me here) 08:36, 9 February 2023 (UTC)
I don't see the color band of the template notice Lomeno 24 (Contact me here) 09:12, 9 February 2023 (UTC)

How to make a table of contents on the left outside the reference information block (Old style).

How to make a table of contents on the left outside the reference information block (Old style).

From the information that I read on MediaWiki, it was written that when switching to the new Vector 2022 template, the table of contents will be located outside the article block, so that when scrolling it is always in front of your eyes Terinel (talk) 06:52, 9 February 2023 (UTC)

Please see "Post a new question" in the sidebar. I'm not sure what the question is as you mention both "old style" but also switching to the Vector 2022 skin (not "template")... Malyacko (talk) 10:59, 9 February 2023 (UTC)

No tumbnail

When i upload a PDF i become this errormessage:

Fehler beim Erstellen des Vorschaubildes: /bin/bash: /usr/bin/convert: No such file or directory GPL Ghostscript 9.27: **** Could not open temporary file /tmp/gs_NjDZF5 GPL Ghostscript 9.27: Could not open the scratch file /tmp/gs_NjDZF5. Error: /ioerror in --showpage-- Operand stack: 1 true Execution stack: %interp_exit .runexec2 --nostringval-- showpage --nostringval-- 2 %stopped_push --nostringval-- showpage showpage false 1 %stopped_push 1992 1 3 %oparray_pop 1991 1 3 %oparray_pop 1979 1 3 %oparray_pop 1980 1 3 %oparray_pop showpage showpage 2 1 1 showpage %for_pos_int_continue 1983 1 7 %oparray_pop showpage showpage 1840 0 9 %oparray_pop showpage showpage Dictionary stack: --dict:727/1123(ro)(G)-- --dict:1/20(G)-- --dict:80/200(L)-- --dict:80/200(L)-- --dict:133/256(ro)(G)-- --dict:316/325(ro)(G)-- --dict:31/32(L)-- --dict:6/9(L)-- --dict:7/20(L)-- Current allocation mode is local Last OS error: Broken pipe GPL Ghostscript 9.27: Unrecoverable error, exit code 1


For jpg he can create the thumbnail 109.42.114.166 (talk) 07:24, 9 February 2023 (UTC)

It tries to use /usr/bin/convert, but which file does not exist! With convert is meant ImageMagick Justman10000 (talk) 10:27, 9 February 2023 (UTC)

Cloudflare and Apache returning 127.0.0.1 as IP

Hello,

I'm horribly confused as I've setup remoteip on apache to use CF-Connecting-IP but unfortunately whenever I use CheckUser on MediaWiki (or when I tried to verify my email) it keeps sending the ip as 127.0.0.1.

Does anyone else have any ideas as to how this can be fixed?

Thanks! Carolina2k22 (talk) 11:53, 9 February 2023 (UTC)

error "There is currently no text in this page" after update

Hi all,

I've updated mediawiki from1.32 to 1.39, and ran the update.php script. Now I can login to the wiki, but for any page I open I got this message:


"There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page."


Can't find any solution ErPetruzza (talk) 12:00, 9 February 2023 (UTC)

All the details related to the pages are available (name, lenght, ect...) but there are missing history and content ErPetruzza (talk) 15:00, 9 February 2023 (UTC)
I also tryed a new installation of mediawiki, and then to restore the db from backup. But nothing changed ErPetruzza (talk) 18:07, 9 February 2023 (UTC)
I had to rollback to 1.32 and restore the db again. At least thousands of wiki pages aren't lost ErPetruzza (talk) 18:39, 9 February 2023 (UTC)
You have to upgrade to 1.35 first. See phab:T326071 Ciencia Al Poder (talk) 18:13, 10 February 2023 (UTC)
thank you, I'll try this ErPetruzza (talk) 08:50, 12 February 2023 (UTC)

Files with missing revision 0 cannot be restored in 1.39.1

Hi, from a migration/update that did not work well around 2009 (I was not involved at that time) we (https://www.hammwiki.info) have a real lot of images with a missing revision 0, so the description etc. cannot be edited etc.

In MediaWiki 1.35.7 we had a good workaround: Deleting and restoring the images created the revision 0 and everything was fine.

In 1.39.1 the image cannot even be deleted, seems the Mediawiki checks for revision 0 what it did not in 1.35.7. DeleteBatch.php and Undelete.php in maintenance folder work, but do also not create the revision 0.

Example Image: https://www.hammwiki.info/wiki/Datei:Allee-center_1.jpg

Any idea how I can solve this? Being able to create a revision 0 would be fully OK, no matter how.

Cheers Frank BonniHamm (talk) 15:05, 9 February 2023 (UTC)

oh yeah, sorry to hear. I have the same problem, and scrolling through the support desk, so have many others. There seems to have been a breaking change somewhere at the 1.35 mark, and if that was skipped or didn't work correctly, some data in the actors table is irrestorably lost... it would also help me to be able to at least delete or overwrite these files.... Rebastion2 (talk) 17:36, 9 February 2023 (UTC)
Your problem is tracked at phab:T326071, however your wiki's user attribution data has been lost already. Restore from backup and upgrade to 1.35 first if you can. Ciencia Al Poder (talk) 18:12, 10 February 2023 (UTC)
"Will be fixed in MediaWiki 1.39.2" and "attribution data has been lost already" are sort of contradictory. What does the patch at T326071 fix for those already affected? Who has backups from years ago.... all very frustrating. Rebastion2 (talk) 15:42, 11 February 2023 (UTC)
You don't need backups from years ago. You need a backup from *before* the upgrade. You're supposed to backup your database before an upgrade (it's recommended on Manual:Upgrading), and in case you run into problems, restore it immediately, not leave your wiki in a totally broken state and continue overwriting backups from the broken state.
The fix in 1.39.2 is to prevent data loss. However, wikis that have been upgraded already from a very old versions, have lost their data and it's unrecoverable. Ciencia Al Poder (talk) 17:07, 11 February 2023 (UTC)
The problem is, if I don't notice these Revision 0 errors after an upgrade, like most people do if it only affects a handful of files/pages, then years go by until you do notice. I know I am sitting here like an idiot because the post-1.35 upgrader is all screwed up, but it's not years ago when 1.35 came out that I noticed the database corruption. In order to revert to a backup and not leave the wiki in a broken state, I need to know it's a broken state. And that's not always so clear or visible.... unfortunately. Rebastion2 (talk) 17:56, 11 February 2023 (UTC)
any suggestions on how to manually fix this if it just affects a handful of pages and files? in my mind, if I could erase all traces of a page/file in the database (as if it never existed) and then create it completely anew, that could solve it... or I enter some bogus actor/rev IDs... but not sure how to do that exactly without making things worse Rebastion2 (talk) 12:29, 20 February 2023 (UTC)
so I wonder without having done anything if I attempt another upgrade will it work now, or do we need https://phabricator.wikimedia.org/T328169 first for sure Rebastion2 (talk) 10:50, 16 January 2024 (UTC)
Help for these and related issues would be huge, maybe as a package of database integrity / repair tools MW maintenance could have in store? I lag several versions of MW behind because of these issues, and not every project has the budget to hire a database wiz to overcome them. Rebastion2 (talk) 12:15, 4 April 2024 (UTC)
would be great if someone could work on https://phabricator.wikimedia.org/T328169 Rebastion2 (talk) 06:21, 11 July 2024 (UTC)

PHP Error after upgrade 1.37 to 1.39.1

{{{text}}}

My host required me to upgrade from PHP 7.4.30 to PHP 8.2 so i decided to update MediaWiki first from 1.37.? to 1.39.1. After merging the new release into my instance, blank page.


The DB is MySQL 8.0.28-0ubuntu0.20.04.3

PHP is currently 7.4.30 until this is fixed at any rate.

The site is: https://wayneprecht.org/wiki3/index.php

Enabling debug yields this:


Fatal error: Uncaught Error: Class 'MediaWiki\HookContainer\HookRunner' not found in /home/wprecht/wayneprecht.org/wiki3/includes/Hooks.php:174 Stack trace:

  1. 0 /home/wprecht/wayneprecht.org/wiki3/includes/exception/MWExceptionHandler.php(767): Hooks::runner()
  2. 1 /home/wprecht/wayneprecht.org/wiki3/includes/exception/MWExceptionHandler.php(291): MWExceptionHandler::logError(Object(ErrorException), 'error', 'error', 'mwe_handler')
  3. 2 /home/wprecht/wayneprecht.org/wiki3/includes/AutoLoader.php(117): MWExceptionHandler::handleError(2, 'require(/home/w...', '/home/wprecht/w...', 117, Array)
  4. 3 /home/wprecht/wayneprecht.org/wiki3/includes/AutoLoader.php(117): require()
  5. 4 [internal function]: AutoLoader::autoload('MediaWiki\\Cache...')
  6. 5 /home/wprecht/wayneprecht.org/wiki3/includes/HookContainer/HookRunner.php(35): spl_autoload_call('MediaWiki\\Cache...')
  7. 6 /home/wprecht/wayneprecht.org/wiki3/includes/AutoLoader.php(117): require('/home/wprecht/w...')
  8. 7 [internal function]: AutoLoader::autoload('MediaWiki\\HookC...')
  9. 8 /hom in /home/wprecht/wayneprecht.org/wiki3/includes/Hooks.php on line 174

I have no clue how to proceed. I currently have all extensions commented out and the LocalSettings file has all the recent changes. 1.37 had been working fine for at least 18 months, so something in the update. Finavar (talk) 21:19, 9 February 2023 (UTC)

Please install your wiki on a new, empty directory, and copy only LocalSettings.php, as explained in Manual:Upgrading.
You're mixing PHP files from two different installations!! Ciencia Al Poder (talk) 21:53, 9 February 2023 (UTC)
Created a fresh install and moved LocalSettings.php, the 2 skins and 3 extenstions I had added to 1.3 and copied the images folder.
Wiki now works, but no images appear. I get a grey box with "Error creating thumbnail: File missing".
The files are for sure there, permissions are correct. LocalSettings.php has these variables set:
$wgScriptPath = "/wiki3";
$wgUploadDirectory = "$wgScriptPath/images";
$wgUploadPath = "$wgScriptPath/images";


$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgGenerateThumbnailOnParse = true; Finavar (talk) 03:08, 11 February 2023 (UTC)
Probably a permission issue with the images folder (ensure it is writsble by the webserver) Bawolff (talk) 06:02, 11 February 2023 (UTC)
Error creating thumbnail: File missing looks like MediaWiki can't access the file. Try opening a image from the File: page directly. You probably made a typo when copying the images folder (maybe you have an /images/images folder or similar). Ciencia Al Poder (talk) 10:18, 11 February 2023 (UTC)
Your summary said cannot use variable replacement, but that is not the issue here. You can use variable replacement if you want (as long as you define things in the right order), you just have to use the correct variables. E.g. for $wgUploadDirectory would be "$IP/images" and not $wgScriptPath based. Bawolff (talk) 03:16, 12 February 2023 (UTC)

Escuela en Mexico busca actualizar y mantener un wiki.

Saludos! Somos una escuela de desarrollo personal en Mexico. Buscamos un programador en Mexico que conoce bien Mediawiki quien puede actualizar y mantener nuestra Mediwiki instalacion. Es posible una relacion de mantenimiento y apoyo a largo plazo. psycan@gmail.com 187.189.33.78 (talk) 01:56, 10 February 2023 (UTC)

See also: Professional_development_and_consultingAmmarpad (talk) 12:40, 10 February 2023 (UTC)

Help With Deprecated Method getCanonicalName()

I want to upgrade to the latest LTS release 1.39.1 from 1.35.1, but I'm blocked by this method deprecated as of 1.38. Unfortunately, the 1.38 release notes do not allude to alternative methods for those deprecated.

The problem is that this method is used by Extension:IPBAuthLogin, and I want to try to figure out if it's possible to wrangle it into submission. I'm not a PHP coder, but I can usually figure things out or at least learn enough to ask the right questions.

I operate a closed wiki restricted to forum members only, so my forums act as a gateway to User access to the wiki. This method is a part of a function that essentially normalizes a wiki and forum user name to get a clean match without possibility of duplicating users, allowing authentication with my forum user names.

Here's the trace for the error:

[1bb5c341ca3ff5879eb19ed7] /wiki/index.php?title=Special:UserLogin&returnto=Special:Version Error: Call to undefined method User::getCanonicalName()
Backtrace:
from /srv/sites/_wiki/extensions/IPBAuthLogin/includes/IPBAuth.php(136)
#0 /srv/sites/_wiki/extensions/IPBAuthLogin/includes/auth/IPBAuthenticationProvider.php(185): IPBLoginAuth\IPBAuth::normalizeUsername()
#1 /srv/sites/_wiki/includes/auth/AuthManager.php(922): IPBLoginAuth\Auth\IPBAuthenticationProvider->providerNormalizeUsername()
#2 /srv/sites/_wiki/includes/auth/ThrottlePreAuthenticationProvider.php(137): MediaWiki\Auth\AuthManager->normalizeUsername()
#3 /srv/sites/_wiki/includes/auth/AuthManager.php(425): MediaWiki\Auth\ThrottlePreAuthenticationProvider->testForAuthentication()
#4 /srv/sites/_wiki/includes/specialpage/AuthManagerSpecialPage.php(372): MediaWiki\Auth\AuthManager->beginAuthentication()
#5 /srv/sites/_wiki/includes/specialpage/AuthManagerSpecialPage.php(502): AuthManagerSpecialPage->performAuthenticationStep()
#6 /srv/sites/_wiki/includes/htmlform/HTMLForm.php(725): AuthManagerSpecialPage->handleFormSubmit()
#7 /srv/sites/_wiki/includes/specialpage/AuthManagerSpecialPage.php(435): HTMLForm->trySubmit()
#8 /srv/sites/_wiki/includes/specialpage/LoginSignupSpecialPage.php(320): AuthManagerSpecialPage->trySubmit()
#9 /srv/sites/_wiki/includes/specialpage/SpecialPage.php(701): LoginSignupSpecialPage->execute()
#10 /srv/sites/_wiki/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run()
#11 /srv/sites/_wiki/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#12 /srv/sites/_wiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
#13 /srv/sites/_wiki/includes/MediaWiki.php(562): MediaWiki->main()
#14 /srv/sites/_wiki/index.php(50): MediaWiki->run()
#15 /srv/sites/_wiki/index.php(46): wfIndexMain()
#16 {main}

Any help would be appreciated, and if it's an easy patch, I can handle it. I'll even fork the extension and host. If not, I will need a PHP developer to help out. ~z929669 Talk 04:47, 10 February 2023 (UTC)

The replacement for the removed User method is UserNameUtils::getCanonical(). – Ammarpad (talk) 12:37, 10 February 2023 (UTC)
I was able to work through updates to my local of Extension:IPBAuthLogin with that method as a starting point, so thank you again!
Once I'm finished with all my testing, I will fork and update it.
Is it best practice to update the extension in place (will likely render it useless for MW versions < 1.38), or should that one be left "as is" for compatibility with 1.35-1.37? ~z929669 Talk 17:18, 10 February 2023 (UTC)

MediaWiki sending IP as 127.0.0.1

Hello, I'm having quite a few issues as MediaWiki is detecting my IP as 127.0.0.1 when I use CheckUser and when I was looking to confirm my IP.

I've already configured Apache2 following [2] and I am unsure as to why this is happening. I have already created a php test file and confirmed that the CF-Connecting-IP header is being passed.

I've also tried:

$wgUseForwardedFor = true; $wgForwardedForHeader = "CF-Connecting-IP";

To no avail.

In CheckUser, when I look to see all edits from my username, it is picking up the XFF header: "IP: 127.0.0.1   XFF: [omit]". But I don't know why it isn't just picking the CF-Connecting-IP plainly up as the user's IP.

Please help, it'd be much appreciated since this is a bit confusing and practically makes CheckUser redundant. Carolina2k22 (talk) 04:50, 10 February 2023 (UTC)

Try setting $wgCdnServersNoPurge = ["127.0.0.1"]; Bawolff (talk) 11:55, 10 February 2023 (UTC)
This resolved my issue, thank you so much! Carolina2k22 (talk) 13:37, 12 February 2023 (UTC)

Upgraded from 1.26.3 to 1.39.1 directly

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.


Dreamhost updated PHP to 8.1 today around noon and the removal of the each() function broke critical aspects of my wiki including saving pages. I have been running 1.26.3. Foolishly, I did not read the entire Upgrading manual page and instead of stepping through 1.35 first as it advises, I upgraded directly to 1.39.1. Installation threw Error 1054 Unknown Column many times and not knowing better I created the comments table manually, and repeated the process to create each unknown column that threw an Error 1054 so the upgrade would populate these values and proceed. The upgrade apparently succeeded but the website then failed to load, throwing an error. I have a backup of the database after the 1.39.1 install.

I then attempted to downgrade to 1.35.9 by replacing the install files, and after I manually recreated several columns and indices in templatelinks that had been dropped by the 1.39.1 install, the upgrade process succeeded. After all the upgrade process now was only looking for these columns and indices so it could drop them again anyway. But it is still throwing an error.

MediaWiki internal error.

Original exception: [Y@XAYqXqbAL2rW9YxfgqVwAAAAE] /index.php Wikimedia\Rdbms\DBQueryError from line 1713 of /home/(username)/wiki.(my website).com/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1054: Unknown column 'page_restrictions' in 'field list' (mysql.(my website).com)

Function: LinkCache::fetchPageRow

Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Main_Page' LIMIT 1

I also have made a backup of the database after this 1.35.9 install, and this is where I am currently. I do not have a backup of the database from before I began, but I do have a backup of the 1.26.3 install files. I can't downgrade back to 1.26.3 because it can't find the cur table. This was clearly not designed to be backwards compatible this way. It is clear that actual page text tables are unaffected by the upgrade. Based on the manual the upgrade essentially shuffled data around, like collating comments into the comments table, and most of what was affected was things like edit summaries, which I don't use or need. Commenting out extensions in LocalSettings has not done anything.

I'm not a mysql guy. I am doing this through Dreamhost and phpMyAdmin with Filezilla for the FTP. I don't know how to access a command prompt or a shell for this install.

What is the best course of action I should take to fix this? Do I run Maintenance/update.php through a command prompt somehow? Should I wipe the database and reimport one of the backups on a fresh install? Ancillation (talk) 05:05, 10 February 2023 (UTC)

Dreamhost takes five days of automatic backups. Issue resolved Ancillation (talk) 20:27, 10 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem changing User Account name

I want to change the account name I used when creating my wiki site, and I want it to be transferred to it on all the pages I've saved so far. Can you help me? Saliha96 (talk) 11:03, 10 February 2023 (UTC)

Use extension:renameuser Bawolff (talk) 11:52, 10 February 2023 (UTC)
I got the result I wanted. Thank you. Saliha96 (talk) 08:03, 20 February 2023 (UTC)

Questions about changing back

I've got 2 questions about changing the page appearance:

1) I do NOT like the new page appearance- there is much too wasted space in the margins, especially to the right. The option is given to change back, but when I select that, I get a page designed for a software professional. I just want to know WHICH option do I choose to get the old look back, since that IS offered? For Dummies version, please.

2) I do NOT want all of the detailed clutter that shows up on the Current Events page (right column). The only thing that I'm interested in on a regular basis is the By Topic listing. I don't WANT the Trials, Elections, Sports, etc. in EVERY visit. So I close the sections, but the NEXT time I visit the page, they're back. How do I make my selections PERMANENT (but reversible on the particular visit)? CFLeon (talk) 11:41, 10 February 2023 (UTC)

Go to w:Special:Preferences and in the appearence tab under skin select legacy vector.
See also w:WP:V2022 Bawolff (talk) 11:51, 10 February 2023 (UTC)

update.php

I would like to know how to execute the updata.php, I don't know how to execute it. Lomeno 24 (Contact me here) 01:27, 11 February 2023 (UTC)

See this article. ~z929669 Talk 02:15, 11 February 2023 (UTC)

Cannot read wide tables : add slider

Hi all, on page -> Extension:BounceHandler/bounce_records_table/fr for example, the Indexes array is unreadable on my screen ( tablette).

Request: is to provide a horizontal slider to view automatically right contents correctly when tables are too wide for the display. Thanks.

Christian 🇫🇷 FR (talk) 09:06, 11 February 2023 (UTC)

That's a preformatted text not table. <syntaxhighlight lang='text'> text used to have a horizontal scroll bar but this was removed due to various issues with overflow. (See phab:T24060, for example) – Ammarpad (talk) 18:07, 11 February 2023 (UTC)
it is closed but i dont see the solution; how to realign this mess ? Christian 🇫🇷 FR 🚨 (talk) 21:38, 11 February 2023 (UTC)

I didn't say it's open. The solution also is already what you see (that's to not add scrolling)

However, I think you can add the scrolling behavior for yourself by adding this in your common.css

pre, .mw-code {
    white-space: pre;
    overflow: auto;
}<pre> – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 22:22, 11 February 2023 (UTC)
:Hmm, maybe we should add some inline styles for ascii art table diagrams, since word wrapping really wrecks them.
:Or maybe we should just replace them with real tables. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:32, 11 February 2023 (UTC)
:Ammarpad proposal is magic; it works now on my tablette Galaxy with Desktop version.
:It does not work with mobile version. This halfway solution is better than nothing.
:Bawolff proposal is nice because we cannot request each user to put the workaround locally in his file.
:Thanks.
:[[User:Wladek92|Christian 🇫🇷 FR]] ([[User talk:Wladek92|talk]]) 08:52, 12 February 2023 (UTC)

== I need to solve this error ==
{{Archive top|result=seems resolved|status=resolved}}

I have problems logging into my user page, I need to fix a bug, or else I will have to uninstall MediaWiki and start again to install MediaWiki to fix the bug.


MediaWiki internal error.

Original exception: [f91a43cb11f8ada61c033f69] /mediawiki/index.php/Usuario:Lomeno_24 Wikimedia\Rdbms\DBQueryError from line 1713 of C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1146: Table 'mediawiki.wikiuser_profile' doesn't exist (localhost)
Function: UserProfile::getProfile
Query: SELECT * FROM `wikiuser_profile` WHERE up_actor = 1 LIMIT 1

Backtrace:
#0 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1697): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1672): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1241): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1921): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2021): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array)
#6 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfile.php(134): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string, array)
#8 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfileHooks.php(127): UserProfile->getProfile()
#9 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(329): UserProfileHooks::onArticleFromTitle(Title, NULL, RequestContext)
#10 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookRunner.php(753): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 C:\xampp\htdocs\mediawiki\includes\page\Article.php(201): MediaWiki\HookContainer\HookRunner->onArticleFromTitle(Title, NULL, RequestContext)
#13 C:\xampp\htdocs\mediawiki\includes\page\Article.php(227): Article::newFromTitle(Title, RequestContext)
#14 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(422): Article::newFromWikiPage(WikiPage, RequestContext)
#15 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(311): MediaWiki->initializeArticle()
#16 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(947): MediaWiki->performRequest()
#17 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(547): MediaWiki->main()
#18 C:\xampp\htdocs\mediawiki\index.php(53): MediaWiki->run()
#19 C:\xampp\htdocs\mediawiki\index.php(46): wfIndexMain()
#20 {main}

Exception caught inside exception handler: [f91a43cb11f8ada61c033f69] /mediawiki/index.php/Usuario:Lomeno_24 Wikimedia\Rdbms\DBQueryError from line 1713 of C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1146: Table 'mediawiki.wikiuser_profile' doesn't exist (localhost)
Function: UserProfile::getProfile
Query: SELECT * FROM `wikiuser_profile` WHERE up_actor = 1 LIMIT 1

Backtrace:
#0 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1697): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1672): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1241): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(1921): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\Database.php(2021): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string, array)
#6 C:\xampp\htdocs\mediawiki\includes\libs\rdbms\database\DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfile.php(134): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string, array)
#8 C:\xampp\htdocs\mediawiki\extensions\SocialProfile\UserProfile\includes\UserProfileHooks.php(127): UserProfile->getProfile()
#9 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(329): UserProfileHooks::onArticleFromTitle(Title, NULL, SkinVector)
#10 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 C:\xampp\htdocs\mediawiki\includes\HookContainer\HookRunner.php(753): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 C:\xampp\htdocs\mediawiki\includes\page\Article.php(201): MediaWiki\HookContainer\HookRunner->onArticleFromTitle(Title, NULL, SkinVector)
#13 C:\xampp\htdocs\mediawiki\includes\page\Article.php(227): Article::newFromTitle(Title, SkinVector)
#14 C:\xampp\htdocs\mediawiki\includes\skins\Skin.php(2507): Article::newFromWikiPage(WikiPage, SkinVector)
#15 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(354): Skin->getFooterLinks()
#16 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()
#17 C:\xampp\htdocs\mediawiki\includes\skins\SkinTemplate.php(144): SkinTemplate->generateHTML()
#18 C:\xampp\htdocs\mediawiki\includes\OutputPage.php(2622): SkinTemplate->outputPage()
#19 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionRenderer.php(153): OutputPage->output()
#20 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#21 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionHandler.php(106): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#22 C:\xampp\htdocs\mediawiki\includes\exception\MWExceptionHandler.php(185): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#23 C:\xampp\htdocs\mediawiki\includes\MediaWiki.php(580): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#24 C:\xampp\htdocs\mediawiki\index.php(53): MediaWiki->run()
#25 C:\xampp\htdocs\mediawiki\index.php(46): wfIndexMain()
#26 {main} [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 09:07, 11 February 2023 (UTC)
:Run [[Manual:update.php|update.php]] script – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 09:51, 11 February 2023 (UTC)
{{Archive bottom}}

== CSS class for logged in users ==

Hello, I noticed that the "body" element has different CSS classes depending on the current namespace, action (e.g. action-edit), etc.

Is there a way to add a class depending on whether the user is logged in or not?

This would help in creating the style on my wiki.

Thank you! [[User:Mruczekdd|Mruczekdd]] ([[User talk:Mruczekdd|talk]]) 18:43, 11 February 2023 (UTC)
:I'm not sure about that, but you can use the page MediaWiki:Group-user.css for CSS you only want to show up for logged in users. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 20:22, 11 February 2023 (UTC)
:I found some code in another thread, changed it a bit and it seems to be working
:LocalSettings.php:<syntaxhighlight lang='text'>
$wgHooks['OutputPageBodyAttributes'][] = 'wfAddLoggedInClass';
function wfAddLoggedInClass( $out, $sk, &$bodyAttrs) {
  $user = RequestContext::getMain()->getUser();
  if ( $user->isRegistered() ) {
    $bodyAttrs['class'] .= ' loggedin';
  }
  return true;
}
</syntaxhighlight>But your suggestion is much easier and probably won't break with updates. Thanks. :) [[User:Mruczekdd|Mruczekdd]] ([[User talk:Mruczekdd|talk]]) 20:23, 11 February 2023 (UTC)

== Cross-wiki transclusion ==

How do I set up my wiki so I can transclude templates across wikis like you can with links? ~ [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 21:29, 11 February 2023 (UTC)
:See [[manual:$wgEnableScaryTranscluding]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 21:40, 11 February 2023 (UTC)
:{{ping|Bawolff}} Thanks, but does that work with CentralAuth (which is what I am using)? [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 23:37, 11 February 2023 (UTC)
:It should not be affected by central auth, so it  should work fine [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:07, 12 February 2023 (UTC)
:Can I configure it to only allow ''some'' wikis to be transcluded? [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 00:23, 12 February 2023 (UTC)
:Yes. There is a field in the interwiki table you can set (or use [[extension:Interwiki]]) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:21, 12 February 2023 (UTC)

== Images don't show after server transfer ==
{{Archive top|result=Needed to add an override to the <Directory> section of the Apache config file. Apache error was <code>IfModule not allowed here</code>. An <code>AllowOverride</code> ALL in the right place fixed it.|status=resolved}}

MediaWiki	1.39.1

PHP	8.1.2-1ubuntu2.10 (apache2handler)

MySQL	8.0.32-0ubuntu0.22.04.2

Apache version 2.4.52

Example page: http://rptools.hyperbooks.com/index.php/mapTool_User_Interface


I am trying to move a wiki from a test server to a live server. Everything works perfectly on the test server, but images don't show on the live server. Both servers are Ubuntu 22.04 server, and both were set up identically using the LAMP server install in apt.


The database import seems to have gone without error. Both tables with "image" in their name show the same data. The images are there in the images directory. Permissions are currently set to 777, so permission issues seem unlikely. File Upload says it works, but I can't find the file anywhere in the images directory. (It might be there, in all the folders, I can't find it.)


cleanupImages.php only lists 42 images, but there are over 2,000 (and the show in the File list). No idea what that means.


rebuildImages.php does nothing. as does rebuildall.php.


If I click on a missing image, it takes me to the File: page, where the thumbnail doesn't show. If I click on the file there, I get:

<code>Internal Server Error</code>

<code>The server encountered an internal error or misconfiguration and was unable to complete your request.</code>

<code>Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.</code>

<code>More information about this error may be available in the server error log.</code>

<code>Apache/2.4.52 (Ubuntu) Server at rptools.hyperbooks.com Port 80</code>


I even tried renaming LocalSettings.php and rebuilding it, but I get the same errors.


I'm at a loss where to go next. [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 22:31, 11 February 2023 (UTC)
:What does the apache error log say?
:Sometimes this can be an issue with the .htaccess file in the images directory. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:34, 11 February 2023 (UTC)
:IfModule not allowed here. Which was trivial to correct, once someone smart got me to look at the logs the error message said to look at.
:Thanks you. [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 22:56, 11 February 2023 (UTC)
{{Archive bottom}}

== Sub-CentralAuth ==

Is it possible to set up a sub-instance of CentralAuth within an instance of CentralAuth? Like a sub-interwiki with their own stewards that only affect the wikis in the subsystem (but are also still effected by the main stewards). [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 23:39, 11 February 2023 (UTC)
:There's support for having global groups that are only active on some wikis. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:22, 12 February 2023 (UTC)

== Loss of session data when editing in 1.39.1 ==

*MediaWiki 1.39.1

*PHP 8.1.14 (apache2handler)
*MySQL 8.0.32 Ubuntu 20.04.2

After updating from LTS 1.35.8 to 1.39.1, I have been encountering intermittent loss of session data when editing. The message is:
----Sorry! We could not process your edit due to a loss of session data. 

''Because (my wiki) has raw HTML enabled, the preview is hidden as a precaution against JavaScript attacks.'' 

'''If this is a legitimate edit attempt, please try again.''' If it still does not work, try logging out and logging back in, and check that your browser allows cookies from this site.
----Refreshing the page results in a successful save and I remain logged in. I get this error when editing pages or using the ReplaceText extension.

I enabled a debug log as described in [[Manual:How to debug]], but could not find any errors. I check the "Keep me logged in" box at login.

My Localhost.php cache settings are:

<code>$wgMainCacheType = CACHE_ACCEL;</code>

<code>$wgSessionCacheType = CACHE_ACCEL;</code>

I have a multiple server configuration with a load-balancing front end across multiple traffic handling servers connected to to a single server containing the database and files on the backend.

How can this be debugged?

(For security - Raw HTML is enabled, but access is restricted to admins using Extension:SaferHTMLTag) [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 01:36, 12 February 2023 (UTC)
:> I have a multiple server configuration with a load-balancing front end across multiple traffic handling servers connected to to a single server containing the database and files on the backend.
:If you have more than one web server (by which i mean actual webserver, you can have other servers if they aren't php servers) you cannot use CACHE_ACCEL. Use memcached or redis instead.
:P.s. SaferHTMLTag extension is not very safe and pretty easy to bypass. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:19, 12 February 2023 (UTC)
:Thank you very much! My problem is intermittent and difficult to reproduce. I will change my cache as you suggest.
:I will reply with a status when I am confident of my results. [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 11:58, 12 February 2023 (UTC)
:Generally if you had multiple web servers the issue would happen a lot (since CACHE_ACCEL is not shared between webservers). If its just happening rarely or you just have 1 web server,it could be apcu.shm_size is too small in php.ini. alternatively you can set $wgSessionCacheType =CACHE_DB; which is slower but more reliable. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:57, 14 February 2023 (UTC)
:I have configured my cache to use memcached and can report that I have had no further loss of session data. (I do not want to experiment with PHP cache settings, as there are other PHP applications on my servers.) [[User:Lady G2016|Lady G2016]] ([[User talk:Lady G2016|talk]]) 20:13, 16 February 2023 (UTC)

== How can I add sister projects to my wiki? ==

[[File:Proyectos Wikimedia.png|thumb]]
Today I want to learn how to create my wikis for personal and business projects, I would like to know how I can add a list of sister projects in my first wiki to add my own content, once MediaWiki is installed, like wikipedia, thank you. [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 02:24, 12 February 2023 (UTC)
:I think you may be looking for [[Manual:Interface/Sidebar]]. [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 02:38, 12 February 2023 (UTC)
:on wikimedia wikis, this comes from [[extension:Wikibase]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:16, 12 February 2023 (UTC)

== I have created a page. Excuse me, how to add a translation to this page? ==

I have created a page. Excuse me, how to add a translation to this page? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 05:50, 12 February 2023 (UTC)
:please fast answer me,thanks. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:44, 12 February 2023 (UTC)
:How to use this tag? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 09:35, 12 February 2023 (UTC)
:Please see "Post a new question" in the side bar, and be more specific. Do you have the "Translate" extension installed? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 10:35, 12 February 2023 (UTC)
:I couldn't install the extension. When I created the cx server, the system recovery required the server to be restarted. I clicked on "restart the server" and the system refreshed automatically, and then there was an endless loop. 
:I am Chinese, so I suggest you reply in Chinese. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 10:42, 12 February 2023 (UTC)
:Cx server is for content translation extension which is different from [[Extension:Translate]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 11:13, 12 February 2023 (UTC)
:How do I download it? 
:I did not find a download link on this page. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:44, 12 February 2023 (UTC)
:I have now found the download link, I will try to install it, if I have any questions, I will continue to reply, thank you for your help. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:49, 12 February 2023 (UTC)
:Oh no!I can not access my wiki,system send a warning and a fatal error:
:Warning: Illegal string offset 'name' in G:\UwAmp\www\GWiki\includes\registration\ExtensionProcessor.php on line 232
:Fatal error: Uncaught ExtensionDependencyError: Translate is not compatible with the current MediaWiki core (version 1.37.1), it requires: >= 1.38. Translate requires UniversalLanguageSelector to be installed. in G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php:404 Stack trace: #0 G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php(228): ExtensionRegistry->readFromQueue(Array) #1 G:\UwAmp\www\GWiki\includes\Setup.php(168): ExtensionRegistry->loadFromQueue() #2 G:\UwAmp\www\GWiki\includes\WebStart.php(90): require_once('G:\\UwAmp\\www\\GWiki...') #3 G:\UwAmp\www\GWiki\index.php(45): require('G:\\UwAmp\\www\\GWiki...') #4 {main} thrown in G:\UwAmp\www\GWiki\includes\registration\ExtensionRegistry.php on line 404 [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 11:53, 12 February 2023 (UTC)
::MediaWiki 1.37 is no longer officially supported. I would generally suggest you upgrade to 1.39.
::If you really need to use 1.37, you can try the version from https://github.com/wikimedia/mediawiki-extensions-Translate/archive/refs/heads/REL1_37.zip (but that one doesn't include composer dependencies which may cause 'missing class' errors) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:29, 13 February 2023 (UTC)
:I will try to install UniversalLanguageSelector and older versions of the Translate extension [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:01, 12 February 2023 (UTC)
:New error:
:Deprecated: Use of Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges was deprecated in MediaWiki 1.37. [Called from TranslateUtils::shouldReadFromMaster in G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php at line 520] in G:\UwAmp\www\GWiki\includes\debug\MWDebug.php on line 375
:MediaWiki inter [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:13, 12 February 2023 (UTC)
::Deprecated warnings are not errors, but warnings only. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:45, 12 February 2023 (UTC)
:According to the error content, I found that the version is not appropriate. I need an extension for version 1.37.1. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:15, 12 February 2023 (UTC)
:If you still run 1.37, then you run an insecure outdated unsupported version. Please see [[Download]] and [[Manual:Upgrading]]. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:44, 12 February 2023 (UTC)
:I'll try. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:45, 12 February 2023 (UTC)
:I am using a Windows host, but I did not find a detailed tutorial for the Windows host [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:47, 12 February 2023 (UTC)
:Tutorial for what esactly? Which documentation (link!) do you follow? At which sentence are you stuck? Please be way more specific and clear - thanks! [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 02:55, 13 February 2023 (UTC)
:Sorry, my description may not be clear. I don't know how the Windows host should run the Linux command. Your manual does not provide an update method for the Windows host. 
:I am Chinese, so I suggest you reply in Chinese. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 07:08, 13 February 2023 (UTC)
:The commands are the same for windows command prompt as they are for linux. However, on windows command line php might not be installed automatically (or it might not be in PATH) which complicates matters.
:If you can't figure out the commandline you can use the web upgrader. See https://www.mediawiki.org/wiki/Manual:Upgrading#Web_browser [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:34, 13 February 2023 (UTC)
:OK, excuse me, will my database be replaced by update.php? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:16, 13 February 2023 (UTC)
:We encourage people to make a backup just in case, but it should just update it not replace. No data will be lost. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:51, 14 February 2023 (UTC)
:May I ask if the Translate extension needs to be installed in the database? when I loaded it, the system output a fatal error of type DBQuery [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 05:45, 14 February 2023 (UTC)
:yes, you need to run the MW upgrader after installing it. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 06:27, 14 February 2023 (UTC)

== Mediawiki <-> Phabricator : links  task id <-> bug id ==
{{Flow summary|Add 2000 to the bug number or go to bugzilla.wikimedia.org/bug_number.}}

Hi all, Mediawiki references tasks in Phabricator as for example -> https://phabricator.wikimedia.org/T24060

Phabricator in this task references bugs id as -> 
 This bug has been marked as a duplicate of bug 414 ***
 This bug has been marked as a duplicate of bug 260 ***
but provides no link for that. How do readers retrieve the final informations ? May be to add some lines on bug management compared to tasks use. Thanks.

[[User:Wladek92|Christian 🇫🇷 FR]] ([[User talk:Wladek92|talk]]) 08:30, 12 February 2023 (UTC)
:There's [[Talk:Phabricator/Help]] for help about Phabricator. FYI, there's probably nothing that can be done about these orphaned references. The comments where imported from old platform used by Wikimedia before Phabricator. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 08:45, 12 February 2023 (UTC)
:You can just add 2000 to the number. Bug 414 = [[phab:T2414]].
:Also https://bugzilla.wikimedia.org/414 will redirect. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 11:16, 12 February 2023 (UTC)

== How to custom Skins for Categories ==

I want to change Default Categories Design.

[[:Category:Category|Category:Category - MediaWiki]]

hxxps://tinyurl.com/2p3aq6gc

I want to Change like. 

hxxps://tinyurl.com/2nnntv7q


How can We do that. [[User:Dtuhin|Dtuhin]] ([[User talk:Dtuhin|talk]]) 13:44, 12 February 2023 (UTC)
:See [[How to become a MediaWiki hacker]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:58, 12 February 2023 (UTC)

== 1.39.1 installation: update.php can't create linktable ==
{{Archive top|result=Mysql issue.  Orphaned linktarget.ibd file (missing it's companion linktarget.frm file).  I removed the orphaned file, and then rerunning update.php seems to have regnerated the pair.|status=resolved}}

I'm getting the following error when upgrading to mediawiki-1.39.1 while using mw-config and an existing 1.38.4 database.  Note: I'm attempting to create a completely new LocalSettings.php file, as my existing 1.38.4 LocalSettings.php seems to break in several places during a normal upgrade process.


...

Creating linktarget table...

An error occurred:

Error 1005: Can't create table `mediawiki`.`linktarget` (errno: 184 "Tablespace already exists")

Function: Wikimedia\Rdbms\Database::sourceFile( /opt/homebrew/var/www/mediawiki-1.39.1/maintenance/archives/patch-linktarget.sql )

Query: CREATE TABLE `linktarget` (

...


'''Question''': The linktarget table does not seem to currently exist in the mediawiki DB.  Why is it saying it already exists?  What is the fix?


'''Environment''':

1) This is an intranet wiki, not accessible from the Internet

2) Upgrading to mediawiki-1.39.1 from mediawiki-1.38.4

2) PHP 8.2.2 (cli) (built: Feb  5 2023 12:38:16) (NTS)

3) mysql  Ver 15.1 Distrib 10.10.3-MariaDB, for osx10.18 (arm64) using  EditLine wrapper



Current Tables in mediawiki with "link" in the name:

<code>MariaDB [mediawiki]> show tables like "%link%";</code>

<code>+------------------------------+</code>

<code>| Tables_in_mediawiki (%link%) |</code>

<code>+------------------------------+</code>

<code>| categorylinks                |</code>

<code>| externallinks                |</code>

<code>| imagelinks                   |</code>

<code>| iwlinks                      |</code>

<code>| langlinks                    |</code>

<code>| pagelinks                    |</code>

<code>| smw_query_links              |</code>

<code>| templatelinks                |</code>

<code>+------------------------------+</code> [[User:WMBD|Brian]] ([[User talk:WMBD|talk]]) 20:08, 12 February 2023 (UTC)
:I think table and tablespace are different. I think tablespace is like the files on the filesystem. You might have better luck asking on a mysql specific forum. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 23:05, 12 February 2023 (UTC)
:It was a mysql issue.  There was an orphaned linktarget.ibd file (missing it's companion linktarget.frm file).  I removed the orphaned linktarget.ibd file and restarted, and the pair seems to have been regenerated during the update.php phase. [[User:WMBD|Brian]] ([[User talk:WMBD|talk]]) 17:14, 13 February 2023 (UTC)
{{Archive bottom}}

== I have added code to activate WikiEditor on LocalSettings.php, but why can't I use WikiEditor? ==

I have added code to activate WikiEditor on LocalSettings.php, but why can't I use WikiEditor? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 23:58, 12 February 2023 (UTC)
:Nobody knows without much much more information. Please see "Post a new question" in the sidebar. And please explain what exact code you added to "activate". And what happens that makes you think that you can't use WikiEditor, and why. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 02:54, 13 February 2023 (UTC)
:{{re|维基佛祖}} One possibility here is that there's a separate JavaScript error that's preventing the loading of WikiEditor. If you open your web browser's developer console, you might see some error messages. Paste those here and maybe it'll help with debugging. (And yeah, as Malyacko says, please be verbose when describing problems!) [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 08:31, 13 February 2023 (UTC)
:Well, I'll tell you quietly, I often use this debugging tool to test my JavaScript code, and most of my code in common.js is tested in the debugging console, but it's strange that you like me to talk at length when describing problems. 
:(WikiEditor runs perfectly before loading some other extensions, but does not highlight the wikitext syntax.) [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:44, 13 February 2023 (UTC)
:I've added almost all the extensions that came with MediaWiki 1.37.1, so there may be some compatibility errors between extensions, right? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:47, 13 February 2023 (UTC)
:I am Chinese, my English is not very good, if you can not understand my question, please reply me, thank you [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:48, 13 February 2023 (UTC)
:There is no output from the console. I will try to add "error_reporting(E_ALL)" to "include/WebStart.php" to catch more PHP underlying errors. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:52, 13 February 2023 (UTC)
:Sorry, there is no problem at the bottom layer of PHP, so what could be the problem now? [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 08:55, 13 February 2023 (UTC)
:System send some warning(on DevTools console):
:<small>
:<syntaxhighlight lang='text'>
[Violation] 'requestIdleCallback' handler took <N>ms
VM47:167 This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
(anonymous) @ VM47:167
runScript @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:12
execute @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
doPropagation @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:6
requestIdleCallback (async)
setAndPropagate @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:7
implement @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:19
(anonymous) @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:1
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 164ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 55ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:401 This page is using the deprecated ResourceLoader module "jquery.ui".
Please use OOUI instead.
mw.loader.implement.css @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:401
runScript @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:12
(anonymous) @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
flushCssBuffer @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:4
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:5
execute @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:13
doPropagation @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:6
requestIdleCallback (async)
setAndPropagate @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:7
implement @ load.php?lang=zh-cn&modules=startup&only=scripts&raw=1&skin=monobook:19
(anonymous) @ load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:1
[Violation] 'requestAnimationFrame' handler took 610ms
[Violation] Forced reflow while executing JavaScript took 83ms
[Violation] 'requestAnimationFrame' handler took 217ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 96ms
[Violation] 'requestAnimationFrame' handler took 80ms
load.php?lang=zh-cn&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=monobook&version=17fur:50 [Violation] 'setTimeout' handler took 457ms
</syntaxhighlight>
:</small> [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 09:05, 13 February 2023 (UTC)
::These are warnings not errors, so shouldn't affect WikiEditor [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 12:22, 13 February 2023 (UTC)
:{{tq|WikiEditor runs perfectly before loading some other extensions, but does not highlight the wikitext syntax.}} Do you mean that you get the toolbar appearing, and that it functions correctly, but that you're not getting syntax highlighting? That is provided by a different extension: [[Extension:CodeMirror]]. [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 12:05, 13 February 2023 (UTC)
:Now you can't even display the toolbar, and WikiEditor looks like it's not loaded. [[User:维基佛祖|维基佛祖]] ([[User talk:维基佛祖|talk]]) 12:13, 13 February 2023 (UTC)
:You said {{tq|WikiEditor runs perfectly before loading some other extensions...}}.
:Remove (stop loading) these 'other extensions'. After that add them one by one to find the one that makes the WikiEditor to not work. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 18:54, 13 February 2023 (UTC)

== Delete a user account ==

[[File:Cuenta Bot.png|thumb]]
I would like to know how to delete a user account, I was going to edit it because I actually wanted to describe the account as a bot and I don't have access. [[User:Lomeno 24|Lomeno 24]] ('''Contact me''' [[User talk:Lomeno 24|here]]) 00:24, 13 February 2023 (UTC)
:You want describe it as a bot, that means what you probably need is [[Extension:renameuser]]. You can use that extension to rename accounts to what you want. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 13:08, 13 February 2023 (UTC)

== Two URLs for the same wiki ==

{| class="wikitable"
|[https://www.mediawiki.org/ MediaWiki]
|1.39.1
|-
|[https://php.net/ PHP]
|8.1.2-1ubuntu2.10 (apache2handler)
|-
|[https://www.mysql.com/ MySQL]
|8.0.32-0ubuntu0.22.04.2
|}


I see that others have asked about this, and that the answer is "yes, it can be done using $_SERVER with $wgServer", but I can't find any details on exactly how.


I have a fully functional wiki set up at https://rptools.hyperbooks,com/ It is a reconstruction of a broken (due, I believe, to an update to something on the part of the host) wiki at wiki.rptools.info. The folks who run RPTools would like to redirect that URL to my copy, at least temporarily (it may be some time before the guy who needs to fix it will have the time to dig in). So I'd like to have both URLs point to the same wiki install, using the the same database. (Setting up the virtual host in Apache to point to the same directory is no problem.)


Can it be done, and if so, exactly how? [[User:Taustinoc|Taustinoc]] ([[User talk:Taustinoc|talk]]) 07:11, 13 February 2023 (UTC)

== Can't import file from Wikipedia to Commons ==

The reason given is "Can't import file because at least one of its file revisions is hidden" and this seems related to licensing

*my question: [https://en.wikipedia.org/wiki/File_talk:Shenyang_Aerospace_University_logo.png#can't_import_to_Commons? https://en.wikipedia.org/wiki/File_talk:Shenyang_Aerospace_University_logo.png#can't_import_to_Commons?]
*prev discussion: https://commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2022/04#Can't_import_file_from_Wikipedia

Thanks in advance for any help! [[User:Vladimir Alexiev|Vladimir Alexiev]] ([[User talk:Vladimir Alexiev|talk]]) 18:56, 13 February 2023 (UTC)
:What the error message shows is intentional technical restriction and not related to licensing, so there's nothing more to do about that.
:You can theoretically download the file and then directly upload it to Commons, but that'd not work too because per the answer already given to you on enwiki, it's not allowed to upload that image on Commons. 
:Please see [[c:Commons:Licensing]] for further help. – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 19:29, 13 February 2023 (UTC)

== Random text display in MediaWiki ==

What kind of source code do I need to create to display text randomly in MediaWiki? [[User:ナムコォッ!|ナムコォッ!]] ([[User talk:ナムコォッ!|talk]]) 06:22, 14 February 2023 (UTC)
:Please describe an underlying problem why you want to display text (like what) randomly (what does that even mean), and please see "Post a new question" in the sidebar. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 08:27, 14 February 2023 (UTC)
:You could copy [[Template:Random number]] from here. Then:
:<syntaxhighlight>
{{#switch: {{Random number|3}}
| 0 = abc
| 1 = def
| 2 = ghi
}}
</syntaxhighlight> [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 23:56, 15 February 2023 (UTC)

== Discord OAuth2 extension ==

Kia ora koutou, I'm just enquiring to see if any of you know of an up-to-date Discord OAuth2 extension that I can use on my wiki (and force all users to link their accounts to), as well as view what Discord account a user is linked to.

This is mostly because I am creating a wiki and the community is primarily based on the Discord server, so I feel like it would be best for vandalism purposes, etc, to be able to have that function.

If anyone knows of anything like this, please reply :)

Thanks! <3 [[User:Carolina2k22|Carolina2k22]] ([[User talk:Carolina2k22|talk]]) 13:18, 14 February 2023 (UTC)
:{{re|Carolina2k22}} It might be possible using [[Extension:WSOAuth]], although may require a custom auth provider class I'm not sure. [[User:Samwilson|Sam]] [[User_talk:Samwilson|Wilson]] 05:53, 15 February 2023 (UTC)
:I'll have a look into this, thank you! Is there any documentation wrt a custom auth provider class that you are able to flick over? [[User:Carolina2k22|Carolina2k22]] ([[User talk:Carolina2k22|talk]]) 05:25, 17 February 2023 (UTC)

== Interwiki links get lost in Vector 2022 ==

Dear ∀,

When we recently switched the default design in one of our wikis to Vector 2022, interwikilinks stopped to appear, comp.

https://wiki3.railml.org/wiki/Main_Page

(at least I cannot find them, c.q. not where they are in the English Wikipedia)

If I return to Vector 2010 [https://wiki3.railml.org/index.php?title=Special:Preferences&useskin=vector&wprov=vctw1#mw-prefsection-rendering-skin], the interwikil ink is there.

Is there a special setting required?

Thank you in advance! [[User:Ciciban|Ciciban]] ([[User talk:Ciciban|talk]]) 10:06, 15 February 2023 (UTC)
:Im not sure. Maybe the new skin requires [[ULS]] (just a guess) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 10:35, 15 February 2023 (UTC)

== Indexing Sharepoint Content in my Mediawiki Instance ==

I have a wiki where users add info and related references. The references are mostly hosted in a SharePoint Site. I would like to index the contents of a particular SharePoint library into Elastic search in my Wiki. Is this possible?

{| class="wikitable"
!Product
!Version
|-
|[https://www.mediawiki.org/ MediaWiki]
|1.37.1
|-
|[https://php.net/ PHP]
|7.4.33 (fpm-fcgi)
|-
|[https://mariadb.org/ MariaDB]
|10.3.28-MariaDB
|-
|[https://www.elastic.co/elasticsearch Elasticsearch]
|6.8.23
|} [[Special:Contributions/154.118.155.57|154.118.155.57]] ([[User talk:154.118.155.57|talk]]) 10:16, 15 February 2023 (UTC)
:To start, why would you like to sync content in two different wikis, instead of using one wiki for everything? (Also note that MediaWiki 1.37.1 is an [[Download|outdated]] insecure version. Please [[Manual:Upgrading|upgrade]] for your own safety.) [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 10:24, 15 February 2023 (UTC)
:I think you would need to make a custom extension to do this.
:I think dataspects was working on something along those lines but i don't know what the status is/i might be wrong. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 10:34, 15 February 2023 (UTC)

== ModifySidebar() in mediawiki 1.39 ==

Is the function ModifySidebar( action, section, name, link ), a JavaScript to add or remove toolbox sections still working with mediawiki 1.39.

It's described [[Manual:Interface/Sidebar|here]] 

If not, is there any other working solution for this


thanks  [[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 17:53, 15 February 2023 (UTC)

sorry forgot to mention, I used it in my old wiki which is 1.35 and it worked fine, my new wiki (1.39) has the exact same structure, and the javascript doesn't have any effect. [[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 18:00, 15 February 2023 (UTC)
:What exactly is shown in the Console of the Developer Tools of your browser when the JavaScript "doesn't have any effect"? See [[Help:Locating_broken_scripts]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 11:19, 16 February 2023 (UTC)
:I am using firefox, and the script doesn't show up neither in the Console, nor in the Debugger. I guess you mean the "F12" menu, when you say "Developer Tools"<br>
:[[User:Shaun.M|Shaun.M]] ([[User talk:Shaun.M|talk]]) 14:11, 17 February 2023 (UTC)

== expandtemplate API with substitution ==
{{Archive top|status=resolved}}

The expandtemplate API says that it (unfortunately) does not support substitution (subst: or safesubst:). Is there any to expand a template using the API while allowing for substitution? (something like the 'preview' feature) [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:15, 15 February 2023 (UTC)
:Figured it out: use the parse API (which is nearly compatible with the Expandtemplates API) and set pst (pre-save transform) to true. [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:41, 15 February 2023 (UTC)
:I updated the expandtemplates to reflect the solution [[User:The last available username|The last available username]] ([[User talk:The last available username|talk]]) 19:57, 15 February 2023 (UTC)
{{Archive bottom}}

== preferences tab ==
{{Archive top|result=Problem disappeared when visual editor re-activated, but people who know much much more than me say that can't be the issue. If it returns, Ill let you guys know.|status=resolved}}

Tapping my preferences tab produces the following error. [[User:ArchATempAcct|ArchATempAcct]] ([[User talk:ArchATempAcct|talk]]) 08:19, 16 February 2023 (UTC)


Internal error
Jump to: navigation, search

[Y-3kzi7Wx-za5CBJXvEu2gAEqgQ] /index.php/Special:Preferences MWException: Default 'null' is invalid for preference search-special-page of user WikiSysop

Backtrace:

from /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(298)
#0 /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(250): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 /home4/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(1681): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 /home4/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(132): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext, string)
#3 /home4/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(110): SpecialPreferences->getFormObject(User, RequestContext)
#4 /home4/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPage.php(647): SpecialPreferences->execute(NULL)
#5 /home4/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)
#6 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#7 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(930): MediaWiki->performRequest()
#8 /home4/rabidpan/public_html/fascipedia/includes/MediaWiki.php(564): MediaWiki->main()
#9 /home4/rabidpan/public_html/fascipedia/index.php(53): MediaWiki->run()
#10 /home4/rabidpan/public_html/fascipedia/index.php(46): wfIndexMain()
#11 {main} <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 08:19, 16 February 2023 (UTC)
:What is the Mediawiki version? – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 20:49, 16 February 2023 (UTC)
:Are you setting $wgDefaultUserOptions in LocalSettings.php? [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 21:27, 16 February 2023 (UTC)
::No sir, "wgDefaultUserOptions" does not appear in my localsettings file. <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 21:38, 16 February 2023 (UTC)
:Installed software
:ProductVersion: MediaWiki1.37.1
:PHP8.0.27 (litespeed)
:MySQL5.7.23-23
:ICU69.1
:Pygments2.10.0
:Article path: /index.php/$1
:Script path: /
:index.php: /index.php
:api.php: /api.php
:rest.php: /rest.php <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 21:33, 16 February 2023 (UTC)
:Thank you wonderful people, (Bawolff in particular, for inspiring me) !!
:I tried to disable the the buggy-AF  visual editor by commenting out the loading code in LocalSettings.php. this action appears to break the preferences tab. When I re-enabled the visual editor, it fixed the tab. 
:(Still interested in disabling the visual editor, if possible)
:Thank you all again! <span style="background:#000000;border:solid 1px;border-color:0000ff; border-radius:8px;box-shadow:darkgray 5px 5px 5px"><small>-[[User:ArchATempAcct|<span style="background:#000000; color:white; padding:1px;">𝘼</span><span style="background:#000033; color:white; padding:1px;">𝙧</span><span style="background:#000055; color:white; padding:1px;">𝙘</span><span style="background:#000088; color:white; padding:1px;">𝙝</span>]][[User talk:Archangel|<span style="background:#0000aa; color:white; padding:1px;">𝙖</span><span style="background:#0000bb; color:white; padding:1px;">𝙣</span><span style="background:#0000cc; color:white; padding:1px;">𝙜</span><span style="background:#0000ee; color:white; padding:1px;">𝙚</span><span style="background:#0000ff; color:white; padding:1px;">𝙡</span>]][[User_talk:ArchATempAcct|💀]]</small></span> 00:27, 17 February 2023 (UTC)
:That's certainly odd. 'search-special-page' is related to [[extension:MediaSearch]], and was only added to mediawiki in 1.38. It should not exist in 1.37 [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:54, 17 February 2023 (UTC)
{{Archive bottom}}

== MediaWiki upgrade ==

We inherited a mediawiki(rel  from a colleague who hasn't been with the company for 10 years. The platform consist of :

mediawiki 1.18.1 (2012-01-11) instaled on /var/www/mediawiki

Apache/2.4.6 (Red Hat Enterprise Linux)

mysql 5.0.77 MySQL Community Server (GPL)


We don't konw nothing about wht was done and for security problems we would like to upgrade mysql version to 5.7 or 8.0 but we don't have any documentation on what the collegue has done. Can you please suggest a upgrade plan and if we have to upgrade  mediawiki also ?

Regards

Maurizio [[User:Belloma2|Belloma2]] ([[User talk:Belloma2|talk]]) 08:44, 16 February 2023 (UTC)
:You should upgrade mediawiki, 1.18 is ancient, may have unpatched security vulnerabilities.
:The upgrade around 1.34 are a bit flaky, so I would suggest:
:*First make backups of database
:*Update to MediaWiki 1.34, make sure everything works
:*Update the rest of the way. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 09:50, 16 February 2023 (UTC)

== How to restrict to download the video in mediawiki ? ==

We have used the the below syntax.


[[File: Video.png|Link="http//community.com/A.mp4"|]]


Here, the video is visible in the mediaiwiki, however, the user can download video.


We want the video should be visible in mediawiki, should not be downlodabe by user. 



How to do that ? [[User:AshwiniUpasani|AshwiniUpasani]] ([[User talk:AshwiniUpasani|talk]]) 08:55, 16 February 2023 (UTC)
:If you want it to display within the current page, use [[Extension:TimedMediaHandler]].
:We do not support DRM type solutions (E.g. Widevine) that would prevent saving videos. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 09:48, 16 February 2023 (UTC)

== Transclusion does not work for table content? ==

I have 3 pages:

- Overview page

- Detail page A

- Detail page B

I have tables on pages A and B and mark 1 row with "onlyinclude" - right after the table header and before the table end line.

I have the same table on the overview page. Right after the table header, I transclude {{:pageA}} and {{:pageB}}.

The result is an overview page with a table containing the rows from those 2 pages.

BUT. The content of the overview page does not render again after a change to page A or page B. I have to do a null edit or add ?action=purge to the URL, which causes a confirmation page to occur. 

Why is that? A bug?

Regards, Duncan [[User:DuncanDonovan|DuncanDonovan]] ([[User talk:DuncanDonovan|talk]]) 15:48, 16 February 2023 (UTC)
:Possibly issue with [[job queue]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 16:40, 16 February 2023 (UTC)
:Will check.
:Would be nice if somebody could try this:
:'''<u>PageA:</u>''' <syntaxhighlight lang="wikitext">
{| class="wikitable"
|'''Customer'''
<onlyinclude>
|-
|Customer A</onlyinclude>
|}
</syntaxhighlight>
:'''<u>PageB:</u>'''<syntaxhighlight lang="wikitext">
{| class="wikitable"
|'''Customer'''
<onlyinclude>
|-
|Customer B</onlyinclude>
|}</syntaxhighlight>
:'''<u>PageTOTAL:</u>'''<syntaxhighlight lang="wikitext">
{| class="wikitable sortable"</nowiki>
!Customer
{{:PageA}}
{{:PageB}}
|}</syntaxhighlight>
:'''Expected behavior''': When going to PageTOTAL, the contents will automatically reflect changes on PageA and/or PageB.
:'''Actual behavior''': I have to do either a null edit or add "?action=purge" to the URL to see changes on PageA and/or PageB. [[User:DuncanDonovan|DuncanDonovan]] ([[User talk:DuncanDonovan|talk]]) 17:44, 17 February 2023 (UTC)

== Forgot the user email and password ==

I forgot the password and email . how to recover it please suggest me or help me. if is there any possibility then please tell my registerd email.


username:- aruvishalpatel [[Special:Contributions/2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D|2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D]] ([[User talk:2402:3A80:1E93:D2F6:954F:5ED6:EA63:54D|talk]]) 17:59, 16 February 2023 (UTC)
:That user does not exist: https://meta.wikimedia.org/wiki/User:Aruvishalpatel [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 19:48, 16 February 2023 (UTC)
:On which wiki is this? – [[User:Ammarpad|Ammarpad]] ([[User talk:Ammarpad|talk]]) 20:11, 16 February 2023 (UTC)

== Active Directory authentication ==

Hi,

I am trying to configure Active Directory authentication for my MediaWiki instance.

But I am getting the error message "Die angegebenen Anmeldeinformationen konnten nicht überprüft werden." on the logon page.

I have configured LocalSettings.php, ldap.json and installed the plugins mentioned in the docs.

My LocalSettings.php:

https://pastebin.com/EbEEGwBg

My ldap.json:

https://pastebin.com/rf4uKBra

But I cannot login getting the error message from above.

Any ideas what I am doing wrong?

Best regards,

rforberger [[User:Rforberger|Rforberger]] ([[User talk:Rforberger|talk]]) 07:09, 17 February 2023 (UTC)
:Noone an idea? [[User:Rforberger|Rforberger]] ([[User talk:Rforberger|talk]]) 05:26, 22 February 2023 (UTC)

== Improvement suggestion for browsing repositories ==

I am not sure it this actually belongs here so apologies if it should be addressed elsewhere. 

For many extension, there is a link using [[Template:Extension]] to browse the repository. Using [[git:mediawiki/extensions/VisualEditor|Visual editor for Wikitext documents]]. Would it be possible to re-order the list of branches so the more current and relevant branches are at the top, i.e. master, then REL1_39, REL1_38, ...

Almost always I am forced to click More... to browser changes on the current stable version, i.e. REL1_39. [[User:Peculiar Investor|Peculiar Investor]] ([[User talk:Peculiar Investor|talk]]) 17:27, 17 February 2023 (UTC)
:Feel free to follow [[How to report a bug]] and create a feature request in Phabricator under "Gerrit" for Gitiles [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 18:54, 17 February 2023 (UTC)
:Will do. Thanks. Opened as {{PhabT|329990}}: [[User:Peculiar Investor|Peculiar Investor]] ([[User talk:Peculiar Investor|talk]]) 23:59, 17 February 2023 (UTC)

== How to prevent search engines from indexing special pages ==

I am trying to remove search engine and automated bot crawler access from special pages on my wiki. Such examples include "What Links Here", "Recent Changes", and "Permanent Link" pages which can be found at "Special:WhatLinksHere/Main_Page", "Special:RecentChangesLinked?hidebots=1&target=Main_Page", "index.php?title=Main_Page&oldid=5120". I have implemented short urls so my urls look like: "https://marblehorse.net/wiki/Main_Page". What changes do I need to make to my robots.txt to have the desired effect? [[User:MarblehorseNet|MarblehorseNet]] ([[User talk:MarblehorseNet|talk]]) 22:25, 17 February 2023 (UTC)
:My site has short URLs like example.com/Page_name and here's an extract from my robots.txt:
:User-agent: *
:Disallow: /Special:* [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 11:30, 20 February 2023 (UTC)

== How to assign imported versions to the local user ==
{{Flow summary|Do <code>php importDump.php --username-prefix="mywikisprefix" /dump.xml</code> to assign imported edits to locally existing users. Prior to doing so add the local wiki's prefix "mywikisprefix" to the interwiki table using the [[Extension:Interwiki|Interwiki extension.]]}}

[[Manual:ImportDump.php]] does not provide any clue on how to do this.


On my wiki user John Doe exists. When importing with <code>php importDump.php /dump.xml</code> all revsions are accounted to "imported>John Doe" which link to the local user account John Doe.


Is there a way to show "John Doe" as a link instead of "imported>John Doe"? [[Special:Contributions/2003:F1:C707:5E00:BDEB:3290:954C:7B44|2003:F1:C707:5E00:BDEB:3290:954C:7B44]] ([[User talk:2003:F1:C707:5E00:BDEB:3290:954C:7B44|talk]]) 23:23, 17 February 2023 (UTC)
:This is the default if user exists and --no-local-users is '''not''' specified.
:Although different versions of mediawiki might vary [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 00:38, 18 February 2023 (UTC)
:Thanks for the info! This was indeed not documented. In other words: If I do <code>php importDump.php --no-local-users /dump.xml</code> edits will be assigned to local users if they exist on that wiki. All I needed to know though the name of the flag appears to be a bit strage. Does not matter. [[Special:Contributions/2003:F1:C707:5E00:1883:3627:60A1:B0D8|2003:F1:C707:5E00:1883:3627:60A1:B0D8]] ([[User talk:2003:F1:C707:5E00:1883:3627:60A1:B0D8|talk]]) 09:00, 18 February 2023 (UTC)
::No, the opposite of that [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 22:39, 18 February 2023 (UTC)
:::I am totally confused now. Doing <code>php importDump.php --no-local-users /dump.xml</code> or <code>php importDump.php /dump.xml</code> both do not assign the edit to the local user in a way that "John Doe" is used as a link for the revision instead of "imported>John Doe". I know this is somehow possible since it works if one used the wiki interface for the import and checks the "Assign to local users" checkbox or what it is called.
:::How to do it via the import script is something I am not getting here and I cannot tell what it is. Yet another different flag to use or ...? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:31, 19 February 2023 (UTC)
:::Hmm, the only thing that comes to my mind is to use <code>--username-prefix=""</code> thing. It is listed on the docu page but it does not tell why this may be needed. It only hints that this may be required for file importing? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:39, 19 February 2023 (UTC)
:::Yes, this was it: Doing <code>php importDump.php --username-prefix="mywikisprefix" /dump.xml</code>. Prior to doing so I added my wiki's prefix "mywikisprefix" to the interwiki table using the [[Extension:Interwiki|Interwiki extension.]] [[Special:Contributions/2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E|2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E]] ([[User talk:2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E|talk]]) 09:57, 19 February 2023 (UTC)
::I am totally confused now. Doing <code>php importDump.php --no-local-users /dump.xml</code> <code>php importDump.php /dump.xml</code> both do not assign the edit to the local user in a way that "John Doe" is used as a link for the revision instead of "imported>John Doe". I know this is somehow possible since it works if one used the wiki interfact for the import and checks the "Assign to local users" checkbox or what it is called.
::How to do it via the import script is something I am not getting here but I cannot tell what it is. Yet another different flag to use or ...? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:28, 19 February 2023 (UTC)
::This post and the one directly above can be deleted. Unfortunately I cannot edit my post to correct typos etc. [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 00:32, 19 February 2023 (UTC)
:Oh no. I was too hasty here. When doing <code>php importDump.php --no-local-users /dump.xml</code> the revisions are still accounted to "imported>John Doe". Either the flat is broken or I need another one to make things happen. Now the second wiki shows this unpleasant link titles. [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 22:03, 18 February 2023 (UTC)

== Edits lost? ==

I xml-dumped a wiki with <code>dumpBackup.php --full --quiet > dump.xml</code> and imported it with <code>php importDump.php /dump.xml</code> followed by a <code>rebuildall.php</code> and a <code>php initSiteStats.php</code>. However after the import the number of edits dropped from 16,624 to 4,952. The nunber of pages is identical with 875.  When browsing the pages I so far did not see any revision missing.

Does anybody have an explanation as for what may have caused this. [[Special:Contributions/2003:F1:C707:5E00:BDEB:3290:954C:7B44|2003:F1:C707:5E00:BDEB:3290:954C:7B44]] ([[User talk:2003:F1:C707:5E00:BDEB:3290:954C:7B44|talk]]) 23:37, 17 February 2023 (UTC)
:Any hint on this one? [[Special:Contributions/2003:F1:C707:5E00:521E:59CA:6576:8DB8|2003:F1:C707:5E00:521E:59CA:6576:8DB8]] ([[User talk:2003:F1:C707:5E00:521E:59CA:6576:8DB8|talk]]) 22:09, 18 February 2023 (UTC)

== How to exclude modules from sitemap? ==

I using [[Extension:AutoSitemap]]. Now my site include modules in the sitemap and I want to fix it. Thanks you for attention. https://greenwiki.ru/sitemap.xml

Right now my exclude namespaces

$wgAutoSitemap["exclude_namespaces"] = [

    NS_TALK,

    NS_USER,   

    NS_USER_TALK,

    NS_PROJECT_TALK,

    NS_MEDIAWIKI,   

    NS_MEDIAWIKI_TALK,

    NS_TEMPLATE,

    NS_TEMPLATE_TALK,

    NS_SPECIAL,

    NS_HELP,   

    NS_HELP_TALK,

    NS_CATEGORY,

    NS_CATEGORY_TALK,

    NS_FILE,

    NS_MEDIA [[User:Vladlen Terezhe|Vladlen Terezhe]] ([[User talk:Vladlen Terezhe|talk]]) 09:23, 18 February 2023 (UTC)

== Seemingly missing content after upgrading (exists in DB) ==

I have upgraded quite old Mediawiki installation (since 2007), which has some custom extensions, but nothing too wild (mainly custom accesscontrol). Since then, the wiki shows on all pages (except special pages): <code>There is currently no text in this page. You can search for this page title in other pages, search the related logs, or  create this page.</code>

I can see last modified pages in Special:RecentChanges, however seeing the page or the diff returns an error (page as described above, diff claims the revision doesn't exist)

The content is in the DB, as this query
<code>SELECT page_id, page_namespace, page_title, page_latest "rev_id", old_text "text"    FROM page    INNER JOIN slots on page_latest = slot_revision_id    INNER JOIN slot_roles on
slot_role_id = role_id and role_name = 'main'    INNER JOIN content on slot_content_id = content_id inner join text on substring( content_address, 4 ) = old_id and left( content_address, 3 ) = "tt:"
and old_flags = "utf-8" WHERE page_id=1;
</code>

returns a correct result (1 row with expected content). The supposedly missing revisions are also to be found in the database (in revision table)

The upgrade (it was actually move to a different server) was done from:
{| class="wikitable"
!Název
!Verze
|-
|[https://www.mediawiki.org/ MediaWiki]
|1.32.0
|-
|[https://php.net/ PHP]
|7.1.33 (fpm-fcgi)
|-
|[https://www.mysql.com/ MySQL]
|5.6.51-91.0
|-
|[http://site.icu-project.org/ ICU]
|69.1
|}
to:

{| class="wikitable"
!Název
!Verze
|-
|[https://www.mediawiki.org/ MediaWiki]
|[[MediaWiki 1.39|1.39.1]] (f87cb8d)
|-
|[https://php.net/ PHP]
|8.1.16 (fpm-fcgi)
|-
|[https://mariadb.org/ MariaDB]
|10.5.18-MariaDB-0+deb11u1
|-
|[https://icu.unicode.org/ ICU]
|67.1
|}
All files were copied, then overwritten by new version and <code>update.php</code> was launched. I have dealt with some problems with actor migration (I believe there are some historically deleted users), which was dealt with by adding some rows:

<code>INSERT INTO actor (actor_user, actor_name) VALUES (234, 'Unknown2023-1');
</code>

Also there was one issue with an archived revision, which I solved with this query

<code>UPDATE archive SET ar_title="Test" WHERE ar_id=141;</code>

I even tried to re-run <code>update.php</code> with <code>--force</code> but to no avail. Disabling extensions proves no effect.

I am at a loss. The data is clearly there, yet Mediawiki insists it is missing. How can I investigate further? (Repeating the upgrade or performing it in different steps is possible, I still have the original site running) [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 12:45, 18 February 2023 (UTC)
:Here also added update.php log:
:<code>
:MediaWiki 1.39.1 Updater
:Your composer.lock file is up to date with current dependencies!
:Going to run database updates for gewiki_kba
:Depending on the size of your database this may take a while!
:...collations up-to-date.
:...have rev_actor field in revision table.
:...have img_description_id field in image table.
:...slots table already exists.
:...have slot_origin field in slots table.
:...content table already exists.
:...slot_roles table already exists.
:...content_models table already exists.
:...actor table already exists.
:...have ar_actor field in archive table.
:...have ipb_by_actor field in ipblocks table.
:...have img_actor field in image table.
:...have oi_actor field in oldimage table.
:...have fa_actor field in filearchive table.
:...have rc_actor field in recentchanges table.
:...have log_actor field in logging table.
:...table site_stats already modified by patch patch-site_stats-modify.sql.
:...index rc_namespace_title_timestamp already set on recentchanges table.
:...change_tag_def table already exists.
:Running maintenance/deduplicateArchiveRevId.php...
:...Update 'DeduplicateArchiveRevId' already logged as completed. Use --force to run it again.
:done.
:...have ct_tag_id field in change_tag table.
:...index ar_revid_uniq already set on archive table.
:...index log_type_action already set on logging table.
:...type_action key doesn't exist.
:...index PRIMARY already set on interwiki table.
:...index PRIMARY already set on page_props table.
:...index PRIMARY already set on protected_titles table.
:...index PRIMARY already set on site_identifiers table.
:...index rc_this_oldid already set on recentchanges table.
:...transcache doesn't exist.
:Running maintenance/populateChangeTagDef.php...
:...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again.
:done.
:...change_tag_rc_tag key doesn't exist.
:...have ipb_sitewide field in ipblocks table.
:...ipblocks_restrictions table already exists.
:...change_tag table does not contain ct_tag field.
:...valid_tag doesn't exist.
:...tag_summary doesn't exist.
:...archive table does not contain ar_comment field.
:...ipblocks table does not contain ipb_reason field.
:...image table does not contain img_description field.
:...oldimage table does not contain oi_description field.
:...filearchive table does not contain fa_description field.
:...recentchanges table does not contain rc_comment field.
:...logging table does not contain log_comment field.
:...protected_titles table does not contain pt_reason field.
:...table job already modified by patch patch-job-params-mediumblob.sql.
:...ar_usertext_timestamp key doesn't exist.
:...usertext_timestamp key doesn't exist.
:...archive table does not contain ar_user field.
:...ipblocks table does not contain ip_by field.
:...img_user_timestamp key doesn't exist.
:...image table does not contain img_user field.
:...oldimage table does not contain oi_user field.
:...filearchive table does not contain fa_user field.
:...recentchanges table does not contain rc_user field.
:...logging table does not contain log_user field.
:...index un_user_ip already set on user_newtalk table.
:...watchlist_expiry table already exists.
:...page_restrictions field does not exist in page table, skipping modify field patch.
:...index ipb_address_unique already set on ipblocks table.
:...archive table does not contain ar_text_id field.
:...lc_lang is up-to-date.
:...ll_lang is up-to-date.
:...site_language is up-to-date.
:...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
:...ipb_address_unique index up-to-date.
:...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql.
:...site_global_key in table sites already modified by patch patch-sites-site_global_key.sql.
:...iwl_prefix in table iwlinks already modified by patch patch-extend-iwlinks-iwl_prefix.sql.
:...rd_title in table redirect already modified by patch patch-redirect-rd_title-varbinary.sql.
:...pl_title in table pagelinks already modified by patch patch-pagelinks-pl_title-varbinary.sql.
:...tl_title field does not exist in templatelinks table, skipping modify field patch.
:...il_to in table imagelinks already modified by patch patch-imagelinks-il_to-varbinary.sql.
:...ll_title in table langlinks already modified by patch patch-langlinks-ll_title-varbinary.sql.
:...iwl_title in table iwlinks already modified by patch patch-iwlinks-iwl_title-varbinary.sql.
:...cat_title in table category already modified by patch patch-category-cat_title-varbinary.sql.
:...qc_title in table querycache already modified by patch patch-querycache-qc_title-varbinary.sql.
:...qcc_title in table querycachetwo already modified by patch patch-querycachetwo-qcc_title-varbinary.sql.
:...wl_title in table watchlist already modified by patch patch-watchlist-wl_title-varbinary.sql.
:...user_last_timestamp in table user_newtalk already modified by patch patch-user_newtalk-user_last_timestamp-binary.sql.
:...pt_title in table protected_titles already modified by patch patch-protected_titles-pt_title-varbinary.sql.
:...ir_type in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_type.sql.
:...index wl_namespace_title already set on watchlist table.
:...job_title in table job already modified by patch patch-job-job_title-varbinary.sql.
:...job_timestamp in table job already modified by patch patch-job_job_timestamp.sql.
:...job_token_timestamp in table job already modified by patch patch-job_job_token_timestamp.sql.
:...wl_notificationtimestamp in table watchlist already modified by patch patch-watchlist-wl_notificationtimestamp.sql.
:...role_id in table slot_roles already modified by patch patch-slot_roles-role_id.sql.
:...model_id in table content_models already modified by patch patch-content_models-model_id.sql.
:...cl_to in table categorylinks already modified by patch patch-categorylinks-cl_to-varbinary.sql.
:...log_title in table logging already modified by patch patch-logging-log_title-varbinary.sql.
:...us_timestamp in table uploadstash already modified by patch patch-uploadstash-us_timestamp.sql.
:...index up_property already set on user_properties table.
:...index site_global_key already set on sites table.
:...index log_type_time already set on logging table.
:...fa_name in table filearchive already modified by patch patch-filearchive-fa_name.sql.
:...oi_name in table oldimage already modified by patch patch-oldimage-oi_name-varbinary.sql.
:...exptime in table objectcache already modified by patch patch-objectcache-exptime-notnull.sql.
:...skipping: index name_title_timestamp doesn't exist.
:...img_name in table image already modified by patch patch-image-img_name-varbinary.sql.
:...img_timestamp in table image already modified by patch patch-image-img_timestamp.sql.
:...index si_key already set on site_identifiers table.
:...rc_title in table recentchanges already modified by patch patch-recentchanges-rc_title-varbinary.sql.
:...rc_timestamp in table recentchanges already modified by patch patch-recentchanges-rc_timestamp.sql.
:...rc_id in table recentchanges already modified by patch patch-recentchanges-rc_id.sql.
:...index rc_new_name_timestamp already set on recentchanges table.
:...ar_title in table archive already modified by patch patch-archive-ar_title-varbinary.sql.
:...page_title in table page already modified by patch patch-page-page_title-varbinary.sql.
:...user_name in table user already modified by patch patch-user_table-updates.sql.
:...index rev_page_timestamp already set on revision table.
:...have modtoken field in objectcache table.
:...index oi_timestamp already set on oldimage table.
:...index page_name_title already set on page table.
:...index ct_rc_tag_id already set on change_tag table.
:...page_restrictions table does not contain pr_user field.
:...fa_id in table filearchive already modified by patch patch-filearchive-fa_id.sql.
:...img_major_mime in table image already modified by patch patch-image-img_major_mime-default.sql.
:...linktarget table already exists.
:...rev_page_id key doesn't exist.
:...pr_page in table page_restrictions already modified by patch patch-page_restrictions-pr_page.sql.
:...pp_page in table page_props already modified by patch patch-page_props-pp_page.sql.
:...ir_value in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_value.sql.
:...have tl_target_id field in templatelinks table.
:...user_autocreate_serial table already exists.
:...ir_ipb_id in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_ipb_id.sql.
:...ipb_id in table ipblocks already modified by patch patch-ipblocks-ipb_id.sql.
:...user_editcount in table user already modified by patch patch-user-user_editcount.sql.
:Running maintenance/migrateRevisionActorTemp.php...
:...Update 'MigrateRevisionActorTemp' already logged as completed. Use --force to run it again.
:done.
:...revision_actor_temp doesn't exist.
:Running maintenance/updateRestrictions.php...
:Migration is not needed.
:done.
:...page table does not contain page_restrictions field.
:...templatelinks table has already been migrated.
:...tl_namespace field does not exist in templatelinks table, skipping modify field patch.
:...templatelinks table does not contain tl_title field.
:...site_stats is populated...done.
:...Update 'populate rev_len and ar_len' already logged as completed. Use --force to run it again.
:...Update 'populate rev_sha1' already logged as completed. Use --force to run it again.
:...img_sha1 column of image table already populated.
:...protocol-relative URLs in externallinks table already fixed.
:...fa_sha1 column of filearchive table already populated.
:...*_from_namespace column of backlink tables already populated.
:...Update 'FixDefaultJsonContentPages' already logged as completed. Use --force to run it again.
:...Update 'cleanup empty categories' already logged as completed. Use --force to run it again.
:...RFC and PMID already added to interwiki database table.
:...Update 'populate pp_sortkey' already logged as completed. Use --force to run it again.
:...Update 'populate ip_changes' already logged as completed. Use --force to run it again.
:...externallinks table indexes up to date.
:Set the local repo temp zone container to be private.
:Purging caches...done.
:Done in 0.1 s.
:</code> [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 12:51, 18 February 2023 (UTC)
:Hi!
:We had the same problem. We are still trying to recover lost pages in DB.
:If we succeed, I'll leave comments here.
:Best Regards,
:Manuel H. [[Special:Contributions/186.147.125.105|186.147.125.105]] ([[User talk:186.147.125.105|talk]]) 16:05, 18 February 2023 (UTC)
:Hi again.
:Util link for this error [[Project:Support desk/Flow/2022/12#h-Pages_seem_to_be_gone-20221203122000]] [[Special:Contributions/186.147.125.105|186.147.125.105]] ([[User talk:186.147.125.105|talk]]) 16:41, 18 February 2023 (UTC)
:OP hereː Upgrading 1.32->1.35 and then 1.35->1.39 worked. I recovered from backup and did this two-step upgrade [[Special:Contributions/195.113.180.82|195.113.180.82]] ([[User talk:195.113.180.82|talk]]) 08:24, 7 March 2023 (UTC)

== Import XML without sha1 check? ==

Hallo, I'd be thankful for some advice.

I have to migrate an encyclopedia (>4000 items) from a very historic website to MediaWiki. There is no problem to generate output/input file with the XML structure. The only problem makes the sha1 clause:

<code><text bytes="1234" sha1="31-ascii-chars-sha1">A long text fully converted to MediaWiki-style code.</text> <sha1>31-ascii-chars-sha1</sha1></code> 

In a former [[Project:Support desk/Flow/2015/07#h-[RESOLVED]_Editing_exported_xml_files_(wiki-pages)_and_importing_them_into_other-2015-07-20T08:50:00.000Z|| post at this desk]] (8 yr ago) I read that "The bytes and sha1 data is informative, and can be used to check integrity, but they aren't currently used on imports." It seems not be valid in current version (1.39.1). If I try to import a XML file without bytes and sha1 clauses, the very short items (up to 2 lines of text) are fully imported, by longer items only the page title is imported, not the text. 

Is there a possibilty to turn the "bytes" and "sha1" checks off? At least for a one-time import?

Thank you! [[User:Nyctal|Nyctal]] ([[User talk:Nyctal|talk]]) 15:54, 18 February 2023 (UTC)
:That strongly suggests your dump file is corrupted, and you probably should figure out what is wrong with it in case it causes further problems (like was it reencoded or something).
:If you really need to though, you will probably have to regenerate the base36 sha1 hash and replace them. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 01:34, 19 February 2023 (UTC)

== Link in the new window? ==

And my second beginner question:

Is there a functionality (special type of link) to display some external links in a new small browser window, without closing the page viewed?

Thak you! [[User:Nyctal|Nyctal]] ([[User talk:Nyctal|talk]]) 15:55, 18 February 2023 (UTC)

== Warning: XMLReader::open(): Unable to open source data ==

When importing an XML dump with <code>php importDump.php /dump.xml</code> I am getting the following warnings:
<pre>
Warning: XMLReader::open(): Unable to open source data in /../w/vendor/wikimedia/xmp-reader/src/Reader.php on line 577

All revisions appear to have been imported, however I am wondering is somehting is going terribly wrong at my end unnoticed by me.

I am on MW 1.39.1 on PHP 7.4 2003:F1:C707:5E00:521E:59CA:6576:8DB8 (talk) 22:08, 18 February 2023 (UTC)

That error is related to file uploads. It might indicate that file metadata was not extracted properly. Bawolff (talk) 01:31, 19 February 2023 (UTC)
Thanks for the hint. Now I dumped the wiki with <code>dumpBackup.php --full --include-files --uploads > dump.xml</code> instead of just doing <code>dumpBackup.php --full > dump.xml</code> and on import the number of these warnings went down from around 30 to 5. Stil not all of them are gone and I have to note that this wiki does not have files uploaded to it. Just uses commons and a different file repo. To cut it short: My "issue" is not completely resolved but it was minimized. 2003:F1:C707:5E00:AEE9:1913:D6DE:6E8E (talk) 20:40, 19 February 2023 (UTC)

$wgNamespaceAliases does not work

I tried to add the following code to my wiki,


$wgNamespaceAliases = [

'Gates' => 3138,

'Gates_talk' => 31389

];


$wgNamespaceAliases = [

'GATES' => 3138,

'GATES_TALK' => 3139

];


I tried adding individual namespace alias', and all they did was crash my wiki.

I tried typing the name of the namespace out, and all it did was crash my wiki.


Neither one of the top pieces of code redirected the old name to the new name.


https://mysterydungeonwiki.com/wiki/Special:Version SungHerSong (talk) 11:52, 19 February 2023 (UTC)

Short URLs not working as expected - index.php still visible

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


Hi all,


I've just finished upgrading an old Mediawiki install from v. 1.32 to 1.39.1 (latest) and I finally got that to work, but I cannot get neither $wgArticlePath or hiding index.php from Mediawikis URLs to work properly...

I have my Mediawiki files in the Document Root ($wgScriptPath = "";) and my $wqArticlePath = "/wiki/$1"; - but, no matter what I set as my $wgArticlePath, it's being ignored....?title= is removed, but index.php/TITLE remains...


$wgScriptPath = ""; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;

My Apache setup utilizes the following RewriteRules:


RewriteEngine on RewriteCond %{REQUEST_URI} !^/rest\.php RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/(.*)$ %{DOCUMENT_ROOT}/index.php [L]


The most annoying bit is that I had it all to work with the old version 1.32, but ever since upgrading it doesn't seem to work al all... Where might I be going wrong about this?

Best regards,


Søren Grønning Sgiv-sdu.dk (talk) 13:07, 19 February 2023 (UTC)

I dont know if this is your issue, but the syntax should be
$wgArticlePath = '/wiki/$1';
E.g. using ' not " Bawolff (talk) 17:45, 19 February 2023 (UTC)
Thanks for chiming in - according to the manual for short URLs, this doesn't matter, though...
Have a look at this page from the documentation (https://www.mediawiki.org/wiki/Manual:Short_URL/Apache): At the bottom, there's mentions of both $wgArticlePath and $wgScriptPath being put in double quotes.
Moreover, in PHP as in many other instances, single quotes handle quotes literally and do not interpret escaped characters, where as double quotes do. Double quotes are 'softer' in this sense and less literal.
Therefore, I suspect something else is playing tricks on me :) Sgiv-sdu.dk (talk) 06:46, 20 February 2023 (UTC)
Oh, i guess it doesn't matter because $1 isn't a valid variable name in php, so it never gets interopolated regardless of the quotes.
Anyways, its critical in this instance that $1 is treated literally, but you get that either way. Apologies for saying the wrong thing and any confusion that may have caused. Bawolff (talk) 08:38, 20 February 2023 (UTC)
I would suggest checking Special:version which should list path variables so you can see if something is overriding it.
Check also you dont have the same variable specified a second time in LocalSettings.php or anything like that. Check also you are editing the correct file, and haven't accidentally commented out the line
I definitely think it is more likely a LocalSettings.php issue and not rewrite rules. What you describe (/index.php/page_name) is the default behaviour if $wgArticlePath is not set Bawolff (talk) 08:43, 20 February 2023 (UTC)
Thank you for the help and suggestions!
I'm much inclined to say that it must be something concerning the LocalSettings.php file and the $wgArticlePath, which seems to get screwed up - although I'm not yet sure what might prevent it from working...
I'll be looking into the php.ini file to see if there's anything there affecting my paths, that might also play tricks on Mediawiki's $wgArticlePath ... Sgiv-sdu.dk (talk) 07:59, 21 February 2023 (UTC)
On going over my LocalSettings.php, I discovered a totally lame error on my part - I'd accidentally misspelled my $wgArticlePath as $wqArticlePath, which - of course - makes a difference....
Thanks again, Bawolff :) Sgiv-sdu.dk (talk) 08:38, 21 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to normal the contribution score of media wiki

hi all,

we run our media wiki for our employees.

we request them to contribute for completion.

we install the contribution score extension but the score isn't fair.

how can I normal that score?

is there any idea?

thanks in advance Mrzya (talk) 05:58, 20 February 2023 (UTC)

Hi, please see "Post a new question" in the sidebar, and please define "fair", and please define "normal". Thanks. Malyacko (talk) 07:36, 20 February 2023 (UTC)

I have problems

I have problems with the template warning, the blue band does not appear, I need a solution. Lomeno 24 (Contact me here) 09:31, 20 February 2023 (UTC)

Hi, please read "Project:Support desk" in the sidebar and provide sufficient info. What "blue band"? Which warning? What does the template do? How did you create the template / what are full and clear steps to reproduce the situation? What are expectations based on? Malyacko (talk) 09:36, 20 February 2023 (UTC)

500 error upon installing Scribunto

I'm running a Mediawiki server on the Bitnami stack, and every time I try to install Scribunto, I get an HTTP 500 error that does not perform any kind of php logging (even though i'm fairly sure the problem is the php). I've tried to get some read on the error messages, but it doesn't show up in the apache2 error logs no matter what I try. Help would be appreciated :) Theleekycauldron (talk) 09:57, 20 February 2023 (UTC)

fixed, after much fuckery! If anyone finds themselves in the same position, my tips:
  1. If Mediawiki asks you set a new temp directory, don't do that!
  2. Instead, download the lua binary that comes with Linux and set the path to that. Theleekycauldron (talk) 10:27, 20 February 2023 (UTC)
Btw, if you are already downloading stuff, and using debian/ubuntu consider apt install php-luasandbox it will be faster than lua binary. Bawolff (talk) 22:57, 20 February 2023 (UTC)
lua 5.3 apparently deprecates a "loadstring" variable Scribunto relies on? backtracking to 5.1... Theleekycauldron (talk) 10:42, 20 February 2023 (UTC)
Scribunto expects the specific version of lua and does not support 5.3 Bawolff (talk) 22:55, 20 February 2023 (UTC)

Mathoid not available in China

Wikimedia's Mathoid doesn't work in China, as https://www.wikimedia.org is behind the Great Firewall.

My wiki isn't behind the firewall. But maths formulae aren't rendered unless I turn on the VPN.

Are there alternatives that can be used instead? Bugreporter (talk) 12:35, 20 February 2023 (UTC)

You can self host mathoid Bawolff (talk) 22:52, 20 February 2023 (UTC)

How to print the username of the original author of a page?

We have a MediaWiki website in which registered users can publish opinion articles.

At the start of each opinion article there is a template indicating "This opinion article was written by USERNAME".


Right now, it shows {{{1}}} instead of USERNAME.


How to fix this? 2001:44C8:4179:6920:F17A:3CA6:DCB2:FC49 (talk) 04:43, 21 February 2023 (UTC)

It's possible to get the author of the latest revision, via the {{REVISIONUSER}} parser function, but I don't know if there's any way to get the first author. I'd suggest it'd be better to have this be provided to the template anyway, so that there is some control over who is listed as the author (which it sounds like your template is expecting anyway, as the first parameter). Sam Wilson 06:50, 21 February 2023 (UTC)
There are some extensions that do this. I think extension:MyVariables does Bawolff (talk) 12:29, 21 February 2023 (UTC)
There's a decade-old request for that phab:T46494Ammarpad (talk) 08:38, 21 February 2023 (UTC)

Wiki editing help

Hello, is it possible to have a hyperlink to an external page and in the future remove that link and it removes it for every page that has it available.


Example:

  • Pages 1-5 have a hyperlink to Google.com
  • We want to remove Google.com from a singular place and have it be removed from pages 1-5 without individually going to each page.

Is something like this possible? I figured we could template each one, but is there a different way so we don't have 100s of different pages. More so, is it possible to keep it condensed to a single page? 199.21.198.113 (talk) 18:40, 21 February 2023 (UTC)

What's wrong with the template solution?
I suppose extension:Replace Text would be the other solution. Bawolff (talk) 22:50, 21 February 2023 (UTC)

Watchlist

wikimedia:

"According to the relevant preferences, changes to pages you watch may also be notified to you by email. The main preference for this is "Email me when a page or a file on my watchlist is changed".

After receiving an email notification for a page, you have to visit the page while logged in if you want to be notified of further changes to the same page."

Can you tell me how long it takes - if you do not visit a page after an Email notification - that the notifications stop? 195.88.117.166 (talk) 06:28, 22 February 2023 (UTC)

It should be immediate. Bawolff (talk) 07:47, 22 February 2023 (UTC)

How to start cross-wiki search on my own wiki?

I have two wikis, and I hope the search results are interconnected, like wikipedia ( File:Sidebar-crosswiki-search-results.jpg ),Sister site search results are displayed on the right, what should I do? 46.232.120.234 (talk) 09:46, 22 February 2023 (UTC)

Nobody knows? 36.227.241.50 (talk) 06:09, 24 February 2023 (UTC)

Alerts, Notices, Watchlist and log in bars are messed up.

I logged in my mediawiki page today and alerts, notices dont open up. I click on them and i go to a notifications special page that keeps loading. Also the words are mushed with the symbols. Also, the watchlist icon became invisible but its still there when i click it. The log in bar is also invisible. All of this happened while i was sleeping, nobody had access to the files and also i checked the code and nothing changed since yesterday. Honestly, what is going on?? Arisparaschou (talk) 11:24, 22 February 2023 (UTC)

This sounds like a javascript error. Can you check your web browsers developer console to see if there are any errors shown in it? Bawolff (talk) 12:06, 22 February 2023 (UTC)
I did that and i see this on the debugger:
This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”.
Uncaught SyntaxError: expected expression, got '.'
load.php:1
GEThttp://mydomain/favicon.ico Arisparaschou (talk) 13:56, 22 February 2023 (UTC)
Can you open the load.php page in question? What does it start with? Bawolff (talk) 01:30, 23 February 2023 (UTC)

Hi, I am planning to start a new public wiki and need advice on that.

I already have Media Wiki installed, but I want to create a wiki for everyone to access.

I need help on that and on the configuration of the server (if I need it) ChelePicante (talk) 01:43, 23 February 2023 (UTC)

What specific questions do you have? You say you've already got it installed, so it sounds like you're on the right path. If you want everyone to be able to edit, you'll probably want to add some spam prevention measures; have a read of Manual:Combating spam. Sam Wilson 03:17, 23 February 2023 (UTC)
Sorry for late response.
I want to make a wiki public so that it can show up in Google when searched and everyone can edit. However, I create one, and I get the error "ERR_CONNECTION_REFUSED" but that's for the local host.
My question is how to make the wiki public and all the corresponding steps. ChelePicante (talk) 23:36, 24 February 2023 (UTC)

openstack:train nova-scheduller boot failure

I install the openstack(train) in my local environment refer to the "Minimal deployment for Train(https://docs.openstack.org/install-guide/openstack-services.html)"。when i finished the Compute service Install and configure controller node,the openstack-nova-conductor and openstack-nova-scheduller service boot failured。the service log :

2023-02-23 13:18:03.428 22509 CRITICAL nova [-] Unhandled error: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-2b3e6f6a-8c82-4818-9caa-4945990c887c)

2023-02-23 13:18:03.428 22509 ERROR nova Traceback (most recent call last):

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/bin/nova-conductor", line 10, in <module>

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?sys.exit(main())

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/cmd/conductor.py", line 44, in main

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?topic=rpcapi.RPC_TOPIC)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/service.py", line 271, in create

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?periodic_interval_max=periodic_interval_max)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/service.py", line 129, in __init__

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?self.manager = manager_class(host=self.host, *args, **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 117, in __init__

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?self.compute_task_mgr = ComputeTaskManager()

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 243, in __init__

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?self.report_client = report.SchedulerReportClient()

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 186, in __init__

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?self._client = self._create_client()

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 229, in _create_client

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?client = self._adapter or utils.get_sdk_adapter('placement')

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1039, in get_sdk_adapter

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?return getattr(conn, service_type)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/openstack/service_description.py", line 92, in __get__

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?endpoint = proxy_mod.Proxy.get_endpoint(proxy)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 282, in get_endpoint

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?return self.session.get_endpoint(auth or self.auth, **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1218, in get_endpoint

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?return auth.get_endpoint(self, **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 380, in get_endpoint

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?allow_version_hack=allow_version_hack, **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?service_catalog = self.get_access(session).service_catalog

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 134, in get_access

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?self.auth_ref = self.get_auth_ref(session)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?return self._plugin.get_auth_ref(session, **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 188, in get_auth_ref

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?authenticated=False, log=False, **rkwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 1124, in post

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?return self.request(url, 'POST', **kwargs)

2023-02-23 13:18:03.428 22509 ERROR nova? ?File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 961, in request

2023-02-23 13:18:03.428 22509 ERROR nova? ? ?raise exceptions.from_response(resp, method, url)

2023-02-23 13:18:03.428 22509 ERROR nova Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-2b3e6f6a-8c82-4818-9caa-4945990c887c)

2023-02-23 13:18:03.428 22509 ERROR nova

but i use the same nova username and password by curl command visit the auth http api (http://controller:5000/v3/auth/tokens),it's ok。so how solve the problem?Help!

the operating system is centos 7.9.2009. BCapricorn12 06:16, 23 February 2023 (UTC)

@BCapricorn12 Hi, how is this related to MediaWiki? Please see "Post a new question" in the sidebar. Malyacko (talk) 11:42, 23 February 2023 (UTC)

Magic words

Are there any "magic words" for the "Words in all content pages", like in the statistics, to display it elsewhere?" 2003:C5:FF11:8F62:18CA:2DA7:E458:2D54 (talk) 06:22, 23 February 2023 (UTC)

No, that is not available as a magic word. Bawolff (talk) 11:08, 23 February 2023 (UTC)
It would be a nice idea to implement this. :-) 2A00:20:B042:FAA1:24E5:3DCF:EC6D:CE36 (talk) 09:28, 24 February 2023 (UTC)

Semantic mediawiki with wikibase.

After adding iSemantic Mediawiki in wiki I am unable to create any property from wikibase showing the following error-

[ac45c5359ad253635338f9b9] /wiki/Special:NewProperty InvalidArgumentException: The given PageIdentity does not represent a proper page

`Backtrace:

from /var/www/html/includes/page/WikiPageFactory.php(58)
#0 /var/www/html/includes/page/WikiPage.php(211): MediaWiki\Page\WikiPageFactory-    >newFromTitle(Title)
#1   /var/www/html/extensions/Wikibase/repo/includes/EditEntity/MediawikiEditFilterHookRunner.php(149):   WikiPage::factory(Title)
#2 /var/www/html/extensions/Wikibase/repo/includes/EditEntity/MediawikiEditFilterHookRunner.php(89): Wikibase\Repo\EditEntity\MediawikiEditFilterHookRunner->getContextForEditFilter(NULL, string)
#3 /var/www/html/extensions/Wikibase/repo/includes/EditEntity/StatsdTimeRecordingEditFilterHookRunner.php(47): Wikibase\Repo\EditEntity\MediawikiEditFilterHookRunner->run(Wikibase\DataModel\Entity\Property, User, string)
#4 /var/www/html/extensions/Wikibase/repo/includes/EditEntity/MediawikiEditEntity.php(718): Wikibase\Repo\EditEntity\StatsdTimeRecordingEditFilterHookRunner->run(Wikibase\DataModel\Entity\Property, User, string)
#5 /var/www/html/extensions/Wikibase/repo/includes/EditEntity/StatsdSaveTimeRecordingEditEntity.php(7    7): Wikibase\Repo\EditEntity\MediawikiEditEntity->attemptSave(Wikibase\DataModel\Entity\Property, string, integer, string, boolean, array)
#6 /var/www/html/extensions/Wikibase/repo/includes/Specials/SpecialWikibaseRepoPage.php(183): Wikibase\Repo\EditEntity\StatsdSaveTimeRecordingEditEntity->attemptSave(Wikibase\DataModel\Entity\Property, string, integer, string)
#7 /var/www/html/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(164): Wikibase\Repo\Specials\SpecialWikibaseRepoPage->saveEntity(Wikibase\DataModel\Entity\Property, Wikibase\Lib\Summary, string, integer)
#8 /var/www/html/includes/htmlform/HTMLForm.php(715): Wikibase\Repo\Specials\SpecialNewEntity->Wikibase\Repo\Specials\{closure}(array, OOUIHTMLForm)
#9 /var/www/html/includes/htmlform/HTMLForm.php(605): HTMLForm->trySubmit()
#10 /var/www/html/extensions/Wikibase/repo/includes/Specials/SpecialNewEntity.php(108): HTMLForm->tryAuthorizedSubmit()
#11 /var/www/html/includes/specialpage/SpecialPage.php(646): Wikibase\Repo\Specials\SpecialNewEntity->execute(NULL)
#12 /var/www/html/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run(NULL)
#13 /var/www/html/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#14 /var/www/html/includes/MediaWiki.php(918): MediaWiki->performRequest()
#15 /var/www/html/includes/MediaWiki.php(551): MediaWiki->main()
#16 /var/www/html/index.php(53): MediaWiki->run()
#17 /var/www/html/index.php(46): wfIndexMain()
 #18 {main}`
Added semanticMediawiki configuration in Localsettings.php and tried all combinations-
wfLoadExtension('SemanticMediawiki');


enableSemantics('docs.localhost');

$wgWBRepoConceptBaseUri = "http://example.com/wiki/Special:EntityData/";

$smwgNamespacesWithSemanticLinks[NS_MAIN] = true;

Also tried installing diffrent version of semantic mediawiki but none of them works-

version SMW 4.1.0  (issue while creating a property from wikibase)

version SMW 4.0.2  (issue while creating a property from wikibase)

version SMW =<3.2.3  (Not Compatible) 103.138.60.18 (talk) 07:09, 23 February 2023 (UTC)

A similar or probably the same issue was reported here: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/5414 [[kgh]] (talk) 10:51, 25 February 2023 (UTC)

credentials cannot be found

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 can no longer log in to my main, non-wikisysop account. I get an error saying that my credentials cannot be verified. ( I don't know what that means.) I can still use the account by logging into wikisysop and using Sudo to jump into it. When I tried to assign it a new password etc., it said "credentials could not be found", it sounds like a database problem to me, and I don't mind going into SQL and manually rebuilding it, if I know where to look. Can anyone point me in the right direction?
UPDATE: I am now unable to log into my account at all, not even via Sudo.
Installed software
ProductVersion: MediaWiki1.37.1
PHP8.0.27 (litespeed)
MySQL5.7.23-23
ICU69.1
Pygments2.10.0
Article path: /index.php/$1
Script path: /
index.php: /index.php
api.php: /api.php
rest.php: /rest.php -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 07:18, 23 February 2023 (UTC)
You can try changing passwords with the Manual:changePassword.php maintenance script. Ciencia Al Poder (talk) 10:00, 24 February 2023 (UTC)
Under 'users and rights', "edit account" which I believes accesses that script, produces a "credentials cannot be found" error, as if the User has been deleted or something, as if there is no password to change. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 17:55, 24 February 2023 (UTC)
No, the script must be run from the command line on the server. Ciencia Al Poder (talk) 18:58, 24 February 2023 (UTC)
Done. That username, "Archangel", crashes it. Testing with 2 of my other alts does not. It changed those successfully. This leads me to even more firmly think that this is a corrupted database issue. If I knew where to look, I am certain that I can manually repair whatever damage is there. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 23:52, 24 February 2023 (UTC)
Be sure you have not enabled any (external) authentication extension, because the user may be linked to that external auth, which would prevent you from changing its password. Ciencia Al Poder (talk) 12:44, 25 February 2023 (UTC)
I don't think I have anything like that. The user is (was) an alt I use for most of the social-type stuff on the wiki, while I use the wikisysop account for the techie stuff. I don't have anything external, as far as I am aware. Not even sure how to check for it. This happened to the account once before, and I had to re-create it as a new account, and remake the sig and user page etc, all over again. I would rather not do that a second time if I can help it. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 07:16, 26 February 2023 (UTC)
Really, I'm pretty sure its data corruption. If I knew where to look in the database, I can probably repair it, or at least rule out the possibility of data corruption. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 22:24, 26 February 2023 (UTC)
Please include the exact text of the error message.
Based on your description so far, it does not sound like database corruption so much as an extension overriding mediawiki's authentication procedures and then failing, but hard to know without knowing the exact error message and what AuthManager extensions are installed.
Another possibility is that the username is a reserved username, and hence logging in with it is disallowed. Archangel normally would not be reserved, but extensions can add to the reserved list and some pages in mediawiki namespace can make a name be reserved. Bawolff (talk) 00:45, 27 February 2023 (UTC)
I will do this today. Thank you! -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 16:49, 27 February 2023 (UTC)
"The supplied credentials could not be authenticated." -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:05, 27 February 2023 (UTC)
generally this means that either the primary mediawiki auth mechanism was marked non authoratative (some extensions do this) or the username is reserved and not allowed to be used for login. Bawolff (talk) 11:04, 28 February 2023 (UTC)
Ok, thanks so much! I scrubbed my wiki of unneeded extensions and changed the username. Hopefully, that will do the trick, thanks again. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:52, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is it possible for non-admin users to create a StructuredDiscussions page

Hi :)

I have the StructuredDiscussions extension installed in my wiki and right now it is possible to create a discussion board through a link in Special pages. Since this is only visible to users with admin rights - is there a way to make it accessible to regular users?


Kind regards Shaker0351 (talk) 13:10, 23 February 2023 (UTC)

Probaby with manual:$wgGroupPermissions but k dont know the permission name. Bawolff (talk) 17:24, 23 February 2023 (UTC)
Hello @Shaker0351: Assigning flow-create-board to the user group should allow all registered users to create StructuredDiscussions boards via Special:EnableStructuredDiscussions. See extension.json.
$wgGroupPermissions['user']['flow-create-board'] = true;
in your LocalSettings.php should do it. —MarcoAurelio (talk) 19:26, 25 February 2023 (UTC)

Cannot apply Stylesheets - Error code 500 - TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given

Hi,

My organisation has a project that generates just a Wiki Page that people can contribute to.

This was working about 3 months ago on PHP 7 and MW 1.38 (stable at that time) in a Docker container that runs in our internal-dev Kubernetes cluster. The skin used is Tweeki.

On upgrading the project to PHP 8.1 and MW 1.39.1, a number of errors cropped up, but mostly had to do with outdated or deprecated extensions. I've resolved all of them, however, the stylesheet and Tweeki skin do not seem to get applied.

On debugging the project and doing a F12 inspect, the Console error shows the following error:

"Refused to apply style from 'https://<Internal-dev-URL-masked>/load.php?lang=en-gb&modules=ext.flaggedRevs.basic%2Cicons%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.tweeki.awesome.styles%7Cskins.tweeki.externallinks.styles%7Cskins.tweeki.mediawiki.styles%7Cskins.tweeki.styles&only=styles&skin=tweeki' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

On clicking the link, the following debugging error is displayed:

[049916d27f36806026c322db] /load.php?lang=en-gb&modules=ext.flaggedRevs.basic%2Cicons%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.tweeki.awesome.styles%7Cskins.tweeki.externallinks.styles%7Cskins.tweeki.mediawiki.styles%7Cskins.tweeki.styles&only=styles&skin=tweeki TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given Backtrace: from /var/www/html/includes/OutputPage.php(4228)

  1. 0 /var/www/html/includes/OutputPage.php(4228): strpos(array, string)
  2. 1 /var/www/html/includes/ResourceLoader/SkinModule.php(690): OutputPage::transformResourcePath(GlobalVarConfig, array)
  3. 2 /var/www/html/includes/ResourceLoader/SkinModule.php(459): MediaWiki\ResourceLoader\SkinModule->getLogoData(GlobalVarConfig, string)
  4. 3 /var/www/html/includes/ResourceLoader/Module.php(834): MediaWiki\ResourceLoader\SkinModule->getStyles(MediaWiki\ResourceLoader\Context)
  5. 4 /var/www/html/includes/ResourceLoader/Module.php(786): MediaWiki\ResourceLoader\Module->buildContent(MediaWiki\ResourceLoader\Context)
  6. 5 /var/www/html/includes/ResourceLoader/ResourceLoader.php(1118): MediaWiki\ResourceLoader\Module->getModuleContent(MediaWiki\ResourceLoader\Context)
  7. 6 /var/www/html/includes/ResourceLoader/ResourceLoader.php(820): MediaWiki\ResourceLoader\ResourceLoader->makeModuleResponse(MediaWiki\ResourceLoader\Context, array, array)
  8. 7 /var/www/html/load.php(53): MediaWiki\ResourceLoader\ResourceLoader->respond(MediaWiki\ResourceLoader\Context)
  9. 8 /var/www/html/load.php(39): wfLoadMain()
  10. 9 {main}


Thinking that this could be a problem with the Tweeki skin, I switched it to MonoBook or Vector, but both skins seems to produce this error. I'm even using Bootstrap 4.6.0, which is required by Tweeki to apply its skin and there has been no change in the Apache configuration settings between PhP 7 and the upgraded PhP 8.1.

Would really love some help as I've been stuck with this error for about a week. :) Tarunjoseph93 (talk) 14:41, 23 February 2023 (UTC)

What is the value of $wgLogos in LocalSettings.php ? Bawolff (talk) 17:18, 23 February 2023 (UTC)
$wgLogo = [ '1x' => "$wgResourceBasePath/resources/assets/logo.png" ];
I just have one logo in my project. Tarunjoseph93 (talk) 10:34, 2 March 2023 (UTC)
that is the syntax for $wgLogos with an s, $wgLogo without an s uses different syntax. Bawolff (talk) 12:37, 2 March 2023 (UTC)
Thank you, it seems to have solved the error.
Scoured the depths of the internet for almost 2 weeks and stuck with the same error, only to find out that the function itself is a plural word now, rather than singular. Unbelievable. Tarunjoseph93 (talk) 15:09, 2 March 2023 (UTC)

Scribunto and Graph Extension posible bug

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 am currently running:

MediaWiki 1.39.1
PHP 7.4.33 (fpm-fcgi)
MariaDB 10.3.28-MariaDB
ICU 71.1
Lua 5.1.5
Graph – (1a1308a) 06:14 24 ene 2023
Scribunto – (1f5bfea) 06:17 14 feb 2023
JsonConfig 1.1.1 (dad45f5) 06:08 17 ene 2023

(d3145c8) dont know why it shows "dad45f5".

Everything on latest release 1.39 LTS

Problem is im getting Error de Lua en Módulo:Graph en la línea 1199: attempt to get length of local 'x' (a nil value) when invoking a module from a template.

Reverse callback:

  1. (tail call): ?
  2. Módulo:Graph:1199: en la función "chunk"
  3. mw.lua:527: ?
  4. (tail call): ?
  5. [C]: en la función "xpcall"
  6. MWServer.lua:99: en la función "handleCall"
  7. MWServer.lua:313: en la función "dispatch"
  8. MWServer.lua:52: en la función "execute"
  9. mw_main.lua:7: en el campo principal
  10. [C]: ?


i have the namespace module defined with Module:Graph lua code inside. Any ideas? 93.188.143.1 (talk) 15:27, 23 February 2023 (UTC)

What parameters are you invoking it with. Are you sure the x values are being specified? Bawolff (talk) 17:22, 23 February 2023 (UTC)
I've made a Template that calls the Module: Graph wich looks like this:
{{#invoke:Graph|chart}}
and then on any other text page, i call it like this:
{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
|type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}} 93.188.143.1 (talk) 10:36, 24 February 2023 (UTC)
its working if i call it like this on the template:
<includeonly>{{#tag:templatestyles||src=GraphChart/styles.css}}{{#tag:graph|{{#invoke:Graph|chartWrapper}}}}</includeonly><noinclude>{{Documentation}}</noinclude> 93.188.143.1 (talk) 10:16, 3 April 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Template loop that I can’t fix.

I am trying to add a template for dams for my wiki but every single time I try to fix it it won’t work. I think this code is somewhat broken but I don’t even know.

{{dams

  | Title2=Example

 

  | Image1=Example

 

  | Caption1=Example

 

  | Built=Example

 

  | Cost=Example

 

  | Destroyed=Example

 

  | Countrys Owner=Example

 

  | Company Who Owns It=Example

 

  | Expenses=Example

 

  | Energy Produced=Example

 }}

I don’t know what I’m doing wrong. My wiki just moved from fandom so maybe I’m using fandom code but idk AMaxIdoit (talk) 18:38, 23 February 2023 (UTC)

It depends on the content of Template:dams. Check the template documentation – Ammarpad (talk) 11:53, 25 February 2023 (UTC)

This support desk

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.


What extensions and templates are used here? I love the setup and would like to te-create it on my own wiki. -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 09:49, 24 February 2023 (UTC)

It uses Extension:StructuredDiscussions Ciencia Al Poder (talk) 09:54, 24 February 2023 (UTC)
Thats the whole ball of wax?
THANK YOU!!! -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 17:59, 24 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

php maintenance/SqliteMaintenance.php

following https://www.mediawiki.org/wiki/Manual:SqliteMaintenance.php#Checking_integrity


results here this:


/usr/local/www/mediawiki # php maintenance/SqliteMaintenance.php --integrityThis maintenance script requires a SQLite database.

while running

/usr/local/www/mediawiki # php maintenance/sql.php shows a prompt.


What is wrong here? 79.246.218.154 (talk) 19:36, 24 February 2023 (UTC)

These are two different, unrelated scripts. What are you expecting? – Ammarpad (talk) 11:51, 25 February 2023 (UTC)
php maintenance/sql.php works as intended
php maintenance/SqliteMaintenance.php does not. 79.246.201.180 (talk) 21:38, 26 February 2023 (UTC)
What makes you think so? Please do explain what does happen (without paraphrasing), and what you expect instead and why. Malyacko (talk) 10:08, 27 February 2023 (UTC)

What is the deal with thumb handler?

Use thumb_handler.php rather than thumb.php to set up the thumb handler.

On manual Manual:Thumb handler.php I am told to add:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?w/images/thumb/[0-9a-f]/[^/]+/[^/]+$ /w/thumb_handler.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[^/]+/[^/]+$ /w/thumb_handler.php [L,QSA]

Apart from the Apache voodoo. Here the handler goes via thumb_handler.php.


The online wizard accessible via Manual:Short_URL/Apache#Online_Wizard tells me to add

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]

Apart from the Apache voodoo. Here the handler goes via thumb.php.

Both files are in the script path. Which version is correct? Probably the wizard version or both? 2003:F1:C70E:6600:630D:4D5:7627:FA99 (talk) 23:42, 24 February 2023 (UTC)

thumb_handler.php is better. The thumb.php version wont work for certain file types. thumb_handler.php is newer than thumb.php although both have been around for a very long time at thus point. Bawolff (talk) 07:31, 25 February 2023 (UTC)
Thanks a lot for the info! Good to know I think. 2003:F1:C70E:6600:463:E9E6:59CC:4DF2 (talk) 09:52, 25 February 2023 (UTC)
Note that, after setting up the rewrite rules, you will also have to set in your "LocalSettings.php" file:
$wgThumbnailScriptPath = "$wgScriptPath/thumb_handler.php";
$wgGenerateThumbnailOnParse = false;
[[kgh]] (talk) 10:47, 25 February 2023 (UTC)
I dont think you should set $wgThumbnailScriptPath if using rewrite rules - im pretty sure it only works with thumb.php and is less efficient than the rewrite rule version.
The $wgGenerateThumbnailOnParse setting something you should set . Bawolff (talk) 12:08, 25 February 2023 (UTC)
Ah, I would have guessed that $wgThumbnailScriptPath is dedicated to thumbnailing no matter which handler is used. Oopsie. :) [[kgh]] (talk) 12:19, 25 February 2023 (UTC)

migration issues

hi guys


A long time ago, I Have migrated my mediaWiki page.


It used to be in a subdirectory on another domain. I have followed the mediaWiki migration guide. Weeks later, I still have issues with old links that do not exist anymore.


I have tried rebuildall.php - it resolved some issue like missing images.


It also screwed category indexes...they are all empty now.


I used to have hardlinks as a kludge, due to intermittent issues.


https://eh.hajes.org/Category:ecu

Now written according to wiki coding.

:Category:ecu


Both leads to an empty page, which used to be an index with alphabetic order.


Any suggestions, what went wrong, please? Haj3s29a (talk) 11:24, 25 February 2023 (UTC)

During the article creation/modification/deletion, mediawiki hangs on loading

Hello, everyone! While I'm trying to create, modify (by Wikieditor) or delete article, mediawiki freezes on infinite loading and then times out the connection. However, when I'm editing any article with VisualEditor, an edit performs successfully. I've tried to check access.log and error.log in /var/log/apache2, but it seems that there is no error logged. There isn't even POST request with &action=submit link logged in access.log, so it seems that the request is not even registered by apache? I've also checked mysql error logs, tried to debug the page from Manual:How_to_debug, tried to add chmod on all mediawiki files, tried other ways to debug PHP and even checked the /var/log/syslog - also, nothing is being registered there. Maybe you guys have some idea how can I resolve this problem? I even tried to reinstall the wiki and update it from 1.32 to 1.39.2 version - the problem was also there and is still happening.

Please help me with that, as I'm struggling with this one for about one month.

Installed software:

Mediawiki: 1.39.2

PHP: 8.2.3 (apache2handler)

MySQL: 8.0.32

ICU: 65.1

Pygments: 2.11.2


Article path: /$1

Script path: /

index.php: /index.php

api.php: /api.php

rest.php: /rest.php

Thank you in advance! IceMeltt (talk) 16:08, 25 February 2023 (UTC)

I have encountered a similar situation, but I am a user of Windows system, and you can solve it by adding Win32DisableAcceptEx to httpd.conf, but this only applies to Apache in Windows system, and does not apply to Apache 2.4 维基佛祖 (talk) 11:09, 28 February 2023 (UTC)

Collapsible sections

I want to be able to collapse specific sections following the style of "Translations" section in wiktionary, ie (https://en.wiktionary.org/wiki/desert) and adding the "Show/Hide translations" toggles in the left bar menu (so that once clicked, that option sticks for all other pages). How can this be done? Spiros71 (talk) 23:10, 25 February 2023 (UTC)

When I load the translation extension and the language selector extension error report

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.


Error infos:
MediaWiki internal error.

Original exception: [f4b67c9d6bb67cce08393dcf] /GWiki/index.php/%E7%BB%B4%E5%9F%BA:%E8%A7%84%E7%AB%A0 Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

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

Error 1146: Table 'generalwikipedia.generalwikipediarevtag' doesn't exist
Function: TranslatablePage::getTag
Query: SELECT rt_revision FROM `GeneralWikipediarevtag` WHERE rt_page = 1 AND rt_type = 'tp:mark' ORDER BY rt_revision DESC LIMIT 1

Backtrace:
from G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1618)
#0 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1602): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1576): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(952): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1708): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\Database.php(1661): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)
#5 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\DBConnRef.php(103): Wikimedia\Rdbms\Database->selectField(string, string, array, string, array)
#6 G:\UwAmp\www\GWiki\includes\libs\rdbms\database\DBConnRef.php(312): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(604): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string, array)
#8 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(545): TranslatablePage->getTag(string)
#9 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(1000): TranslatablePage->getMarkedTag()
#10 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(988): PageTranslationHooks::sourcePageHeader(RequestContext)
#11 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(338): PageTranslationHooks::translatablePageHeader(Article, NULL, boolean)
#12 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#13 G:\UwAmp\www\GWiki\includes\HookContainer\HookRunner.php(854): MediaWiki\HookContainer\HookContainer->run(string, array)
#14 G:\UwAmp\www\GWiki\includes\page\Article.php(590): MediaWiki\HookContainer\HookRunner->onArticleViewHeader(Article, NULL, boolean)
#15 G:\UwAmp\www\GWiki\includes\page\Article.php(528): Article->generateContentOutput(User, ParserOptions, integer, OutputPage, array)
#16 G:\UwAmp\www\GWiki\includes\actions\ViewAction.php(78): Article->view()
#17 G:\UwAmp\www\GWiki\includes\MediaWiki.php(542): ViewAction->show()
#18 G:\UwAmp\www\GWiki\includes\MediaWiki.php(322): MediaWiki->performAction(Article, Title)
#19 G:\UwAmp\www\GWiki\includes\MediaWiki.php(904): MediaWiki->performRequest()
#20 G:\UwAmp\www\GWiki\includes\MediaWiki.php(562): MediaWiki->main()
#21 G:\UwAmp\www\GWiki\index.php(50): MediaWiki->run()
#22 G:\UwAmp\www\GWiki\index.php(46): wfIndexMain()
#23 {main}

Exception caught inside exception handler: [f4b67c9d6bb67cce08393dcf] /GWiki/index.php/%E7%BB%B4%E5%9F%BA:%E8%A7%84%E7%AB%A0 Error: Call to undefined method Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges()
Backtrace:
from G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php(520)
#0 G:\UwAmp\www\GWiki\extensions\Translate\TranslateUtils.php(500): TranslateUtils::shouldReadFromMaster()
#1 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(906): TranslateUtils::getSafeReadDB()
#2 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(881): TranslatablePage::getTranslatablePages()
#3 G:\UwAmp\www\GWiki\includes\libs\objectcache\wancache\WANObjectCache.php(1689): TranslatablePage::{closure}(boolean, integer, array, NULL, array)
#4 G:\UwAmp\www\GWiki\includes\libs\objectcache\wancache\WANObjectCache.php(1522): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#5 G:\UwAmp\www\GWiki\extensions\Translate\tag\TranslatablePage.php(884): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#6 G:\UwAmp\www\GWiki\extensions\Translate\tag\PageTranslationHooks.php(165): TranslatablePage::isSourcePage(Title)
#7 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(338): PageTranslationHooks::onBeforePageDisplay(OutputPage, SkinMustache)
#8 G:\UwAmp\www\GWiki\includes\HookContainer\HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#9 G:\UwAmp\www\GWiki\includes\HookContainer\HookRunner.php(945): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#10 G:\UwAmp\www\GWiki\includes\OutputPage.php(2869): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, SkinMustache)
#11 G:\UwAmp\www\GWiki\includes\exception\MWExceptionRenderer.php(183): OutputPage->output()
#12 G:\UwAmp\www\GWiki\includes\exception\MWExceptionRenderer.php(102): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#13 G:\UwAmp\www\GWiki\includes\exception\MWExceptionHandler.php(131): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#14 G:\UwAmp\www\GWiki\includes\exception\MWExceptionHandler.php(248): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#15 G:\UwAmp\www\GWiki\includes\MediaWiki.php(581): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#16 G:\UwAmp\www\GWiki\index.php(50): MediaWiki->run()
#17 G:\UwAmp\www\GWiki\index.php(46): wfIndexMain()
#18 {main}
Google Translate
Original text
Contribute a better translation
维基佛祖 (talk) 01:54, 26 February 2023 (UTC)
Run update.php script – Ammarpad (talk) 11:08, 26 February 2023 (UTC)
New error:
Error: Call to undefined method Wikimedia\Rdbms\LoadBalancer::hasOrMadeRecentMasterChanges() 维基佛祖 (talk) 11:23, 26 February 2023 (UTC)
Are you using the correct version of your extension for your version of mediawiki. Bawolff (talk) 11:37, 26 February 2023 (UTC)
Thank you for helping me solve this problem. After updating the extension to the latest stable version, I successfully visited 维基佛祖 (talk) 12:17, 26 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Are there any extensions on mediawiki that require a verification code to register?

My wiki is special. It is a wiki for relay novels.I need an extension that allows members to write applications. Members can submit the applications to the administrator for review after they have written them. Only after the administrator has approved them can they obtain membership.

Is there a extension that can implement this function? Thanks:) Zero-zoner (talk) 02:01, 26 February 2023 (UTC)

Extension:RequestWiki 维基佛祖 (talk) 02:10, 26 February 2023 (UTC)
You should install Extension:ConfirmAccountAmmarpad (talk) 11:06, 26 February 2023 (UTC)
Extension:NewSignupPage is recommended 维基佛祖 (talk) 11:10, 26 February 2023 (UTC)

Cascading protection of pages within the category

Hi, doesn't the cascade protection of the pages that are in a category, for example, category: new pages, protect the pages in this category? Mahdi Alavi nasab (talk) 03:51, 26 February 2023 (UTC)

No, since that would let anyone protect any page which is not wanted. Taavi (talk!) 19:03, 27 February 2023 (UTC)

syntax highlighting is operational despite of warning message

Hi all, when opening a long page for edition -> https://www.mediawiki.org/w/index.php?title=Manual:Upgrading&action=edit , syntax highlighting works on the complete file in the window but with following message:

Syntax highlighting on this page was disabled because it took too long. The maximum allowed highlighting time is 20ms, and your computer took 33ms. 

In this case the message is useless because work is done and should be removed or timing was wrong evaluated. What to understand ? Thanks.

Christian 🇫🇷 FR (talk) 10:02, 26 February 2023 (UTC)

syntax highlighting : view the text blocks ?

Hi all. Is it possible to request a feature which would stop syntax highlighting process at the very first step where text appears on the screen with red/yellow background transitional blocks ? As a translator admin, if i can isolate the text blocks visually, it is easier for me to set the translation tags. A button/tab on client side (JS ?) would be appreciated. Thanks.

Christian 🇫🇷 FR (talk) 10:13, 26 February 2023 (UTC)

Translation administrators user group not found

Translation administrators user group not found 维基佛祖 (talk) 12:23, 26 February 2023 (UTC)

You can get permissions by changing localsettings.php:
$wgGroupPermissions ['sysop'] [' pagetranslation'] = true.
$wgGroupPermissions ['sysop'] [' translate-manage'] = true.
$wgGroupPermissions ['sysop'] [' pagelang'] = true 维基佛祖 (talk) 22:43, 26 February 2023 (UTC)
Please see "Post a new question" in the sidebar and provide steps to reproduce. Malyacko (talk) 10:08, 27 February 2023 (UTC)

Upgrade 1.31. to 1.39.2, php version?

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.


MW 1.31 supports up to php 7.3+ whereas MW 1.39 minimum version support is php 7.4.3. How does one go about upgrading in one step (I am guessing this is safe given that https://phabricator.wikimedia.org/T326071 was resolved with 1.39.2)? Has anyone done this in one step without issues? Spiros71 (talk) 10:17, 27 February 2023 (UTC)

I'm not sure what you're question is?
See Upgrading for generic info on how to upgrade. I encourage you to make a backup first just in case. Bawolff (talk) 16:18, 27 February 2023 (UTC)
What php version should be used for the above upgrade? Spiros71 (talk) 18:59, 27 February 2023 (UTC)
You should use a PHP version that is supported by the version of MediaWiki that is running at that time. Likely this means that you will have to upgrade PHP at the same time you upgrade MediaWiki. Taavi (talk!) 19:03, 27 February 2023 (UTC)
I imagine php 7.4.3+ will work with both MW 1.39 and MW1.31.
MW 1.31 has a minimum requirement of 7.3, it should not be taken as saying it is incompatible with 7.4.3 (It is incompatible with 8 though) Bawolff (talk) 20:03, 27 February 2023 (UTC)
Thanks, indeed, MW 1.31 appears to work with 7.4.33. Spiros71 (talk) 11:40, 28 February 2023 (UTC)
I think you would just get the new files ready, upgrade php, swap the directories and run update.php. Jonathan3 (talk) 22:14, 27 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[Resolved] Error: Call to undefined function

Hello,


I've added HTTPS support to my server, and now mediawiki reports "Error: Call to undefined function" for several functions, depending on what page I'm trying to open.


The main page has an issue with MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()

The Special:Version page has an issue with curl_exec()


I have made changes to the php.ini to try and remedy this:

I commented out open_basedir

I've removed "exec" from disable_functions = passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source...


Techcare.noc (talk) 10:28, 27 February 2023 (UTC)

The trace:
[Y_yDoNoH68eaLHStaTCYbAAAAFM] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
#0 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(49): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->getClockTick()
#1 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/Hooks.php(305): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->reportLimitData()
#2 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Scribunto\Hooks::reportLimitData()
#3 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#4 /var/www/mediawiki-1.39.0/includes/HookContainer/HookRunner.php(2946): MediaWiki\HookContainer\HookContainer->run()
#5 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(827): MediaWiki\HookContainer\HookRunner->onParserLimitReportPrepare()
#6 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(766): Parser->makeLimitReport()
#7 /var/www/mediawiki-1.39.0/includes/content/WikitextContentHandler.php(301): Parser->parse()
#8 /var/www/mediawiki-1.39.0/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput()
#9 /var/www/mediawiki-1.39.0/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
#10 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#11 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#12 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#13 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#15 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(199): call_user_func()
#16 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#17 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()
#18 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()
#19 /var/www/mediawiki-1.39.0/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
#20 /var/www/mediawiki-1.39.0/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput()
#21 /var/www/mediawiki-1.39.0/includes/page/Article.php(528): Article->generateContentOutput()
#22 /var/www/mediawiki-1.39.0/includes/actions/ViewAction.php(78): Article->view()
#23 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(542): ViewAction->show()
#24 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(322): MediaWiki->performAction()
#25 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(904): MediaWiki->performRequest()
#26 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(562): MediaWiki->main()
#27 /var/www/mediawiki-1.39.0/index.php(51): MediaWiki->run()
#28 /var/www/mediawiki-1.39.0/index.php(47): wfIndexMain()
#29 {main} Techcare.noc (talk) 10:30, 27 February 2023 (UTC)
You say you removed exec from disabled functions,but did you remove shell_exec? Bawolff (talk) 10:55, 27 February 2023 (UTC)
Good catch...
Let's try that again... Techcare.noc (talk) 12:47, 27 February 2023 (UTC)
I now removed both...
And then restarted HTTPD.
Still I get the following:
[Y_ynxmFmlyCt6Uw2YNsS_QAAAAE] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
#0 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(49): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->getClockTick()
#1 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/Hooks.php(305): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->reportLimitData()
#2 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Scribunto\Hooks::reportLimitData()
#3 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#4 /var/www/mediawiki-1.39.0/includes/HookContainer/HookRunner.php(2946): MediaWiki\HookContainer\HookContainer->run()
#5 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(827): MediaWiki\HookContainer\HookRunner->onParserLimitReportPrepare()
#6 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(766): Parser->makeLimitReport()
#7 /var/www/mediawiki-1.39.0/includes/content/WikitextContentHandler.php(301): Parser->parse()
#8 /var/www/mediawiki-1.39.0/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput()
#9 /var/www/mediawiki-1.39.0/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
#10 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#11 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#12 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#13 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#15 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(199): call_user_func()
#16 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#17 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()
#18 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()
#19 /var/www/mediawiki-1.39.0/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
#20 /var/www/mediawiki-1.39.0/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput()
#21 /var/www/mediawiki-1.39.0/includes/page/Article.php(528): Article->generateContentOutput()
#22 /var/www/mediawiki-1.39.0/includes/actions/ViewAction.php(78): Article->view()
#23 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(542): ViewAction->show()
#24 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(322): MediaWiki->performAction()
#25 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(904): MediaWiki->performRequest()
#26 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(562): MediaWiki->main()
#27 /var/www/mediawiki-1.39.0/index.php(51): MediaWiki->run()
#28 /var/www/mediawiki-1.39.0/index.php(47): wfIndexMain()
#29 {main)
I even removed curl_exec() as it is mentioned when trying to open special:version, but no change.
I think I upgraded to the latest version (1.39.2), but I can't find any evidence for that. Techcare.noc (talk) 13:00, 27 February 2023 (UTC)
Are you sure you are editing the correct php.ini file? Often there are several php.ini files on a system. Bawolff (talk) 14:50, 27 February 2023 (UTC)
Oddly enough, when I do
$ sudo find / -name 'php.ini'
I only get the one result: /etc/php.ini
I'd gladly try another one if I had one... Techcare.noc (talk) 15:21, 27 February 2023 (UTC)
I disable the Scribunto extention, and the errors disappear.
The page still has a some kind of error, but it's less visible.
Do I continue troubleshooting with Scribunto? Techcare.noc (talk) 15:47, 27 February 2023 (UTC)
Depends. Do you want to use scribunto? If yes, then yes, if no then no.
Scribunto does require having shell_exec (except if you are using php-luasandbox). Its not the only mediawiki thing that does, although most of mediawiki will work without it.
> I only get the one result: /etc/php.ini
Create a file in your web directory called info.php containing only:
<?php phpinfo();
Then view it in your web browser. This should show all of PHP's current configuration, including which ini files are used and what the disable_functions are (Usually under the header "Core"). Check to see if shell_exec is on the list of disable_functions or not. Bawolff (talk) 16:16, 27 February 2023 (UTC)
Good morning,
I already had this file, although I renamed it.
Moved it to the main directory, and found the following:
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Under "Core" I find a very confusing entry.
disable_functions exec,passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source exec,passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
First of all I don't understand where this "local value" and "master value" come from.
Consequently I do not understand why the "local value" and the "master value" both still have "exec", "shell_exec" ánd "curl_exec" in them, when the only php.ini file I find on the whole system (using the command sudo find / -name 'php.ini') has the following for "disable_functions":
disable_functions = passthru,system,popen,curl_multi_exec,parse_ini_file,show_source
This is very confusing. Techcare.noc (talk) 08:03, 28 February 2023 (UTC)
So based on what you posted, you can also have config files not named php.ini. any file regardless of name that is is /etc/php.d/ is also a config file.
Also try restarting your webserver,i dont think php picks up config changes automatically without a restart.
Master value is the value from php.ini. local is run-time config. Just worry about master for now. Bawolff (talk) 11:00, 28 February 2023 (UTC)
None of the .ini files in /etc/php.d contain "disable_functions", so I don't think the functions are enabled somewhere else.
Every time I change the php.ini I restarted the server to be sure.
Current status when I restart the webserver:
[ZAYJeB9U8Bs23lWBt1IiZAAAAIA] /index.php?title=Main_Page Error: Call to undefined function MediaWiki\Extension\Scribunto\Engines\LuaStandalone\shell_exec()
Backtrace:
from /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(89)
#0 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(49): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->getClockTick()
#1 /var/www/mediawiki-1.39.0/extensions/Scribunto/includes/Hooks.php(305): MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine->reportLimitData()
#2 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(338): MediaWiki\Extension\Scribunto\Hooks::reportLimitData()
#3 /var/www/mediawiki-1.39.0/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#4 /var/www/mediawiki-1.39.0/includes/HookContainer/HookRunner.php(2946): MediaWiki\HookContainer\HookContainer->run()
#5 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(827): MediaWiki\HookContainer\HookRunner->onParserLimitReportPrepare()
#6 /var/www/mediawiki-1.39.0/includes/parser/Parser.php(766): Parser->makeLimitReport()
#7 /var/www/mediawiki-1.39.0/includes/content/WikitextContentHandler.php(301): Parser->parse()
#8 /var/www/mediawiki-1.39.0/includes/content/ContentHandler.php(1721): WikitextContentHandler->fillParserOutput()
#9 /var/www/mediawiki-1.39.0/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
#10 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(266): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
#11 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#12 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#13 /var/www/mediawiki-1.39.0/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#15 /var/www/mediawiki-1.39.0/includes/Revision/RenderedRevision.php(199): call_user_func()
#16 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#17 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()
#18 /var/www/mediawiki-1.39.0/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()
#19 /var/www/mediawiki-1.39.0/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
#20 /var/www/mediawiki-1.39.0/includes/page/Article.php(714): MediaWiki\Page\ParserOutputAccess->getParserOutput()
#21 /var/www/mediawiki-1.39.0/includes/page/Article.php(528): Article->generateContentOutput()
#22 /var/www/mediawiki-1.39.0/includes/actions/ViewAction.php(78): Article->view()
#23 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(542): ViewAction->show()
#24 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(322): MediaWiki->performAction()
#25 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(904): MediaWiki->performRequest()
#26 /var/www/mediawiki-1.39.0/includes/MediaWiki.php(562): MediaWiki->main()
#27 /var/www/mediawiki-1.39.0/index.php(51): MediaWiki->run()
#28 /var/www/mediawiki-1.39.0/index.php(47): wfIndexMain()
#29 {main} Techcare.noc (talk) 15:42, 6 March 2023 (UTC)
When I comment out scribunto in LocalSettings.php, I seem to get a working website, apart from {{safesubst:#invoke:time|time|*}} messages...
These are part of a "world clock" type of thing. Techcare.noc (talk) 16:06, 6 March 2023 (UTC)
You can try to reinstall the server software 维基佛祖 (talk) 11:02, 28 February 2023 (UTC)
Reinstalling is rarely a solution to a problem, except if you explicitly do wipe all existing configuration data (which often does not magically happen when "reinstalling"). Malyacko (talk) 11:26, 28 February 2023 (UTC)
I don't want to do that necessarily... Techcare.noc (talk) 15:43, 6 March 2023 (UTC)
I suppose its possible that the disabled_function default was changed at compile time, although that would be pretty unusual. Bawolff (talk) 19:09, 6 March 2023 (UTC)
But please back up first. 维基佛祖 (talk) 11:02, 28 February 2023 (UTC)
Obviously. Techcare.noc (talk) 15:43, 6 March 2023 (UTC)
The Issue is resolved.
The solution: set the correct SELinux context.
I looked at the Scribunto extension page Lua section.
This spoke of setting the correct rights on the Lua folder.
I checked the SELinux details, and found no context was available.
Now the Scribunto extension works, and other extentions that I had issues with previously, now also work without crashing the site.
Thank you for your support.
P.S.: Settings and database are backed up regularly. Techcare.noc (talk) 15:56, 9 March 2023 (UTC)
That's kind of surprising. The error message for an SELinux issue should be different. Regardless, glad to hear you got it working. Bawolff (talk) 20:54, 9 March 2023 (UTC)

Show webp thumbnails as webp and not as png

I would like to serve (new) images as webp to my visitors.

If I tell MediaWiki to show a thumbnail of the image, ImageMagick unfortunately creates a png thumbnail instead of a webp thumbnail. My webhost said we can't tell ImageMagick to create webp by default.

Is there a MediaWiki setting to say that all thumbnails should be webp? Stefahn (talk) 14:52, 27 February 2023 (UTC)

Not in mediawiki core.
Some people (wikipedia) do stuff outside of mediawiki to make this work. I'm not sure precisely, but i think some combination of varnish/swift/thumbor is used to look at accept headers and dynamically chose the format to use. Bawolff (talk) 16:21, 27 February 2023 (UTC)

Big gray box appears on short pages with timeless skin.

When i use timeless skin, on short pages a big gray box appears. https://cdn.discordapp.com/attachments/771451216499965953/1079835317584007168/image.png KeksToGo (talk) 21:04, 27 February 2023 (UTC)

RAW

I forgot my user name and I the email associated with my account.  Can someone contact via email how to look this information up.  I do not want to create another account as this will cause you to have duplicate accounts and mess up my stuff too.  Thank You Rochelle ~~~~ Please reply via email at rochelleannwanberg@gmail.com 67.218.78.74 (talk) 21:45, 27 February 2023 (UTC)

Please unblock me

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


I was blocked on English Wikipedia, which caused problems like not being able to edit. Please unblock me.

My username is Epochalypse2038. 93.171.233.213 (talk) 07:06, 28 February 2023 (UTC)

Blocks on the english wikipedia is out of scope for this wiki, Please follow the instructions on your talk page P858snake (talk) 08:18, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is offline MediaWiki inaccessible to anyone?

Sorry if this isn't the right place to ask.

I've been trying to download MediaWiki so that I can use a Wikipedia-style wiki for offline documentation (using the AMPPS software stack). Is it possible for me to do this fully offline (i.e. no other person can possibly access it)? Nythar (talk) 10:31, 28 February 2023 (UTC)

Yes, although this has more to do with how you configure your webserver (i.e. make sure the bind address is 127.0.0.1) Bawolff (talk) 10:58, 28 February 2023 (UTC)

The translation content is not displayed, running update.php is invalid, reinstalling wiki is invalid, refreshing page is invalid, refreshing with action=purge paper is invalid, and translation accuracy is normal.

The translation content is not displayed, running update.php is invalid, reinstalling wiki is invalid, refreshing page is invalid, refreshing with action=purge paper is invalid, and translation accuracy is normal. 维基佛祖 (talk) 10:49, 28 February 2023 (UTC)

Running update.php with --force is invalid too 维基佛祖 (talk) 10:52, 28 February 2023 (UTC)
I don't know why, but it suddenly became normal. Does anyone know why? 维基佛祖 (talk) 11:31, 28 February 2023 (UTC)

无法加载翻译辅助工具:Title does not correspond to a translatable message

无法加载翻译辅助工具:Title does not correspond to a translatable message 维基佛祖 (talk) 12:19, 28 February 2023 (UTC)

(Hide) 维基佛祖 (talk) 12:24, 28 February 2023 (UTC)

syntaxhighlight broken after migration from 1.37.2 to 1.39.2

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


Warning: mkdir(): No such file or directory in /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/FileUtils.php on line 113

All pages with syntax highlight tags fail to load. AFAIK, It is not a permissions issue.


I managed to make everything work after the migration by installing all dependencies etc. But syntaxhilghligh doesnt work. I'm desperate to get this working.


New Server:

Installed software

Product Version
MediaWiki 1.39.2
PHP 8.2.0 (fpm-fcgi)
MySQL 5.7.40-log
ICU 72.1
Pygments 2.11.2

old server:

Installed software

Product Version
MediaWiki 1.37.2
PHP 8.0.26 (apache2handler)
MariaDB 10.6.11-MariaDB
ICU 72.1
Pygments 2.10.0
Kroulingor (talk) 13:53, 28 February 2023 (UTC)
[exception] [605bedbb38ebd17a4181ca11] /index.php?title=Bsdns1:_(nsd/unbound)_DNS_MASTER   Shellbox\ShellboxError: Error creating directory shellbox-e4c4c5bb68565079                        │
#0 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/TempDirManager.php(164): Shellbox\FileUtils::mkdir(string)                                                                         │
#1 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/TempDirManager.php(137): Shellbox\TempDirManager->setupBase()                                                                      │
#2 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/Command/LocalBoxedExecutor.php(95): Shellbox\TempDirManager->prepareBasePath()                                                     │
#3 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/Command/LocalBoxedExecutor.php(37): Shellbox\Command\LocalBoxedExecutor->applyBoxConfig(Shellbox\Command\BoxedCommand)             │
#4 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/Command/BoxedExecutor.php(20): Shellbox\Command\LocalBoxedExecutor->executeValid(Shellbox\Command\BoxedCommand)                    │
#5 /usr/local/www/mediawiki/vendor/wikimedia/shellbox/src/Command/BoxedCommand.php(183): Shellbox\Command\BoxedExecutor->execute(Shellbox\Command\BoxedCommand)                              │
#6 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/Pygmentize.php(254): Shellbox\Command\BoxedCommand->execute()                                                          │
#7 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php(322): MediaWiki\SyntaxHighlight\Pygmentize::highlight(string, string, array)                       │
#8 /usr/local/www/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1688): MediaWiki\SyntaxHighlight\SyntaxHighlight::MediaWiki\SyntaxHighlight\{closure}(boolean, integer, arr│
#9 /usr/local/www/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1522): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)                           │
#10 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php(317): WANObjectCache->getWithSetCallback(string, integer, Closure)                                │
#11 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php(370): MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner(string, string, array)            │
#12 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php(154): MediaWiki\SyntaxHighlight\SyntaxHighlight::highlight(string, string, array, Parser)         │
#13 /usr/local/www/mediawiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php(175): MediaWiki\SyntaxHighlight\SyntaxHighlight::processContent(string, array, Parser)            │
#14 /usr/local/www/mediawiki/includes/parser/Parser.php(4023): MediaWiki\SyntaxHighlight\SyntaxHighlight::parserHook(string, array, Parser, PPFrame_Hash)                                    │
#15 /usr/local/www/mediawiki/includes/parser/PPFrame_Hash.php(353): Parser->extensionSubstitution(array, PPFrame_Hash, boolean)                                                              │
#16 /usr/local/www/mediawiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)                                                                               │
#17 /usr/local/www/mediawiki/includes/parser/Parser.php(1610): Parser->replaceVariables(string)                                                                                              │
#18 /usr/local/www/mediawiki/includes/parser/Parser.php(724): Parser->internalParse(string)                                                                                                  │
#19 /usr/local/www/mediawiki/includes/content/WikitextContentHandler.php(301): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)                                        │
#20 /usr/local/www/mediawiki/includes/content/ContentHandler.php(1720): WikitextContentHandler->fillParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, ParserOutput│
#21 /usr/local/www/mediawiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput(WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)              │
#22 /usr/local/www/mediawiki/includes/Revision/RenderedRevision.php(265): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(WikitextContent, Title, integer, ParserOptions, boolean│
#23 /usr/local/www/mediawiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)                         │
#24 /usr/local/www/mediawiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)                                            │
#25 /usr/local/www/mediawiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)                 │
#26 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)                                                       │
#27 /usr/local/www/mediawiki/includes/Revision/RenderedRevision.php(199): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)                                                │
#28 /usr/local/www/mediawiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()                                                │
#29 /usr/local/www/mediawiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()                                                                  │
#30 /usr/local/www/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()                                                                             │
#31 /usr/local/www/mediawiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()                                                                                           │
#32 /usr/local/www/mediawiki/includes/page/Article.php(713): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreCacheRecord, integer│
#33 /usr/local/www/mediawiki/includes/page/Article.php(528): Article->generateContentOutput(User, ParserOptions, integer, OutputPage, array)                                                 │
#34 /usr/local/www/mediawiki/includes/actions/ViewAction.php(78): Article->view()                                                                                                            │
#35 /usr/local/www/mediawiki/includes/MediaWiki.php(542): ViewAction->show()                                                                                                                 │
#36 /usr/local/www/mediawiki/includes/MediaWiki.php(322): MediaWiki->performAction(Article, Title)                                                                                           │
#37 /usr/local/www/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()                                                                                                        │
#38 /usr/local/www/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()               
#39 /usr/local/www/mediawiki/index.php(50): MediaWiki->run()                                                                                                                                 │
#40 /usr/local/www/mediawiki/index.php(46): wfIndexMain()                                                                                                                                    │
#41 {main}                          Kroulingor (talk) 14:38, 28 February 2023 (UTC)
Probably a permissions issue in your temp directory (If normal unix permissions are fine, check also things like selinux).
if /tmp is not usable, make sure you set $wgTmpDirectory to something writable. Bawolff (talk) 14:50, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Blank Website.

Dear All.

I am using Mediawiki 1.35.1 hosted by Strato.

The PHP version is 8.0

Database MySQL version 5.7

It has always run perfectly since installation.

The problem with my website is a blank start page.

The first time it took three days and then the website just came back.

Now it's happening again and it's been 5 days now.

The Errorlogs that Strato keeps for me show no errors.

I also downloaded the Logfiles over various time frames / day / week / month.

Strato directed me to "You see a blank page"

First I made a copy of my original LocalSettings.php

I then added the below lines as indicated to the LocalSetting.php

error_reporting( E_ALL );

ini_set( 'display_errors', 1 );

This gave no errors.

From the above page I can click through to "Manual:How to debug"

There, however, the instruction is slightly different.

error_reporting( -1 );

ini_set( 'display_errors', 1 );

See the difference in the top lines error_reporting( E_ALL ); / error_reporting( -1 );

Does this matter?

Even with the changed 1st line I don't get any errors.

Do you have an idea why I see a blank page?

Thanks in advance. A newbie. Nipperus (talk) 14:14, 28 February 2023 (UTC)

E_ALL and -1 should have the same affect.
Check your webserver/php error logs.
Is it only the main page? That would be kind of weird. Could be that it happens once and then gets cached somehow. Do you have any CDN/varnish caching setup? Bawolff (talk) 14:51, 28 February 2023 (UTC)
#Bawolff. webserver/ php error logs contains no errors, was already posted.
All pages contain the same problem.
No CDN/varnish caching Nipperus (talk) 15:52, 28 February 2023 (UTC)
Are you sure you have the correct log file? Bawolff (talk) 11:07, 1 March 2023 (UTC)
There are two types of log files i can see and download.
This one just called Errorlogs ( only for the last 5 days possible )
Gives me this notification for the first time today.
PHP Deprecated:  Required parameter $rules follows optional parameter $value in /mnt/web018/b1/20/511036220/htdocs/STRATO-apps/mediawiki_01/app/vendor/wikimedia/less.php/lib/Less/Tree/Directive.php on line 20
The other I can look back up to six weeks and I have to unpack with a zipp program. Nipperus (talk) 12:17, 1 March 2023 (UTC)
Deprecation warnings are safe to ignore, but the fact it is present suggests it is the correct error log for php.
Sometimes php and webserver share an error log, sometimes they are separate. If they are separate you should also try and find webserver error logs in case the error is on the webserver layer. Bawolff (talk) 12:35, 1 March 2023 (UTC)
The zip files I downloaded are abracadabra to me. I have downloaded them over various periods but I can't do anything with it. It looks like this:
[28/Feb/2023:19:06:58 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 5889 "-" "Mozilla/5.0 (Linux; Android 8.1.0; SM-T580) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:02:14:59 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6451 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:10:54:20 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6448 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:12:54:11 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6448 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
[01/Mar/2023:12:54:15 +0100] "GET /index.php?title=Hoofdpagina HTTP/1.1" 200 6449 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" Nipperus (talk) 13:01, 1 March 2023 (UTC)
error_reporting( E_ALL ); and error_reporting( -1 ); are equivalent. E_ALL is a PHP constant that means all possible errors, and -1 does the same.
Note that for those lines to work, the error should happen *after* those lines have been executed by PHP! For example, a syntax error after or before those lines will prevent those lines from execute, or a runtime error if it happens before those lines. Be sure you add them directly in index.php after the "<?php" line. Ciencia Al Poder (talk) 14:53, 28 February 2023 (UTC)
They are at the correct position.
However in LocalSettings.php and not index.php. Nipperus (talk) 15:55, 28 February 2023 (UTC)
If you think the error is happening early in the process, set thee settings in php.ini Bawolff (talk) 11:06, 1 March 2023 (UTC)
erased duplicate Nipperus (talk) 15:50, 28 February 2023 (UTC)
Dear all, i have found this topic about the same wiki problem a while ago.
Talk:MediaWiki 1.35#h-net::ERR_HTTP2_PROTOCOL_ERROR_200-MediaWiki_1.35_internal_error-2021-01-21T09:55:00.000Z Nipperus (talk) 13:15, 1 March 2023 (UTC)

Deprecated: mb_convert_encoding():

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.


Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /usr/local/www/mediawiki/vendor/wikimedia/html-formatter/src/HtmlFormatter.php on line 94


I get this error when using the Citizen skin. Is there a way I can just maybe mute it?

Product Version
MediaWiki 1.39.2
PHP 8.2.0 (fpm-fcgi)
MySQL 5.7.40-log
ICU 72.1
Pygments 2.11.2
Kroulingor (talk) 16:35, 28 February 2023 (UTC)
formatnum] Language::formatNum with non-numeric string                                                                                                                                                                     │
[formatnum] Language::formatNum with non-numeric string                                                                                                                                                                     │
[error] [be374c1593045a7ea15a5f5e] /index.php?title=MediaWiki_2023_Planning&action=edit&section=20   PHP Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlent│
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer)                                                                                                                                   │
#1 /usr/local/www/mediawiki/vendor/wikimedia/html-formatter/src/HtmlFormatter.php(94): mb_convert_encoding(string, string, string)                                                                                          │
#2 /usr/local/www/mediawiki/skins/Citizen/includes/Partials/BodyContent.php(97): HtmlFormatter\HtmlFormatter->getDoc()                                                                                                      │
#3 /usr/local/www/mediawiki/skins/Citizen/includes/SkinCitizen.php(97): MediaWiki\Skins\Citizen\Partials\BodyContent->buildBodyContent()                                                                                    │
#4 /usr/local/www/mediawiki/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Citizen\SkinCitizen->getTemplateData()                                                                                                     │
#5 /usr/local/www/mediawiki/includes/skins/SkinTemplate.php(177): SkinMustache->generateHTML()                                                                                                                              │
#6 /usr/local/www/mediawiki/includes/OutputPage.php(2876): SkinTemplate->outputPage()                                                                                                                                       │
#7 /usr/local/www/mediawiki/includes/MediaWiki.php(922): OutputPage->output(boolean)                                                                                                                                        │
#8 /usr/local/www/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()                                                                                                                                                  │
#9 /usr/local/www/mediawiki/index.php(50): MediaWiki->run()                                                                                                                                                                 │
#10 /usr/local/www/mediawiki/index.php(46): wfIndexMain()                                                                                                                                                                   │
#11 {main}     Kroulingor (talk) 16:41, 28 February 2023 (UTC)
Now I get it also on vector-2022... is it a php version thing, should I forget php-8.2 and go with older php 8.1 or even 8.0?? Kroulingor (talk) 17:52, 28 February 2023 (UTC)
I'm losing my sanity. I think I will NUKE and start over with older version of PHP such as 8.1, should I go back to 8.0? anyone has a suggestion?? this is FreeBSD where I installed it. Kroulingor (talk) 18:08, 28 February 2023 (UTC)
They are just deprecation warnings. See https://stackoverflow.com/questions/50602776/php-error-reporting-production-vs-developmentTheDJ (Not WMF) (talkcontribs) 19:17, 28 February 2023 (UTC)
how do we remove said warnings. thank you. Kroulingor (talk) 20:10, 28 February 2023 (UTC)
Adjust error_reporting directive in your php.ini file. Bawolff (talk) 20:13, 28 February 2023 (UTC)
solution so simple, I don't know how I missed it...
fixed Kroulingor (talk) 20:14, 28 February 2023 (UTC)
"Adjust error_reporting directive in your php.ini file." as detailed in the stackoverflow post —TheDJ (Not WMF) (talkcontribs) 20:18, 28 February 2023 (UTC)
This is not the only file that controls debug output. php.ini is the primary file that controls this, however it can be overridden via the error_reporting reporting directive in LocalSettings.php (e.g. Set error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );) Bawolff (talk) 20:21, 28 February 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Browser incapatability

Hello,

Very inexperienced Mediawiki user here.

I did a recent site migration and now my mediawiki looks good on Firefox, but the tables are extra elongated in MS Edge and Chrome. I am using a SKIN

Is there a way to fix this?

Also, I want to add new pages to the navigation bar because certain things such as "Edit" and "Special Pages" are not on the navigation bar in this SKIN.


Any help or guidance would be greatly appreciated.


Best Regards,

Steve Irvingwash (talk) 18:47, 28 February 2023 (UTC)

Ummm... why did you type " Hel me please" ?
I'm the one aking for help here : ) Irvingwash (talk) 04:28, 1 March 2023 (UTC)
@Irvingwash: They're just being spammy; ignore em.
As for your issue: what skin are you using? And there's a possibility that your browser is caching the old version's CSS — try force refreshing and see if it helps.
For the navigation bar issues, you'll have to say what skin you're using I'm afraid. :-) Sam Wilson 05:12, 1 March 2023 (UTC)
Thank you, Sam, for letting me know! I probably would have had a wonderful conversation with it : ) I assume it's a bot.
The SKIN is something a friend of mine made 8 years back.
The site is a site where my students upload their article summaries and I edit them for grammar, spelling, sentence structure, and fluidity. My students are NYC inner city school kids, so I appreciate this help. Here's the site:
http://goodtoknow.com//index.php/Main_Page
Any assistance would be appreciated.
Best,
Steve Irvingwash (talk) 05:20, 1 March 2023 (UTC)
This seems to have to do with those long links pasted in each table cell. If you remove them, then Chrome-based browsers seem not to have a problem. Looks like Chrome-based browsers have a different concept of "word wrapping" than Firefox. (In general, the entire page does not look like a use case for a table, as the table columns do not contain any tabular data - what's the difference between the second and the third column?. Semantically speaking this should be a list and not a table, also for accessibility needs.)
If you want to change your skin you need to edit the code of your skin, and as it is a custom skin only you know the code... You can see a different skin (Vector) in action by adding the suffix "?useskin=vector" to your web address. Malyacko (talk) 09:18, 1 March 2023 (UTC)

jQuery UI Out of date Vulnerability - Pending for more than 2 years

We recently upgraded the app from Mediawiki 1.35.x to 1.39.1. There are outstanding vulnerabilities related to JQuery UI modules that exists after the upgrade. The security tool utilized for scanning is Invicti NetSparker. The Vulnerabilities reported are:

  1. jQuery UI Tooltip and detected that it is out of date.
  2. jQuery UI Autocomplete and detected that it is out of date.
  3. jQuery UI Dialog and detected that it is out of date.


Is there a way to load the latest module of the jQueryUI module through ResourceLoader?

Considering these vulnerabilities are more than 700+ days old, need to determine a path forward utilizing the MW software before getting "Rejected" from Security.

Let me know if you need additional details.

Installed software

Product Version
MediaWiki 1.39.1
PHP 7.4.33 (fpm-fcgi)
MySQL 5.7.38-log
ICU 50.2

Appreciate all your help on this question. Thanks Armfns001 (talk) 20:39, 28 February 2023 (UTC)

MediaWiki uses a patched version of jQuery UI with various bug fixes applied on top of the base version. Many of the vulnerabilities found on the upstream codebase also don't apply to MediaWiki because we either don't use those features or don't pass untrusted user input to them.
We don't have plans to upgrade given the effort required for relatively little gain, as jQuery UI is no longer maintained and our time is better spent moving entirely away from it.
Any vulnerabilities that are confirmed to affect MediaWiki can be reported using this process. Taavi (talk!) 21:09, 28 February 2023 (UTC)