Project:Support desk/Flow/2019/06

This page is an archive.
Please ask questions on the current support desk.
Category:Support desk archives#Flow%20Archive%20Support%20desk/Flow/2019/06

moving FAForever folder in C:\ProgramData to another hard drive

Even though I installed the FAF Client in a different hard drive, when I start the client and try to play Co-op games it automatically creates an FAForever folder in C:\ProgramData and starts downloading several gigabytes worth of files. I don't want this folder in my C drive because I'm short on space. Is there any way around this? I want it in different, separate drive that I installed the client in. 173.91.7.95 (talk) 03:01, 1 June 2019 (UTC)

Wrong support forum.😕 AhmadF.Cheema (talk) 07:51, 1 June 2019 (UTC)

Error message when moving pages

[XPKvZsQESVRCA-nYQxA5aAAAAkI] /wiki/index.php?title=Special:MovePage&action=submit MediaWiki\Revision\IncompleteRevisionException from line 420 of /home/dreamcan/public_html/wiki/includes/Revision/RevisionStore.php: sha1 field must not be ''!''

Backtrace:
#0 /home/dreamcan/public_html/wiki/includes/Revision/RevisionStore.php(473): MediaWiki\Revision\RevisionStore->failOnEmpty(string, string)
#1 /home/dreamcan/public_html/wiki/includes/Revision.php(1136): MediaWiki\Revision\RevisionStore->insertRevisionOn(MediaWiki\Revision\MutableRevisionRecord, Wikimedia\Rdbms\DatabaseMysqli)
#2 /home/dreamcan/public_html/wiki/includes/MovePage.php(543): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli)
#3 /home/dreamcan/public_html/wiki/includes/MovePage.php(271): MovePage->moveToInternal(User, Title, string, boolean, array)
#4 /home/dreamcan/public_html/wiki/includes/specials/SpecialMovepage.php(603): MovePage->move(User, string, boolean)
#5 /home/dreamcan/public_html/wiki/includes/specials/SpecialMovepage.php(128): MovePageForm->doSubmit()
#6 /home/dreamcan/public_html/wiki/includes/specialpage/SpecialPage.php(569): MovePageForm->execute(NULL)
#7 /home/dreamcan/public_html/wiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#8 /home/dreamcan/public_html/wiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#9 /home/dreamcan/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
#10 /home/dreamcan/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()
#11 /home/dreamcan/public_html/wiki/index.php(42): MediaWiki->run()
#12 {main}

I'm getting this error message when moving a page in a wiki I contribute. The admin says he's having trouble fixing this. Jotamide (talk) 17:04, 1 June 2019 (UTC)

Try run populateRevisionSha1.php. See also T200653. 星耀晨曦 (talk) 20:05, 1 June 2019 (UTC)

Problems with $wgReadOnly and german umlaute

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 recently had to restrict access to "my" wiki. Server move and software update is on. So I put the $wgReadOnly configuration setting in "my" LocalSetting.php file by using an explanatory phrase. Since this wiki runs in a german environment I had to use german umlaute for the chosen phrase (those vowels with the double dots on top of it).

I discovered that if the configuration setting $wgReadOnly contains merely one single german umlaut this setting is completely without effect, even if it is present in the LocalSetting.php file. If there are no german umlaute, it works very well.

I had to admit that "my" wiki still runs on MW 1.23.7 and maybe this behaviour is adjusted by one of the newer versions. But the question is whether it is a bug or a feature to be considered. Wgkderdicke (talk) 18:28, 1 June 2019 (UTC)

What text do you want to display to the user? 星耀晨曦 (talk) 20:02, 1 June 2019 (UTC)
I used the word "Verständnis" which means "understanding" or "appreciation". It contains the german umlaut "ä".
But it is entirely irrelevant what text one wants to display. Let's presume one put the $wgReadOnly configuration setting into the LocalSetting.php file. Then every text of this configuration setting, which contains such characters, leads to deactivation of the read only mechanism or at least the database locking message is completely missing. Any text containing none such characters gives one what one wants - a read only wiki with an idividual note regarding the read only setting.
I had to admit that, in fact, I did not discover whether the database is still writable or only the database locking message is not shown. Wgkderdicke (talk) 21:59, 1 June 2019 (UTC)
There is a similar problem described back on July 2011 on Manual_talk:$wgReadOnly - "Message not shown while using ÄÖÜ". The comments there include using & auml; and "Wrong encoding of the LocalSettings.php file?".
Also, how about including the German text within MediaWiki:Readonlywarning instead? Jonathan3 (talk) 22:18, 1 June 2019 (UTC)
The problem from the manual talk page is the one I ran into. I cannot rule out a wrong encoding of the LocalSettings.php file. Well, I managed to find a text without any umlaute so all works fine. I will take a look on my LocalSettings.php file and its encoding after the move and the update of "my" wiki (see my other topic "MW Update from 1.23.17 to 1.31.1"). Wgkderdicke (talk) 22:33, 1 June 2019 (UTC)
On the new version,
$wgReadOnly = 'Verständnis';
work for me. 星耀晨曦 (talk) 07:03, 2 June 2019 (UTC)
Then it is most likely an encoding thing with the LocalSettings.php file. Wgkderdicke (talk) 09:32, 2 June 2019 (UTC)
Well, my LocalSettings.php file is ANSI coded. I checked some PHP and JSON files from the MW 1.23.17 version. They are all coded in UTF-8 without BOM. Wgkderdicke (talk) 22:02, 3 June 2019 (UTC)
That's it. I converted the LocalSettings.php file from ANSI to UTF-8 without BOM. And now the german umlaut is no problem anymore. Wgkderdicke (talk) 22:14, 3 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Flow with VE in talk page

Hello guys.

I am trying to install Flow extension on my wiki, everything works fine except the Flow with VE in Talk page.

When I try to post an topic in Talk page, I am having

[XPMcxSE1FV@SI4uN7gzjogAAAAU] Exception caught: Request to parsoid for "wikitext" to "html" conversion of content connected to title "Topic:V0udrm1q2u5nayuv" failed: 406

I set debug = true, and I am having following in my console

  1. error:
    1. *: "Flow\Exception\NoParserException at /var/www/html/extensions/Flow/includes/Conversion/Utils.php(163)↵#0 /var/www/html/extensions/Flow/includes/Conversion/Utils.php(58): Flow\Conversion\Utils::parsoid(string, string, string, Title)↵#1 /var/www/html/extensions/Flow/includes/Model/AbstractRevision.php(563): Flow\Conversion\Utils::convert(string, string, string, Title)↵#2 /var/www/html/extensions/Flow/includes/Model/PostRevision.php(180): Flow\Model\AbstractRevision->setContent(string, string, Title)↵#3 /var/www/html/extensions/Flow/includes/Block/TopicListBlock.php(140): Flow\Model\PostRevision->reply(Flow\Model\Workflow, User, string, string)↵#4 /var/www/html/extensions/Flow/includes/Block/TopicListBlock.php(101): Flow\Block\TopicListBlock->create()↵#5 /var/www/html/extensions/Flow/includes/Block/Block.php(213): Flow\Block\TopicListBlock->validate()↵#6 /var/www/html/extensions/Flow/includes/SubmissionHandler.php(120): Flow\Block\AbstractBlock->onSubmit(array)↵#7 /var/www/html/extensions/Flow/includes/WorkflowLoader.php(62): Flow\SubmissionHandler->handleSubmit(Flow\Model\Workflow, DerivativeContext, array, string, array)↵#8 /var/www/html/extensions/Flow/includes/Api/ApiFlowBasePost.php(20): Flow\WorkflowLoader->handleSubmit(DerivativeContext, string, array)↵#9 /var/www/html/extensions/Flow/includes/Api/ApiFlow.php(98): Flow\Api\ApiFlowBasePost->execute()↵#10 /var/www/html/includes/api/ApiMain.php(1570): Flow\Api\ApiFlow->execute()↵#11 /var/www/html/includes/api/ApiMain.php(531): ApiMain->executeAction()↵#12 /var/www/html/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()↵#13 /var/www/html/api.php(87): ApiMain->execute()↵#14 {main}"
    2. code: "internal_api_error_Flow\Exception\NoParserException"
    3. info: "[XPMcxSE1FV@SI4uN7gzjogAAAAU] Exception caught: Request to parsoid for "wikitext" to "html" conversion of content connected to title "Topic:V0udrm1q2u5nayuv

Environment:

产品 版本
MediaWiki 1.32.0
PHP 7.3.6 (apache2handler)
MariaDB 5.5.60-MariaDB
ICU 62.1

Btw, flow works fine with VE in any other pages.

Thanks in advance ! Readmanhe (talk) 01:02, 2 June 2019 (UTC)

Here is my setting for Flow extension
#Flow
wfLoadExtension( 'Flow' );
$wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
$wgShowExceptionDetails = true;
$wgNamespaceContentModels[NS_TALK] = 'flow-board';
$wgFlowContentFormat = 'html';
$wgFlowEditorList = array( 'visualeditor', 'none' ); Readmanhe (talk) 02:12, 2 June 2019 (UTC)
See Parsoid/Troubleshooting#Parsoid 0.9.0 update brings 406 Not Acceptable docserver error in VisualEditor REL_30 on Mediawiki 1.30. 星耀晨曦 (talk) 07:31, 2 June 2019 (UTC)
I also see the source code of Coversion.php
104          * @throws NoParserException When Parsoid/RESTBase operation fails
So, it is parsoid's problem? But why does it only happen in Talk page? Readmanhe (talk) 11:04, 2 June 2019 (UTC)
Hi, thanks for your quick reply.
I have followed above link. The problem is still here. Readmanhe (talk) 09:32, 2 June 2019 (UTC)
I have solved this problem by downgrading to 0.9.0 with strictAcceptCheck: false
Everything works like a charm now Readmanhe (talk) 11:38, 2 June 2019 (UTC)

Moving by manual modification of the page table

It is possible to move a page by manually modifying the page_title field for a single row in the page table. However, the old title would still appear when viewing the page, so one must purge the cache or do a null edit in order to show the new title correctly. Also, one must manually create a redirect at the old title if desired.

Does anyone consider manual modification of the page table to be an acceptable way of moving a page? Note that "User moved page Old title to New title without leaving a redirect" would not appear in either the logs or the page history. GTrang (talk) 19:29, 2 June 2019 (UTC)

It messes with expectations that the system will have, so I'd be careful with that. But unless it is a User or File, it's probably not terribly problematic and the answer is... acceptable to who ? Also Manual:MoveBatch.php might be a better alternative. —TheDJ (Not WMF) (talkcontribs) 08:15, 3 June 2019 (UTC)
Having caching enabled (specially object cache) can cause the old URL still display the original contents and even the new title display as a red link Ciencia Al Poder (talk) 09:24, 3 June 2019 (UTC)
yeah purging will be bypassed that way, so also links between pages might be out of date I guess. Again, it depends a bit on what you want to achieve. You are bypassing a system. there might be good reasons to do so, but there are lots of connections depending on a page so you need to understand what you are bypassing and if that is going to affect you. —TheDJ (Not WMF) (talkcontribs) 09:57, 4 June 2019 (UTC)

Template loop detected: Template:Graph:Chart

Hallo Everyone,

Im learning Mediawiki and i just installed the extension "Graph" , but after i use an example on a mediawiki page , my page on local host can not be opened if i click on the Template:Graph:Chart link on the picture in attachment. Could anyone please help me to fix this bug ? I used the 3 example on this page : https://www.mediawiki.org/wiki/Extension:Graph/Demo. And now if i click "Edit" on the page, my page can not be loaded , it turns blank

Thank you so much in advance

Kind regards


91.64.192.178 (talk) 21:16, 2 June 2019 (UTC)

In your LocalSettings.php, set:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
This should output some error description. AhmadF.Cheema (talk) 22:14, 2 June 2019 (UTC)
Thank you so much for you tips . i saw now the error description:
Deprecated: Use of Title::isCssJsSubpage was deprecated in MediaWiki 1.31. [Called from lockdownUserPermissionsErrors in ../mediawiki-1.32.0/extensions/Lockdown/Lockdown.php at line 59] in ../mediawiki-1.32.0/includes/debug/MWDebug.php on line 309
Could you please tell me what could i do to fix this bug? and how could i delete these Graph in the page of the editor ? 77.191.177.154 (talk) 10:22, 3 June 2019 (UTC)
Was that all?
Remove the code line which enables Extension:Lockdown from your LocalSettings.php and see if it helps.
Also what code did you include to enable Extension:Graph? AhmadF.Cheema (talk) 15:03, 3 June 2019 (UTC)
Thank you for your response. I just removed Extension:Lockdown from my LocalSettings.php and i aslo removed the Extention:Graph '''wfLoadExtension( 'Graph' );''' , but when i click on the ''edit'' button, the page turns either blank or it pops up a error as following :
"Fatal error: Maximum execution time of 30 seconds exceeded in ../mediawiki-1.32.0/includes/libs/objectcache/BagOStuff.php on line 818" 87.77.101.142 (talk) 17:20, 3 June 2019 (UTC)
on the page i interted 3 graphs :
but now i cant remove them because i cant edit them 87.77.101.142 (talk) 17:37, 3 June 2019 (UTC)
Extension:Graph/Demo 87.77.101.142 (talk) 17:38, 3 June 2019 (UTC)

Disabling #skinswitcher on wikipedia mobile pages

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


I'm seeing broken viewport sizes while browsing Wikipedia on the mobile pages. At the top I can see the #skinSwitcher ID, which has a horizontal list of different skins for Wikipedia. Video of issue here.


I don't use any of these, and they disrupt the page view a lot. I tried adding custom CSS {display:none;} on the ID, but it doesn't carry over to mobile. I also reset my account's settings to default, no luck.


Anyone have ideas on how to prevent this other than getting a new account? Thanks! Lsares (talk) 22:51, 2 June 2019 (UTC)

From your User:Lsares/common.js page, remove the SkinSwitcher.js line. AhmadF.Cheema (talk) 03:21, 3 June 2019 (UTC)
Thanks @AhmadF.Cheema!
I totally forgot about userscripts. That fixed it 😀 Lsares (talk) 12:24, 6 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

editing via http instead of https

I have an installation of MW v1.32.0 with Apache v2.4.39, MySQL v5.7.26, and PHP v7.1.29 from Bitnami LAMPstack v7.1.29.


I can edit and save MW pages when accessing them via HTTPS but cannot save when accessing via HTTP.

Failing saves produce a server timeout warning page and the changes are not saved.


Is this something controlled by a configuration variable? I have not found a reference to this in the mailing list archive or in a number of unsuccessful Google searches. 73.88.211.150 (talk) 19:39, 3 June 2019 (UTC)

Other config data:
OS is RHEL v7.6 and SELINUX and the system firewall are as disabled as I can make them.

73.88.211.150 (talk) 19:44, 3 June 2019 (UTC)
Is your webserver actually listening on port http and serving the same application as the HTTPS port? Ciencia Al Poder (talk) 09:27, 4 June 2019 (UTC)
Original poster on a different IP: Yes, I *believe* I have "the same" configuration (ignoring the TLS/SSL setup) on both ports (80 and 443) but am able to edit pages accessed via port 443 with TLS but cannot edit the same pages via port 80 without TLS.

129.59.122.99 (talk) 14:47, 6 June 2019 (UTC)
You should inspect the network traffic with developer tools of your browser (Hit F12) and see if, when saving, it goes to the same address and port, and it's not being redirected to a wrong address Ciencia Al Poder (talk) 19:36, 6 June 2019 (UTC)
I hadn't thought to use the in-browser tool. Thanks! 73.88.211.150 (talk) 15:23, 7 June 2019 (UTC)

The Peacelords site was removed. Why?

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.


Please explain. Peacelords 22:24, 3 June 2019 (UTC)

What do you mean? DannyS712 (talk) 22:25, 3 June 2019 (UTC)
I created Peacelords using Mediawiki and gave a bio of the band. I also included a link to our facebook website Peacelords 22:29, 3 June 2019 (UTC)
Am i not able to use this as a promotion for our band and Music? Peacelords 22:30, 3 June 2019 (UTC)
If you created that article here, it was misplaced. See Project:About DannyS712 (talk) 22:33, 3 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Alphabetised titles appearing out of order in category listings

I'm an admin for the Lost Plays wiki, hosted by Folger: https://lostplays.folger.edu

We're seeing a really strange issue where alphabetised headers in category listings are appearing incomplete, with the missing titles re-appearing under their correct header but out of alphabetised order later in the list. MediaWiki 1.30.

For an example, see page 2 of Category:All - https://lostplays.folger.edu/_mw/index.php?title=Category:All&pagefrom=Lost+Muse%2C+The#mw-pages

The alphabetised list continues from page one, which is correctly ordered, starting with L, which is then followed by M, A, N, R, K, T, O, B, J, C, P, E, W, H, Q, U, S, F ... !?

I've run the refreshLinks.php, populateCategory.php and rebuildall.php maintenance scripts, and runJobs.php to clear the job queue, to no effect.

I'm stumped. Has anyone seen this before? Andrujhon (talk) 08:55, 4 June 2019 (UTC)

Which collation (uca) have you set in your configuration? Malyacko (talk) 08:58, 5 June 2019 (UTC)
There is some stuff about that here: Manual:$wgCategoryCollation. Jonathan3 (talk) 01:19, 6 June 2019 (UTC)

Admin Email Settings

Hi

I can't seem to find the answer anywhere.

I have taken over looking after our internal wiki (Media/BlueSpice) as the last fella has left. ( i did not "build it")

the problem i am having is when we have a new user register on our site, they get a confirmation email sent to them from the fella that has left.


i need to know where to go and how to alter this to a new email address


Thanks Tinytoontown (talk) 09:37, 5 June 2019 (UTC)

See Manual:$wgEnableEmail Malyacko (talk) 14:50, 5 June 2019 (UTC)

Admin rights gone

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.


MediaWiki version: 1.32.1


Im creating a new Mediawiki and im the only Admin or person on this site. After working the whole day I was logging out and closed Safari for taking a break. The moment I logged in I was not able anymore to edit anything. The strange thing is that in user rights I'm listed as admin but in preference it doesn't show anything.

I hope someone can help me.

Thanks in advance for your answer Ahansmann (talk) 14:40, 5 June 2019 (UTC)

Try disabling all your extensions and try again. AhmadF.Cheema (talk) 15:05, 5 June 2019 (UTC)
OH thanks you so much. That was already the solution! Didn't thought it would be that easy. Ahansmann (talk) 18:23, 7 June 2019 (UTC)
Extension:Lockdown is known to cause this bug. If you had it installed, it was probably the culprit. AhmadF.Cheema (talk) 22:48, 7 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error with MultiUpload

I haven't updated MediaWiki nor the server settings, yet it suddenly throws an error when trying to use Special:MultiUpload to upload multiple images:

Recoverable fatal error: Object of class SpecialMultiUpload could not be converted to string in /home/.sites/327/site4525714/web/wiki/w/includes/specialpage/SpecialPageFactory.php on line 682 

What happened, how to fix that error? Semako96 (talk) 15:35, 5 June 2019 (UTC)

"I haven't updated MediaWiki nor the server settings, yet it suddenly ..."
I have seen many of such statements that, in the end, proved to be wrong. Always something is changed/upgraded.
This looks like you installed/upgraded MediaWiki without installing/upgrading the extension to the same branch version. Ciencia Al Poder (talk) 09:15, 6 June 2019 (UTC)

Cannot delete a file from the server.

Prompt says  "Response 550 Could not delete comment.htm Read only file system" I was able to delete it yesterday and up;load a corrected version after only correcting a misspelled word 76.167.240.215 (talk) 05:44, 6 June 2019 (UTC)

This doesn't seem related to MediaWiki. —TheDJ (Not WMF) (talkcontribs) 08:27, 6 June 2019 (UTC)

Nach Update Fehler bei Anmeldung

Hallo ich erhalte nach einem MediaWiki Update folgenden Fehler:

Interner Fehler

[XPi@L-PFI--RvmLUppTmZAAAAMo] /index.php?title=Spezial:Anmelden MWException from line 164 of /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/Hooks.php: Invalid callback ConfirmEditHooks::injectUserLogin in hooks for UserLoginForm Backtrace:

#0 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, string)

#1 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/LoginSignupSpecialPage.php(829): Hooks::run(string, array, string)

#2 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/LoginSignupSpecialPage.php(662): LoginSignupSpecialPage->getFakeTemplate(string, string)

#3 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/AuthManagerSpecialPage.php(400): LoginSignupSpecialPage->getAuthForm(array, string)

#4 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/LoginSignupSpecialPage.php(317): AuthManagerSpecialPage->trySubmit()

#5 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/SpecialPage.php(569): LoginSignupSpecialPage->execute(NULL)

#6 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#7 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#8 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#9 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(517): MediaWiki->main()

#10 /mnt/web304/c0/87/52226087/htdocs/medwiki/index.php(42): MediaWiki->run()

#11 {main}


Ich weiß nicht wo ich einen Fehler gemacht habe oder warum überhaupt dieser Fehler kommt.

hoffentlich kann mir jemand weiterhelfen.


Beste Grüße Markus MarkusBoehm85 (talk) 07:22, 6 June 2019 (UTC)

> ConfirmEditHooks
Indicates usage of Extension:ConfirmEdit.
I'm guessing you didn't update the extensions to the same release level as Mediawiki. We advise to always use the same release branches of extensions as of the releases of MediaWiki core. —TheDJ (Not WMF) (talkcontribs) 08:25, 6 June 2019 (UTC)

Please email me a copy of my deleted 'Talk' page

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


This was removed by an overly zealous 'admin' named RHaworth, whom i note has a sizeable number of his changes contested, as it was incorrectly flagged as being used for 'web hosting'.


I freely admit I used the page as a 'scribble page' and often saved things there I was working on. It takes a fundamental mis-understanding of 'web hosting' to believe a handful of completely mundane html formatting tags (such as <hr>) constitute use as web hosting.


I have since refreshed myself on the rules and now realise I was in contravention of rule about using the page as a repository for projects outside of wikipedia and will find another way of storing said information. Sentinel618 (talk) 11:20, 6 June 2019 (UTC)

As the notice on your talk page mentions:
"If the page is deleted, and you wish to retrieve the deleted material for future reference or improvement, then please contact the deleting administrator, or if you have already done so, you can place a request here."

AhmadF.Cheema (talk) 12:57, 6 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Export Categories as lists

Dear All,

Is there a way to export a list of articles of a certain category?

As the features of mediawiki to produce user shaped lists are limited and demanding, some parsing, comparing and combining of tailored hidden categories would open a workaround to me.

Thank you in advance!

Ciciban (talk) 15:57, 6 June 2019 (UTC)

Do you want to export just the list, or the actual articles in a particular category?
Manually, either can be done from Special:Export. AhmadF.Cheema (talk) 16:04, 6 June 2019 (UTC)
Got it :) – Ciciban (talk) 16:12, 6 June 2019 (UTC)

Outputting Matrix Elements in Octopu

Hello all,

I'd like to output two-body matrix elements from Octopus which I can do just fine, but many elements are zero, and the number of matrix elements scales like (mun_states)^4, I'm wondering if there is a way to only output non-zero matrixelements defined by saying to only print those that are smaller that 10^-4?

-Thanks alot 137.122.64.157 (talk) 17:52, 6 June 2019 (UTC)

Is this related to MediaWiki?🤔 AhmadF.Cheema (talk) 18:13, 6 June 2019 (UTC)

Colored text

What is the easiest way to color certain words in a mediawiki page? I've seen solutions using CSS, HTML, Templates and other things but I'm not sure which of these require me to configure mediawiki itself, or which one would be the easiest to get running. 150.209.61.75 (talk) 19:33, 6 June 2019 (UTC)

If you're rarely going to change colours then probably use inline styles, such as:
<span style="color:green">Foo</span>
If they're repeatedly going to be used, then include such in templates, something like:
<span style="color:green">{{{1}}}</span> AhmadF.Cheema (talk) 22:37, 6 June 2019 (UTC)

Fix sidebar so it doesn't scroll with page

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


I just upgraded Mediawiki from 1.24 to 1.32. I'm using the vector skin and also upgraded to the latest skin. I had this line in common.css to keep the sidebar fixed so it wouldn't scroll with the rest of the page:

div#mw-panel {position: fixed}

But this doesn't work anymore. How can I fix the sidebar so it doesn't scroll? Scott216 (talk) 20:15, 6 June 2019 (UTC)

Okay, now it's working. I guess there was just a refresh delay. Scott216 (talk) 20:16, 6 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Search result give 404 error

I'm running MW 1.32, PHP 7.0.33, MySQL 5.6.40 with Vector skin. When is use the built in search, most of the time it works fine. For example, if I search on "Restaurant", I'll get search results and the URL looks like this:

http://wiki.mydomain.com/index.php?search=restaurant&title=Special%3ASearch&go=Go


But if I put in a search term where there exists a wiki page with the same name, I get a 404 error. For example, if I search on Automobile, I get a 404 error and the URL looks like this:

http://wiki.mydomain.com/http://wiki.mydomain.com/index.php?title=Automobile


I have a wiki page called Automobile:

http://wiki.mydomain.com/index.php?title=Automobile


For some reason, when my search term matches an existing page, my domain name is listed twice in the URL field.


Scott216 (talk) 21:27, 6 June 2019 (UTC)

One of the variables in your LocalSettings config is not correct and using a full url instead of a url path component. —TheDJ (Not WMF) (talkcontribs) 06:06, 7 June 2019 (UTC)
Any idea which variable? I looked through my LocalSettings file and can't figure out what might be the cause. I recently upgraded to 1.32 from 1.24. Scott216 (talk) 12:28, 7 June 2019 (UTC)
This link shows the changes I made to LocalSetting.php
https://www.diffchecker.com/ao6Xygbg

Scott216 (talk) 15:07, 7 June 2019 (UTC)
This is just a wild guess, but what happens when you get rid of the Manual:$wgUrlProtocols line? Jonathan3 (talk) 08:08, 13 June 2019 (UTC)
I think you need to set $wgScriptPath = "/"; not blank Ciencia Al Poder (talk) 09:23, 13 June 2019 (UTC)
Fixed problem by adding
$wgServer = "./";
to LocalSetting.php
I also tried $wgScriptPath = "/"; but that broke everything.
BTW - My wiki is installed in /home/goldthwa/public_html/
and my URLs look like this:
http://wiki.mydomain.com/index.php?title=Automobile
This is how it was setup by Siteground (my hosting provider) back in 2007 Scott216 (talk) 00:58, 14 June 2019 (UTC)
Setting $wgServer = "./"; is a really bad idea. Good for you if it works on your configuration, but this is something that should break the wiki in unexpected ways. Ciencia Al Poder (talk) 09:30, 14 June 2019 (UTC)
Manual:$wgServer under the heading "Universal value" states: "In situations where a server URL is subject to change (i.e. frequent MediaWiki installation porting, intranet access, etc.), setting $wgServer to ./ will work without causing CSS not to work." Jonathan3 (talk) 12:39, 14 June 2019 (UTC)
That was added by an anon less than 2 years ago. I highly doubt this has been tested thoroughly, specially if you have Pretty URLs like on WMF wikis. It could only work inside browsers where URLs can be made relative, but it won't work in situations where one expect an absolute URL, like on sitemaps, api responses, etc. Ciencia Al Poder (talk) 15:27, 14 June 2019 (UTC)
I've removed the "Universal value" section of that page. I've tested it on a wiki with Short URLs (/wiki/Pagename and /w/index.php), and after saving the page you get redirected to literally "wiki/Pagename" without server name nor protocol. Ciencia Al Poder (talk) 17:06, 14 June 2019 (UTC)
Thank you for clarifying that and for fixing the page. Jonathan3 (talk) 23:39, 14 June 2019 (UTC)

My wiki lost its aspect

Hi, this is the address of my wiki: www.progettovivarium.it/PieraRomano

The wiki lost its aspect; there are all the pages, but the external face is completely different.

What could be the problem? Armando Bisogno (talk) 08:21, 7 June 2019 (UTC)

The styles are loaded from www.progettovivarium.it/PieraRomano/load.php
However, that URL is returning a HTTP 403 Forbidden error. Some rule on your server is blocking access to that URL. Ciencia Al Poder (talk) 09:27, 7 June 2019 (UTC)

Not finding some pages using PageViews API

Hi, I'm trying to use the page views api to download daily pageviews for a random set of pages, but I'm, occasionally hitting a "Not found" response for existing pages. For example, the following url:

https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia.org/all-access/all-agents/Inex_%28disambiguation%29/daily/20150101/20190101

Gives such a response, but using the wmflabs tool shows some recent page views:

https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=all-time&pages=Inex_(disambiguation)

Is there a 'recent' horizon for which the API doesn't respond, or are there different responses for particular page types (disambiguation)? 167.98.22.132 (talk) 10:47, 7 June 2019 (UTC)

How to show “has a” relationship in mediawiki?

I am play with my wiki site to define some terms.

for example, apple is fruit. I can define fruit as a category, and define apple as its subcategory.

something like

---

[[category:fruit]]

In botany,apple is fruit

---

The in fruit page, I can see link to apple

but I want something like,

---

[[domain:botany]]

[[category:fruit]]

In botany,apple is fruit

---

so both in fruit page and botany page, I can see apple. In fruit page, I can see it listed as a subcategory; in botany page, I can see it listed as a property.


How to do it? can you help on this?
172.97.226.226 (talk) 17:25, 7 June 2019 (UTC)

See Semantic MediaWiki maybe. Malyacko (talk) 21:45, 7 June 2019 (UTC)

Jquery version 3.4

Is it possible to know when the next version of MediaWiki is planned for release and if that next version will deliver with Jquery 3.4 rather than 3.3.1? My interest is in mitigating CVE-2019-11358. Or rather than waiting for the update is it reasonable to change the JQuery version (1.8.3) on my installed MediaWiki (1.23.15) or would that be a "very bad idea"? 134.223.230.151 (talk) 21:25, 7 June 2019 (UTC)
Feel free to file a request for the developers to upgrade to JQuery 3.4 if you see good reasons: How to report a bug Malyacko (talk) 10:55, 8 June 2019 (UTC)
Doesn't look like it. See JQuery. AhmadF.Cheema (talk) 22:47, 7 June 2019 (UTC)

Wiki Site running too slow

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.


Site has a 16 gig database.

MediaWiki 1.32.1
PHP 7.1.30 (cgi-fcgi)
MySQL 5.6.36-82.1-log
ICU 4.8.1.1

I was told that the database is too large to optimize remotely.

What is the solution? 71.94.1.112 (talk) 00:22, 8 June 2019 (UTC)

What does "slow" mean exactly? What did you measure and how, and what did you compare with, to get to your impression that it is "slow"? Malyacko (talk) 10:54, 8 June 2019 (UTC)
It took only less than 3 seconds to bring up a page before the upgrade.
Now it takes a little over 20 seconds. 71.94.1.112 (talk) 18:03, 8 June 2019 (UTC)
It may be caused by different things. Try use any developer tool from browser (chromium or firefox), if it show any problem, or not. Is your page Version available by public? What extensions in your wiki? How it was instaled? From Git? Or tarballs? Want (talk) 23:41, 8 June 2019 (UTC)
Fixed the problem. I emptied he JOBS table. 71.94.1.112 (talk) 20:37, 9 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki can't connect after MySQL password change

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 changed the MySQL password for the wiki, updated LocalSettings.php, and I still get the "Cannot access the database" error page when I try and navigate to any page in the wiki.

MediaWiki 1.32

MySQL 8.0

PHP 7.3.1

http://wiki.blackfoldergames.com

I have confirmed the credentials are correct by logging in to MySQL with the specified username and password using Workbench. Charles082986 (talk) 17:01, 8 June 2019 (UTC)

Apparently there are some special characters you can't put in passwords or it breaks the authentication process. The password I was using was a generated password from LastPass which contained special characters. Charles082986 (talk) 18:05, 8 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Infobox design question

Hi there!

I'm running a wiki on my local hockey club and I'm currently working on the design of my infoboxes.

This is what the boxes look right now (http://www.huskywiki.de/HuskyWiki//index.php?title=Nicholas_Walters) - (source: http://www.huskywiki.de/HuskyWiki//index.php?title=Vorlage:Infobox_Eishockeyspieler)

Without changing the basic design, I want the box to have just an outer border.

Is there any way to do this?


Thanks! Hessentotal (talk) 20:49, 8 June 2019 (UTC)

Set a style for that box? See https://www.w3schools.com/css/css_border.asp Malyacko (talk) 20:57, 8 June 2019 (UTC)
Thanks Hessentotal (talk) 12:40, 9 June 2019 (UTC)

Tipping

The "Tip" bar is unresponsive to my prompts. I have tried in both Explorer and Google Chrome. Oddly, all other prompts work.


Thoughts? 2600:1700:D500:AAD0:2126:258B:F4F9:8A8B (talk) 06:03, 9 June 2019 (UTC)

If this related to MediaWiki?🤔 AhmadF.Cheema (talk) 07:30, 9 June 2019 (UTC)

Searchbox Autocomplete not working anymore

I have installed vesion 1.23.9

Since a few weeks my search box doesn't autocomplete the words anymore.

Before : Autocomplete/ Autofill : When adding one letter you see a choice of available pages starting with this letter. Now I have to fill in the whole word myself.

Anyone know how to fix that ? Stevy7 (talk) 12:18, 9 June 2019 (UTC)

Press F12 to open the browser console and look for script errors preventing scripts from loading.

120.144.16.214 (talk) 04:14, 10 June 2019 (UTC)

"Subtract 1 until" markup

At the moment, http://wiki.apterous.org/Mark_Decouto says "with 8 heat shows remaining". I'm too lazy to update it after every episode airs. How can I set it to update so that when the page for the next episode, Episode 7093, is created, the number decreases from 8 to 7, given that the quarterfinals begin with Episode 7101? Launchballer (talk) 17:22, 9 June 2019 (UTC)

Something like the following should work:
{{#expr: {{#ifexist: Episode 7093 | 0 | 1 }} + {{#ifexist: Episode 7094 | 0 | 1 }} + {{#ifexist: Episode 7095 | 0 | 1 }} + ......... }}
You could probably use templates to make it all more elegant and reusable. Jonathan3 (talk) 21:42, 10 June 2019 (UTC)

All of my Contributions/History/Preferences no longer show up!

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 logged into Wikipedia earlier to make a minor change to a page (There were two typos on a page). Everything went fine, I was able to view previous contributions and alerts. I restarted my browser a couple hours later, and even though I am logged in, none of my contributions, notifications, or my normal black/green wikipedia pages are showing up. It's the default color scheme and all of my pages are showing up as not existing! Zsivhawk (talk) 20:28, 9 June 2019 (UTC)

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

MobileFrontend shows as Installed extension but errors on mobile phone. Ok on desktop

Wiki on the laptop or desktop is fine.

But the site shows error messages and it points to MobileFrontend

Site is https://www.zamboanga.com/z


Installed software

MediaWiki1.32.1

PHP7.1.30 (cgi-fcgi)

MySQL5.6.36-82.1-log

ICU4.8.1.1


Skins

Cologne Blue

Modern

MonoBook

Timeless

Vector


Installed extensions

MobileFrontend 2.1.0 (9b48b3c)

MultimediaViewer


I have downloaded and uploaded "Skin:Minerva Neue" but when I added this to the localsettings

wfLoadSkin( 'MinervaNeue' );

$wgDefaultSkin = 'minerva';

The site won't even come up in laptops or desktop.


Any suggestions? Kuhitkuhit (talk) 20:58, 9 June 2019 (UTC)

Problem solved. Kuhitkuhit (talk) 23:36, 9 June 2019 (UTC)
Can you make certain that your used versions of Extension:MobileFrontend and Skin:Minerva Neue are for MediaWiki v1.32.
  • In LocalSettings.php, set the following to get a detailed error message when your site goes blank:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
AhmadF.Cheema (talk) 00:19, 10 June 2019 (UTC)

merhaba

neden türkiyeyi secemiyorum 88.245.159.143 (talk) 21:07, 9 June 2019 (UTC)

Is your question related to the MediaWiki software? Malyacko (talk) 22:01, 9 June 2019 (UTC)

Table of contents encoding header with single quote apostrophe.

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.


Site: http://wiki.letsplaycomic.com/wiki/Abe_Calhoun

In the TOC, the name "Angela O'Neill" is being converted to "Angela_O.27Neill", and thus the target href link isn't working when clicked.


Is there any way to correct this? 2605:A601:A51:5A00:38E1:2AE3:70E7:8293 (talk) 02:28, 10 June 2019 (UTC)

The encoding is correct and works fine without whatever custom script you're using to scroll the page, which is the actual issue. 120.144.16.214 (talk) 03:44, 10 June 2019 (UTC)
Looks like the scrolling is part of the Metrolook skin, and you're using an outdated version (7.0 alpha 1) from 2 years ago. Updating to the latest version may fix the issue. 120.144.16.214 (talk) 03:55, 10 June 2019 (UTC)
Updating the skin fixed the issue. I updated MediaWiki but didn't think to update the skin. Thanks! 2605:A601:A51:5A00:38E1:2AE3:70E7:8293 (talk) 07:56, 10 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I forgot my password & have a different email

soulf*******@gmail.com


Dan Wisniewski 50.237.17.198 (talk) 11:46, 10 June 2019 (UTC)

Apologies, but nothing can be done.😕 AhmadF.Cheema (talk) 14:23, 10 June 2019 (UTC)

Error creating thumbnail: convert: no decode delegate for this image format `JPG'

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


i'm having trouble with uploading images on my mediawiki, after i uploaded an picture with jpg or png tail i always have this bug :


Error creating thumbnail: convert: no decode delegate for this image format `JPG' @ error/constitute.c/ReadImage/556. convert: no images defined `/var/folders/j9/5b28t03x40x43m8nzs2tkcc00000gn/T//transform_6517b43fe0e8.jpg' @ error/convert.c/ConvertImageCommand/3300. Error code: 1


Could anyone have idea ? im really appreciated for any hints and advices .


Kind regards 2003:84:AF1D:9718:1C52:E5AE:729E:4523 (talk) 16:43, 10 June 2019 (UTC)

Which image software is used? https://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#Image_Thumbnails_not_working_and/or_appearing Malyacko (talk) 17:02, 10 June 2019 (UTC)
Thanks Malyacko for the answer ! I used ImageMagick . VancouverDe (talk) 18:14, 10 June 2019 (UTC)
that is what i got after querrying the version :
Version: ImageMagick 6.9.9-40

VancouverDe (talk) 18:19, 10 June 2019 (UTC)
The Problem is solved i just changed the path of $wgImageMagickConvertCommand = "/opt/local/bin/convert";
Thank you so much Malyacko for your hints VancouverDe (talk) 18:36, 10 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Enabling Parsoid

I've recently installed MediaWiki with Visual Editor. I'm getting an issue where I try to enable parsoid and I get a failed issue: "Bad Message". Everything works as far as I can tell. I check my parsoid on the port I have it assigned to and it comes up with no issues. The wiki works great and the Visual Editor is up but when I try to edit with the visual editor it comes up with a "curl error: 7" error loading from server. The only thing I can think of is the fact that I never actually enabled parsoid even though everything is coming up like it was enabled. I also checked the status of parsoid and it says its running. Very strange and very frustrating.


I'm using:

CentOS 7

PHP 7.2.19

MediaWiki 1.30.2

MariaDB 5.5.60

ICU 62.1

Curl 7.29.0

Visual Editor

Parsoid 0.8.0


I can't provide a link.


Thanks for any help. 24.173.19.226 (talk) 20:23, 10 June 2019 (UTC)

musician pages

Hey is the template wizard not working for some reason? I am trying to set a musician page up using the template but it's giving me an error.

I am not familiar with setting up WIKI pages.... so the simpler the better. Jill Kettles (talk) 21:59, 10 June 2019 (UTC)

Hard to say without knowing which exact steps you performed, which versoin of TemplateWizard and MediaWiki you installed, and without telling us the error message. :) Malyacko (talk) 22:12, 10 June 2019 (UTC)
So I need to install the Template wizard ? Is there a good solid process that is posted somewhere? I have tried youtube and the FAQ stuff here but man I just want a step by step.
thankyou!

Jill Kettles (talk) 12:47, 12 June 2019 (UTC)
Are you asking about Wikipedia, or your own personal Wiki?
For personal wiki, see Extension:TemplateWizard.

AhmadF.Cheema (talk) 15:43, 12 June 2019 (UTC)
I am trying to publish a musician wikipedia page: like this: https://en.wikipedia.org/wiki/The_Beatles
I see the template upload but I wanted to make sure that it's the right way to do it... It seems like it's coded for some reason and not like, drag and drop your info in the right box?

2600:1700:F790:1DD0:E061:4BD7:7BB1:B2A8 (talk) 16:31, 13 June 2019 (UTC)

how to change lampp (xampp) repository for mediawiki?

hi ,


my lamp installation that hosts mediawiki 1,32 on the Cenots OS 7 is having problem with overfilling space. (due to some loggs) so I copied over whole /opt/lampp/ into new different file system with more space available: /opt/cloudhost/lampp.

In my /opt I made symbolic link for like:

lampp -> /opt/clouldhost/lampp

I renamed the orginal /opt/lampp hoping the system would use the new location from synonym..

but now the main web page cannot be displayed and showing that it cannot access the database.


What else (confing?) needs to be adjusted to fix it? 192.46.111.7 (talk) 10:28, 11 June 2019 (UTC)

Was your database (mysql?) inside /opt/lampp/? Maybe you need to change some configuration in mysql to tell where the files are now, maybe it doesn't like symlinks. Try to look at mysql error logs. Ciencia Al Poder (talk) 09:18, 12 June 2019 (UTC)

How do I move a wiki to another URL?

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


Hi,


I want to move a wiki to another URL with a different domain. I updated all the settings in the PHP files, but the website still redirects to the old URL. I searched and found out there are tables in the database (MySQL) which contain the previous URL, but I can't view or edit the data with phpmyadmin. Do I have to convert them and how? Or is there another reason why the website redirects to the old URL?


David. David Shell (talk) 13:17, 11 June 2019 (UTC)

Have you also updated the $wgServer value in your LocalSettings.php file? AhmadF.Cheema (talk) 13:44, 11 June 2019 (UTC)
Yes, $wgServer is updated to the new URL. David Shell (talk) 14:06, 11 June 2019 (UTC)
OK, I think I found the problem. There was a redirect to the old URL in the web server (Apache) configuration files which I was not aware of. Thank you. David Shell (talk) 14:54, 11 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Deleting old revisions

Is there a way to delete revisions by date? With compressOld.php script, you can optionally put start or end dates. I looked at Manual:DeleteOldRevisions.php, and it seems to delete everything, or just specific pages. Also the description said it deleted revisions from the revision table. In my MySQL database, the "text" table is by far the largest (223 MB), while the "revision" table is only 7.7 MB. Would running the deleteOldRevisions.php script only reduce the revision table size? I'd like to reduce my db size, but it's the "text" table that would make a difference. I've already run compressOld.php, which helped a lot - the "text" table used to be over 800 MB. Scott216 (talk) 18:39, 11 June 2019 (UTC)

Upgraded the Media wiki from 1.21 to 1.31 and added new extensions (PluggableAuth and SimpleSAMLPhp - REL_1.31) and downloaded the latest version of SimpleSAMLPhp 1.17.2 as the SpecialSAMLAuth is deprecated. after upgraded having issue with AAD login which goes in loop. as the debug logs, the sessions are not stored in cookie and having same issue for 'store.type' => Sql.

here is the debug logs.


X-FORWARDED-FOR: 167.220.26.111:4674

X-ORIGINAL-URL: /index.php?title=Special:UserLogin

WAS-DEFAULT-HOSTNAME: example.azurewebsites.net

X-SITE-DEPLOYMENT-ID: mediawikifresh

DISGUISED-HOST: example.azurewebsites.net

X-ARR-LOG-ID: 3f440df5-cf7d-48ea-9756-54bf6c07749a

CLIENT-IP: 167.220.26.111:4674

X-WAWS-UNENCODED-URL: /index.php?title=Special:UserLogin

UPGRADE-INSECURE-REQUESTS: 1

USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36

REFERER: https://mediawikitest.azurewebsites.net/

MAX-FORWARDS: 10

HOST: example.azurewebsites.net

COOKIE: ARRAffinity=55ea15805c0ddc4d8de1de1eed84eb07d

ACCEPT-LANGUAGE: en-US,en;q=0.9,ta;q=0.8

ACCEPT-ENCODING: gzip, deflate, br

ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3

CONNECTION: Keep-Alive

[caches] cluster: WinCacheBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: WinCacheBagOStuff, session: WinCacheBagOStuff

[caches] LocalisationCache: using store LCStoreCDB

[CryptRand] 0 bytes of randomness leftover in the buffer.

IP: 167.220.238.25

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" is unsaved, marking dirty in constructor

Start request GET /index.php?title=Special:PluggableAuthLogin

HTTP HEADERS:

CONTENT-TYPE:

CONTENT-LENGTH: 0

X-APPSERVICE-PROTO: https

X-FORWARDED-PROTO: https

X-ARR-SSL: 2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT TLS CA 2|CN=mediawikitest.windows-int.net

X-FORWARDED-FOR: 167.220.238.25:57776

X-ORIGINAL-URL: /index.php?title=Special:PluggableAuthLogin

WAS-DEFAULT-HOSTNAME: example.azurewebsites.net

X-SITE-DEPLOYMENT-ID: mediawikifresh

DISGUISED-HOST: mediawikitest.windows-int.net

X-ARR-LOG-ID: 839eba5b-b82d-4430-bf55-b56dee44eaa2

CLIENT-IP: 167.220.238.25:57776

X-WAWS-UNENCODED-URL: /index.php?title=Special:PluggableAuthLogin

UPGRADE-INSECURE-REQUESTS: 1

USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

REFERER: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/saml2?SAMLRequest=jVLBjtMwEP2VyHfHdpqmqdVWKlSISgtU28KBC3IcZ2sRj4PHIfD3JOmuWC4VJ8tv5r158zQbVK7t5L6PV3g0P3qDMfnlWkA5F7akDyC9QosSlDMoo5bn%2FYcHmaVcdsFHr31LXlHuMxSiCdF6IMnxsCXfmqUpRbZY51nB80WlClVlvMq1KUvNa66Wi1WuC6EbTZIvJuDI3JJRaKQj9uYIGBXEEeJiTXlBRXbhpeRcLsuvJDmM21hQcWZdY%2BxQMtb6Jwupszp49E300FowqfaOrbJmXZZVQ8uiETQXqqFroSqa1StdcyHqKl%2BxaceMJPuXRd56wN6ZcDbhp9Xm8%2BPD31FK1YP9buNoIx0s1H5AaiGmYCJD67rWzCFfOzYMA3O%2B7luTTt8JZnh7M6o0zuizHElOz7m%2FGTUtPN2PvLo1oXx%2FuZzo6dP5QnabSVjOEYbd%2F7jdsNeMze1oPo6zjoeTb63%2Bnbzzwal438qE2Jo2c6uMQQFaA5Gw3U3%2F3zvc%2FQE%3D&RelayState=https%3A%2F%2Fmediawikitest.windows-int.net%2Findex.php%3Ftitle%3DSpecial%3APluggableAuthLogin

MAX-FORWARDS: 10

HOST: mediawikitest.windows-int.net

COOKIE: ARRAffinity=55ea15805c0ddc4d8de1de1eed84eb07d; mediawiki_session=tl98nn45rv2hjgnm9hhoatpakfnr2tb8; mediawiki_session=19b5da264ec90cc4d9c45a5fb61c57f1; SimpleSAMLAuthToken=_e220fa8962fd06601c2f344c990d49ac61b7cab712

ACCEPT-LANGUAGE: en-US,en;q=0.9

ACCEPT-ENCODING: gzip, deflate, br

ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3

CONNECTION: Keep-Alive

CACHE-CONTROL: max-age=0

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=1 forcePersist=0

[caches] cluster: WinCacheBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: WinCacheBagOStuff, session: WinCacheBagOStuff

[cookie] already deleted setcookie: "mediawiki_session", "", "1528790460", "/", "", "1", "1"

[caches] LocalisationCache: using store LCStoreCDB

[cookie] already deleted setcookie: "wikiUserID", "", "1528790460", "/", "", "1", "1"

[cookie] already deleted setcookie: "wikiToken", "", "1528790460", "/", "", "1", "1"

[cookie] already deleted setcookie: "forceHTTPS", "", "1528790460", "/", "", "", "1"

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" force-persist due to persist()

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=0 metaDirty=1 forcePersist=1

[PluggableAuth] Getting PluggableAuth singleton

[cookie] setcookie: "mediawiki_session", "05vo3vgmhu6bfivqirfc8lerkabiu6f3", "0", "/", "", "1", "1"

[PluggableAuth] Class name: SimpleSAMLphp

[cookie] already deleted setcookie: "wikiUserID", "", "1528790460", "/", "", "1", "1"

[cookie] already deleted setcookie: "wikiToken", "", "1528790460", "/", "", "1", "1"

[cookie] already deleted setcookie: "forceHTTPS", "", "1528790460", "/", "", "", "1"

[session] Saving all sessions on shutdown

[session] SessionBackend "76f619880547d282f95225fafbc250ae" is unsaved, marking dirty in constructor

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" Taking over PHP session

[session] SessionBackend "76f619880547d282f95225fafbc250ae" save: dataDirty=1 metaDirty=1 forcePersist=0

[session] SessionBackend "76f619880547d282f95225fafbc250ae" force-persist due to persist()

[cookie] already set setcookie: "mediawiki_session", "05vo3vgmhu6bfivqirfc8lerkabiu6f3", "0", "/", "", "1", "1"

[session] SessionBackend "76f619880547d282f95225fafbc250ae" save: dataDirty=0 metaDirty=1 forcePersist=1

[cookie] already deleted setcookie: "wikiToken", "", "1528790460", "/", "", "1", "1"

[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.

[cookie] already deleted setcookie: "forceHTTPS", "", "1528790460", "/", "", "", "1"

[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {

    "IPAddress": "167.220.238.25",

    "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36",

    "ChronologyProtection": false,

    "ChronologyPositionIndex": 0

}

[MessageCache] MessageCache::load: Loading en... local cache is empty, got from global cache

Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->transform

Parser: using preprocessor: Preprocessor_DOM

Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): LoginSignupSpecialPage->execute/SpecialUserLogin->getToken/MediaWiki\Session\Session->getToken/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

QuickTemplate::__construct was called with no Config instance passed to it

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

[authentication] MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication: No username in $reqs, skipping hooks

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->getSecretKeys/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->getSecretKeys/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): MediaWiki\Auth\ThrottlePreAuthenticationProvider->testForAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): AuthManagerSpecialPage->performAuthenticationStep/MediaWiki\Auth\AuthManager->beginAuthentication/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

IP: 167.220.238.25

[CryptRand] 0 bytes of randomness leftover in the buffer.

Start request GET /index.php?title=Special:PluggableAuthLogin

HTTP HEADERS:

CONTENT-TYPE:

CONTENT-LENGTH: 0

X-APPSERVICE-PROTO: https

X-FORWARDED-PROTO: https

X-ARR-SSL: 2048|256|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT TLS CA 2|CN=mediawikitest.windows-int.net

X-FORWARDED-FOR: 167.220.238.25:57776

X-ORIGINAL-URL: /index.php?title=Special:PluggableAuthLogin

WAS-DEFAULT-HOSTNAME: example.azurewebsites.net

X-SITE-DEPLOYMENT-ID: mediawikifresh

DISGUISED-HOST: mediawikitest.windows-int.net

X-ARR-LOG-ID: 3d571a1f-38bd-45a3-9da6-3392faeff5f6

CLIENT-IP: 167.220.238.25:57776

X-WAWS-UNENCODED-URL: /index.php?title=Special:PluggableAuthLogin

UPGRADE-INSECURE-REQUESTS: 1

USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

REFERER: https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/saml2?SAMLRequest=jVLBjtMwEP2VyHfHdjbbplZbqVAhKi1QbQsHLsixna1FMg4eh8Df46S7YrlUnCy%2FmffezNOsUXVtL3dDvMCj%2FTFYjNmvrgWUc2FDhgDSK3QoQXUWZdTytPvwIIucyz746LVvySvKbYZCtCE6DyQ77Dfkm6js4r7id8qWVclNeb8qVX1nxWJZGCV0U5qVUKYWhpPsiw2YmBuShBIdcbAHwKggJoiLFeULKoozryQXkvOvJNunbRyoOLMuMfYoGWv9k4O8czp49E300DqwufYdWxbNqqrqhlaLRtBSqIYm95oWZqkNF8LU5ZJNOxYk270s8tYDDp0NJxt%2BOm0%2FPz78tVLKjO67i2mMfHRg%2FIjUQczBRoau61s7h3zp2TiOrPNmaG0%2BfSeY4fUtqNI4o89yJDs%2B5%2F4maTp4uh15fW1C%2Bf58PtLjp9OZbNeTsJwjDNv%2FmXbNXjPW16P5mLwO%2B6Nvnf6dvfOhU%2FH2KBPiDG3mVhmDAnQWImHbq%2F6%2Fd7j9Aw%3D%3D&RelayState=https%3A%2F%2Fmediawikitest.windows-int.net%2Findex.php%3Ftitle%3DSpecial%3APluggableAuthLogin

MAX-FORWARDS: 10

HOST: mediawikitest.windows-int.net

COOKIE: ARRAffinity=55ea15805c0ddc4d8de1de1eed84eb07d; mediawiki_session=tl98nn45rv2hjgnm9hhoatpakfnr2tb8; mediawiki_session=55a01c76133390b28f837df0a1c735f5; SimpleSAMLAuthToken=_ffcd00b4033966cc755191bc5de4ebe5ff2e0b7e67

ACCEPT-LANGUAGE: en-US,en;q=0.9

ACCEPT-ENCODING: gzip, deflate, br

ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3

CONNECTION: Keep-Alive

CACHE-CONTROL: max-age=0

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): PluggableAuthPrimaryAuthenticationProvider->beginPrimaryAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[caches] cluster: WinCacheBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: WinCacheBagOStuff, session: WinCacheBagOStuff

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

[caches] LocalisationCache: using store LCStoreCDB

[session] Session "tl98nn45rv2hjgnm9hhoatpakfnr2tb8" requested without UserID cookie

[PluggableAuth] In execute()

[PluggableAuth] Getting PluggableAuth singleton

[PluggableAuth] Class name: SimpleSAMLphp

[session] Saving all sessions on shutdown

[session] SessionBackend "32afec2e3d421a050c028ddef2530a01" is unsaved, marking dirty in constructor

[session] SessionBackend "32afec2e3d421a050c028ddef2530a01" save: dataDirty=1 metaDirty=1 forcePersist=0

[session] SessionBackend "32afec2e3d421a050c028ddef2530a01" force-persist due to persist()

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): PluggableAuthPrimaryAuthenticationProvider->beginPrimaryAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "32afec2e3d421a050c028ddef2530a01" save: dataDirty=0 metaDirty=1 forcePersist=1

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.

[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {

    "IPAddress": "167.220.238.25",

    "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.169 Safari\/537.36",

    "ChronologyProtection": false,

    "ChronologyPositionIndex": 0

}

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): PluggableAuthPrimaryAuthenticationProvider->beginPrimaryAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): PluggableAuthPrimaryAuthenticationProvider->beginPrimaryAuthentication/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[authentication] Primary login with PluggableAuthPrimaryAuthenticationProvider returned REDIRECT

[CryptRand] 0 bytes of randomness leftover in the buffer.

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" data dirty due to dirty(): MediaWiki\Auth\AuthManager->beginAuthentication/MediaWiki\Auth\AuthManager->continueAuthentication/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "05vo3vgmhu6bfivqirfc8lerkabiu6f3" save: dataDirty=1 metaDirty=0 forcePersist=0

MediaWiki::preOutputCommit: primary transaction round committed

MediaWiki::preOutputCommit: pre-send deferred updates completed

[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.

[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {

    "IPAddress": "167.220.26.111",

    "UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/75.0.3770.80 Safari\/537.36",

    "ChronologyProtection": false,

    "ChronologyPositionIndex": 0

}

MediaWiki::preOutputCommit: LBFactory shutdown completed Ravikzm (talk) 08:09, 12 June 2019 (UTC)

Problems with MW 1.32 PageContentSave hook

According to PageContentSave Documentation, since MW 1.32 it is no longer possible to replace the content of a page using the PageContentSave hook. However, I am writing a plugin which is exactly based on this functionality! Is there another way to bring this functionality back?

The documentation also states that I could use Pre-save transforms instead. Do you have a code example how to use it? Pulsargranular (talk) 15:43, 12 June 2019 (UTC)

Remove "Use secure connection"

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 have a self-hosted wiki on the root of a subdomain. My website uses HTTPS entirely (using a Let's Encrypt certificate, its https-only function, and HSTS) and my wiki's LocalSettings.php reflect as such (wgServer specifies HTTPS). However, the "Use secure connection" link sill appears when attempting to log in (clicking it only appends "&error=" to the URL). Changing $wgSecureLogin has not fixed this, and I'm not sure how to proceed.

Thanks,

Lewis. LewisMCYoutube (talk) 20:01, 12 June 2019 (UTC)

This happens when the wiki (PHP) doesn't "see" the connection being served as HTTPS. This can happen if HTTPS is terminated on a proxy before reaching PHP or similar.
I've hidden that icon with CSS. That's probably worth a bugreport Ciencia Al Poder (talk) 09:29, 13 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Kartographer

Kartographer doesn't works with json data.


<mapframe text="Sima Broca" width=250 height=250 zoom=13 latitude=39.256466 longitude=-0.741797> { "type": "Feature", "geometry": { "type": "Point", "coordinates": [-0.741797, 39.256466] }, "properties": { "title": "[[wikipedia:Exploratorium|Exploratorium]]", "description": "[[File:Giant_Mirror_at_the_Exploratorium.jpeg|200px]]", "marker-symbol": "triangle", "marker-size": "medium", "marker-color": "0050d0" } } </mapframe>

I installed Kartographer(0c24c8a) 20:17 16 oct 2018 and JsonConfig1.1.0 (cb3f1af) 18:31 16 oct 2018


Mediawiki version: 1.32

LocalSettings:

wfLoadExtension( 'JsonConfig' );

wfLoadExtension( 'Kartographer' );


I need something more? 213.195.97.143 (talk) 20:52, 12 June 2019 (UTC)

Depends on what "doesn't work" mean. https://phabricator.wikimedia.org/T214984? AKlapper (WMF) (talk) 21:06, 12 June 2019 (UTC)
Only give this
[55de03590021bbdd8bc01db0] 2019-06-12 21:41:31: severe exception of type"Error" 213.195.97.143 (talk) 21:45, 12 June 2019 (UTC)
This code works
<mapframe text="Sima Broca" width=250 height=250 zoom=13 latitude=39.256466 longitude=-0.741797> </mapframe>
I think that JsonConfig1.1.0 (cb3f1af) isn't working. 213.195.97.143 (talk) 21:48, 12 June 2019 (UTC)
Using mediawiki 1.31 and Kartographer without JsonConfig work fine :-/ 213.195.97.143 (talk) 21:56, 12 June 2019 (UTC)

WikiMedia and PHP Upgrade

I read in the Upgrade Manual to upgrade to MediaWiki version 1.32 that the PHP version should be 7.2. My current MediaWiki version is 1.23 with PHP version 5.23.28. Can I just upgrade PHP to 7.2 and then upgrade MediaWiki to 1.32? 151.165.212.150 (talk) 21:12, 12 June 2019 (UTC)

According to this graph, no you can't. PHP 7.2 is compatible with 1.31+
Compatibility#PHP
I recently upgraded from 1.24 to 1.32. At first it didn't work because I needed to install new version of my skin (Vector), I also needed to modify the LocalSetting.php file to load the skins the new way. One problem I'm still having is with search. If I search using a term that's also a page name, I get a messed up URL like this (domain name is twice):
http://wiki.mydomain.com/http://wiki.mydomain.com/index.php?title=Automobile
I'd be curious if you have the same problem. Scott216 (talk) 21:29, 12 June 2019 (UTC)
I think the answer to the original question is Yes. Your website probably won't fully work until you have completed the upgrade process, but it's normal to have to ensure skins and extensions are compatible with the new version. Jonathan3 (talk) 07:53, 13 June 2019 (UTC)
Thanks for the help. 151.165.212.150 (talk) 12:35, 13 June 2019 (UTC)
Scott216
I think you misread my question maybe. 151.165.212.150 (talk) 12:37, 13 June 2019 (UTC)

Other MediaWiki Support Options

Are there other places to get help with MediaWiki problems? I posted a question on StackExchange SuperUser, but didn't get any responses. I posted my problem here, but didn't get any help. Scott216 (talk) 21:45, 12 June 2019 (UTC)

In case you want to hire someone to solve your problems, you can consider Professional_development_and_consulting Ciencia Al Poder (talk) 09:24, 13 June 2019 (UTC)
Thanks. At this point, I wouldn't mind paying to get my search results 404 error fixed. It's probably something trivial, I just can't figure it out for myself. Scott216 (talk) 18:44, 13 June 2019 (UTC)
See the latest responses in Project:Support desk/Flow/2019/06#h-Search_result_give_404_error-2019-06-06T21:27:00.000Z AKlapper (WMF) (talk) 23:25, 13 June 2019 (UTC)

Installation errors on Windows 10

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


I'm installing Shrew Soft on a Windows 10 machine but get several errors during installation:

1. Error 0x80070005: Couldn't install the network component

2. InstallSelectedDriver failed, error code = 0x00000006

When uninstalling, I get:

Error 0x1: Couldn't get an interface pointer to vflt

Please advise what needs to be done to complete installation.

Thanks 124.168.43.233 (talk) 08:53, 13 June 2019 (UTC)

Is this related to MediaWiki? 94rain Talk 09:01, 13 June 2019 (UTC)
No, it's purely for Shrew Soft 124.168.43.233 (talk) 23:30, 13 June 2019 (UTC)
Then it is off-topic here. You have to ask Shrew Soft for Shrew Soft questions. MediaWiki.org is for MediaWiki questions. Malyacko (talk) 00:04, 14 June 2019 (UTC)
I assume it isn't related in anyway Saederup92 (talk) 10:21, 13 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pages not added to Categories (setting wgRunJobsAsync and wgJobRunRate didn't help)

Hi,


I installed MediaWiki 1.32.1 and created some test pages. Furthermore I created Category:Pages with some descriptionary text and added the test pages to categories (inserting Category:Foo in brackets). I can see the categories at the bottom of each page.


When I now try to access Special:Categories the page shows me the categories, but every page has 0 entries.


When looking for the issue, I found several sites which suggested to run the runJobs script which I did. I also set $wgRunJobsAsync = false; and $wgJobRunRate = 3; in my LocalSettings.php. Both changes didn't help. The site api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm shows that there are 0 open jobs.


What coudl be the issue here? Do you have other ideas why pages don't get added to category view?


Thanks 2001:4B98:DC0:47:216:3EFF:FE3D:888C (talk) 09:35, 13 June 2019 (UTC)

Note that changing settings like $wgRunJobsAsync = false; etc when there are 0 jobs to run won't add the categories back. If some jobs failed completely to work, or even to be queued, due to a bad extension or problem with PHP, they won't get added again.
Anyway, $wgRunJobsAsync is false by default. I suggest to remove a category from a page, enable the debug log (see Manual:How to debug) and then add again the category to the page, and see if there's some relevant error on the debug log. Ciencia Al Poder (talk) 09:38, 14 June 2019 (UTC)
I had the same problem (with MW 1.31) and updating Extension:Cargo the running Manual:rebuildall.php solved it. Jonathan3 (talk) 23:37, 15 June 2019 (UTC)

Collection of all template contents

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


in my media wiki for my organisation I want to create a List of all decisions made in the past with the corresponding result (Yes/No ..)

For this I created a new template, which highlights the decisions in our protocols and adds a Category with the decision question. (see the code below)

'''Decision:''' {{{Question}}}</br>
({{{Yes}}}/{{{No}}}/{{{abstention}}}) [Yes/No/No vote]
{{#ifexpr: {{{Yes}}}>{{{No}}}|[[Decision::{{{Question}}}::Yes| ]]|[[Decision::{{{Question}}}::No| ]]}}

But when I use #ask to get all the questions.

{#ask: [[Decision::+]]
|?Decision
 }}

I cannot get it to work correctly. I want to display a table where each row has the Question and it's corresponding result (Yes/No) in one column. My current status is having the Question followed by ::Yes or ::No like Do you like this question::Yes

My goal for the result is

__________________________________
|Do you like this question | Yes |
__________________________________

Many thanks for your help in advance, I feel like the solution is really close but I just can't get what I want... Hno2 (talk) 13:30, 13 June 2019 (UTC)

Yes or no ? 205.201.33.131 (talk) 07:45, 14 June 2019 (UTC)
Yes? Hno2 (talk) 09:49, 14 June 2019 (UTC)
Thankfully someone answered my question on StackOverflow Hno2 (talk) 16:56, 21 August 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki Family Setup Config

I don't know how many people setup wiki families but I am asking for confirmation on something. The wiki family documentation is OK but I think lacking some clarity. I have a wiki folder, let's call it mediawiki-1.32.2 and I have short URL's turned on. I opted to go the route where each wiki in my family has its own LocalSettings.php file i.e. LocalSettings_wiki1.php, LocalSettings_wiki2.php. My LocalSettings.php file has code like this (multiple wikis on the same domain):


$callingurl = strtolower( $_SERVER['REQUEST_URI'] ); // get the calling url

if ( strpos( $callingurl, '/wiki1' ) === 0 ) {require_once 'LocalSettings_wiki1.php';}

elseif ( strpos( $callingurl, '/wiki2' ) === 0 ) {require_once 'LocalSettings_wiki2.php';}

else {header( 'HTTP/1.1 404 Not Found' ); echo "This wiki (\"" . htmlspecialchars( $callingurl ) . "\") is not available. Check configuration."; exit( 0 );}


When I used that code directly I had an issue with the CSS not loading at all. It turns out it was because I also needed to do this:

If you use Short URL with the second case (directory based wikis), you need to check the two directories: strpos( $callingurl, 'wiki1', 0 ) || strpos( $callingurl, 'w1/', 0 ), to symlink the sources (w1 -> w), and adapt $wgScriptPath.


The problem is, a DB needs to be connected to for pulling in the CSS. Now my question is, can I change my first line of code to look like below and the other wikis continue to work OK? I made this change and the CSS is now loading for both wikis.

if ( strpos( $callingurl, '/wiki1' )  === 0 || strpos( $callingurl, 'mediawiki-1.32.2', 0 ) )

I'm not fully understanding if the DB is just being used to serve up the CSS or what else I need to do for this to work "right". What won't work right if I go this route and is this even suggested? This seems to be a gap to me in the family setup guide.

My setup is 1 wiki installation hosting multiple wiki's. That is what I am going for here. In each of the distinct wiki LocalSettings files, I have customized their doc upload paths to be unique and for their DB's to be unique. In both wiki's I am just using SQLite for the DB. Bakersoft (talk) 14:12, 13 June 2019 (UTC)

Include Polish language in plural magic word

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.


Please include Poland in plural magic word. Further info:

Help talk:Magic words#Help:Magic words#Localization - plural description should be more descriptive

(Edit) Or not, depending on what plural is meant for (see discussion). MarMi wiki (talk) 12:02, 14 June 2019 (UTC)

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

Custom special page to manage old pages

Hi, we're wondering how we can manage old pages. We would like to check once in a while which pages of a certain category exist whose last modified date are more than one year ago. We could then ask the owners to validate them to make sure they are always up-to-date. This process is important for some content.


Can this be done with a custom special page? Can I easily create a page that gives me alle pages of a certain category with last modified date between x and y?


Thanks! 81.82.224.91 (talk) 12:56, 14 June 2019 (UTC)

You could create the list with Extension:DynamicPageList3. See these manual pages: Select articles based on REVISION dates and DPL:Parameters: Controlling Output Order. Jonathan3 (talk) 23:31, 15 June 2019 (UTC)
@Jonathan3 thanks a lot, this looks ideal! 81.82.224.91 (talk) 07:34, 18 June 2019 (UTC)

PHP Fatal error: Cannot declare trait OOUI\AccessKeyedElement

Hello, I'm getting the following error after a fresh installation, using the official repository RPMs from Fedora 30, whenever I click on "Preferences" after logging with the first Admin account:

PHP Fatal error:  Cannot declare trait OOUI\AccessKeyedElement, because the name is already in use in /usr/share/php/OOUI/mixins/AccessKeyedElement.php on line 14

I'm using mediawiki-1.32.1 and php-7.3.6.

Tried installing twice from scratch, even disabling plugins, but the result was the same.

Could be this caused by a MediaWiki issue or do I have to ask to the php guys? I'm kinda clueless...

Thanks for the help! Daichi42 (talk) 13:56, 14 June 2019 (UTC)

I had the same problem. I was able to fix it by using require_once instead of require in /usr/share/php/OOUI/widgets/InputWidget.php 192.16.196.133 (talk) 14:42, 30 September 2019 (UTC)
Thank you, it works 176.221.122.49 (talk) 08:56, 17 April 2020 (UTC)

I can't reduce the size of images

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


When I set a reduced size to its original size, a broken image is displayed. What could be causing this?

This problem is present if I use the gallery or a size in the file (File: example.png | 120px)


Already used:

$wgUploadPath

$wgUploadDirectory

$wgEnableUploads

$wgUseImageMagick

$wgImageMagickConvertCommand

$wgHashedUploadDirectory Joaogsdc (talk) 16:53, 14 June 2019 (UTC)

Anything listed on Manual:Errors and symptoms#Image Thumbnails not working and/or appearing could cause this. Malyacko (talk) 15:19, 15 June 2019 (UTC)
I found if the resized image is only a link, with no picture/image, I changed
$wgGenerateThumbnailOnParse = true;
in LocalSettings.php
and this fixed the problem Moscowdreams (talk) 19:57, 5 June 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

cant remember my current password

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 cant remember current password 2601:8C4:0:AEF3:B8F5:A3AE:65D9:7AFB (talk) 12:53, 15 June 2019 (UTC)

Try one of the recovery methods in Special:PasswordReset. Otherwise you won't be able to recover your account. Ciencia Al Poder (talk) 13:03, 15 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Forgot Password and Not email is associated to my username

Hi,

I was trying to reset my password, it asked for username and email address. I entered both but it says no email associated with this username. Please guide me in this matter.

Thanks,

Asif 72.255.7.67 (talk) 14:54, 15 June 2019 (UTC)

See the text on the Password Reset page. It says "Fill in ONE of the fields to receive a temporary password via email." (emphasis by me) Malyacko (talk) 15:18, 15 June 2019 (UTC)

Session loss 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.


I recently updated this wiki here from MW 1.27.17 to 1.31.2. Now I'm experiencing this bug here, too. But it's the Chrome browser instead of the FF/SeaMoneky browser. This is my current Chrome's version: 74.0.3729.169 (Offizieller Build) (64-Bit). The bug rises not every time but then and now and occurs definitely not before the MW update.

I updated Chrome just now. It's version 75.0.3770.90 (Offizieller Build) (64-Bit) now. Wgkderdicke (talk) 15:17, 15 June 2019 (UTC)

See How to report a bug#Reporting a login problem how to debug. AKlapper (WMF) (talk) 18:47, 15 June 2019 (UTC)
It is not any Wikimedia website where I'm experiencing this bug. It is the wiki that I'm running. This wiki was moved to a new server by my provider, then he has changed the PHP version to 7.2 and after that I have updated the MW installation. All this has happend in the last few days. At the moment I'm working on some necessary adjustments. So far, all looks good, even if there is still a little bit work to do. But after the MW update and when I want to save an edited page, then and now this bug occurs in the Chrome browser. From at the end of 2016 I found this here: phabricator.wikimedia.org/T151770. But it's all about Firefox. Wgkderdicke (talk) 19:31, 15 June 2019 (UTC)
Okay. Still see How to report a bug#Reporting a login problem how to debug. AKlapper (WMF) (talk) 17:04, 16 June 2019 (UTC)
After the above-mentioned Chrome update, which I triggered at the same time I wrote this support request, the described bug has not happend again. If it stays that way, there is nothing to report. At the moment I will wait and see. Wgkderdicke (talk) 22:07, 17 June 2019 (UTC)
It did not stay that way. It happen not only with the Chrome Browser. It also happend with Firefox and Opera. It happend on my PC with Windows 7 and on another PC with Windows 10.
If one is logged in without the keep me logged in option, one is bluntly logged out, if it happens. If one is logged in with the keep me logged in option, one is faced with the following message after klicking the save button:
Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
I set $wgExtendedLoginCookieExpiration to null (in MW 1.31 still on 180 * 86400 as default). No effect.
I contacted my provider and asked, if there may be some eager cron job is at work, which kicks sessions off. Nope.
I set $wgExtendedLoginCookieExpiration to null (in MW 1.31 still on 180 * 86400 as default). Nothing.
I set $wgObjectCacheSessionExpiry to 24 * 3600. Bingo! This does the trick! That really annoying and sometimes really frequently shown message as mentioned above has vanished!!! Wgkderdicke (talk) 08:34, 26 July 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Forgot password and did not get email with temporary password

I tried to reset my password and entered my username and email address and it said it would send an email but I never got it. I checked my inbox and my junk folder - and I waited about a half-hour, checked again, "forced" it to refresh the inbox and junk folders, but still nothing . I tried to request it again, but it only will do it once every 24 hours. Any suggestions? Does it just take a while for the email to come through? I'd rather not create a new account if I don't have to - all I wanted to do was request that someone create a page. 108.56.146.145 (talk) 15:25, 15 June 2019 (UTC)

What happened to Close Captioning 🙁

Close captioning has disappeared Lindamalan (talk) 20:07, 15 June 2019 (UTC)

If you explained what "Close captioning" is or was and clear steps where to see "Close Captioning" in MediaWiki then someone might be able to answer. Malyacko (talk) 21:58, 15 June 2019 (UTC)
Disappeared from where ? —TheDJ (Not WMF) (talkcontribs) 21:39, 16 June 2019 (UTC)

PHP access question

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


I have just found this page and am almost certainly asking a dumb question that is documented somewhere, and I've read the documentation pages for "Page" and "Text", but there's either not enough, or far too much, data there for my brain to parse.

In short, I'm feeling a bit lost and I'm asking for help.

I am trying to do something that is slightly against the basic wiki premiseː produce a read-only engine that provides lookup-by-title, what-links-here, and search, but no other "actions" whatsoever. Simply adding a new skin won't remove access to the core functionality if someone clever crafts their own url, so I know I need to actually do PHP-level work.

If I understand the mediawiki architecture properly, each page goes from raw (user submitted) wikitext to "expanded" (substituted) wikitext, and thence to actual (x)html. I believe this "core page image" html is stored in the database somewhere (I'm guessing somewhere in "text", but I don't know)

I have many years of programming under my belt, so I'm confident I can muddle my way through once I find the part of code that says "This is the title, give me the HTML". I can handle the PHP, SQL, html, css, javascript et al, but I've been stymied trying to drill down from index.php to the parts of the engine I'm looking for.

Obviously, index.php is the entry point, but the query that actually results in html is hidden deep under the skins and WikiPage (I think) and I'm stuck.

I'm hunting for three bits of code, which i imagine don't look anything like this: :)

Query::GetBodyContent (title, &mw_body_content)

Query::SearchPagesByText(text,&listOfPageTitlesWithMatchText)

Query::WhatLinksHere(title, &listOfPageTitles)

Can someone give me a pointer to the right php file(s) or class(es) to continue my search?

Thank you kindly,

Riventree Riventree (talk) 23:56, 15 June 2019 (UTC)

I'm not sure what's your goal. Use MediaWiki but prevent other users to edit pages? Then see Manual:Preventing access.
If you want to start from scratch your own content management system, I guess this will bee too complicated, and it's better for you to not attempt to see how things are done here, because what you want to do is relatively simple on its own having a proper database design. Ciencia Al Poder (talk) 10:55, 16 June 2019 (UTC)
I wonder if you could keep the actual wiki completely hidden (behind .htaccess or whatever) and use the MediaWiki API to create a separate site with the minimal features you need. Jonathan3 (talk) 23:36, 17 June 2019 (UTC)
See "PHP question" for a more direct request. Riventree (talk) 08:54, 18 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hi,


I have a MediaWiki site with an older version of MediaWiki. Links to articles which don't exist are red. But if I create such an article, the link remains red until I edit the linking article and save it. Is it possible to make all the links blue (not red) automatically when a new article is created?


Thanks,

David. 109.67.238.100 (talk) 19:47, 16 June 2019 (UTC)

MediaWiki 1.25.1
PHP 5.5.9-1ubuntu4.11 (apache2handler)
MySQL 5.5.43-0ubuntu0.14.04.1 109.67.238.100 (talk) 20:17, 16 June 2019 (UTC)
See manual:Job queue for recomendations. You'll need to set a job runner service. Ciencia Al Poder (talk) 09:29, 18 June 2019 (UTC)

PMC error in citoid (or citation core?)

Hello,

When using citoid in e.wikipedia and en.wikiversity, PMC links seem to be being added incorrectly as:

|pmc=PMCPMC#######

instead of either of the valid formats:

|pmc=PMC####### or |pmc=#######

It looks as though it should be a quick fix, but I can't seem to find the bug (more info).

Thanks in, advance for any help! T.Shafee(EvoEvo)talk 05:21, 17 June 2019 (UTC)

Problem regarding 'Extension:StructuredDiscussions' a.k.a 'Flow' .

I have installed the version of 'Extension:Flow' which is compatible with my MediaWiki(version-1.32.2)

'Flow' extension appears on the 'Special:version' page too ...in the 'Installed extensions' sections of my wiki.

But still, it does not runs properly and this error now appears-->

Fatal error: Class 'Pimple\Container' not found in C:\wamp64\www\wiki\extensions\Flow\includes\Container.php on line 5 Falcopragati (talk) 06:39, 17 June 2019 (UTC)

I think you need to run composer update --no-dev on the Flow directory Ciencia Al Poder (talk) 09:28, 18 June 2019 (UTC)

Extension LDAPAuth: Authentication against AD Group members

I have installed and setup MediaWiki 1.32.2 for my organisation. I have managed to setup Extension:LDAPAuth Extension to authenticate against members of an OU ($wgLdapAuthBaseDN = 'OU=IT,OU=test,OU=test USERS,DC=test,DC=local';  )

I would now like to setup authentication against AD Group Members but need help with that. I have tried (($wgLdapAuthBaseDN = 'CN=GroupName,OU=IT,OU=test,OU=test USERS,DC=test,DC=local';  )

Would appreciate any help with this :) AFAbbasi87 (talk) 10:40, 17 June 2019 (UTC)

reset password

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.


need to know how to reset password, I am unable to log in this morning.


65.158.118.254 (talk) 12:43, 17 June 2019 (UTC)

Click Log In
Click Forgot Your Password Riventree (talk) 18:35, 17 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Tools to Help Manage Wiki

Can anyone recommend a 3rd party tool (even if it's a pay for tool) that helps you manage Wiki's?


For example:

  • Upgrading a wiki
  • Moviing a wiki to another server
  • Backing up a wiki
  • Restoring a wiki
  • Installation of Mediawiki and it's components on a new server.

Thanks. Jimsterb (talk) 16:47, 17 June 2019 (UTC)

pair.com helps you do all of these things (particularly the upgrade/move/restore. Their monthly fees are quite reasonable, IMHO
Disclaimer: I do not work for pair, but I've been a happy customer for years, and run my customers' sites there.
Riventree Riventree (talk) 18:40, 17 June 2019 (UTC)

PHP Access Question (2nd try with explanation)

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.


BACKGROUND

I am trying to build a "spartan" version of index.html which will ONLY do one thing: Display a page given a title.

This should be really short, something like:

<html>

<body>

<?

$title= htmlspecialchars($_GET["title"])

GetBodyContent ($title, $mw_body_content)l

print $mw_body_content;

?>

</body>

</html>

I know that won't have all the right divs and such, but it explains what I'm looking for.

If I understand the mediawiki architecture properly, each page goes from raw (user submitted) wikitext to "expanded" (substituted) wikitext, and thence to actual (x)html. I believe this "core page image" html is stored in the database somewhere (I'm guessing somewhere in "text", but I don't know)

Obviously, index.php is the entry point, but the query that actually results in html is hidden deep under the skins and WikiPage (I think) and I'm stuck.

TWO QUESTIONS:

1) What is the correct name of the function or functions I am looking for (GetBodyContent is probably wrong)

2) What file are they in? Riventree (talk) 18:01, 17 June 2019 (UTC)

How about starting with an existing skin and strip out the bits you don't want? Jonathan3 (talk) 23:27, 17 June 2019 (UTC)
Jonathan3: Thank you for replying. Pardon me while I beat my head
Arrrrrrgh. I post WITH a reason why I don't use skins, and everyone gets confused. I summarize the question and leave that bit out, and people ask why I don't do it with a skin...
The answer is: If you take away the links in the skin, someone can still craft a URL with action=foo and do the things I want to disallow. Thus, skins are not the answer. Riventree (talk) 08:47, 18 June 2019 (UTC)
See "PHP question" for a more direct request. Riventree (talk) 08:53, 18 June 2019 (UTC)
You may get into an wikipedia:XY problem Ciencia Al Poder (talk) 09:23, 18 June 2019 (UTC)
I like the "XY problem" page!
Sounds like MediaWiki isn't the answer here (to whatever the question is). Jonathan3 (talk) 23:05, 18 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Are Github and Phab-something really the only ways to access the dev forum?

Seems like a standard email-username-password ought to be an option Riventree (talk) 18:38, 17 June 2019 (UTC)

@Riventree: What is a "dev forum"? Neither Github nor Phabricator are "dev forums". See Phabricator what Phab is [not]. Malyacko (talk) 04:17, 18 June 2019 (UTC)
I reckon you're referring to https://discourse-mediawiki.wmflabs.org/ and yeah, they are at the moment the only options. Actually, in practice this means that you must have a Wikimedia account (which you do, Riventree), because you can log into Phabricator as that. Which means it's a two-step process, but does work.
When Discourse makes it into production (i.e. off wmflabs.org) it'll be a one-step thing and you'll still only need your main Wikimedia username.
The reason for not supporting Wikimedia login directly from Discourse is phab:T124691. Sam Wilson 08:36, 19 June 2019 (UTC)

PHP question

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.


Given a page title in $title, how do I get the html for the page's body? What is the function to call? Riventree (talk) 08:44, 18 June 2019 (UTC)

Look at Manual:getText.php, which is a relavively small php file, to see what it does. Ciencia Al Poder (talk) 09:25, 18 June 2019 (UTC)
This returns the wikitext... is there a similar function that returns the html?
I'm guessing maintenance/parse.php has the good bits. Riventree (talk) 16:40, 20 June 2019 (UTC)
What about using the API? - api.php?action=parse Jonathan3 (talk) 21:51, 20 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wikibase/Installation

A basic installation of Wikibase is pretty much straight forward and basically consists of 4 steps:

# getting Wikibase

# fetching dependencies

# modifying LocalSettings.php

# running some maintenance scripts.


The latter is not clear to me. I can not figure out.

You write:

# if composer is available as a binary composer install --no-dev # if you downloaded composer.phar php composer.phar install --no-dev # Or use dockerized version (does not require PHP or composer installed) docker run -it --rm --user $(id -u):$(id -g) -v ~/.composer:/tmp -v $(pwd):/app docker.io/composer install --no-dev


But I can not understand where the file is located? Can you tell me this? Thanks in advance. Tofiq Kərimli (talk) 12:40, 18 June 2019 (UTC)

Where is that written? Please provide a link to the documentation that you're following. Malyacko (talk) 13:50, 18 June 2019 (UTC)
Thank you for your attention. Here is written: Wikibase/Installation#Installation Tofiq Kərimli (talk) 14:32, 18 June 2019 (UTC)

Cannot Access MediaWiki from other networks

Hello,

thanks for this great tool.

We installed it on our Synology Nas. It works very well when we access it from the local wifi.

The moment we try to access it from another network (vpn, phone network) we get error message (below).

We can access the interface of our NAS from any network (so they refuse responsibility).


Help would be greatly apreciated.

Thank you!


From Chrome:

The browser you are using may have difficulty receiving images and video. If you experience any issues viewing this page, we suggest using Internet Explorer, Mozilla Firefox, or Apple Safari.


From Internet Explorer:

The website declined to show this webpage


  HTTP 403


   

Most likely causes:

•This website requires you to log in.


   

What you can try:


   

  Go back to the previous page.  


   

More information  More information   

This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.

For more information about HTTP errors, see Help.

' 84.242.114.235 (talk) 14:52, 19 June 2019 (UTC)

Please provide information how you set up MediaWiki to be accessed. Which address do you enter into your web browser in your local network? Which address to you enter into your web browser in another network? Malyacko (talk) 16:14, 19 June 2019 (UTC)
403 errors are caused by a rule configured on the web server (not MediaWiki). Look at web server configuration, or logs to see what rule is applying to deny access from external networks. Ciencia Al Poder (talk) 09:22, 20 June 2019 (UTC)

How to download all the pages from specific category from Wikipedia?

Hi,

I need to download the text from all pages of a specific category from Wikipedia. So far, I have been using Wikipedia-API from Python and following https://pypi.org/project/Wikipedia-API/ and https://github.com/OliverMKing/CSDictionary_Gatherer/blob/master/search.py to first download the title of pages and then use that to download the text. The issue is, the API gets interrupted within 1.5 hours of running, so I am not sure if I am getting all the titles or not. Is there another way to get all the text and title pages of a specific category so that I make sure I have all of them?

Thank you,

Narges Tabari.narges (talk) 19:37, 19 June 2019 (UTC)

I am with Narges here. We looked at https://stackoverflow.com/questions/5771745/how-to-get-all-article-pages-under-a-wikipedia-category-and-its-sub-categories and https://www.mediawiki.org/wiki/API:Categorymembers for guidance. We are looking for about 100,000 articles and considering the best way to do this. Blue Rasberry (talk) 19:39, 19 June 2019 (UTC)
@N8ohene: Blue Rasberry (talk) 19:49, 19 June 2019 (UTC)
Exactly what you're doing: Use the API.
If something interrupts, what is the error message when something interrupts? Which rate limiting does your code use when you download the pages? Malyacko (talk) 04:29, 20 June 2019 (UTC)
Have you tried Special:Export? FriedhelmW (talk) 17:03, 20 June 2019 (UTC)

Viewer Counter

hello. i've made an editing in the Wikipedia abt an artist biodata. can i check if the page have been searched/read? how to know the total of readers (as viewers in youtube). pls help. thank you.


2001:E68:69DB:CF00:4984:AFF5:4340:9A17 (talk) 01:37, 20 June 2019 (UTC)

See https://tools.wmflabs.org/pageviews/ Malyacko (talk) 04:26, 20 June 2019 (UTC)
how to use this graph Sofia Ismail (talk) 07:45, 20 June 2019 (UTC)
See https://meta.wikimedia.org/wiki/Pageviews_Analysis and https://en.wikipedia.org/wiki/Wikipedia:Pageview_statistics Malyacko (talk) 09:23, 20 June 2019 (UTC)

Password / login issues

Requested a password reset but the temporary passwork is not working. What to do? 47.28.88.168 (talk) 05:00, 20 June 2019 (UTC)

On which website? Which MediaWiki version? Malyacko (talk) 06:37, 20 June 2019 (UTC)
Please take a look at Manual:Resetting passwords
I have seen password reset requests like this quite a few times on support desk... 94rain Talk 00:33, 22 June 2019 (UTC)

Spero di aver fatto giusto riguardo Babel. confermate? Grazie

spero di aver scritto giusto Babel... Valerio tarone (talk) 08:12, 20 June 2019 (UTC)

Wikidata SPARQL 403 HTTP Errors

Hi,

for the last three days all my POST requests to https://query.wikidata.org/sparql result in 403 Forbidden. There was no such problem before 18/6/2019. Has anything changed in the API? What am I doing wrong?


Thank you,

Alexander Alxndrpi (talk) 09:39, 20 June 2019 (UTC)

How did you send the POST requests? And how fast? Hard to say what's wrong without clearer steps what you are doing... Malyacko (talk) 16:57, 20 June 2019 (UTC)
@Malyacko,
I am sending them via python-requests once a day. Query runs under 30 seconds. Do you need to see the query? Alxndrpi (talk) 17:20, 20 June 2019 (UTC)
Hello, is it the same problem in the Template:Graph:Lines being not working if linked to Wikidata? Seems no one cares to solve the problem... Bouzinac (talk) 09:14, 24 June 2019 (UTC)
@Bouzinac Nobody knows which "same problem" you refer to if you don't link to a place where you reported that "same problem", I'm afraid. Malyacko (talk) 12:23, 24 June 2019 (UTC)
It is documented here : https://phabricator.wikimedia.org/T226250 Bouzinac (talk) 12:39, 24 June 2019 (UTC)
@Malyacko, any hints on why am I getting 403? Alxndrpi (talk) 08:48, 27 June 2019 (UTC)
No, sorry... Malyacko (talk) 17:56, 27 June 2019 (UTC)
Hi. I have the same problem of a working python script that started getting 403 errors.
For whatever reasons, Wikidata appears to be suddenly rejecting some User-Agents in the HTTP headers. Their own example python queries using the SPARQLWrapper module, which is based on requests, are not working. I got around this by temporarily setting a browser User-Agent like this
sparql = SPARQLWrapper("https://query.wikidata.org/sparql", agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36')
but it would indeed be nice to be able to use the correct, default User-Agent (sparqlwrapper 1.8.4 (rdflib.github.io/sparqlwrapper) like before. 93.33.167.134 (talk) 09:14, 8 July 2019 (UTC)
Thanks. Works here. 31.20.81.163 (talk) 08:41, 13 September 2019 (UTC)
Thanks for the tip! Alxndrpi (talk) 10:38, 9 July 2019 (UTC)
Confirm I am having the same issue for the past couple of weeks and that adding the user-agent header fixed it for me.
Added the following variable to the beginning of my script:
headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
And modified my requests from:
requests.post('https://query.wikidata.org/sparql', data = data)
to:
requests.post('https://query.wikidata.org/sparql', headers = headers, data = data) 185.213.155.168 (talk) 17:00, 10 July 2019 (UTC)
Hi there,
I've also been having a similar issue with my php requests, slightly adapted from the php code provided by the wikidata query service page, I've tried the user agents suggested above, the one below is my computer's user agent which also does not function. Any help would be greatly appreciated!
<?php
class SPARQLQueryDispatcher
{
    private $endpointUrl;
    public function __construct(string $endpointUrl)
    {
        $this->endpointUrl = $endpointUrl;
    }
    public function query(string $sparqlQuery)
    {
        $opts = [
            'http' => [
                'method' => 'GET',
                'header' => [
                    'Accept: application/sparql-results+json' .
'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36'
                ],
            ],
        ];
        $context = stream_context_create($opts);
        $url = $this->endpointUrl . '?query=' . urlencode($sparqlQuery);
        $response = file_get_contents($url, false, $context);
        return json_decode($response, true);
    }
}
$endpointUrl = 'https://query.wikidata.org/sparql';
$sparqlQueryString = <<< 'SPARQL'
SELECT ?item ?itemLabel
WHERE
{
  ?item wdt:P31 wd:Q146.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
SPARQL;
$queryDispatcher = new SPARQLQueryDispatcher($endpointUrl);
$queryResult = $queryDispatcher->query($sparqlQueryString);
var_export($queryResult); Robert.Penney44 (talk) 11:51, 19 August 2019 (UTC)
I just upgraded SPARQLWrapper and ran into this problem. Please be transparent about your policies or remove the restriction. 93.104.31.169 (talk) 15:46, 8 October 2020 (UTC)
In .NET Core I solved it like this in the constructor of the service:
public class WikidataService : IWikidataService
    {
        private readonly HttpClient client;
        public WikidataService(HttpClient client)
        {           
            this.client = client;
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Add("User-Agent", "C# App");
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/sparql-results+json")); // or "application/json"
        }
... Mill 1 (talk) 17:58, 22 October 2021 (UTC)

RefToolbar

Hello Please note this picture: w:ru:Шаблон:Интерактивная карта изображений I want this to be my site: https://wiki.sheki.site/index.php?title=%C5%9Eablon:%C4%B0nteraktiv_g%C3%B6r%C3%BCnt%C3%BC_x%C9%99rit%C9%99si . The picture may look like this on my site. But only I can see, others do not see it. In other words,

But only in this case I see. I want it to be like in Russian Wikipedia. What do you think I should do? Thanks in advance. Tofiq Kərimli (talk) 14:06, 20 June 2019 (UTC)

Edit your MediaWiki:Gadgets-definition and add "|default" to the line with RefToolbar. FriedhelmW (talk) 19:43, 20 June 2019 (UTC)
Thank you. The problem was resolved. I moved this row upwards - to section Default. Then I changed it:
  • refToolbar[ResourceLoader|default|dependencies=user.options,mediawiki.legacy.wikibits,mediawiki.util]|refToolbar.js
I want to know. Is there another way to solve this problem? Tofiq Kərimli (talk) 21:22, 20 June 2019 (UTC)

Regarding integration of voting feature in 'Extension:StructuredDiscussion' .

I wanted to know if there is any simple way in which a voting feature can be added to 'Extension:StructuredDiscussion' ...

One way can be to somehow integrate 'Extension:VoteNY' with 'Extension:StructuredDiscussion'. Is this possible ?

(I dont want the replies to move up and down like reddit..I just want to add a functionality so that user can vote replies given by other users)

please guide me.. Falcopragati (talk) 06:29, 21 June 2019 (UTC)

Is it possible to allow HTML in Enotif emails

I'm trying to design an enotif email but plain text is all that comes through, is it possible to allow HTML and not just plain text? Banana439monkey (talk) 07:31, 21 June 2019 (UTC)

Mobile Gateway/Mobile homepage formatting 36.37.234.179 (talk) 17:23, 21 June 2019 (UTC)
Is that not for wiki pages? Banana439monkey (talk) 19:16, 21 June 2019 (UTC)

Could not create directory "mwstore://local-backend/local-public

I saw this page Manual:Configuring file uploads#Known problems with database names having non-alphanumeric characters, but when I change my $wgDBname I can not open my wiki, I get a fatal error.

What can I do for this problem ? 2610S (talk) 13:34, 21 June 2019 (UTC)

Will deleting the local settings file and start the wiki again, will it help, or I will get other problems ? 2610S (talk) 20:42, 22 June 2019 (UTC)

Advice on Upgrading

I have inherited a MediaWiki site and I know very little about MediaWiki (or wikis in general). I am trying to learn quickly. Joomla and web site knowledgeable.

The site has MediaWki 1.23.9 running under PHP 5.6.30 and MySQL 5.6.41. I see that MediaWiki is at 1.32 and requires PHP 7+ (PHP 7.1 is available on my server).


Can someone suggest a problem free migration path from MediaWiki 1.23.9 to 1.32? I assume I can not just upgrade from 1.23.9 to 1.32?

For example I see 1.30 is the last to support PHP 5.6, so I assume that would be one intermediate step. Are there versions that make database changes I should be aware of? Any knowledgeable guidance would be very welcome.


I see MediaWiki has no "updater" like Joomla for applying updates to itself, so I assume it is a matter of downloading the PHP files and uploading them to the server, possibly running a specific PHP "installer". Are there SQL scripts that need to be applied to the data base directly for any updates? Anpdnd (talk) 15:33, 21 June 2019 (UTC)

See Manual:Upgrading. I don't think anyone can promise "problem free" though... Malyacko (talk) 15:43, 21 June 2019 (UTC)
The PHP question has been asked a lot recently. Maybe someone who knows the answer for sure could add to the Upgrading page. But as far as I know, you just change the PHP version (which may or may not break the website temporarily), upgrade the MediaWiki files to the latest version, and run the update script to change the database etc if necessary. Jonathan3 (talk) 00:36, 24 June 2019 (UTC)

Essential changes in versions above 1.29 ?

Were there any? If yes, it would be great if someone could update this section. Thanks. Stefahn (talk) 20:16, 21 June 2019 (UTC)

Do you mean this Release notes? It contains info pages for new changes below 1.33. 94rain Talk 00:28, 22 June 2019 (UTC)
Your linked page is interesting too. But it contains all release notes. It would be interesting to know the essential changes, which are shown on https://www.mediawiki.org/wiki/Manual:Upgrading#Why_upgrade.3F but only up to version 1.29... Stefahn (talk) 13:05, 22 June 2019 (UTC)
I think they are just written to encourage us to upgrade.
I can think MediaWiki_1.30#Action_API_changes has made comparing pages/revisions much more flexiable as a major change. Someone else might think searching for contributions within an IP range at Special:Contributions is quite important. 94rain Talk 13:48, 22 June 2019 (UTC)

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


I can only find how to create external link (_blank) to the edit page: Help:Links#External links to internal pages


How to create internal link (without _blank/pop) to the edit page of the current page? (like putting a help to edit link inside the article) Peacedev (talk) 03:39, 22 June 2019 (UTC)

For example: https://en.wikipedia.org/wiki/Template:Dynamic_list, the 'expanding it' link doesn't _blank into a new page using [{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] Peacedev (talk) 09:17, 4 July 2019 (UTC)
Still waiting for the answer though..., appreciate if anyone can help :) Peacedev (talk) 03:14, 21 August 2019 (UTC)
It's a little difficult to understand exactly what you want?
From what I understand, you don't want external links to open in new tabs like what happens for the 'expanding it' link in w:Template:Dynamic list. That's probably because Wikipedia hasn't set $wgExternalLinkTarget to '_blank';. AhmadF.Cheema (talk) 03:48, 21 August 2019 (UTC)
Thanks AhmadF.Cheema, this is what I was looking for :) didn't know MediaWiki default is different from Wikipedia. Peacedev (talk) 14:57, 23 August 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to keep session after log in with a bot?

I'm trying to implement a script do download some html pages from my wiki and convert them to pdf. I'm logging in into my private wiki using a bot, trough the API, and getting the login token, but I can't keep my session (using the same token) to do some actions, like download an article html page using wget. We use LDAP authentication in our server, this can be a complication to use bots? Jlvale (talk) 21:20, 22 June 2019 (UTC)
@Jlvale How do you know that you "can't keep my session"? What happens or not? What are error messages or not? Malyacko (talk) 10:58, 23 June 2019 (UTC)
@Malyacko Every time I try to download a page using wget with the bot user, I receive the authentication required page, even though I post the bot login, password and the generated login token. Jlvale (talk) 13:37, 25 June 2019 (UTC)

Export all uploads

Is there any way to export all upload at once, or I need to copy/paste every pagename to Special:Export ? 2610S (talk) 05:56, 23 June 2019 (UTC)

Well, there is Exporting all the files of a wiki, but I think this is way more complicated than what you, or maybe anyone, would need.
The simpler method would be to use the "Add pages from namespace" option in Special:Export. AhmadF.Cheema (talk) 08:04, 23 June 2019 (UTC)
@AhmadF.Cheema My wiki only gives me the option of Add pages from category, I do not have the option of Add pages from category.
Why is this ? 2610S (talk) 17:34, 23 June 2019 (UTC)
Probably need to set $wgExportFromNamespaces to true. AhmadF.Cheema (talk) 06:10, 24 June 2019 (UTC)
@AhmadF.Cheema exporting the upload pages only exports the pagename, but not the upload itself.
how can I export also the uploads ? 2610S (talk) 19:35, 8 December 2019 (UTC)
All files are placed on the filesystem. MediaWiki doesn't provide an easy way to download all of them at once.
If you have FTP access, you can navigate to the upload directory and download all files. An alternative if you don't have FTP access is to use Manual:Grabbers and use the grabImages.php script. Note however that this script requires a full MediaWiki installation locally. Ciencia Al Poder (talk) 10:26, 9 December 2019 (UTC)

extreme slowness

Hello.There is extreme slowness In Wikimedia projects:All pages open slowly.They work suddenly and then suddenly slow again ديفيد عادل وهبة خليل 2 (talk) 07:32, 23 June 2019 (UTC)

@ديفيد عادل وهبة خليل 2 mediawiki.org is for the MediaWiki software. If some Wikimedia websites are slow then this has to with your internet provider or with Wikimedia servers and networks, but not with the MediaWiki software itself, so this is the wrong place. Maybe https://meta.wikimedia.org/wiki/Tech or such.
Which exact Wikimedia projects have you tried? What does "slow" mean exactly?
Wondering if this could have to do with the recent problems of the Wikimedia caching data center in Amsterdam (Netherlands) but that depends on where you are located. Malyacko (talk) 10:57, 23 June 2019 (UTC)
All Wikimedia projects are slow
I live in Egypt ديفيد عادل وهبة خليل 2 (talk) 11:00, 23 June 2019 (UTC)
@ديفيد عادل وهبة خليل 2 See what I asked above. It says "What does "slow" mean exactly?" Could be https://phabricator.wikimedia.org/T226375 but impossible to say as you have not provided more information. Malyacko (talk) 12:24, 24 June 2019 (UTC)
I explained what was happening with me above.What needs explanation?
phabricator does not work at all ديفيد عادل وهبة خليل 2 (talk) 12:30, 24 June 2019 (UTC)
"does not work" is as vague as possible. So nobody can help with anything if you keep things vague and don't answer questions, sorry... Malyacko (talk) 07:27, 26 June 2019 (UTC)
They are very slow ديفيد عادل وهبة خليل 2 (talk) 07:34, 26 June 2019 (UTC)

Zu Mediawiki verlinken

Hallo zusammen,

ich habe einen Apache am laufen. Dort drauf ist ein MEdiawiki. Ich habe meine Startseite angepasst, damit ich nicht beim eingeben der URL gleich im MEdiawiki lande.

Ich möchte jetzt gern auf dieser Startseite einen Link zu meinem WIki machen. Was muss ich dafür tuhen? SIsco86 (talk) 08:36, 23 June 2019 (UTC)

@SIsco86 You edit the HTML of your start page and add a link to your MediaWiki location. The exact link depends on where your MediaWiki installation is located on your server. Malyacko (talk) 10:54, 23 June 2019 (UTC)

Missing file Wikimedia\Equivset\Equivset

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 guys,


I am having a problem when installing AntiSpoof, I followed the guide and when I am running


php extensions/AntiSpoof/maintenance/batchAntiSpoof.php

I have

Error from line 148 of /var/www/html/extensions/AntiSpoof/includes/AntiSpoof.php: Class 'Wikimedia\Equivset\Equivset' not found

Backtrace:

#0 /var/www/html/extensions/AntiSpoof/includes/AntiSpoof.php(261): AntiSpoof::getEquivSet()

#1 /var/www/html/extensions/AntiSpoof/includes/AntiSpoof.php(395): AntiSpoof::normalizeString(string)

#2 /var/www/html/extensions/AntiSpoof/includes/SpoofUser.php(39): AntiSpoof::checkUnicodeStringStatus(string)

#3 /var/www/html/extensions/AntiSpoof/maintenance/BatchAntiSpoofClass.php(70): SpoofUser->__construct(string)

#4 /var/www/html/extensions/AntiSpoof/maintenance/BatchAntiSpoofClass.php(95): BatchAntiSpoof->makeSpoofUser(string)

#5 /var/www/html/maintenance/doMaintenance.php(94): BatchAntiSpoof->execute()

#6 /var/www/html/extensions/AntiSpoof/maintenance/batchAntiSpoof.php(22): require_once(string)


I think I am missing file 'Wikimedia\Equivset\Equivset' ?


How can I get it ?


Thanks Readmanhe (talk) 11:25, 23 June 2019 (UTC)

solved by running 'composer update' Readmanhe (talk) 14:00, 23 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

About the speed of MediaWiki

Hello, I'm using the MediaWiki. I use mediawiki in vps, but sometimes I experience slow speed.


I've set up mediawiki speed settings (cache, etc.) and I don't have a lot of wiki users.


So I thought this was the server's performance problem, and I asked this question about MediaWiki's recommended specifications.


Tell me what the specifications of the server (cpu, ram, etc.) are for turning the MediaWiki to your liking.


p.s

I use php7 and MariaDB to run MediaWiki in Ubuntu. My MediaWiki version is 1.32. 180.189.102.176 (talk) 14:23, 23 June 2019 (UTC)

See Manual:Installation requirements. Malyacko (talk) 10:24, 24 June 2019 (UTC)

mw-render does not export PDF with username & password

MediaWiki has been enabled with the MediaWiki API , and the following mw-render command produces a PDF document containing the article Physics


$ mw-render --config http://en.wikipedia.org/w/ --output test.pdf --writer rl Physics


But, when we use same mw-render command with the LDAP user name password for our private wiki site it encounter error on Shell like "provided username or password is not correct"

We are using LDAP setup authentication for our internal wiki site. Could you suggest a fix for this issue?

$ mw-render --config https://wikitest.com/wiki/ --username='xxxx' --password='yyyy' --output test.pdf --writer rl Apache Sanjay (talk) 18:17, 23 June 2019 (UTC)

How do I install modules

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 media wiki on my site. I installed a few templates and they say 'No such module "Module Name".' How do I install these modules that they depend on? MrDevoEvo (talk) 23:19, 23 June 2019 (UTC)

Extension:Scribunto is needed for modules.
Also, how are you installing those templates? Export the templates through Special:Export and check "Include templates", and then import them into your Wiki. This should import the required modules too. AhmadF.Cheema (talk) 06:07, 24 June 2019 (UTC)
Yes, I do export the templates. This fixed the issue. Thank you. MrDevoEvo (talk) 16:45, 24 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem to update MW 1.3 (very Old) until an 1.32

Hello

we have an MediaWiki 1.3 (works with LATIN1!) on an Server with PHP5.3 (!!) and an older mySQL. Now we want to update. We Copy MW 1.3 to an Server with actual mySQL and PHP5.6. (Final-Server PHP 7.2)

I figured we'd have to update to 1.4 first, then 1.5.

Ok ... Server is too new ...

Manually Change Class Namespace-Entrys to MWNamespace. Change DB-Entrys with TYPE= to ENGINE=

1) Update to 1.4 (via console: php update.php) => Works (ok we CAN'T see an webpage-output ... 100+ deprecated errors ...)

2) Update to 1.5 ... First: php upgrade1_5.php ... no errors ... but it kills the db (Umlauts ÄÖÜß; same on filesystems etc.). I think he recognize the wrong charsets in db und change LATIN1 as UTF8 to UTF8 (the "new" names are typical for this error)


How do I get it clean from 1.4 to 1.32? When do we have to switch to the PHP7.2 server in the update process?


I have an problem to understand whats the different between AdminSettings.php and LocalSettings.php (i think this is the reason for my updateproblem...). I've understand that i must fill the AdminSettings with DB-Infos ... more? $wgUseLatin1 = true to adminsettings for upgrade1_5.php? I don't to this in my last "Update-Run" ...


Thank you 84.166.17.147 (talk) 01:17, 24 June 2019 (UTC)

Apparently, it's not possible to upgrade from 1.4 to a recent version. You need to upgrade to 1.5 first. This is explained in Manual:Upgrading#How do I upgrade from a really old version? In one step, or in several steps?
I'd upgrade first to 1.4 and 1.5 on the old server (I guess MediaWiki 1.5 supported php5.3 well), then transfer database to the new server and upgrade to a recent version.
Once you upgrade to 1.5, you should check if pages with non-ASCII characters look well. If they do, when transferring database to the new system (or maybe even required for 1.5 to work), you can try to convert the database from latin1 to utf8 exporting the dump, running inconv and then reimporting it, as explained here: http://www.alphadevx.com/a/420-Converting-a-MySQL-database-from-latin1-to-utf8
For information about how AdminSettings.php worked back then, you can check Manual:AdminSettings.php. Ciencia Al Poder (talk) 12:14, 26 June 2019 (UTC)
Heythe main-problem is converting to UTF8 - doesn't work.I've updated first to 1.4 (ansi), then to 1.5 (first: upgrade1_5.php, then normal update; both via cli). Upgrade1_5.php kills Umlauts in Filenames ....The bigger Problem: i do this "blind" ... i have only an php 5.6-Server - no 5.3 any more. But i don't have any deprecated-errors @ updateprozess. (view the result via browser don't work - of course ... deprecated-errors). Problem in updatescripts are the Namespace -> rename to MWNamespace und SQL Type= change Engine=.In the manuels stand that i have set $wgUseLatin1 = true ... upgrade1_5 knows then: i must upgrade ansi to utf. AND i think here is something wrong. upgrade1_5 thinks it is utf8 and change tables to utf8 - without conversion -> destroy umlauts ... At my next attempt I will put $wgUseLatin1 = true into the adminsettings. Apparently the localsettings.php are not read by the upgrade1_5.php ... 84.166.22.144 (talk) 11:06, 6 July 2019 (UTC)
Note you can remove deprecated errors from output. See https://stackoverflow.com/questions/2803772/turn-off-deprecated-errors-php-5-3 (should work on php 5.6 too) Ciencia Al Poder (talk) 10:06, 8 July 2019 (UTC)

Logo not showing on main page

I have already looked up the Manual:$wgLogo and my logo still doesn't show. It just show a blank white space but it's clickable.

As you can see this is the default logo

$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";

I changed that to this

$wgLogo = "/mediawiki/images/myimage.png";

Also tried putting the image in the /resources/assets/ and replaced the wiki.png with my image

Still doesn't show Jhazuuu (talk) 01:23, 24 June 2019 (UTC)

Have you followed the recommended size guideline for the logo? If the size is too large, the logo may appear to be blank white space.
If the Wiki is public, it would help if you could provide a link to it. AhmadF.Cheema (talk) 06:04, 24 June 2019 (UTC)
@AhmadF.Cheema I have read that the appropriate size is 130x130 or 135x135.
Sorry but the wiki is not public. Jhazuuu (talk) 06:35, 24 June 2019 (UTC)
So, is your logo this appropriate size?
If you return $wgLogo, to its original value, does the default MediaWiki test logo show up? AhmadF.Cheema (talk) 11:24, 24 June 2019 (UTC)

Only PDF file can be uploaded

Hello, I installed a MediaWiki (1.29.3) and tried to enable the file upload function. Following the instructions, I have enable the FileUpload and added the file extensions in the LocalSettings.php:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg');
Interestingly, I can only upload the PDF file without any problem. Any other file type will result in an error page:
=This page isn’t working=
XXX (site name) is currently unable to handle this request.
HTTP ERROR 500
I even purposely changed a picture file "picture.gif" to "picture.pdf" (to trick the system), and it also can't be uploaded. Other types in the extension list don't work. Any suggestion will be truly appreciated. 76.180.181.130 (talk) 03:57, 24 June 2019 (UTC)
Why would you install an ancient unsupported insecure MediaWiki version like 1.29.3? To get your website hacked? See https://www.mediawiki.org/wiki/Download Malyacko (talk) 10:20, 24 June 2019 (UTC)
Possibly a problem with your hosting server. Have you checked with your hosting provider? Looks like they have put some restrictions on files with MIME types other than .pdf. AhmadF.Cheema (talk) 06:01, 24 June 2019 (UTC)

TinyMCE Extension configuration

I have read the Extension:TinyMCE and it was a little bit unclear what to do for it to work properly. I have included in my LocalSettings.php the line

wfLoadExtension( 'TinyMCE' );

But my site doesn't work anymore. I have also downloaded tinymce files and placed them in the extensions folder. Jhazuuu (talk) 05:16, 24 June 2019 (UTC)

In LocalSettings.php, set:
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);
Manual:How to debug AhmadF.Cheema (talk) 05:58, 24 June 2019 (UTC)
@AhmadF.Cheema have added the those lines but with no luck still my site doesn't work Jhazuuu (talk) 06:38, 24 June 2019 (UTC)
What exactly do you mean by "site doesn't work"? Does it give an Error 500, the site shows a blank page or something else? AhmadF.Cheema (talk) 11:22, 24 June 2019 (UTC)
check the exact cases of TinyMCE in the extension folder, in my case it installed in the extension folder as TinyMce so if you call it with wfLoadExtension( 'TinyMce' ); it will work but not if you call wfLoadExtension( 'TinyMCE' ); 83.82.119.125 (talk) 13:09, 26 April 2021 (UTC)

Visual Editor Curl Error 7

When I click edit on my mediawiki site this error shows

Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Would you like to retry?

I have this on my LocalSettings.php

$wgVirtualRestConfig['modules']['parsoid'] = array(

// URL to the Parsoid instance

// Use port 8142 if you use the Debian package

'url' => 'http://localhost:8080',

// Parsoid "domain", see below (optional)

'domain' => 'localhost',

// Parsoid "prefix", see below (optional)

'prefix' => 'localhost'

);

And on config.yaml

  mwApis:

        - # This is the only required parameter,

          # the URL of you MediaWiki API endpoint.

          uri: 'http://192.168.195.166/mediawiki/w/api.php'

          # The "domain" is used for communication with Visual Editor

          # and RESTBase.  It defaults to the hostname portion of

          # the `uri` property below, but you can manually set it

          # to an arbitrary string.

          domain: '192.168.195.166/mediawiki'  # optional Jhazuuu (talk) 06:50, 24 June 2019 (UTC)

Upload not working on editor

I am having trouble with uploading images via wikiEditor/ClipUpload/MSUpload combination. I can upload/link to images that were uploaded via Upload File page. ClipUpload had enabled me to copy-paste images into the wikiEditor in the past, but when I try pasting into the editor window now, the message says it is trying to bring in the image, but the process never completes. No explicit error messages are displayed.


I tried looking into the Apache error log, and as soon as I paste something into the editor the error log starts growing with a line that says: "PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in C:\\xampp\\htdocs\\mediawiki\\includes\\media\\FormatMetadata.php on line 1864, referer: http://172.24.138.188/mediawiki/index.php?title=Sadfw&preload=&redlink=1&action=edit"


The error log kept on growing until I terminated Apache.


I did recently move the Wiki to a new host computer, but I am not sure if this is when the upload problem had started. Any idea how i might be able to troubleshoot this? 162.252.228.5 (talk) 16:06, 24 June 2019 (UTC)

deleteOldRevisions.php for subpages or namespaces

I understand that I can delete all of my old revisions using php maintenance/deleteOldRevisions.php --delete or I could delete individual old page revisions using php maintenance/deleteOldRevisions.php --delete 1 2 15 38, but is it possible to delete old page revisions for an individual page to include all of its subpages? If not, is there an automated way to get all the ids for the subpages under a specific page?

Also, is there a way to delete all old page revisions for a specific namespace? 12.152.106.131 (talk) 17:12, 24 June 2019 (UTC)

I Can't upload images on my wiki

I already tried everything but nothing works.

$wgEnableUploads already set on true

$wgAllowExternalImage

$wgUseInstantCommons

$wgAllowImageTag


and the "images" directory is writable.

But nothing worked.

The Upload File Tool doesn't appears.


177.8.84.3 (talk) 18:09, 24 June 2019 (UTC)

Pardon my ignorance, but what is the "Upload File Tool" exactly?
By default, files are uploaded through the Special:Upload page. AhmadF.Cheema (talk) 06:38, 25 June 2019 (UTC)

Help!! change the multimedia storage directory to a partition

Hola. Como puedo cambiar el directorio de almacemiento de las imagenes a una particion


Cuales son los pasos a seguir ?


Google translator: Hello. How can I change the file storage directory to a partition?


Which are the steps to follow ? Emanuelvasilack (talk) 20:02, 24 June 2019 (UTC)

  1. Mueve la carpeta de archivos (normalmente la carpeta /images) a la ruta que quieras en el servidor.
  2. En el servidor web (apachem nginx, IIS...), debes mapear esa nueva ruta a un directorio virtual del servidor (podría ser la misma /images por defecto)
  3. Luego debes cambiar Manual:$wgUploadDirectory para que apunte a esa nueva ubicación
  4. Si cambió la ruta de acceso desde el exterior (punto 2) debes cambiar también Manual:$wgUploadPath para que corresponda a esa ruta (esto es la ruta en la URL, no en el sistema de archivos). Ciencia Al Poder (talk) 08:12, 25 June 2019 (UTC)

Problem Uploading Avatar

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


When I upload my avatar that happens, it fails to save the image.


[cae74e394d3b74ddc3efda5f] /mediawiki/index.php/Special:UploadAvatar Exception from line 49 of /var/www/html/mediawiki/extensions/Avatar/Thumbnail.php: Failed to save image /var/www/html/mediawiki/images/avatars/1/original.png

Backtrace:

#0 /var/www/html/mediawiki/extensions/Avatar/SpecialUpload.php(92): Avatar\Thumbnail->createThumbnail(integer, string)

#1 /var/www/html/mediawiki/extensions/Avatar/SpecialUpload.php(30): Avatar\SpecialUpload->processUpload()

#2 /var/www/html/mediawiki/includes/specialpage/SpecialPage.php(569): Avatar\SpecialUpload->execute(NULL)

#3 /var/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#4 /var/www/html/mediawiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#5 /var/www/html/mediawiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#6 /var/www/html/mediawiki/includes/MediaWiki.php(517): MediaWiki->main()

#7 /var/www/html/mediawiki/index.php(43): MediaWiki->run()

#8 {main}


Jhazuuu (talk) 02:23, 25 June 2019 (UTC)

Maybe the write permission isn't enabled for the images directory?
In case it's an issue with the extension, you can also try Extension:SocialProfile which appears to have an Avatar feature too. AhmadF.Cheema (talk) 06:45, 25 June 2019 (UTC)
I have already resolved this by having to chown the images directory. Jhazuuu (talk) 07:43, 25 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I add custom license to Extension:UploadWizard?

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,

In order to add a custom license type for Extension:UploadWizard, I've added the following configuration settings in LocalSettings.php:

wfLoadExtension( 'UploadWizard' );

// Needed to make UploadWizard work in IE, see https://phabricator.wikimedia.org/T41877
$wgApiFrameOptions = 'SAMEORIGIN';

//$wgUploadNavigationUrl = '/index.php/Special:UploadWizard';

$wgUseInstantCommons = true;
$wgExtensionFunctions[] = function() {

$GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL();
        return true;
};

$wgUploadWizardConfig = array(
        'debug' => false,

        'altUploadForm' => 'Special:Upload',
        'fallbackToAltUploadForm' => false,
        'enableFormData' => true, 
        'enableMultipleFiles' => true,
        'enableMultiFileSelect' => true,
        'uwLanguages' => array(
                'ru' => 'Русский',
                'bg' => 'Български',
                'en' => 'English'
        ), 
        'uwLanguages' => empty( $uwLanguages ) ? [ 'bg' => 'Български' ] : $uwLanguages,
        'tutorial' => array( 'skip' => false ),
        'maxUploads' => 15,
        'fileExtensions' => $wgFileExtensions,

        'licenses' => array(
                'cc-by-nc-sa-4.0' => [
                        'msg' => 'mwe-upwiz-license-cc-by-nc-sa-4.0',
                        'icons' => [ 'cc-by', 'cc-nc', 'cc-sa' ],
                        'url' => '//creativecommons.org/licenses/by-nc-sa/4.0/',
                        'languageCodePrefix' => 'deed.'
                ],
        ),

        'licensing' => array(
                'defaultType' => 'ownwork',
                'ownWorkDefault' => 'choice',
                'ownWork' => array(
                        'type' => 'or',
                        'template' => 'self',
                        'defaults' => 'cc-by-nc-sa-4.0',
                        'licenses' => array(
                                'cc-by-nc-sa-4.0',
                                'cc-by-sa-4.0',
                                'cc-by-sa-3.0',
                                'cc-by-4.0',
                                'cc-by-3.0',
                                'cc-zero'
                        )
                ),
        ),
);
Everything works except the custom messages for the new license type, as you can see on this screenshot. I've created:
  • MediaWiki:Mwe-upwiz-license-cc-by-nc-sa-4.0
  • MediaWiki:Mwe-upwiz-source-ownwork-assert-cc-by-nc-sa-4.0
  • MediaWiki:Mwe-upwiz-source-ownwork-cc-by-nc-sa-4.0-explain
But Extension:UploadWizard doesn't accept them until they are not registered in $IP/extensions/UploadWizard/extension.json, under the messages section. The same issue is described and illustrated here. So my question is:

Is there any elegant way to append (register) my messages to the UploadWizard's messages list without modify its extension.json file?

Spas.Z.Spasov (talk) 13:36, 25 June 2019 (UTC)
Fortunately I've managed to solve my problem by adding the following code in LocalSettings.php (reference):
// register a ResourceLoader module...
$wgResourceModules['myUploadWizardResources'] = array(
        //'scripts' => array( 'resourcesCustom/UploadWizard/myUploadWizard.js' ),
        'styles' => array( 'resourcesCustom/UploadWizard/myUploadWizard.css' ),
        'messages' => array(
                'mwe-upwiz-license-cc-by-nc-sa-4.0',
                'mwe-upwiz-source-ownwork-assert-cc-by-nc-sa-4.0',
                'mwe-upwiz-source-ownwork-cc-by-nc-sa-4.0-explain',
        ),
);
// The content of the messages (based on  $IP/extensions/UploadWizard/i18n/*.json)
$wgMessagesDirs['myUploadWizardResources'] = 'resourcesCustom/UploadWizard/i18n';
// Set up a hook to add our resource loader module to every page
function myUploadWizardResourcesLoader( &$out ) {
        $out->addModules( 'myUploadWizardResources' );
        return true;
}
// Register the hook
$wgHooks['BeforePageDisplay'][] = 'myUploadWizardResourcesLoader';
In addition, by myUploadWizard.css I'm creating the new 'cc-nc' icon:
$ ls $IP/resourcesCustom/UploadWizard/
18px-Cc-nc_white.svg.png  i18n/  myUploadWizard.css
$ cat $IP/resourcesCustom/UploadWizard/myUploadWizard.css
.mwe-upwiz-cc-nc-icon {
        /* @embed */
        background: url( 18px-Cc-nc_white.svg.png ) no-repeat center center;
}
The actual messages are involved and translated by $wgMessagesDirs['myUploadWizardResources'] = 'resourcesCustom/UploadWizard/i18n';:
ls $IP/resourcesCustom/UploadWizard/i18n/
bg.json  en.json  ru.json
$ cat $IP/resourcesCustom/UploadWizard/i18n/en.json
{
    "mwe-upwiz-source-ownwork-assert-cc-by-nc-sa-4.0": "I, $2, {{GENDER:$4|the copyright holder}} of {{PLURAL:$1|this work|these works}}, irrevocably grant anyone the right to use {{PLURAL:$1|this work|these works}} under the Creative Commons Attribution NonCommercial ShareAlike 4.0 license ([$3 legal code]).",
    "mwe-upwiz-source-ownwork-cc-by-nc-sa-4.0-explain": "(Anyone may use, share or remix {{PLURAL:$1|this work|these works}} with NonCommercial purposes, as long as they credit me and share any derivative work under this license.)",
    "mwe-upwiz-license-cc-by-nc-sa-4.0": "Creative Commons Attribution NonCommercial ShareAlike 4.0 ([$2 legal code])"
}
Spas.Z.Spasov (talk) 14:40, 25 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mw-render does not embed the WIKI page images in downloaded PDF file

We have configured MediaWiki with mwlib server to render HTML pages to PDF using 'mw-render'.

Following is the 'mw-render' command successfully produces a PDF document for the Wikipedia article page Physics

$ mw-render --config http://en.wikipedia.org/w/ --username='xxxx' --password='yyyy' --output test.pdf --writer rl Physics


But, We need to configure same for MediaWiki so that MediaWiki API could render PDF using following configuration in LocalSetting.php .


We are using LDAP setup authentication for our internal wiki site. and I am able to render the PDF file using the following command.

$ mw-render --config https://wikitest.com/wiki/  --username='xxxx' --password='yyyy' --output test.pdf --writer rl Apache


But, here the issue is, The downloaded PDF file does not includes the images visible in the WIKI page. And throws following ERROR on shell. Any help appreciated.


"HTTPError: HTTP Error 401: Unauthorized

<Greenlet at 0x7f5973334370: download_to_file('https://wikidev.com/wiki/images/2/2b/Stra, '/tmp/tmp-mw-renderumcvy4/tmpDnRbLS/nuwiki/images/, '/tmp/tmp-mw-renderumcvy4/tmpDnRbLS/nuwiki/images/)> failed with HTTPError " SanjayKSahu (talk) 14:54, 25 June 2019 (UTC)

How do I change how my wiki looks when shared on a social media site?

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 creating a new wiki and I was wondering how to change the text/image that appears when a link from the wiki is shared on a social media site such as Discord, Twitter, etc. Daintiiyt (talk) 17:45, 25 June 2019 (UTC)

See Project:Support desk/Flow/2018/04#h-How_to_force_social_media_to_show_prewiev_of_my_wiki?-2018-04-29T08:21:00.000Z. AhmadF.Cheema (talk) 05:35, 26 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

My band, Get Set Go's, wiki page...

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


Hello,

I am hoping someone at Wikipedia can help explain things to me. First, let me say that I'm a big supporter of what you do and I have contributed, even though it has been small amounts, but I have contributed every time you have requested it of me. I say that simply because, as a poor-working class musician, I don't really have the largesse to give to anybody but I see the significant advantage Wikipedia brings to the entire world and it is something worth supporting.

That said, my band's page has had a disclaimer on it for years saying something to the effect that our accomplishments or something of that sort aren't notable enough to be included on Wikipedia. Which I find strange as I have encountered countless friends' bands who have profiles who have accomplished significantly less than we have during our 17 years as a band and their pages aren't flagged.

My most notable accomplishment is that I had a very strong relationship with Grey's Anatomy, and over the first decade of the show, they licensed 8 of my songs, and repeatedly licensed Wait and I Hate Everyone, both of which made it onto their first and second soundtracks, respectively. I've also had about 20 other film and tv licenses.

We were one of the founding members of the Mr. T's Bowl scene, in Los Angles, that sprouted up in 1998 and continued til 2006. I was the booker and host of all of that weekly and eventually three-times a week scene. https://www.lamag.com/culturefiles/remembering-seedy-sublime-music-scene-mr-ts/

I stopped courting the press from 2011 til just now because I really do not like the short-shrift most music journalists give not only my music but music in general. It rankles me to have someone dismiss thousands of hours of my work after what was obviously only a cursory listen. But I have been engaging in scores in public facing, popular podcast interviews such as Night Attack, Cord Killers, The Daily Tech News, a handful of Scott Johnson's podcasts, and myriad others over the past decade. Does that exposure not count? Or should I, every time I do something public facing, should I submit it to Wikipedia for consideration?"

And on top of that, there's the music. Certainly I don't court the music press. (Well, I just started doing so for my newest album. In fits and starts. But, I still feel the exact same way. And I'm still getting the same sort of shitty responses. So, I may never again. I mean, there are a few bright spots. And I do have some advocates in the press. And I am planning on leveraging them.) But I have tens of thousands of people who listen to my music every month. Does that count for nothing? Do I really need articles to validate my musical output? Sure, I'm a small working class musician but I work my ass off. The proof is in the pudding. My numbers grow year in and year out. Not super fast but but they do. My audience is growing.

Anyway, this flag has been on Get Set Go's page for years. And it really has begun to stick in my craw. If there's something I need to, if you need to go do three or four interviews, so you've got sources you can cite that aren't podcasts, I'll do it. Please, just let me know what I need to do to remove that flag..

Thank you so much,

Mike TV

Get Set Go MikeTVGetSetGo (talk) 20:56, 25 June 2019 (UTC)

Hi @MikeTVGetSetGo Hi, note that this website is not Wikipedia but mediawiki.org (the software behind Wikipedia). To discuss notability rules of a Wikipedia, you'll have to bring that up on that Wikipedia. Malyacko (talk) 07:35, 26 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Simulating chess by using MediaWiki's delete and move features

Has anyone thought of simulating chess moves by using MediaWiki's delete and move features? The idea is to upload 26 images to depict chess pieces and empty squares. Then, one would create 32 templates showing the initial positions of the pieces (e.g. "Template:A1" would show a picture of a white rook), with a parameter for the square color, perhaps {{{squarecolor}}}. Finally, one would create a "Chess" page transcluding piece position templates 64 times, with the "#ifexist" parser function used to show empty squares in lieu of redlinked templates.

Then, one can start simulating chess moves by moving piece position templates, making sure to always uncheck "Leave a redirect behind" on Special:MovePage. When the target page already exists, it would be asked to be deleted, and deletion would then correspond to capturing a piece. The only exception is with the en passant pawn capture, where the move and the deletion may be done in either order. This is also the only time one needs to manually delete a piece position template. Finally, the only time one needs to edit a piece position template is when promoting a pawn. In this case, the edit and the move may be done in either order. GTrang (talk) 21:22, 25 June 2019 (UTC)

interesting idea DannyS712 (talk) 22:34, 25 June 2019 (UTC)
To really see the updated chessboard, one must remember to purge or null edit the "Chess" page for every template move. GTrang (talk) 19:02, 28 June 2019 (UTC)
Checking whether two of the requirements for castling (king and rook have never been moved, and the squares in between are empty) are met can be done in the following ways (in MediaWiki 1.32 or later; page creations are not logged in previous MediaWiki versions):
  • General
    • Check the histories of the king and rook templates to see whether they contain just the initial creation with no moves.
    • Check to see whether the king and rook templates have edits that are shown as both page creations (rev_parent_id = 0) and "current" (rev_id = page_latest) in the user contributions page.
    • Check the logs for the king and rook templates to see whether they contain just a page creation log entry with no deletion or move log entries.
  • White castling kingside
    • Check the logs for "Template:E1" and "Template:H1" to see whether they contain just a page creation log entry with no deletion or move log entries.
    • Check to see whether "Template:F1" and "Template:G1" are redlinks.
  • White castling queenside
    • Check the logs for "Template:A1" and "Template:E1" to see whether they contain just a page creation log entry with no deletion or move log entries.
    • Check to see whether "Template:B1", "Template:C1", and "Template:D1" are redlinks.
  • Black castling kingside
    • Check the logs for "Template:E8" and "Template:H8" to see whether they contain just a page creation log entry with no deletion or move log entries.
    • Check to see whether "Template:F8" and "Template:G8" are redlinks.
  • Black castling queenside
    • Check the logs for "Template:A8" and "Template:E8" to see whether they contain just a page creation log entry with no deletion or move log entries.
    • Check to see whether "Template:B8", "Template:C8", and "Template:D8" are redlinks.
In any case, if one wants to castle, then one must move the king first, and then the rook. GTrang (talk) 14:41, 9 March 2020 (UTC)

error in type value return of module

Hi

I want write a module that show number all page Subtraction number of pages a categories or only number so write Template:One by code

[[Special:Statistics|{{NUMBEROFARTICLES }}]]

then write Module:Statistics by code

local p = {} -- p stands for package

function p.hello( frame )
    local h = tonumber(frame:expandTemplate{ title = 'One' })
    local n = 7
    return h - n 
end

return p

But get error in type of h when use {{#invoke:Statistics|hello}} in another template

How solve this problems? Beginneruser (talk) 09:25, 26 June 2019 (UTC)

Apache2 configurate

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 have internal web addres wiki.xxx.cz and working is only when i write to browser wiki.xxx.cz/mediawiki

I want to write only wiki.xxx.cz and be redirect to main page.

I dont know how to configure apache, can you help me please? 78.156.40.35 (talk) 09:31, 26 June 2019 (UTC)

https://serverfault.com/questions/9992/how-to-get-apache2-to-redirect-to-a-subdirectory Ciencia Al Poder (talk) 11:46, 26 June 2019 (UTC)
Thank you! It is working.. 78.156.40.35 (talk) 07:50, 27 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Prevent Non-Logged In Users from Viewing Entire Namespace

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


Is there a way to prevent non-logged in users from viewing an entire namespace? I've read Manual:Preventing_access#Restrict_viewing but that took the approach where you disable logged out users from reading anything, and then whitelist the ability to read certain pages.

Is that the best approach? Should I block everything, and maybe whitelist using regular expression? Manual:$wgWhitelistReadRegexp? Jer Hughes (talk) 11:57, 26 June 2019 (UTC)

I was able to resolve this myself.
This would block logged out users from reading user pages:
$wgGroupPermissions['*']['read'] = false;
$wgWhitelistReadRegexp = ["/^(?!User:).+$/"]; Jer Hughes (talk) 17:09, 26 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Adding a size to an image makes the image not display.

Hello, while editing pages on my wiki I noticed that adding a size specifier causes the image to not display properly, and instead shows a small broken image icon with the file name beside it, as if the image was never uploaded. I am putting in the formatting correctly, for example:

[[File:ImageName.png|200px]]

But adding the "|200px" breaks the image (any size does this). I do not know what I am doing wrong. Daintiiyt (talk) 14:07, 26 June 2019 (UTC)

When you specify a size, MediaWiki generates a thumbnail of the image at that size. You probably don't have a program configured to do the thumbnailing, or there's a permission problem preventing MediaWiki to generate the thumbnail. See Manual:Image_administration#Image_thumbnailing Ciencia Al Poder (talk) 09:00, 27 June 2019 (UTC)
Hi, I looked into this and downloaded ImageMagick but I am unable to use it as my wiki is running off of shared hosting and not off my computer. How do I generate image thumbnails from shared hosting? Daintiiyt (talk) 20:26, 27 June 2019 (UTC)
You'll have to ask your hosting service whether they provide access to ImageMagick for shared hosting customers. AhmadF.Cheema (talk) 00:11, 28 June 2019 (UTC)

visualeditor in discussion

Are there plans to get VisualEditor working in the discussions? It sure would be helpful. Thanks, Kenny. 156.68.161.169 (talk) 21:43, 26 June 2019 (UTC)

AFAIK no - there is Extension:StructuredDiscussions for that. Malyacko (talk) 07:57, 27 June 2019 (UTC)

re-create permission

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, in Wikimedia projects: can we restrict create (pages that deleted) for specific user group? for example: autopatrolled users only can recreate deleted page. is that possible? Ibrahim.ID (talk) 13:07, 27 June 2019 (UTC)

There is no "re-create" permission, but I think you could use AbuseFilter to only allow autopatrolled users to create formerly deleted pages. MarkAHershberger(talk) 14:11, 27 June 2019 (UTC)
thanks a lot Ibrahim.ID (talk) 14:38, 27 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about mostviewed pages

Hi, in the examples given in list=mostviewed, https://www.mediawiki.org/w/api.php?action=help&modules=query%2Bmostviewed

both the example results do not give any data. Is that normal? Newlearner12350 (talk) 04:47, 28 June 2019 (UTC)

It looks like the PageViewInfo or the backend may not be set up on Mediawiki.org. The link works on enwiki. MarkAHershberger(talk) 19:46, 28 June 2019 (UTC)

how to set the some page for defined usergoup?

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 want to set userA just can read pageA , he can't read Page B, I lookkup the all current previleges , it seems to not achieve this requirement Zhujiaqin (talk) 09:01, 28 June 2019 (UTC)

Cannot be done reliably. For present possible related solutions, see Manual:Preventing access. AhmadF.Cheema (talk) 10:31, 28 June 2019 (UTC)
It is easier to use Lockdown to do this on a per-namespace basis. That is UserA could read all the pages in NamespaceA but not NamespaceB. MarkAHershberger(talk) 19:39, 28 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

API Rate Limits

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


I'm getting "Rate limit exceeded"-Errors on my https://query.wikidata.org queries.

I just tried to read the "Retry-After"-header which I read about on this page:

Wikidata Query Service/User Manual#Query limits


All header I get are the following:


date

content-type

content-length

connection

server

cache-control

x-varnish

via

age

x-cache

x-cache-status

server-timing

strict-transport-security

set-cookie

x-analytics

x-client-ip


Did the name of the header change or something? Spomsoree (talk) 09:03, 28 June 2019 (UTC)

I think you'll find more help if you ask on Wikidata's chat board. MarkAHershberger(talk) 19:37, 28 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Style and mbstring.func_overload Problem

Hello,


I have two problems with my media wiki that I believe are connected. The problem is that sometimes styles and images are correctly displayed and sometimes, they are not. Sometimes styles are not correctly displayed but images are there. Normally I can help it by refreshing the site once or twice. Sometimes after refreshing, I get the error:

MediaWiki does not support installations where mbstring.func_overload is non-zero.


HOWEVER, the mbstring.func_overload is set to ZERO.


If I click on random pages in my wiki often enough, I can reproduce this error after several clicks.


When I call the load.php in the browser I get the message:

/* This file is the Web entry point for MediaWiki's ResourceLoader: <https://www.mediawiki.org/wiki/ResourceLoader>. In this request, no modules were requested. Max made me put this here. */


Can anyone here give me a hint where to look for the solution?


Many thanks


Sebastian

Versions:

MediaWiki 1.32.1

PHP 7.2.19

MySQL 5.6.44

ICU 63.1



87.128.97.159 (talk) 10:05, 28 June 2019 (UTC)

Can you link to your wiki?
The load.php calls that are supposed to serve CSS are probably failing. Try adding ?debug=true the the URL of your wiki and then checking using watching the network traffic in the developer tools (usually available via F12).
You should see some requests returning 500 instead of 200. From there, you'll be able to see what was sent back on those requests. MarkAHershberger(talk) 19:30, 28 June 2019 (UTC)
Hello Mark,
thank you for your reply. The wiki page I am working at, unfortunately, is not public. That is why I cannot send you a link. It is a customer suppport wiki for our company.
I will check your proposal and report.
Many thanks so far...
Sebastian 87.128.97.159 (talk) 08:25, 1 July 2019 (UTC)
Hello Mark,
thank you very much. I had this MIME/ CSS problem as described here. As my server runs on windows, I solved it, creating a new file in wordpad++, including the following lines:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule (api|load)\.php - [L]
I saved it as ".htaccess" and loaded it in my wiki folder on the server.
It solved the problem.
Thank you very much! 87.128.97.159 (talk) 08:54, 1 July 2019 (UTC)
Actually I just tried to reload pages in the wiki a few times more. It seems like it reduced the frequency with which this problems occurs, but does not rid it completely.
I also was able to get the
MediaWiki does not support installations where mbstring.func_overload is non-zero.
..error again...
Any suggestion? 87.128.97.159 (talk) 09:02, 1 July 2019 (UTC)
I created a web.config file as per the instructions found here. The problems still occur, but less often.... 87.128.97.159 (talk) 09:17, 1 July 2019 (UTC)
Ok, so 85% of the time I load a page in the wiki, it now displays correctly. However, I do still get the error:
The ressource of URL was blocked because of a MIME-Type conflict ("text/html") (X-Content-Type-Options: nosniff).
index.php
Could not load script ....
And a few times, I get the error
MediaWiki does not support installations where mbstring.func_overload is non-zero.
I could not paste the complete warning due to spam filter of this editor..

87.128.97.159 (talk) 09:45, 1 July 2019 (UTC)
It is strange that you are not consistently getting the mbstring warning. Here is the source of the warning which makes it sound like there are multiple servers, not all configured exactly the same, serving up the wiki. Could this be the case?
Next, what is the content of the page when it says the URL was blocked because of MIME-type issues? Is it just that CSS and/or JS is being served up as text/html?
Both of these problems, especially the fact that they are intermittent, seem to indicate that you have multiple servers hosting your wiki and that they are not all configured the same. MarkAHershberger(talk) 15:40, 1 July 2019 (UTC)
I have the same error at the start of a local installation at laragon 4 with php7.2 :
MediaWiki does not support installations where mbstring.func_overload is non-zero.
Editing the php.ini does not solve the problem 95.157.0.91 (talk) 17:00, 3 December 2019 (UTC)
You should edit the right php.ini. See Manual:php.ini to see how you can know where's the location of php.ini used by the webserver and also see the configuration value of mbstring.func_overload Ciencia Al Poder (talk) 10:27, 4 December 2019 (UTC)
Hello Sebastian,
On laragon you have to disable the php-extension "opcache", then it works.

Cherämon (talk) 03:35, 16 December 2019 (UTC)

possible to set mediawiki as landing page on Synology?

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, is it please somehow possible to set mediawiki as landing page on Synology NAS? so when entering IP (or DDNS) it goes directly to mediawiki?

Thank you 213.220.222.213 (talk) 11:48, 28 June 2019 (UTC)

This does not seem actually related to MediaWiki, try find some help at a forum that related to Synology NAS. 94rain Talk 13:43, 28 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Could somebody block this guy?

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


This person has been nuking discussions at Extension talk:TimedMediaHandler/VideoJS Player. Flow is so horrible that I can't even figure out how to revert properly. Already been blocked on enwiki. Eman235 (talk) 12:44, 28 June 2019 (UTC)

done. —TheDJ (Not WMF) (talkcontribs) 13:11, 28 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue with recent changes feed

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 at all,


after upgrading from version 1.27 to 1.31 I realize that the recent changes feed for the wiki I subscribe to via the feed reader frequently fails completely. I assume that this is because sometimes I am logged in and sometimes not which results in variing feed urls for recent changes. However I do not know why a feed should fail since it should just select via the criteria initially saved for the feed. Perhaps there is another reason, I do not know.


Is there a way to get a stable feed URL that does not fail frequently? Perhaps this is an issue already reported?


Best, P.


https://example.org.net/w/api.php?hidebots=1&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom (logged out)


https://example.org.net/w/api.php?hidebots=1&days=7&limit=50&hidecategorization=1&action=feedrecentchanges&feedformat=atom (logged in)


PS Even after removing the urls for the e-mail my post to the mailing list continues to be rejected becaus of "The message's content type was not explicitly allowed" Posting here since this is really a big issue. 91.65.183.219 (talk) 13:10, 28 June 2019 (UTC)

I just realize that Thunderbird randomly deactivates the automatic updates. The option to do so was apparently added in the recent LTS version of Thunderbird. Thus it was just coincidentally happening at about the same time as the update of MW. 91.65.183.219 (talk) 13:36, 28 June 2019 (UTC)
So is this resolved? MarkAHershberger(talk) 19:22, 28 June 2019 (UTC)
Looks like it to me. Note that anonymous users cannot mark topics as resolved afaik. [[kgh]] (talk) 10:25, 30 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I auto-categorize all webpages with a certain HTML tag?

Say I want to automatically-categorize all web pages with the <nowiki><pre></nowiki> tag to a category named "pre-including-pages" (in a similar way to automatic-categorization of web pages with templates); how can this be done without any extensions? 182.232.164.217 (talk) 16:19, 28 June 2019 (UTC)

If you have ReplaceText installed already you could replace <pre> with [[Category:Pre-including-pages]]<pre>. MarkAHershberger(talk) 19:20, 28 June 2019 (UTC)
Hmm, I don't. Is there any other way to achieve that? 182.232.164.217 (talk) 19:22, 28 June 2019 (UTC)
You could write a bot to do what you want.
The ability to do this isn't built into MediaWiki. Installing ReplaceText is your best bet. MarkAHershberger(talk) 19:24, 28 June 2019 (UTC)
Could you maybe use one of MediaWiki's hooks to add the necessary Category: text to any page which contains the pre tag when it is saved? I think you can add code like this to LocalSettings.php without needing to write an extension (though I've not tried this yet). Jonathan3 (talk) 13:40, 1 July 2019 (UTC)
You could probably add a code snippet to your LocalSettings.php to do this, yes. I would not encourage that because you would quickly end up with an un-maintainable wiki if that were the way you decided to do things. MarkAHershberger(talk) 15:43, 1 July 2019 (UTC)
It seems less messy than potentially having multiple, identical Category: declarations on pages (one per pre tag) by using ReplaceText.
The code could remove the "Category:Pre-including-pages" text if the pre tag is no longer present. Why would it become un-maintainable? Thanks. Jonathan3 (talk) 22:38, 1 July 2019 (UTC)
If that approach (adding code to LocalSettings.php) was used every time you want to change behavior on the wiki, you would quickly have a LocalSettings.php file filled with miscellaneous functions. It might work, but it would be much more difficult to maintain over a longer period of time than creating a new extension that encapsulates and organizes the code in a better, more readable, way. MarkAHershberger(talk) 17:47, 2 July 2019 (UTC)
Yes, I see what you mean (though he didn't want to use any extensions). Thank you for replying. Jonathan3 (talk) 12:15, 3 July 2019 (UTC)

Should there be any long-term problem using
 tag in an RTL (opposed to LTR) MediaWiki website? 

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


I have installed MediaWiki 1.32.0 on a personal webserver environment. From different personal preferences I need to present multiline code examples only inside <pre> tags, and not inside <source> tags or <syntaxhighlight> tags.

I might need to change the CSS of the <pre> tag directly; adding some different display, adding some margins, paddings, etc.

The site is in a certain RTL language so everything is written from right to left.

Should there be any long term problem working with CSS-modified <pre> in an RTL website?

Is there some Out-Of-Box MediaWiki feature that could at least aesthetically malfunction from this situation? 182.232.164.217 (talk) 19:24, 28 June 2019 (UTC)

No, there shouldn't be any problem. The developers have done a lot of work on RTL languages.
If you do run into problems, please let us know. MarkAHershberger(talk) 19:35, 28 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I get this done ? 2610S (talk) 22:04, 29 June 2019 (UTC)

Try Snippets/Open external sidebar links in new window. AhmadF.Cheema (talk) 00:21, 30 June 2019 (UTC)
@AhmadF.Cheema Please explain, for Ex: if I want to put https://www.mediawiki.org in my sidebar, and mention Link to mediawiki so I write in MediaWiki:Sidebar page ** https://www.mediawiki.org/|Link to mediawiki, but it opens on the same page, how should I write that it should open on new page.
Thanks 2610S (talk) 04:44, 30 June 2019 (UTC)
@AhmadF.Cheema Please explain, for Ex: if I want to put https://www.mediawiki.org in my sidebar, and mention Link to mediawiki so I write in MediaWiki:Sidebar page ** https://www.mediawiki.org/|Link to mediawiki, but it opens on the same page, how should I write that it should open on new page.
Where should I write target or blank ?
Thanks 2610S (talk) 18:52, 30 June 2019 (UTC)
That snippet is JavaScript, so instead of LocalSettings.php, it probably needs to be included in something like MediaWiki:Common.js. AhmadF.Cheema (talk) 08:04, 1 July 2019 (UTC)
@AhmadF.Cheema When copying the code to Localsettings file I get this error
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '{' or '$' in /homepages/32/*********/htdocs/*****/mediawiki-1.32.0/LocalSettings.php on line 192
This is the line of
$( '#mw-panel, #panel' ) // #panel is for pre-1.17 compatibility 2610S (talk) 05:07, 30 June 2019 (UTC)
Another way is to set $wgExternalLinkTarget = '_blank'; however this will make all external links open in a new tab and not just the ones in the sidebar. [[kgh]] (talk) 10:22, 30 June 2019 (UTC)
That snippet is JavaScript, so instead of LocalSettings.php, it probably needs to be included in something like MediaWiki:Common.js. AhmadF.Cheema (talk) 14:19, 30 June 2019 (UTC)

SVG thumbnail creation Windows Server 2012 R2 IIS 8.5

Replacing symlink with copy fixed the problem. SVG.php is however called SvgHandler.php for MW version 1.36.2 (and instead located at line 281).

I'm running MW 1.31.1 on IIS 8.5 with Windows Authentication. I'm running into the problem of not being able to call PHP symlink (\includes\media\SVG.php, line 249), most likely due to permission issues. If I disable Windows Authentication for the site and use Anonymous Authentication, symlink works, but that's not an option. I've also tried adding the IIS Apppool user to list of use that can create symlink in Local Security Polices, no luck. It really needs Anonymous Authentication + administrator-level user. Also, my $wgTmpDirectory is set to a directory inside $wgUploadDirectory and the IIS Apppool user has read/write/modify/execute permissions on the $wgUploadDirectory directory.

Anyway, in SVG.php (\includes\media\SVG.php), line 234, instead of creating a temporary folder in wfTempDir() (lnPath), creating a symbolic link between lnPath and the srcPath (where the SVG file is located) and then provide the rasterize() function with the lnPath, I commented out that whole chunk of code and just provide the rasterize() function with the srcPath. It seems to work and MW can now create thumbnail directly in the thumbnail folder using the uploaded image path (srcPath) rather than the "local copy" a temporary folder in wgTmpDirectory.

My question is, what can go wrong? Not a rhetorical question, I genuinely want to know what the negative effects are. Does the rsvg-policy referenced in line 236 apply? Tommy H (talk) 23:40, 29 June 2019 (UTC)

Could you post a diff of the code changes you made so we can comment? MarkAHershberger(talk) 01:30, 1 July 2019 (UTC)
Hi Mark, what's the best way to show the diff? I've copied/pasted the code below, but for future reference, is there a best practice?
From MW 1.31.1, includes/media/SVG.php, line 234:
		// Make a temp dir with a symlink to the local copy in it.
		// This plays well with rsvg-convert policy for external entities.
		// https://git.gnome.org/browse/librsvg/commit/?id=f01aded72c38f0e18bc7ff67dee800e380251c8e
		/* TH-20190630 Fix problem with SVG thumb creation due to symlink
		$tmpDir = wfTempDir() . '/svg_' . wfRandomString( 24 );
		$lnPath = "$tmpDir/" . basename( $srcPath );
		$ok = mkdir( $tmpDir, 0771 );
		if ( !$ok ) {
			wfDebugLog( 'thumbnail',
				sprintf( 'Thumbnail failed on %s: could not create temporary directory %s',
					wfHostname(), $tmpDir ) );
			return new MediaTransformError( 'thumbnail_error',
				$params['width'], $params['height'],
				wfMessage( 'thumbnail-temp-create' )->text()
			);
		}
		
		$ok = symlink( $srcPath, $lnPath );
		*/
		/** @noinspection PhpUnusedLocalVariableInspection */
		/* TH-20190630
		$cleaner = new ScopedCallback( function () use ( $tmpDir, $lnPath ) {
			Wikimedia\suppressWarnings();
			unlink( $lnPath );
			rmdir( $tmpDir );
			Wikimedia\restoreWarnings();
		} );
		
		if ( !$ok ) {
			wfDebugLog( 'thumbnail',
				sprintf( 'Thumbnail failed on %s: could not link %s to %s',
					wfHostname(), $lnPath, $srcPath ) );
			return new MediaTransformError( 'thumbnail_error',
				$params['width'], $params['height'],
				wfMessage( 'thumbnail-temp-create' )
			);
		}
		
		$status = $this->rasterize( $lnPath, $dstPath, $physicalWidth, $physicalHeight, $lang );
		
		*/
		/* TH-20190630 changed $lnPath to $srcPath since symlink doesn't work in IIS
		*/
		$status = $this->rasterize( $srcPath, $dstPath, $physicalWidth, $physicalHeight, $lang );
Tommy H (talk) 23:22, 2 July 2019 (UTC)

(See this page, where it is a little easier to read.)

I just took the output of git diff and put it inside of <source lang="diff">:

modified   includes/media/SVG.php
@@ -234,6 +234,7 @@ class SvgHandler extends ImageHandler {
 		// Make a temp dir with a symlink to the local copy in it.
 		// This plays well with rsvg-convert policy for external entities.
 		// https://git.gnome.org/browse/librsvg/commit/?id=f01aded72c38f0e18bc7ff67dee800e380251c8e
+		/* TH-20190630 Fix problem with SVG thumb creation due to symlink
 		$tmpDir = wfTempDir() . '/svg_' . wfRandomString( 24 );
 		$lnPath = "$tmpDir/" . basename( $srcPath );
 		$ok = mkdir( $tmpDir, 0771 );
@@ -247,7 +248,9 @@ class SvgHandler extends ImageHandler {
 			);
 		}
 		$ok = symlink( $srcPath, $lnPath );
+		*/
 		/** @noinspection PhpUnusedLocalVariableInspection */
+		/* TH-20190630
 		$cleaner = new ScopedCallback( function () use ( $tmpDir, $lnPath ) {
 			Wikimedia\suppressWarnings();
 			unlink( $lnPath );
@@ -265,6 +268,10 @@ class SvgHandler extends ImageHandler {
 		}
 
 		$status = $this->rasterize( $lnPath, $dstPath, $physicalWidth, $physicalHeight, $lang );
+		*/
+		/* TH-20190630 changed $lnPath to $srcPath since symlink doesn't work in IIS
+		*/
+		$status = $this->rasterize( $srcPath, $dstPath, $physicalWidth, $physicalHeight, $lang );
 		if ( $status === true ) {
 			return new ThumbnailImage( $image, $dstUrl, $dstPath, $params );
 		} else {

MarkAHershberger(talk) 00:21, 3 July 2019 (UTC)

To answer your question "what can go wrong?", refer back to the gnome url and this comment: "Only allow file: to load other file: URIs from below the path of the base file."
With your changes someone could create a file: URI in an SVG that pointed to any file on the operating system of the server that is in the same directory of the file being rendered and load that file into the output. The change that you commented out keeps this from happening.
I would just try changing the symlink call to a copy call and verify that cleanup of the temp directories still works. MarkAHershberger(talk) 00:39, 3 July 2019 (UTC)
(Note, it looks like this is the only place that mediawiki creates a symlink.) MarkAHershberger(talk) 00:40, 3 July 2019 (UTC)
The symlink was created in response to this bug from early 2014.
It looks like your code just takes MediaWiki back to what was there before.
It looks like Tim suggested using copy in the original bug, as well. MarkAHershberger(talk) 00:56, 3 July 2019 (UTC)
MarkAHershberger(talk) 01:20, 3 July 2019 (UTC)
Replacing symlink() with copy() fixed the problem. I reverted the rest of the code back to original, cleanup of the temp directory still works.
diff --git a/includes/media/SVG.php b/includes/media/SVG.php
index 9085421af8..ee62483468 100644
--- a/includes/media/SVG.php
+++ b/includes/media/SVG.php
@@ -246,7 +246,10 @@ class SvgHandler extends ImageHandler {
                                wfMessage( 'thumbnail-temp-create' )->text()
                        );
                }
+               /* TH-20190704 Fixed problem with SVG thumb creation due to symlink, replaced symlink() with copy()
                $ok = symlink( $srcPath, $lnPath );
+               */
+               $ok = copy( $srcPath, $lnPath );
                /** @noinspection PhpUnusedLocalVariableInspection */
                $cleaner = new ScopedCallback( function () use ( $tmpDir, $lnPath ) {
                        Wikimedia\suppressWarnings();
Thanks, Mark. Tommy H (talk) 09:09, 4 July 2019 (UTC)

In MediaWiki 1.32.0, I have added, just for the sake of comfortability, some admin-oriented links to the Sidebar menu, but these links appear to anonymous users.

How could I hide these specific links for anonymous users (the rest of the Sidebar menu will look the same for everyone)?<br>I thought about selecting a class like ".not-logged-in" but found no such class. 49.230.97.196 (talk) 10:07, 30 June 2019 (UTC)

My guess is that you would need to hide them by id in common.js, and then reshow them using, eg, group-autoconfirmed.js DannyS712 (talk) 10:10, 30 June 2019 (UTC)
Have a look at the UserFunctions extension. This is how I do this by checking if a user is anonymous and if yes, do not show the link. [[kgh]] (talk) 10:14, 30 June 2019 (UTC)
Also possibly relevant, Extension:DynamicSidebar. AhmadF.Cheema (talk) 14:23, 30 June 2019 (UTC)
I just want to add classes from the menu-edit-page by myself (these will be added to those who are machine-created and already exist). 49.230.62.64 (talk) 17:36, 1 July 2019 (UTC)
Thank you all. @DannyS712 your suggestion seems best to me. 49.230.62.64 (talk) 18:02, 1 July 2019 (UTC)
No problem. Do you want me to right up some css for you? DannyS712 (talk) 18:09, 1 July 2019 (UTC)
@DannyS712 no, but thanks for your generosity. I don't use any CSS here; just JS. What CSS would you use? 49.230.62.64 (talk) 18:18, 1 July 2019 (UTC)
It’s easier to hide the elements with plain css, rather than injecting the css with js (assuming that is what you were going to do. If not, then what? I’m curious how else it could be done) DannyS712 (talk) 18:48, 1 July 2019 (UTC)
Can you show how to do it with pure CSS? Johnywhy (talk) 21:22, 3 February 2021 (UTC)
@DannyS712 in this case I do it by hiding and unhiding from JS; if there way a body class for anonymous surfing, I would use it to hide the elements only for anonymous users, but there isn't such body class as of MediaWiki 1.32.0 so I must hide and selectively unhide with JavaScript as you suggested. 49.230.62.64 (talk) 23:24, 1 July 2019 (UTC)

Upload Files, Error: mwstore://local-backend/local-public

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.


Same error as for this topic however the solution here was to change ownership of the /images/ directory to www-data:www-data (Debian, Ubuntu, ...), i.e. make it writable for the web server. [[kgh]] (talk) 10:18, 30 June 2019 (UTC)

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

MediaWiki Common's SVG previewer is bad

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.


(Sorry, I'm not sure where to report this).

The rendering of the labels on left hand side of the following image and a bunch of related ones: https://commons.wikimedia.org/wiki/File:Boost_chronogram.svg is totally wrong.

That image (used here) was uploaded in 2006 so I assume the previews worked back then*, so it seems that the breakage is recent. Is there anything that can be done about this regression? Apparently mediawiki uses ImageMagick by default to render previews, though I don't know what Mediawiki Commons/Wikipedia use. I can confirm ImageMagick renders it badly.

* In fact here is another variant where the author also uploaded a png version because of a much smaller preview rendering problem, showing it was otherwise working in 2006. TeeEmCee (talk) 13:16, 30 June 2019 (UTC)

For the records, I filed https://gitlab.gnome.org/GNOME/librsvg/issues/481 AKlapper (WMF) (talk) 13:49, 30 June 2019 (UTC)
Thanks. I guess either the previewer changed at some point or it's an librsvg regression? And that the solution is to hope that librsvg fix it, and in the meantime manually upload png fallbacks? I won't be doing so myself though, sorry, don't have time. TeeEmCee (talk) 14:14, 30 June 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Category:Pages with disabled graphs Category:Pages with graphs Category:Support desk archives Category:Support desk archives using deprecated source tags