Jump to content

Project:Support desk/Flow/2021/02

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

how do I contact the company about an issue

how do I contact the company about an issue 2601:544:4380:3A00:888C:BA1:6973:1002 (talk) 16:14, 1 February 2021 (UTC)

This is the wrong place to ask. Please return to the original website and look for an "about" link there. MarkAHershberger(talk) 16:32, 1 February 2021 (UTC)

ApprovedRevs: Array error

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


New mw installation. I received request for approval for two revisions.


on clicking approve, redirected to page url:

http://gunretort.xyz/index.php?title=Special:Moderation&modaction=approveall&modid=2&token=5eb8f47cacfa18c5916e2c94be9575566017c816%2B%5C


Which displays Error:

Warning: in_array() expects parameter 2 to be array, int given in /home/gunsywtx/public_html/extensions/ApprovedRevs/includes/ApprovedRevs.php on line 364

Extension:Approved Revs

Extension talk:Approved Revs#Bug with approvals Johnywhy (talk) 16:47, 1 February 2021 (UTC)

The code in question is
in_array( $namespace, $egApprovedRevsSelfOwnedNamespaces )
and, by default, $egApprovedRevsSelfOwnedNamespaces is an array.
How are you enabling ApprovedRevs? What do you have $egApprovedRevsSelfOwnedNamespaces set to? MarkAHershberger(talk) 17:54, 1 February 2021 (UTC)
This syntax worked for me on previous version of mediawiki
## APPROVED REVS
wfLoadExtension( 'ApprovedRevs' );
$egApprovedRevsAutomaticApprovals = true; # allow auto-approval of admin edits. 
$egApprovedRevsEnabledNamespaces[] = NS_DRAFT;	# Syntax for multiple namespaces, but unnecessary cuz NS_MAIN included by default. 
$egApprovedRevsSelfOwnedNamespaces = NS_USER ;
Johnywhy (talk) 18:29, 1 February 2021 (UTC)
The last line should be:
$egApprovedRevsSelfOwnedNamespaces[] = NS_USER ;
MarkAHershberger(talk) 18:31, 1 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to force tabs into the "More" dropdown?

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, running on:

MediaWiki 1.35.1
PHP 7.4.3 (fpm-fcgi)
MySQL 8.0.22-0ubuntu0.20.04.3

I want to force the "Watch/unwatch" tab (the star tab near the top right) into the "More" dropdown tab. What's the easiest way to go about this? BobaTea (talk) 18:22, 1 February 2021 (UTC)

Put $wgVectorUseIconWatch = false; in LocalSettings.php – Ammarpad (talk) 18:42, 1 February 2021 (UTC)
thank you so much! BobaTea (talk) 18:58, 1 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MW 1.35.1 VisualEditor fails trying to edit language subpage

VisualEditor fails with Error Contacting the Parsoid/RESTbase server (HTTP 404) on MW 1.35.1 trying to edit a language subpage on an English language wiki.

Installed software

Product     Version

MediaWiki     1.35.1

PHP     7.4.9 (cgi-fcgi)

MySQL     5.7.31-percona-sure1-log

ICU     63.1

Lua     5.1.5

Retry also fails.

On Cancel the WikiEditor is used. If I then click to switch to the VisualEditor it fails again but clicking the Try Again button returns error screen that indicates

There is no revision with ID 0. Ken Roy (talk) 21:42, 1 February 2021 (UTC)

clicking the Try Again button returns error screen that indicates.....
For me the same error (Error Contacting the Parsoid....) is raised every time I click on "Try Again"
MichelK 212.239.188.26 (talk) 16:38, 2 February 2021 (UTC)

New CheckUser, I signed the confidentiality agreement under my pseudo

Hello,

I'm a new CheckUser at WP:FR and I signed the confidentiality agreement under my peudonyme... Now I can't sign it again under my name. What can I do? Durifon (talk) 08:29, 2 February 2021 (UTC)

meta:Special:MyLanguage/Confidentiality agreement for nonpublic information/How to sign#Completion Tropicalkitty (talk) 09:13, 2 February 2021 (UTC)

Collection extension not working with external URL

We have several wikis which are accessible via an internal and an external URL. On each wiki we have the Collection extension running with weasyprint for PDF rendering. PDF rendering works flawlessly with the internal URL. It does not work with the external URL, however. So I called the weasyprint python scrip via the shell and gave it the external URL as parameter. Weasyprint then replied with a 401 error (Not authorized). Is this an error with the apache configuration? How do I configure apache correctly that PDF rendering via the external URL works? Ablum010777 (talk) 14:31, 2 February 2021 (UTC)

That sounds like a Weasyprint configuration question, whatever "Weasyprint" is? Malyacko (talk) 07:30, 3 February 2021 (UTC)
Weasyprint is the Python module that actually generates the pdf files. Ablum010777 (talk) 12:26, 11 March 2021 (UTC)

How to do Raw Export?

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.


My old wiki broke, prolly due to auto-upgrades.

Unfortunately, attempts to import my .sql fail. I tried importing to fresh installs of both new and older versions of mw.

So, my plan now is to rebuild the whole wiki from scratch.

i installed the latest mw and all extensions. No errors.

Now i need to manually rebuild all pages, categories, and other assets.

How can i get a simple text export of all pages, categories, and other assets, for manual copy/paste into the new wiki? Johnywhy (talk) 20:01, 2 February 2021 (UTC)

Solution:
Pages
Use dumpBackup.php to get page content. i used `--current` switch, to get just the latest version of each page.
Manual:DumpBackup.php
That outputs xml.
Then, for easy copy/pasting, convert to .csv or Excel format
https://onlinexmltools.com/convert-xml-to-csv
Then open in Excel or a .csv viewer. I found Google sheets works well.
https://www.becsv.com/csv-viewer.php
Fields of interest:
page__title
page__revision__text__#Text
page__revision__parentid
page__id
I believe subpages are identified by slashes in the page-title.
Categories
Do sql export of categorylinks table to get the categories (or just view the table in phpMyAdmin).
Namespaces
Namespaces are embedded in the page titles.
i'll leave this topic open for a little while, in case anyone wants to add info about other tables. Johnywhy (talk) 00:06, 3 February 2021 (UTC)
i would suggest instead figuring out why your sql dump backup failed (whats the error?). Thats probably going to be easier in the end.
You can do an xml backup, and reimport with importDump.php and then run rebuildAll.php, but may loose user data.
I dont know why you are trying to convert to csv/spreadsheet, but that's not an approach i would reccomend and sounds much harder.
P.s. namespaces are not embedded in page titles in the db. They are stored separately as a number. Bawolff (talk) 03:47, 3 February 2021 (UTC)
Import Results
Wow, the importDump.php actually worked. I can see there are some issues, but wow. Somehow, when i reviewed the MW manuals for moving and upgrading a wiki, i didn't notice any mention of importDump. I'd like to suggest importDump.php be mentioned on those pages, as another option when nothing else works (my sql imports failed).
Manual:Upgrading
Manual:Moving a wiki
Rebuilding
On completion, importDump suggests rebuildrecentchanges.php . You suggested rebuildAll.php. i'm not clear on the difference. Note, my dump includes only the latest versions of each page.
https://doc.wikimedia.org/mediawiki-core/master/php/rebuildall_8php.html
https://doc.wikimedia.org/mediawiki-core/master/php/rebuildrecentchanges_8php.html
Oh, here it is:
RebuildAll.php is equivalent to running rebuildtextindex.php followed by rebuildrecentchanges.php, and finally followed by refreshLinks.php.
Manual:Rebuildall.php#Details Johnywhy (talk) 05:34, 3 February 2021 (UTC)
i'm guessing the fail might be due to use of a lot of extensions, which may work differently in 1.35 than they did in 1.31.
i don't care about user-data, just content and structure: pages, categories, namespaces, etc.
i'll try your suggested scripts. Johnywhy (talk) 04:20, 3 February 2021 (UTC)
Many thanks, @Bawolff, you made my life easier! Saved me a ton of time and effort. Johnywhy (talk) 05:55, 3 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Moderation: Change made by another extension can't get approved.

Moderation Special page says:

(diff) . . bN Template:Extension DPL 04:07 . . +253‎ . . 127.0.0.1[?] (Template:Extension DPL) [Approve Approve all . . Reject Reject all] . . [Mark as spammer]

  • On click "Approve", i get: Your edit was ignored because no change was made to the text.
  • On click "Approve all", i get: Approved 0 edits. Failed to approve 1 edit: edit conflicts, etc.

The changed page says:

This page was automatically created. It serves as an anchor page for all invocations of Extension:DynamicPageList (DPL).

Here's my LocalSettings.php

wfLoadExtension( 'Moderation' );

$wgModerationTimeToOverrideRejection = 31556952;

$wgModerationNotificationEnable = true;

$wgGroupPermissions['sysop']['moderation'] = true; # Allow sysops to use Special:Moderation

$wgGroupPermissions['sysop']['skip-moderation'] = true; # Allow sysops to skip moderation

$wgGroupPermissions['automoderated']['skip-move-moderation'] = false;

$wgGroupPermissions['sysop']['skip-move-moderation'] = true;

$wgAutoConfirmCount = 10; # AFTER 10 APPROVED EDITS, THE USER WILL NO LONGER BE MODERATED.

$wgGroupPermissions['autoconfirmed']['skip-move-moderation'] = false;

Extension talk:Moderation#Change made by another extension can't get approved. Johnywhy (talk) 20:23, 2 February 2021 (UTC)

I'm having trouble uploading images to Miraheze now, i just get this message. Anyone know what's up with it? What do I do?

https://i.redd.it/l7xb7i3hp5f61.jpg

After I click Upload this pops up. This problem started quite suddenly, about a week ago, I could upload just fine.So does anyone know? 203.220.28.75 (talk) 00:42, 3 February 2021 (UTC)

you need to contact miraheze support Bawolff (talk) 03:43, 3 February 2021 (UTC)

What give newline on backslash-n?

Be sure to use an XML to CSV converter that preserves line-feeds without replacement. This one does: https://www.convertcsv.com/xml-to-csv.htm

i'm rebuilding a broken wiki. The mw version was from 2019, so prolly 1.31.

i'm manually recreated my pages in 1.35, with same extensions.

In my dumpBackup.php i see a bunch of `\n` which are intended to render as newline.

But the newlines aren't rendering.

i'm guessing it was done with an extension, but not sure. Could be ParserFunctions.

Here are the extensions:

ApprovedRevs

Arrays

CategorySuggest

CategoryTree

Cite

CiteThisPage

CodeEditor

ConfirmAccount

ConfirmEdit

DynamicPageList

Echo

ExternalData

Flow

Gadgets

HTMLTags

HidePageTabs

ImageMap

InputBox

Interwiki

LabeledSectionTransclusion

LocalisationUpdate

MagicNoCache

MobileFrontend

Moderation

MultimediaViewer

Nuke

OATHAuth

OAuth

PageForms

PageImages

ParserFunctions

PdfHandler

Poem

Purge

Renameuser

ReplaceText

Scribunto

SecureLinkFixer

SpamBlacklist

SyntaxHighlight_GeSHi

TemplateData

TextExtracts

TitleBlacklist

TopicTags

UrlGetParameters

UserGroups

UserMerge

Variables

VisualEditor

WhosOnline

WikiEditor Johnywhy (talk) 03:03, 3 February 2021 (UTC)

probably not an extension.
\n is c-style escape for newline. The components in mediawiki that use this style are PHP, javascript, json and sql. Notably xml does not use this style which is the format dumps are in, so normally i wouldnt expect that in an xml dump except in cases with a custom content model.
You may want to post a short example of the dump file. Bawolff (talk) 03:42, 3 February 2021 (UTC)
reading your earlier post, there is a definite possibility than the \n was introduced during one of your conversion to spreadsheet steps. Bawolff (talk) 03:49, 3 February 2021 (UTC)
Indeed. Here's a snippet of raw dump:
<text bytes="63" xml:space="preserve">https://www.mediawiki.org/wiki/Help:Contents [[Category:Help]]</text>
Here's the same after conversion to csv:
https://www.mediawiki.org/wiki/Help:Contents\n\n[[Category:Help]]
i could do a global replace in the csv, but i think would be better to change the converter parameters, if possible.
And here it is. This converter preserves newlines without substitution, and offers a bunch more options.
https://www.convertcsv.com/xml-to-csv.htm Johnywhy (talk) 04:07, 3 February 2021 (UTC)
New Issue:
Strangely, copy/paste from Google Sheet to MediaWiki page gives double-quotes around the entire body-text, even tho there are no visible quotes on the Google Sheet. Johnywhy (talk) 04:52, 3 February 2021 (UTC)

How to list all pages, all namespaces?

It seems Special:AllPages can only show one namespace at a time. Johnywhy (talk) 06:49, 3 February 2021 (UTC)

you would have to use an extension like DPL i think Bawolff (talk) 04:01, 4 February 2021 (UTC)

For example (this doesn't work):

Special:Search&profile=advanced

as in

https://mywiki.xyz/index.php?title=Special:Search&profile=advanced Johnywhy (talk) 07:12, 3 February 2021 (UTC)

does manual:sidebar help? You may have to use full urls starting with https:// Bawolff (talk) 17:06, 3 February 2021 (UTC)
i read the doc, but i don't see a way to add parameters, other than full url, as you mentioned. I was concerned a full url would open in a separate window, because i have the following in LocalSettings.php
$wgExternalLinkTarget = '_blank';
Is override possible? i just discovered, i asked about overrides three years ago. (Sorry, i'm rebuilding this wiki after not touching it since then.)
Project:Support desk/Flow/2018/05#h-How_to_override_$wgExternalLinkTarget_=_'_blank'_?-2018-05-04T12:50:00.000Z
Ok, now i see why i have the HTMLTags extension! Here's how i made it safe:
require_once "$IP/extensions/HTMLTags/HTMLTags.php";
$wgHTMLTagsAttributes['a'] = array( 'href');
But if i want ability to change target, then i think it needs to be
$wgHTMLTagsAttributes['a'] = array( 'href', 'target');
Correct? i'll try it.
Update: This doesn't work:
<a href='https://mywiki.xyz/index.php?title=Special:Search&profile=advanced' target='_self' />|Search Pages Johnywhy (talk) 18:08, 3 February 2021 (UTC)
i dont think you can do that in core very easily unless you remove the target _blank thing generally.
Some options include:
  • new extension that creates a rediret special page so you can use an internal link
  • using custom interwiki that includes that url parameter
  • custom sidebar extension
  • using js to modify the link Bawolff (talk) 04:03, 4 February 2021 (UTC)

Why don't skins work?

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.


New 1.35 install, with dump imported from older mw. It's stuck on the default skin.

Setting skin in preferences. Just a bundled skin, Timeless. Preview shows Timeless skin works fine.

Could it be my MediaWiki:Common.css?

/* MOVE TO TOPICTAGS GADGET */

@import url("/index.php?action=raw&ctype=text/css&title=MediaWiki:TopicTags.css");


/* USERS ONLINE IN FOOTER */

/* BREAKS TAG-HOVER. WHY?

MOVE TO FOOTER PAGE.

CURRENTLY IN MediaWiki:Lastmodifiedat

*/

#usersonline ul{

column-count: 7;

}


#usersonline ul li a{

font-size:1.5em;

}


/* BIG CHEAT BUTTON AT TOP OF HOMEPAGE */

/* MOVE TO WELCOME-PAGE SPECIFIC CSS */

/* text */

.page-Portal_Welcome #CheatLink > a{

    color: white;

    background-color: #003300;

    border: 8px solid orange;

    border-radius: 25px;

    padding:20px;

}


/* arrows and borders */

.page-Portal_Welcome #CheatLink{

    font-size: 1.5em; /* affects text too */

    color:orange;

    margin-bottom:200px;

}


/* homepage toc floating upper-left, but breaks on window-resize */

.page-Portal_Welcome #toc{

    top:-80px;

    position:relative;

    float:left;

    margin:-40px 60px -70px 0px;

}


/* END HOMEPAGE */


/* non-home pages */

#toc{

    float:left;

    margin:0em 3em 1em 0em;

}


/* title */

#firstHeading{

    text-align: center;

    font-family:Trebuchet MS   ;

    font-size:2.5em;

}


/* LOGO */

#mw-panel{

    top:0px;

    /* keep panel flush left */

    padding-left: 0;

    background: linear-gradient(to right, white, lightgray);

}


.mw-wiki-logo{

    border-radius: 0px 15px 15px 0px;

}


#p-logo a{

    background-size: 100%;

    background-position: left top;

    width:100%;

    height: 100%;

}


#p-logo {

    width:100%;

    height:8.5em;  /* has to match size of actual image-file, because logo is a background image. Seems would be easier to work with if img instead of background. */

}


#toc{border-radius:15px}


/* fonts */

.mw-whatlinkshere-tools{

    display:none;

}


/* stick toolbar to top */

#p-personal{

    position:fixed;

    background: rgb(255,255,255);

}


#content{

    /* match left-edge of content area to width of panel. Where does panel get it's size? */

    margin-left:8.7em;

    /* make things curvy */

    border-radius:0px 15px 15px 15px

}



/* HEADLINES -- ALL HEADINGS H1 TO H6*/

.mw-headline{

    font-family:Trebuchet MS   ;

/*    font-weight:bold; */

}


/* wish i could do the following with .mw-headline, but seems overridden by skin https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/06#h-Can%27t_Style_.mw-headline_Top%3F-2018-06-19T14%3A15%3A00.000Z */

/* FIRST TRY, FAILS FOR NON-ADMINS

h2>span{

    margin-top: 55px;

}


h3>span{

    margin-top: 40px;

}

*/


/* 2ND TRY, WORKS SAME FOR NON-ADMINS */

#mw-content-text > div > h1 {

    margin-top: 60px;

    border-bottom-width: medium;

    font-size:2.2em;

}


#mw-content-text > div > h2 {

    margin-top: 50px;

}


#mw-content-text > div > h3 {

    margin-top: 30px;

}


#mw-content-text > div > h5 {

    font-size:.9em;

}


/* BODY TEXT */

.mw-body{

    font-size:1em;

    font-family: Tahoma,Verdana,Segoe,sans-serif;

    text-align: justify;

     }


/* TOC */

#toc{

    font-family:sans-serif;

    font-size:.8em;

}



/* ul attempts:

ul, li {

  all: none;

}


ul, li: initial;

  * {

    all: unset;

  }

*/


/* Supposed to hide Above/Below Preview. Not working.

#wpPreviewWidget {

   display:none;

} */


/* Hide Above/Below Preview. */

#wikiPreview{

    display:none;

}


/* Hide extra info on WhatLinksHere page

.mw-whatlinkshere-tools{

    display:none;

} */


/* Supposed To change bullet icon to a circle.

   Not working. Prolly cuz supposed to Set this in the theme.less */


@import "mediawiki.mixins"; Johnywhy (talk) 07:58, 3 February 2021 (UTC)

See Help:Locating broken scripts if you want to find out if custom CSS is involved. Malyacko (talk) 08:15, 3 February 2021 (UTC)
just browser cache. Strange, i thought Ctrl-F5 or Shift-F5 in Chrome clears cache for the active page. Johnywhy (talk) 08:26, 3 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to subscribe only to my own topic in Talk, and not "New topic created"

Would like to do this globally, including pages already subscribed to. Johnywhy (talk) 08:28, 3 February 2021 (UTC)

i dont think thats possible generally.you have to watch the thread but not have the page in general on your watchlist. Bawolff (talk) 03:57, 4 February 2021 (UTC)
"you have to watch the thread but not have the page"
but it seems i have to watch the page. i cant just watch the thread.
My notices are loaded with "New topics on page". I don't want those.
Each notice has a 3-dots menu which says "Stop watching new activity on [page-name]". If i click it, i get "You are no longer watching the page. This will not affect individual topics you are watching."
it seems i've been getting subscribed to the whole page whenever i subscribe to a topic, but i could be wrong. Will check. Johnywhy (talk) 13:31, 4 February 2021 (UTC)

Missing input-field on Special:MovePage in mediawiki 1.35.1

On the Special:MovePage, the input field is missing from the form in my 1.35.1 install. I cannot move pages unless I add the missing input tag inline in the html before submitting. The <input statement in the html is missing completely. The reason-input field (wpReason) is there, and is editable, bit not the wpNewTitle.


Workaround: Using DevTools in chrome, I can manually edit the HTML, copy the wpReason-input tag to wpNewTitle-div, and give the new tag name wpNewTitle. Returning to page, the field is now visible and editable, and the form submittable doing a move for the page in question. Smultring76 (talk) 08:36, 3 February 2021 (UTC)

Download and install again MediaWiki. The current MediaWiki 1.35.1 has been tested and works. The field is there. Ciencia Al Poder (talk) 14:24, 3 February 2021 (UTC)
also chdck if any of your local js/css is breaking things (add ?safemode=1 to end of url) or any extensions. Bawolff (talk) 03:55, 4 February 2021 (UTC)

confirmation email failure

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


What might cause confirmation emails from MediaWiki 1.35.1 to fail? I cannot receive confirmation emails for my user account. I have tried multiple web browsers and multiple email providers. Nicole Sharp (talk) 08:46, 3 February 2021 (UTC)

https://nikkisandbox.dreamhosters.com/wiki/special:version

https://nikkisandbox.dreamhosters.com/info.php Nicole Sharp (talk) 08:46, 3 February 2021 (UTC)

Solved! This is an issue specific to MediaWiki installations on DreamHosters.com. The way to solve this is by changing $wgEmergencyContact and $wgPasswordSender in LocalSettings.php to an email address hosted by DreamHosters.com (so that the email is sent from the same domain that the wiki is hosted on). More info: https://help.dreamhost.com/hc/articles/215036118/. Nicole Sharp (talk) 17:22, 3 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MYSQL 5.6.40 is Compatible with Mediawiki 1.35.0

Hello Team,

Is MYSQL 5.6.40 is Compatible with Mediawiki 1.35.0?


Thanks 132.154.187.183 (talk) 11:43, 3 February 2021 (UTC)

Have you checked the Compatibility page? Peculiar Investor (talk) 12:00, 3 February 2021 (UTC)
As this was posted again: See Compatibility#Database Malyacko (talk) 08:19, 4 February 2021 (UTC)

Edit MediaWiki created Page

Hello,
how can I edit a page, which is automatically generated by MediaWiki?
thanks Onmiy (talk) 13:02, 3 February 2021 (UTC)
The same way you edit other pages – Ammarpad (talk) 13:48, 3 February 2021 (UTC)
More details: I want to edit the File:.... page and customize the content on this page. Onmiy (talk) 13:10, 3 February 2021 (UTC)
You can also edit it the same way you edit any other page, granted you've the required permission. But if want upload images, see Upload, you should not attempt editing the `File:` page in that case. – Ammarpad (talk) 13:50, 3 February 2021 (UTC)
I want to edit a table, which is automatically generated on this page. Clearer: I want to change the name of a title, bc it can be misunderstood. Onmiy (talk) 14:19, 3 February 2021 (UTC)
when i try to edit the page, it just shows me the comments on the page. Onmiy (talk) 14:20, 3 February 2021 (UTC)
You don't explain what is actually blocking you from editing, which exact steps you perform, what exactly you see, and we don't know what "comments on the page" means exactly. A link to the web page that you want to edit would also help (if it is public). Malyacko (talk) 14:53, 3 February 2021 (UTC)
the autogenerated parts of the image page are controlled by pages that start with MediaWiki:. See specisl:allmessages for a list. You can also try adding ?uselang=qqx or &uselang=qqx (depending if the url already has a ? In it) to see which part of the page is controlled by which mediawiki nsmespace page. Bawolff (talk) 03:53, 4 February 2021 (UTC)

Forgot user name

Unfortunately Wiki doesn't have a function for when you forget user name . I now have 3 accounts. Both Wiki and I are dumb Ihuntley122 (talk) 16:27, 3 February 2021 (UTC)

@Ihuntley122 It has: You select "Log in", then select "Forgot your password?", and enter your email address associated with your forgotten username. Malyacko (talk) 16:55, 3 February 2021 (UTC)

Image Deletion

I posted a handful of images onto wiki when I was younger as my own work and as my old username. I'd like to update them - how can I do that? (Preferably would like to delete them now that they aren't in use but I'm assuming that isn't an option?)


File:Western Australia Police Toyota hilux 'Paddy-Wagon' (cropped).jpg

File:Western Australia Police Toyota hilux 'Paddy-Wagon'.jpg

File:VE Commodore Interrior.jpg

File:Lord Mayor of Perth Lisa Scaffidi posing for a photo shoot with Commissioner of Police Karl O'Callahan.jpg

File:Western Australia Police VE Commodore .jpg

File:Highway Patrol in Regional WA.jpg Alias1423 (talk) 17:26, 3 February 2021 (UTC)

@Alias1423 Hi, all those files are hosted on Wikimedia Commons. Please ask in a forum on Wikimedia Commons about their policies. Thanks. Malyacko (talk) 20:16, 3 February 2021 (UTC)

Special:SpecialPages broken after move

I've recently moved a wiki on 1.33 to a Linode instance (visible temporarily sans-https here while I investigate this issue: http://codex.ragnarokraven.net/rtw/index.php/Main_Page ), however I've run into a strange issue: Special:SpecialPages either gives me an internal error, or, if I remove the file I added to get it to do this, HTTP 500.

The HTTP 500 seems to point at the include for Special:FewestRevisions (/include/specials/SpecialFewestrevisions.php) being the culprit, but creating a duplicate of the real file (that has Revisions properly capitalised) simply leads to an internal error on MediaWiki with no further information.

Any ideas? 142.162.230.68 (talk) 18:24, 3 February 2021 (UTC)

sounds a bit like you might have a mix of files from multiple versions of mediawiki. Please make sure you only have a single version.
Also be sure to enable php error reporting and include the text of the error message. See How to debug Bawolff (talk) 03:50, 4 February 2021 (UTC)

Restoration from backup

I'm unfamiliar with MediaWiki, so forgive me if the answer is obvious, but I want to make sure of something. When it comes to restoring a wiki from a backup, the database and the wiki content are separate and must be backed up and restored separately, correct? 47.199.160.137 (talk) 21:22, 3 February 2021 (UTC)

Not quite: the database contains the wiki content, or at least the text parts of it (and other stuff). The data outside the database is the uploaded files, and yes this must be backed up and restored separately (in a default installation, it's the images/ directory). See backing up a wiki for more info. Sam Wilson 02:09, 4 February 2021 (UTC)

Why does WikiSysOp and Admins have fewer rights than Users?

In Special:UserGroups, WikiSysOp and Administrators have only one permission (if that's what the checkboxes mean):

"Be notified via email about newly approved account requests"

Users and bots, on the other hand, seem to have many more rights.

No one, it seems, has ALL rights.

i'm confused. Why don't WikiSysOp and Admins have all rights? Johnywhy (talk) 21:39, 3 February 2021 (UTC)

you can set up rights however you want (the groups you mentioned dont sound standard). Generally speaking if someone is an admin, they are both an admin and a user, so no need to duplicate.
See also special:listgrouprights Bawolff (talk) 03:48, 4 February 2021 (UTC)
"the groups you mentioned dont sound standard"
Which? WikiSysOp and Administrators aren't standard? Johnywhy (talk) 14:14, 4 February 2021 (UTC)
there is a default group called sysop (often displayed as Administrator). I have never heard of WikiSysOp. It sounds like something custom in your install. Bawolff (talk) 05:49, 5 February 2021 (UTC)
Thx. WikiSysOp must have come from Softaculous.
I'm still confused why Administrators don't have full rights. Johnywhy (talk) 21:36, 5 February 2021 (UTC)
You better should ask the owner of the wiki you're talking about. We CAN'T answer because we don't know why the wiki owner did configure the user rights that way. Tim (SVG) 02:49, 6 February 2021 (UTC)
@SVG i am the owner of the wiki i'm talking about. i am trying to understand how the permissions work. Johnywhy (talk) 18:50, 6 February 2021 (UTC)

Last-Modified headers without object cache

I'm setting up a new MediaWiki (my first time). I've tried it on two hosts, one uses Nginx, the other Apache with php-fgp. On the nginx host, the If-Modified-Since/Last-Modified headers are working fine, but on the Apache host, the server always sends Last-Modified with the current date for index.php, so the cache is never used. This only happens for index.php - requests to load.php and static resources are being cached fine. Is there an obvious setting I'm missing? Adam Millerchip (talk) 02:53, 4 February 2021 (UTC)

I wonder if this could be related to the $wgMainCacheType setting? The nginx server is using CACHE_ACCEL, but the apache server doesn't have a a cache available so is set to CACHE_NONE. I guess if it's using the cache to determine the last-modified date, that would be why. It's just a guess, though. Adam Millerchip (talk) 12:19, 4 February 2021 (UTC)
It was the cache - nothing to do with the web server. I enabled APCu, set CACHE_ACCEL, and now it's working. Adam Millerchip (talk) 15:35, 4 February 2021 (UTC)
...Well APCu isn't installed. So that was wrong. 🤷‍♂️ Adam Millerchip (talk) 16:39, 4 February 2021 (UTC)
i dont think its based on cache. Should be based on the page_touched db field (along with other factors, including the mtime of LocalSettings.php and some other cache checks.)
You could try enabling mediawiki debug log (see How to debug) see of it says anything useful. Bit of a long shot. Bawolff (talk) 05:47, 5 February 2021 (UTC)
Thanks for that - it gave me an idea of somewhere to look.
I'm seeing on the version that doesn't use the cache that it gets a cache miss for the user, looks the user up, and then doesn't use the cache due to something do to with the user? The page last modified is definitely before the If-Modified-Since value.
The other system doesn't get a cache miss, there is no log about looking up the user.
No cache version
User: cache miss for user 1
...
OutputPage::checkLastModified: client sent If-Modified-Since: 2021-02-05T15:07:24Z
OutputPage::checkLastModified: effective Last-Modified: 2021-02-05T15:10:56Z
OutputPage::checkLastModified: STALE, page=2021-02-02T16:43:22Z, user=2021-02-05T15:10:56Z, epoch=2021-02-05T15:02:02Z
Cache version
OutputPage::checkLastModified: client sent If-Modified-Since: 2021-02-05T15:16:22Z
OutputPage::checkLastModified: effective Last-Modified: 2021-02-05T15:16:22Z
OutputPage::checkLastModified: NOT MODIFIED, page=2021-02-04T10:55:25Z, user=2021-02-05T15:05:57Z, epoch=2021-02-05T15:16:22Z
The investigation continues... Adam Millerchip (talk) 15:37, 5 February 2021 (UTC)
When pages are viewed by users, they're not cached AFAIK, because there may be changes not related to the content itself. For example, a user visits page A, then goes to Special:Preferences, and changes language, skin or other setting that would affect viewing the page. Then, if the user returns to view page A again, it should not get it from the cache. Ciencia Al Poder (talk) 17:15, 5 February 2021 (UTC)
Thanks, that makes sense. But it doesn't explain why the pages are cached on the nginx server, even for logged in users. Adam Millerchip (talk) 23:52, 5 February 2021 (UTC)
Comparing the logs in more detail.
The main difference seems to be that the version with APCu available is using that for caching, instead of the database or no cache:
[session] SessionManager using store APCUBagOStuff
vs
[session] SessionManager using store SqlBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
When then causes this to happen, only on the non-APCu host:
[objectcache] fetchOrRegenerate(global:user:id:blah:1): miss, new value computed
So maybe this "new value computed" is the problem. The only thing I can think of is that the object cache is using EmptyBagOStuff, and somehow generating the current time for the user's mQuickTouched. I checked the database, and the actual touched date has not changed. 🤨
c.f. https://github.com/wikimedia/mediawiki/blob/3a39e433d8db95286cce318a58b31569cf6939ca/includes/user/User.php#L2316-L2339
I'm not sure if this is a bug, but it looks like there's nothing I can do about it, so I'm giving up for now. Adam Millerchip (talk) 08:46, 7 February 2021 (UTC)
Spoke too soon. I commented out this line and now it's using the browser cache. Adam Millerchip (talk) 08:57, 7 February 2021 (UTC)

「mwstore://local-backend/local-public/7/79/Liuyi.jpg」Cannot open the lockfile

I try a lot of efforts. But fail to upload photo to images.

I did

chmod -R 777 images

chown apache -R images

chown -R apache:apache images

restorecon -R images


Also change LocalSettings.php

#$wgUploadDirectory = "/var/www/html/wikij/images";

$wgUploadPath = "/var/www/html/wikij/images";


please help me. thank a lot Weijun (talk) 03:28, 4 February 2021 (UTC)

CODE TRANSLATE

Not sure if this is the correct place to post this, but would it be possible to add a MediaWiki extension that will automatically replace instances of <code> with <code translate="no">, and render the TRANSLATE attribute for the displayed HTML?

There is still an ongoing bug in MediaWiki that prevents rendering the TRANSLATE attribute to HTML, but having translate="no" on CODE elements is important, since automatic translation of computer code into a different human language could introduce serious errors if the code is altered and then copied. Having an extension to automatically insert and render the TRANSLATE attribute specifically for CODE elements (which should never be translated) would be really helpful. For example, writing "CODE element" would have the word "code" translated, but writing "code element" would not translate the word "code."

Nicole Sharp (talk) 05:17, 4 February 2021 (UTC)

Thank you to make us aware of this issue.
Our bug tracking and feature request system opened an issue in 2017 to solve this: phab:T161486
There is another item definitely not supposed to be translatable, even if content may be rather English and some human language involved: <syntaxhighlight> I think that one deserves this attribute always.

Ah, and it is not really a bug but a feature. For security reasons we disallow all attributes as long we do not permit usage. PerfektesChaos (talk) 08:24, 4 February 2021 (UTC)

For syntaxhighlight I have created a request phab:T273873 now. PerfektesChaos (talk) 12:48, 4 February 2021 (UTC)
Oh, and I guess I have seen you in that task editing in 2018. Well, if it is in Phabricator already it does not accelerate anything by a support desk question. PerfektesChaos (talk) 13:28, 4 February 2021 (UTC)
It would be good for MediaWiki to recognize the TRANSLATE attribute for general use, but my original question was whether this could be solved with a MediaWiki Extension instead. Specifically to dynamically add and display the TRANSLATE attribute for certain elements. Nicole Sharp (talk) 07:07, 6 February 2021 (UTC)
If you attempt to catch all HTML elements this seems to be a real challenge.
  • If you want to catch <code> then you might succeed with your private extension.
  • You need to inform the parser that your extension will deal with all <code> elements. Then you will receive the attributes and the current content of the element.
  • There is a similar case with <pre> which looks like an HTML element but is caught by MediaWiki.
  • The element is cut off the parsed text (“striped”), and the outcome of your extension will be inserted finally at the same position. This would bypass the element consumption by the parser, which will swallow all unknown attributes like translate=.
  • Please note that you are responsible to parse the element content. Meaningful italic or bold markup might occur, and any other Wikisyntax is permitted inside, like template transclusion. You need to preserve permitted attributes and ask to parse the content. The <pre> element is not doing this, which has the effect that it behaves like <nowiki> around contents.
  • I am not sure about the sequence the original code is processed by the parser, and parser might change over time and order is not necessarily stable. I guess the tag detection will happen quite early, and you get byte by byte the original wikitext code.
  • In general, the correct solution is to tell our parser that translate is no malicious attack wrt all HTML elements. An extension is a huge overhead to bypass phab:T161486 and open another maintenance issue which would leave a second open task. However, a special tag handler could ensure that <code> is never subject to translation.
Another issue: Why is translation trying to translate inside <code>? It would be better if translation software refrains from all those things on all HTML pages, not only generated by MediaWiki. PerfektesChaos (talk) 14:53, 7 February 2021 (UTC)
Yes, a smart machine translator should be ignoring text inside CODE elements to translate. I haven't tested this with every web translator though, and it's still better to explicitly tell the machine translator not to translate certain elements. For me personally, assuming that MediaWiki does eventually recognize the TRANSLATE attribute, a find-and-replace extension would save keystrokes by not needing to manually type translate="no" every time I type <code>. Nicole Sharp (talk) 18:50, 7 February 2021 (UTC)

MYSQL 8.0.23 is Compatible with Mediawiki 1.35.0

Hello Team,


I am using RHEl 7 is MySQL 8.0.23 compatible with Mediawiki 1.35.0.

I have checked Compatibility but did not get exact answer.


Thanks 132.154.148.71 (talk) 07:01, 4 February 2021 (UTC)

See Compatibility#Database which covers this question. Malyacko (talk) 08:14, 4 February 2021 (UTC)
Please don't create duplicate threads. Malyacko (talk) 08:18, 4 February 2021 (UTC)
No, Compatibility#Database does not indicate anything about MySQL 8.0+. It stops at MySQL 5.5.8+ Please double-check your answers before posting. Thanks! OOS1859 (talk) 16:49, 18 August 2021 (UTC)

CirrusSearch : Problem with french accent

Hello,

Content of multimedia text (pdf) are displayed with malformed french accent, in the extract below of search results (Multimedia link). French accent is correct in all site but not in the plain text content in elasticsearch.

Regards. Francois187 (talk) 09:10, 4 February 2021 (UTC)

Hi, which MediaWiki version do you use? Is this a public installation that you could link to? Malyacko (talk) 10:17, 4 February 2021 (UTC)
Hello,
Sorry, I use 1.35 version, it's private intallation. I think accents are incorrect in elasticsearch just for pdf contents orher searchs are ok.
Regards Francois187 (talk) 13:07, 4 February 2021 (UTC)
is the text layer of the pdf in question correct? E.g. if you use pdftotext commandline tool, does it do the accents correctly? Bawolff (talk) 05:44, 5 February 2021 (UTC)
Unfortunately no example has been given how “malformed french accent” does look like, but I guess it is some encoding like w:en:UTF-8. The snippet displayed below Special:search result entry is displayed as-is in document code, byte by byte, and not translated nor encoded. Gib Senf dazu! (talk) 09:09, 5 February 2021 (UTC)
Hello,
pdftotext give an empty file, I try some -enc parameter (UTF8, Latin1) and result is the same. Francois187 (talk) 09:32, 5 February 2021 (UTC)
Could you please describe precisely in which kind of view you did observe what, and submit a few words containing the malformed character? Gib Senf dazu! (talk) 09:39, 5 February 2021 (UTC)
Here an exemple of malformed character
int�r�t g�n�ral
The view is the result search, below link to pdf document there is a short text extract from pdf content with keyword found in bold. (for instance Test)
le Test int�r�t g�n�ral blabla blabla
Here the URI :
/index.php?title=Spécial:Recherche&profile=images&search=Test&fulltext=1 Francois187 (talk) 10:21, 5 February 2021 (UTC)
For more details accents are incorrect in file_text field in elasticsearch however characters are correct in source_text field for the same document. file_text is the text extract from pdf. Francois187 (talk) 10:33, 5 February 2021 (UTC)
As I wrote above: This document snippet is displayed as-is in document code, byte by byte, and not translated nor encoded.
Those byte sequences are not encoded, and PDF content is not wikitext content.
Meanwhile I wonder how you did manage to access PDF source code via Spécial:Recherche. The PDF source is located in namespace Media: = -2, while the media description page within File: = 6 is searched by Spécial:Recherche.
See this search. The word Policies is not part of media description but part of media source.
I also wonder where you did retrieve source_text field and file_text data. This is not part of interactive interface /index.php? but might be API:Search via /api.php or external tool. Gib Senf dazu! (talk) 10:46, 5 February 2021 (UTC)
I retrieve source_text and file_text directly inside elasticsearch with curl command. Malformed accent are generating during indexing processus. Francois187 (talk) 10:51, 5 February 2021 (UTC)
Hello,
Any Suggestions ? 185.24.186.214 (talk) 09:03, 8 February 2021 (UTC)
Hello,
We solved our problem, we can close. Francois187 (talk) 16:36, 9 February 2021 (UTC)
Having had the same problem following the import of my database into a new setup, the following solved it:
$wgShellLocale = "fr_FR.UTF-8"; # or another locale matching your language
Then run the following maintenance script from your install folder:
php maintenance/refreshImageMetadata.php
Then follow again the instructions in CirrusSearch's README to reindex content.
Optionally, you can accelerate the process by running:
php maintenance/runJobs.php FunkyBeats99 (talk) 17:22, 9 November 2022 (UTC)

How to use mw.user.options to get the preferences of Special:MobileOptions?

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


I am designing a tool, but I cannot get the preferences of Special:MobileOptions. Please help me. Pseudo Classes (talk) 12:59, 4 February 2021 (UTC)

You can find names of settings easily here:https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=&meta=userinfo&uiprop=options
advanced mobile contributions is mf_amc_optin for instance.
Some of the options there are only stored in LocalStorage however. Fontsize and expand sections. See also: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/27034735009d5ba5c67480843aae00c0762ccf3f/src/mobile.special.mobileoptions.scripts.jsTheDJ (Not WMF) (talkcontribs) 10:03, 5 February 2021 (UTC)
Thanks. However, does this mean I cannot get the option of expanding sections?
Sorry, I did not receive the notification. Pseudo Classes (talk) 07:39, 19 February 2021 (UTC)
You would have to read them from LocalStorage instead of the API.
storage.get( 'expandSections' ) === 'true' and storage.get( 'userFontSize' ). Using the mw.storage module —TheDJ (Not WMF) (talkcontribs) 09:12, 19 February 2021 (UTC)
Ok, I see. Thank you very much! Pseudo Classes (talk) 13:29, 21 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Module doesn't work

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 all. I have created a module just like in wikipedia, but it doesn't work.

Original template that requires module is here

I have created the same template at my wiki here and there is a mistake: Coordinates line 377: attempt to index field 'wikibase' (a nil value).

I have created module coordinates just like in wikipedia, and cannot understand why do I have a mistake.

Could you please help? Fokebox (talk) 14:29, 4 February 2021 (UTC)

wikibase is provided by the extension:wikibase extension to retrieve data from wikidata. You probably dont have that installed. Bawolff (talk) 05:43, 5 February 2021 (UTC)
Thank you, now it is clear Fokebox (talk) 18:24, 8 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to update MediaWiki on Synology NAS?

It was possible to get MediaWiki 1.33 via the package center installed on a Synology NAS. Now our users wanted to work with VisualEditor which is only available with version 1.35. So how is it possible to get an update for this NAS.

Best Regards 131.188.6.110 (talk) 14:54, 4 February 2021 (UTC)

Hi, in general, Manual:Upgrading. For questions about the package center and packages provided on some system, please ask in a support forum of that system. Malyacko (talk) 18:32, 4 February 2021 (UTC)

Removing rights in extension.json doesn't seem to be working

I'm wondering whether it's by design (so a feature) or a bug that Group Permissions can't be unset in extension.json. I've been trying to do

 "GroupPermissions": {
   "*": {
     "edit": false,
     "createpage": false,
     "createtalk": false
   },
   "user": {
     "edit": false,
     "createpage": false,
     "createtalk": false,
     "applychangetags": false
   },
 }

But this has no effect whatsoever. So I had to resort back to this in LocalSettings.php to make this work:

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;

$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['createtalk'] = false;

I couldn't find anything about this, whether extensions shouldn't unset permissions or whether this might be a bug? This page doesn't list any examples where a right is set to false either, so again, is that because it's not supposed to work?


I also tried setting the properties above in a function that is called by ExtensionFunction from the extension, with the same result: no change in permissions. The only place where these seem to have any effect is LocalSettings.php. Clausekwis (talk) 21:17, 4 February 2021 (UTC)

its not supposed to work. A true value takes precedence over a false in the event of a conflict.
If you want to override a true, use $wgRevokePermissions Bawolff (talk) 05:41, 5 February 2021 (UTC)
Thanks @Bawolff for your reply. Using $wgRevokePermissions is not an option in this case since I don't want to revoke the permission from users who may have multiple roles (may be a member of multiple groups).
Could you please explain, or point me to the section of code to check, why setting the value to false in LocalSettings.php works, but setting it in extension.json, a callback or ExtensionFunction doesn't work? Clausekwis (talk) 11:24, 5 February 2021 (UTC)
There's another point that appears to be illogical or inconsistent to me. On Manual:User_rights and Manual:$wgRevokePermissions, it's said that for $wgRevokePermissions:

Revoking a right with $wgRevokePermissions takes precedence over granting it with $wgGroupPermissions. If the right is revoked for even one of the user's groups, they will not have it, regardless of whether it's explicitly permitted by other groups.

Since every user, even someone in the sysop group is a member of the user group, it's not logical to me that they would retain (at least on Special:ListGroupRights) a right that has been removed from the user group. Clausekwis (talk) 11:58, 5 February 2021 (UTC)
> Since every user, even someone in the sysop group is a member of the user group, it's not logical to me that they would retain (at least on Special:ListGroupRights) a right that has been removed from the user group
Oh sorry, i thought that's what you wanted. Based on your later comment, setting it false from within a $wgExtensionFunction should mostly work but it depends how the original permission was set in the first place. Bawolff (talk) 17:05, 5 February 2021 (UTC)

Why isn't OasisContentWrapper inside mw-body-content?

I am trying to do an open-source port of Wikia's skin, Oasis, to vanilla MediaWiki, but I have a problem. I want to put "OasisContentWrapper" inside "mw-body-content", but it isn't, "mw-body-content" is empty. Code (under GPLv3):

<?php
/**
 * BaseTemplate class for the Oasis skin
 *
 * @ingroup Skins
 */
class OasisTemplate extends BaseTemplate {
	/**
	 * Outputs the entire contents of the page
	 */
	public function execute() {
		$html = '';
		$html .= $this->get( 'headelement' );
		$html .= Html::rawElement("div", ["class" => "OasisNavigationWrapper"],
			Html::rawElement("nav", ["class" => "OasisNavigation"],
				Html::rawElement("form", ["class" => "OasisNavigationSearchBar"]),
			)
		);
		$html .= Html::rawElement( 'div', [ 'id' => 'mw-wrapper' ],
			Html::rawElement( 'div', [ 'class' => 'mw-body', 'id' => 'content', 'role' => 'main' ],
				$this->getSiteNotice() .
				$this->getNewTalk() .
				$this->getIndicators() .
				Html::rawElement("div", ["class" => "OasisContentWrapper"],
					Html::rawElement("div", ["class" => "OasisPageHeader"],
						Html::rawElement( 'h1',
							[
								'class' => 'firstHeading',
								'lang' => $this->get( 'pageLanguage' )
							],
							$this->get( 'title' )
						)
					) .
					Html::rawElement( 'div', [ 'id' => 'siteSub' ],
						$this->getMsg( 'tagline' )->parse()
					) .
					Html::rawElement( 'div', [ 'class' => 'mw-body-content' ],
						Html::rawElement( 'div', [ 'id' => 'contentSub' ],
							$this->getPageSubtitle() .
							Html::rawElement(
								'p',
								[],
								$this->get( 'undelete' )
							)
						) .
						$this->get( 'bodycontent' ) .
						$this->getClear() .
						Html::rawElement( 'div', [ 'class' => 'printfooter' ],
							$this->get( 'printfooter' )
						) .
						$this->getCategoryLinks()
					) .
						$this->getDataAfterContent() .
						$this->get( 'debughtml' )
				)
			) .
			Html::rawElement( 'div', [ 'id' => 'mw-navigation' ],
				Html::rawElement(
					'h2',
					[],
					$this->getMsg( 'navigation-heading' )->parse()
				) .
				$this->getLogo() .
				$this->getSearch() .
				// User profile links
				Html::rawElement(
					'div',
					[ 'id' => 'user-tools' ],
					$this->getUserLinks()
				) .
				// Page editing and tools
				Html::rawElement(
					'div',
					[ 'id' => 'page-tools' ],
					$this->getPageLinks()
				) .
				// Site navigation/sidebar
				Html::rawElement(
					'div',
					[ 'id' => 'site-navigation' ],
					$this->getSiteNavigation()
				)
			) .
			$this->getFooterBlock()
		);

		$html .= $this->getTrail();
		$html .= Html::closeElement( 'body' );
		$html .= Html::closeElement( 'html' );

		echo $html;
	}

	/**
	 * Generates the logo and (optionally) site title
	 * @param string $id
	 * @param bool $imageOnly Whether or not to generate the logo with only the image,
	 * or with a text link as well
	 *
	 * @return string html
	 */
	protected function getLogo( $id = 'p-logo', $imageOnly = false ) {
		$html = Html::openElement(
			'div',
			[
				'id' => $id,
				'class' => 'mw-portlet',
				'role' => 'banner'
			]
		);
		$html .= Html::element(
			'a',
			[
				'href' => $this->data['nav_urls']['mainpage']['href'],
				'class' => 'mw-wiki-logo',
			] + Linker::tooltipAndAccesskeyAttribs( 'p-logo' )
		);
		if ( !$imageOnly ) {
			$language = $this->getSkin()->getLanguage();
			$siteTitle = $language->convert( $this->getMsg( 'sitetitle' )->escaped() );

			$html .= Html::rawElement(
				'a',
				[
					'id' => 'p-banner',
					'class' => 'mw-wiki-title',
					'href' => $this->data['nav_urls']['mainpage']['href']
				] + Linker::tooltipAndAccesskeyAttribs( 'p-logo' ),
				$siteTitle
			);
		}
		$html .= Html::closeElement( 'div' );

		return $html;
	}

	/**
	 * Generates the search form
	 * @return string html
	 */
	protected function getSearch() {
		$html = Html::openElement(
			'form',
			[
				'action' => $this->get( 'wgScript' ),
				'role' => 'search',
				'class' => 'mw-portlet',
				'id' => 'p-search'
			]
		);
		$html .= Html::hidden( 'title', $this->get( 'searchtitle' ) );
		$html .= Html::rawElement(
			'h3',
			[],
			Html::label( $this->getMsg( 'search' )->text(), 'searchInput' )
		);
		$html .= $this->makeSearchInput( [ 'id' => 'searchInput' ] );
		$html .= $this->makeSearchButton( 'go', [ 'id' => 'searchGoButton', 'class' => 'searchButton' ] );
		$html .= Html::closeElement( 'form' );

		return $html;
	}

	/**
	 * Generates the sidebar
	 * Set the elements to true to allow them to be part of the sidebar
	 * Or get rid of this entirely, and take the specific bits to use wherever you actually want them
	 *  * Toolbox is the page/site tools that appears under the sidebar in vector
	 *  * Languages is the interlanguage links on the page via en:... es:... etc
	 *  * Default is each user-specified box as defined on MediaWiki:Sidebar; you will still need a foreach loop
	 *    to parse these.
	 * @return string html
	 */
	protected function getSiteNavigation() {
		$html = '';

		$sidebar = $this->getSidebar();
		$sidebar['SEARCH'] = false;
		$sidebar['TOOLBOX'] = true;
		$sidebar['LANGUAGES'] = true;

		foreach ( $sidebar as $name => $content ) {
			if ( $content === false ) {
				continue;
			}
			// Numeric strings gets an integer when set as key, cast back - T73639
			$name = (string)$name;

			switch ( $name ) {
				case 'SEARCH':
					$html .= $this->getSearch();
					break;
				case 'TOOLBOX':
					$html .= $this->getPortlet( 'tb', $this->getToolbox(), 'toolbox' );
					break;
				case 'LANGUAGES':
					$html .= $this->getLanguageLinks();
					break;
				default:
					// @phan-suppress-next-line SecurityCheck-DoubleEscaped
					$html .= $this->getPortlet( $name, $content['content'] );
					break;
			}
		}
		return $html;
	}

	/**
	 * In other languages list
	 *
	 * @return string html
	 */
	protected function getLanguageLinks() {
		$html = '';
		if ( $this->data['language_urls'] !== false ) {
			$html .= $this->getPortlet( 'lang', $this->data['language_urls'], 'otherlanguages' );
		}

		return $html;
	}

	/**
	 * Language variants. Displays list for converting between different scripts in the same language,
	 * if using a language where this is applicable (such as latin vs cyric display for serbian).
	 *
	 * @return string html
	 */
	protected function getVariants() {
		$html = '';
		if ( count( $this->data['content_navigation']['variants'] ) > 0 ) {
			$html .= $this->getPortlet(
				'variants',
				$this->data['content_navigation']['variants']
			);
		}

		return $html;
	}

	/**
	 * Generates page-related tools/links
	 * You will probably want to split this up and move all of these to somewhere that makes sense for your skin.
	 * @return string html
	 */
	protected function getPageLinks() {
		// Namespaces: links for 'content' and 'talk' for namespaces with talkpages. Otherwise is just the content.
		// Usually rendered as tabs on the top of the page.
		$html = $this->getPortlet(
			'namespaces',
			$this->data['content_navigation']['namespaces']
		);
		// Language variant options
		$html .= $this->getVariants();
		// 'View' actions for the page: view, edit, view history, etc
		$html .= $this->getPortlet(
			'views',
			$this->data['content_navigation']['views']
		);
		// Other actions for the page: move, delete, protect, everything else
		$html .= $this->getPortlet(
			'actions',
			$this->data['content_navigation']['actions']
		);

		return $html;
	}

	/**
	 * Generates user tools menu
	 * @return string html
	 */
	protected function getUserLinks() {
		// Basic list output
		return $this->getPortlet(
			'personal',
			$this->getPersonalTools(),
			'personaltools'
		);

		// If your skin uses a dropdown or similar for the user links,
		// consider uncommenting and using the following instead for compatibility
		// with certain extensions (Echo especially):
		/*
		$personalTools = $this->getPersonalTools();

		$html = '';

		// Move Echo badges out of default list - they should be visible outside of dropdown;
		// may not even work at all inside one
		$extraTools = [];
		if ( isset( $personalTools['notifications-alert'] ) ) {
			$extraTools['notifications-alert'] = $personalTools['notifications-alert'];
			unset( $personalTools['notifications-alert'] );
		}
		if ( isset( $personalTools['notifications-notice'] ) ) {
			$extraTools['notifications-notice'] = $personalTools['notifications-notice'];
			unset( $personalTools['notifications-notice'] );
		}
		// Move ULS trigger if you want to better support the user options trigger
		// if ( isset( $personalTools['uls'] ) ) {
		//	$extraTools['uls'] = $personalTools['uls'];
		//	unset( $personalTools['uls'] );
		// }

		$html .= Html::openElement( 'div', [ 'id' => 'mw-user-links' ] );

		// Place the extra icons/outside stuff
		if ( !empty( $extraTools ) ) {
			$iconList = '';
			foreach ( $extraTools as $key => $item ) {
				$iconList .= $this->makeListItem( $key, $item );
			}

			$html .= Html::rawElement(
				'div',
				[ 'id' => 'p-personal-extra', 'class' => 'p-body' ],
				Html::rawElement( 'ul', [], $iconList )
			);
		}

		$html .= $this->getPortlet( 'personal', $personalTools, 'personaltools' );

		$html .= Html::closeElement( 'div' );

		return $html;
		*/
	}

	/**
	 * Generates siteNotice, if any
	 * @return string html
	 */
	protected function getSiteNotice() {
		return $this->getIfExists( 'sitenotice', [
			'wrapper' => 'div',
			'parameters' => [ 'id' => 'siteNotice' ]
		] );
	}

	/**
	 * Generates new talk message banner, if any
	 * @return string html
	 */
	protected function getNewTalk() {
		return $this->getIfExists( 'newtalk', [
			'wrapper' => 'div',
			'parameters' => [ 'class' => 'usermessage' ]
		] );
	}

	/**
	 * Generates subtitle stuff, if any
	 * @return string html
	 */
	protected function getPageSubtitle() {
		return $this->getIfExists( 'subtitle', [ 'wrapper' => 'p' ] );
	}

	/**
	 * Generates category links, if any
	 * @return string html
	 */
	protected function getCategoryLinks() {
		return $this->getIfExists( 'catlinks' );
	}

	/**
	 * Generates data after content stuff, if any
	 * @return string html
	 */
	protected function getDataAfterContent() {
		return $this->getIfExists( 'dataAfterContent' );
	}

	/**
	 * Simple wrapper for random if-statement-wrapped $this->data things
	 *
	 * @param string $object name of thing
	 * @param array $setOptions
	 *
	 * @return string html
	 */
	protected function getIfExists( $object, $setOptions = [] ) {
		$options = $setOptions + [
			'wrapper' => 'none',
			'parameters' => []
		];
		'@phan-var array{wrapper:string,parameters:array} $options';

		$html = '';

		if ( $this->data[$object] ) {
			if ( $options['wrapper'] === 'none' ) {
				$html .= $this->get( $object );
			} else {
				$html .= Html::rawElement(
					$options['wrapper'],
					$options['parameters'],
					$this->get( $object )
				);
			}
		}

		return $html;
	}

	/**
	 * Generates a block of navigation links with a header
	 *
	 * @param string $name
	 * @param array|string $content array of links for use with makeListItem, or a block of text
	 * @param null|string|array $msg
	 * @param array $setOptions random crap to rename/do/whatever
	 *
	 * @return string html
	 */
	protected function getPortlet( $name, $content, $msg = null, $setOptions = [] ) {
		// random stuff to override with any provided options
		$options = $setOptions + [
			// extra classes/ids
			'id' => 'p-' . $name,
			'class' => 'mw-portlet',
			'extra-classes' => '',
			// what to wrap the body list in, if anything
			'body-wrapper' => 'div',
			'body-id' => null,
			'body-class' => 'mw-portlet-body',
			// makeListItem options
			'list-item' => [ 'text-wrapper' => [ 'tag' => 'span' ] ],
			// option to stick arbitrary stuff at the beginning of the ul
			'list-prepend' => '',
			// old toolbox hook support (use: [ 'SkinTemplateToolboxEnd' => [ &$skin, true ] ])
			'hooks' => ''
		];
		'@phan-var array{id:string,class:string|array,extra-classes:string|array,body-wrapper:string,body-id:?string,body-class:string,list-item:array,list-prepend:string, hooks:string|array} $options';

		// Handle the different $msg possibilities
		if ( $msg === null ) {
			$msg = $name;
		} elseif ( is_array( $msg ) ) {
			$msgString = array_shift( $msg );
			$msgParams = $msg;
			$msg = $msgString;
		}
		$msgObj = $this->getMsg( $msg );
		if ( $msgObj->exists() ) {
			if ( isset( $msgParams ) && !empty( $msgParams ) ) {
				$msgString = $this->getMsg( $msg, $msgParams )->parse();
			} else {
				$msgString = $msgObj->parse();
			}
		} else {
			$msgString = htmlspecialchars( $msg );
		}

		$labelId = Sanitizer::escapeIdForAttribute( "p-$name-label" );

		if ( is_array( $content ) ) {
			$contentText = Html::openElement( 'ul',
				[ 'lang' => $this->get( 'userlang' ), 'dir' => $this->get( 'dir' ) ]
			);
			$contentText .= $options['list-prepend'];
			foreach ( $content as $key => $item ) {
				$contentText .= $this->makeListItem( $key, $item, $options['list-item'] );
			}
			// Compatibility with extensions still using SkinTemplateToolboxEnd or similar
			if ( is_array( $options['hooks'] ) ) {
				foreach ( $options['hooks'] as $hook ) {
					if ( is_string( $hook ) ) {
						$hookOptions = [];
					} else {
						// it should only be an array otherwise
						$hookOptions = array_values( $hook )[0];
						$hook = array_keys( $hook )[0];
					}
					$contentText .= $this->deprecatedHookHack( $hook, $hookOptions );
				}
			}

			$contentText .= Html::closeElement( 'ul' );
		} else {
			$contentText = $content;
		}

		// Special handling for role=search and other weird things
		$divOptions = [
			'role' => 'navigation',
			'id' => Sanitizer::escapeIdForAttribute( $options['id'] ),
			'title' => Linker::titleAttrib( $options['id'] ),
			'aria-labelledby' => $labelId
		];
		$class = is_array( $options['class'] )
			? $options['class'] : [ $options['class'] ];
		$extraClasses = is_array( $options['extra-classes'] )
			? $options['extra-classes'] : [ $options['extra-classes'] ];
		$divOptions['class'] = array_merge( $class, $extraClasses );

		$labelOptions = [
			'id' => $labelId,
			'lang' => $this->get( 'userlang' ),
			'dir' => $this->get( 'dir' )
		];

		if ( $options['body-wrapper'] !== 'none' ) {
			$bodyDivOptions = [ 'class' => $options['body-class'] ];
			if ( is_string( $options['body-id'] ) ) {
				$bodyDivOptions['id'] = $options['body-id'];
			}
			$body = Html::rawElement( $options['body-wrapper'], $bodyDivOptions,
				$contentText .
				$this->getAfterPortlet( $name )
			);
		} else {
			$body = $contentText . $this->getAfterPortlet( $name );
		}

		$html = Html::rawElement( 'div', $divOptions,
			Html::rawElement( 'h3', $labelOptions, $msgString ) .
			$body
		);

		return $html;
	}

	/**
	 * Wrapper to catch output of old hooks expecting to write directly to page
	 * We no longer do things that way.
	 *
	 * @param string $hook event
	 * @param array $hookOptions args
	 *
	 * @return string html
	 */
	protected function deprecatedHookHack( $hook, $hookOptions = [] ) {
		$hookContents = '';
		ob_start();
		Hooks::run( $hook, $hookOptions );
		$hookContents = ob_get_contents();
		ob_end_clean();
		if ( !trim( $hookContents ) ) {
			$hookContents = '';
		}

		return $hookContents;
	}

	/**
	 * Better renderer for getFooterIcons and getFooterLinks, based on Vector
	 *
	 * @param array $setOptions Miscellaneous other options
	 * * 'id' for footer id
	 * * 'class' for footer class
	 * * 'order' to determine whether icons or links appear first: 'iconsfirst' or links, though in
	 *   practice we currently only check if it is or isn't 'iconsfirst'
	 * * 'link-prefix' to set the prefix for all link and block ids; most skins use 'f' or 'footer',
	 *   as in id='f-whatever' vs id='footer-whatever'
	 * * 'icon-style' to pass to getFooterIcons: "icononly", "nocopyright"
	 * * 'link-style' to pass to getFooterLinks: "flat" to disable categorisation of links in a
	 *   nested array
	 *
	 * @return string html
	 */
	protected function getFooterBlock( $setOptions = [] ) {
		// Set options and fill in defaults
		$options = $setOptions + [
			'id' => 'footer',
			'class' => 'mw-footer',
			'order' => 'iconsfirst',
			'link-prefix' => 'footer',
			'icon-style' => 'icononly',
			'link-style' => null
		];
		'@phan-var array{id:string,class:string,order:string,link-prefix:string,icon-style:string,link-style:?string} $options';

		$validFooterIcons = $this->getFooterIcons( $options['icon-style'] );
		$validFooterLinks = $this->getFooterLinks( $options['link-style'] );

		$html = '';

		$html .= Html::openElement( 'div', [
			'id' => $options['id'],
			'class' => $options['class'],
			'role' => 'contentinfo',
			'lang' => $this->get( 'userlang' ),
			'dir' => $this->get( 'dir' )
		] );

		$iconsHTML = '';
		if ( count( $validFooterIcons ) > 0 ) {
			$iconsHTML .= Html::openElement( 'ul', [ 'id' => "{$options['link-prefix']}-icons" ] );
			foreach ( $validFooterIcons as $blockName => $footerIcons ) {
				$iconsHTML .= Html::openElement( 'li', [
					'id' => Sanitizer::escapeIdForAttribute(
						"{$options['link-prefix']}-{$blockName}ico"
					),
					'class' => 'footer-icons'
				] );
				foreach ( $footerIcons as $icon ) {
					$iconsHTML .= $this->getSkin()->makeFooterIcon( $icon );
				}
				$iconsHTML .= Html::closeElement( 'li' );
			}
			$iconsHTML .= Html::closeElement( 'ul' );
		}

		$linksHTML = '';
		if ( count( $validFooterLinks ) > 0 ) {
			if ( $options['link-style'] === 'flat' ) {
				$linksHTML .= Html::openElement( 'ul', [
					'id' => "{$options['link-prefix']}-list",
					'class' => 'footer-places'
				] );
				foreach ( $validFooterLinks as $link ) {
					$linksHTML .= Html::rawElement(
						'li',
						[ 'id' => Sanitizer::escapeIdForAttribute( $link ) ],
						$this->get( $link )
					);
				}
				$linksHTML .= Html::closeElement( 'ul' );
			} else {
				$linksHTML .= Html::openElement( 'div', [ 'id' => "{$options['link-prefix']}-list" ] );
				foreach ( $validFooterLinks as $category => $links ) {
					$linksHTML .= Html::openElement( 'ul',
						[ 'id' => Sanitizer::escapeIdForAttribute(
							"{$options['link-prefix']}-{$category}"
						) ]
					);
					foreach ( $links as $link ) {
						$linksHTML .= Html::rawElement(
							'li',
							[ 'id' => Sanitizer::escapeIdForAttribute(
								"{$options['link-prefix']}-{$category}-{$link}"
							) ],
							$this->get( $link )
						);
					}
					$linksHTML .= Html::closeElement( 'ul' );
				}
				$linksHTML .= Html::closeElement( 'div' );
			}
		}

		if ( $options['order'] === 'iconsfirst' ) {
			$html .= $iconsHTML . $linksHTML;
		} else {
			$html .= $linksHTML . $iconsHTML;
		}

		$html .= $this->getClear() . Html::closeElement( 'div' );

		return $html;
	}
}

AtomicMario (talk) 02:48, 5 February 2021 (UTC)

Just FYI not answering your question, but, I did build a skin based off of Oasis, see Skin:Cosmos. Universal Omega (talk) 01:33, 25 February 2021 (UTC)
Cosmos is a poor replication of the actual skin, and I have had numerous issues with it as a whole. Jkrosado (talk) 17:20, 9 April 2022 (UTC)
I know that Cosmos exists, but I have abandoned this and instead forking it from Wikia's source code. It uses a lot of Wikia-specific code and many features are not on the skin but as separate extensions, so this may be a hard job for just one person. AtomicMario (talk) 00:27, 26 February 2021 (UTC)
I would like to also not I spent 2 years trying to fork Fandom itself. It was much easier and cleaner to remake it as a skin, I think. Fandoms code base is an utter mess, not to mention the open source version is 1.19, so you'll also have to make it compatible with modern mediawiki if you want to use it on other versions, something it took even Fandom, months to do, and then did not open source it. Universal Omega (talk) 01:24, 26 February 2021 (UTC)

Extension list of links?

I store a lot of pdfs in my google drive and link directly from a page in the mediawiki to the files in my google drive.

Now i want to have a overview of all the links. I know i can use special:linksearch, but it only displays the url, not the name that i put on that link:


example:

if i put "google.drive.xyz" and name it "pdfxy" i will only see "google.drive.xyz" after i search for it with special:linksearch, so i dont know whats behind that link.


Cant find any extensions that will help me with that. Bedtry (talk) 09:00, 5 February 2021 (UTC)

i dont think that exists, you would probably have to creare your own. I dont even think this info is currently tracked in db Bawolff (talk) 21:08, 5 February 2021 (UTC)

enabling upload pdf

I enabled uploading pdf but on that page I get this message. What does it mean? pdf file has problem or a php extension or wikimedia itself?

File has insufficient data for an image. GPL Ghostscript 8.71: Unrecoverable error, exit code 1 convert: no decode delegate for this image format `/tmp/magick-9uL6qG5N' @ error/constitute.c/ReadImage/544. convert: no images defined `/tmp/transform_8e246748821a.jpg' @ error/convert.c/ConvertImageCommand/301 Farvardyn (talk) 09:14, 5 February 2021 (UTC)
It is using ImageMagick to convert/analyze your file and ImageMagick is reporting that error. Likely you are missing an optional installation option of imagemagick that is required. —TheDJ (Not WMF) (talkcontribs) 09:41, 5 February 2021 (UTC)
Thanks for trying to help. But this is the answer HostGator sent to us about this issue:
[~/public_html]# /opt/cpanel/ea-php72/root/usr/bin/php -m | grep imagick
imagick
I recommend contacting MediaWiki with the information we've provided you with and request that they specify what specifically is missing on our end as we are unable to find any issues at this time.
I do sincerely apologize for not being able to resolve this for you at this time, we ask that the developer provide us additional information in order to resolve the issue.
Please look further about this issue, Thanks Farvardyn (talk) 08:03, 16 February 2021 (UTC)
bump? Farvardyn (talk) 11:34, 18 February 2021 (UTC)
Ghostscript 8.71 is very old. Try upgrading to 9x version. – Ammarpad (talk) 17:14, 18 February 2021 (UTC)
This seems related to: https://phabricator.wikimedia.org/T188122
So basically, your specific PDF includes some JPX JPEG2000 images inside it and the version of imagemagick+ghostscript on the server doesn't seem to support that. When WMF updated their systems from Debian Jessie to Stretch the problem disappeared. Ghostscript 9.26. —TheDJ (Not WMF) (talkcontribs) 09:17, 19 February 2021 (UTC)

Installing OpenID Connect causes error

Hello,


I have recently installed OpenID / PlaggableAuth / OpenID connect php library and i get the following error when accessing the wiki


And I get this error:


https://pastebin.com/MuaCkuHV


What can I do? Wettissues (talk) 09:22, 5 February 2021 (UTC)

Error with the database

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, my computer crashed when XAMPP and my local wiki were on. So i had a problem with mysql that i solved in this way https://stackoverflow.com/a/63080034.

But, when i start my wiki again, it shows this error: "Cannot access the database: Unknown error (127.0.0.1)"

Do you know what can be wrong? Cible30 (talk) 15:54, 5 February 2021 (UTC)

mysql is probably broken or off Bawolff (talk) 18:40, 6 February 2021 (UTC)
And do you know what can i do to fix it?
I can try to reinstall XAMPP? Cible30 (talk) 19:16, 6 February 2021 (UTC)
However it isn't off because i turn on in the XAMPP control panel.
Then if i try to access at the database via phpmyAdmin it works and show me all the tables. If it can be still broken i can try to disinstall and reinstall all XAMPP or only mysql. But will i lose some data? Cible30 (talk) 11:08, 7 February 2021 (UTC)
I tried to disinstall and reinstall XAMPP but now the wiki give this error:
A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'it' AND lc_key = 'deps' LIMIT 1
Function: LCStoreDB::get
Error: 1932 Table 'wikidb.l10n_cache' doesn't exist in engine (127.0.0.1) Cible30 (talk) 10:17, 8 February 2021 (UTC)
les pompier sont de bon sauveur car ils sont la tous le temps sans les appeler ils sont la
voila se petit tournage est terminer
je vais aujourd' hui vous parlez des moteur électrique sa pollut énormément mais les moteurs a essence sont super polluant 193.50.175.38 (talk) 13:45, 8 February 2021 (UTC)
no way amstrong 193.50.175.38 (talk) 13:45, 8 February 2021 (UTC)
I resolved the issue reinstalling XAMPP and replace "ib_logfile0", "ib_logfile1" and "ibdata" files in the folder C:/xampp/mysql/data with the old files
I try to replace the files without reinstalling and nothing happen, maybe some mysql was broken but i don't know what Cible30 (talk) 08:18, 9 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Site keeps redirecting to localhost/%5C/%5C/my.url.example/page whenever I visit some 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.


Before anyone asks, I HAVE read Project:Support desk/Flow/2013/07#h-[RESOLVED]_Installed_MediaWiki_Successfully_-_but_keep_getting_redirected_to_loc-2013-07-16T13:44:00.000Z and my $wgServer is set to $wgServer = "https:\/\/my.url.example"; (obviously not that exact domain). I searched LocalSettings.php for anything that might be causing the problem but I didn't find anything that could (at least I'm pretty sure).


Does anyone have any ideas on what to do? CatObsession (talk) 16:19, 5 February 2021 (UTC)

I fixed it thanks to some helpful people on Discord: you're not supposed to have \s in your URL (so it should've been $wgServer = "https://my.url.example";) CatObsession (talk) 17:07, 5 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

TitleBlacklist and Titlewhitelist

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 defined https://www.familienwortschatz.de/wiki/MediaWiki:Titleblacklist and https://www.familienwortschatz.de/wiki/MediaWiki:Titlewhitelist, but no one can register with "Peter Mueller".

Can someone help me? Kujawa0708 (talk) 16:29, 5 February 2021 (UTC)

and in localsettings
$wgTitleBlacklistSources = array(
    array(
         'type' => 'localpage',
         'src'  => 'MediaWiki:Titleblacklist',
    ),
    array(
         'type' => 'url',
         'src'  => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw',
    ),
); Kujawa0708 (talk) 16:49, 5 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mobile users invariably getting "MediaWiki internal error"

MediaWiki 1.35.1, PHP 7.4.11 (litespeed), MySQL 5.6.49-cll-lve; MobileFrontend 2.1.0 (df4735d); http://hora.wiki/

A user reports that when using an Android phone they get an internal error on every page. The first part of the backtrace is reproduced below. It's very similar to a backtrace I received two weeks ago which can be seen in this Support Desk topic. Sadly, nobody responded to that one, and I still have that problem, but now I think this internal error is a separate issue.

The error is "Error from line 157 of .../includes/skins/Skin.php: Cannot use object of type RequestContext as array" and therefore seems related to this (closed) phabricator task. And, indeed, Vector is my default skin and MobileFrontend is installed (version info above). Does this have a simple solution, I hope?

Here's the partial backtrace; you can see more at the other topic linked above.

Thanks for any help.


MediaWiki internal error.

Original exception: [YBOSy-wP239zF@pt8dR6kAAAAE0]

/page/Welcome_to_HoraWiki! Error from line 157 of /home/larrydenenberg7/public_html/includes/skins/Skin.php: Cannot use object of type RequestContext as array

Backtrace:

#0 /home/larrydenenberg7/public_html/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(59): Skin->__construct(RequestContext)

#1 /home/larrydenenberg7/public_html/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(141): MobileFrontendHooks::getDefaultMobileSkin(RequestContext, MobileContext)

#2 /home/larrydenenberg7/public_html/includes/HookContainer/HookContainer.php(320): MobileFrontendHooks::onRequestContextCreateSkin(RequestContext, NULL)

#3 /home/larrydenenberg7/public_html/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)

... Larrydberg (talk) 02:29, 6 February 2021 (UTC)

"MobileFrontend 2.1.0 (df4735d)" is ancient code from August 2019. Please use the latest code in the corresponding branch (e.g. MediaWiki 1.35 = REL1_35 branch of an extension). Malyacko (talk) 08:44, 6 February 2021 (UTC)

BadMethodCallException on login

I have a new installation of MediaWiki 1.35.1 that seems to work at first glance, but any attempt to log in is met with an internal error page saying "[d1700f6814ea902ea0d03103] 2021-02-06 01:00:29: Fatal exception of type "BadMethodCallException"". In LocalSettings.php, I have $wgShowExceptionDetails set to true, but no other information is provided. I did a few searches that suggested the issue was related to a lack of encryption, so I followed the recommendations I saw and enabled the openssl extension in php.ini, but that didn't resolve the issue. Another post claimed that while normally not appropriate to use, setting $wgSessionInsecureSecrets to true would prevent the exception from appearing, however, even with it set to true, the exception still occurs.

What, if anything, can I do to resolve this issue, or at least get more information on the cause of the exception? 47.199.160.137 (talk) 02:51, 6 February 2021 (UTC)

try putting $wgShowExceptionDetails=true; earlier in your LocalSettings.php. make sure you capitalized and spelled it correctly. Try enabling php errors just to see. Bawolff (talk) 18:33, 6 February 2021 (UTC)

Securing logins without rate limiting or captchas

MediaWiki 1.34.2 with just one registered user of myself.
==My problem==
I am having trouble setting Rate limiting due to slowness from a common dependency (Memcache) and I don't want to use Captcha because of a minimalist approach by which I don't install any external extension besides ContactPage to ensure ease of maintenance and upgrading through time (as far as I know MediaWiki captchas require at least one external extension).
==My question==
How to solve my problem by securing my logins (preventing brute force attacks) without Rate limiting or Captcha?
Perhaps:
  • OpenID
  • Email login confirmation (2FA)
  • Relocating the login form to a new secret URL
  • Anything else
==Side note==
Manual:$wgPasswordAttemptThrottle Malyacko (talk) 08:40, 6 February 2021 (UTC)
PLEASE HELP 2001:44C8:4288:72A4:F98C:FD42:7216:317C (talk) 08:24, 6 February 2021 (UTC)
Please don't yell. Malyacko (talk) 08:40, 6 February 2021 (UTC)
I didn't yell :)
I found no alternative way, as I seek, in the linked page. 2001:44C8:4288:72A4:902C:4F30:842A:489A (talk) 09:10, 6 February 2021 (UTC)
@Malyacko
(I replied above from a smartphone were the last time I tried, tagging wasn't possible). 2001:44C8:4288:72A4:F98C:FD42:7216:317C (talk) 09:40, 6 February 2021 (UTC)
as i said in your last post, you have memcached setup wrong, so its doing nothing other than making things slow.
You should test to see if it works with CACHE_NONE, maybe it does. If not, installing php-apcu and using CACHE_ACCEL might be easier. Anyways, if you want features, use a host that supports your usecase. Bawolff (talk) 18:31, 6 February 2021 (UTC)

Блокировка

Cancel the lock in Wikipedia the reason for blocking vandalism is unknown this was not done Отменить блокировку в Википедии причина блокировки вандализм неизвестно такого не делал Kent7301 (talk) 11:37, 6 February 2021 (UTC)

@Kent7301 Which of the Wikipedias? Which steps to reproduce? Which full and exact error message? Malyacko (talk) 14:23, 6 February 2021 (UTC)

Adding a Google search box to a wiki page

I have a wiki where each page is mapped to an external fileserver directory. I want to add a search box to the page that allows site specific searches of the fileserver content. So on page London I'd have a box where I could input the text Hats, and that would generate a google custom search https://www.google.co.uk/search?q=site%3Afileserver.com/Places/London+Hats and all my pdfs with Hats would be returned.

Is my best approach to use the iframe extension embed a search page coded elsewhere, or is there a clever Mediawiki solution? Vicarage (talk) 11:37, 6 February 2021 (UTC)

I couldn't think of an easy way of adding a box that would submit an external url, so I coded [https://www.google.co.uk/search?q=site%3Afileserver.com/{{#rreplace:{{PAGENAME}}|[ ]|%20}} Search], which gives an initial failed search, but is set up for a valid one Vicarage (talk) 12:52, 7 February 2021 (UTC)
Set $wgDisableTextSearch = true. And then set the external service url at $wgSearchForwardUrl as documented on the manual page. This will make the native searchbox to always redirect the search to whatever site you set for the latter variable. – Ammarpad (talk) 20:24, 7 February 2021 (UTC)

Hey, i use a lot "whatlinkshere" and i wondered if there is a way to structure that.


For example how it is right now:

whatlinkshere:

a

b

c


How i want it is:

whatlinkshere:

1. Pages that are helpful for new users

c

2. Pages that are fun

a

etc.


So i kind of want to categorize the backlinks but have not found a way or a extension that works like that. Bedtry (talk) 19:38, 6 February 2021 (UTC)

You could use Extension:DynamicPageList3 queries in templates along with page categorisation, e.g.
{{#dpl:
| linksto = {{PAGENAME}} 
| category = Fun
| eliminate = all 
}}
I have not tested the above.
I use something similar. I can't remember why I used eliminate = all (reset = all is similar). I think it was to prevent a DPL-generated link, on page X, to page Y, from causing page Y to say "page X links here".
Or use Extension:Cargo to create relations between pages. Jonathan3 (talk) 22:50, 7 February 2021 (UTC)

Moving installation to a different folder on same server

I need to know what all I would have to change if I change the folder where MediaWiki is located....

Basically I have an install on www.subdomain.domain.org/wikiname/ and I want to change it to the root directory of the subdomain so it will just be located at www.subdomain.domain.org/. Do I need to modify any files? KPlummer1 (talk) 20:17, 6 February 2021 (UTC)

$wgScriptPath and maybe $wgArticlePath in LicalSettings.php (other path variables if you changed from default but most people dont)
If you setup any rewrite rules for short urls, those too. Bawolff (talk) 20:43, 7 February 2021 (UTC)

I can't upload excel .xlsx files

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 get this message:


The file extension ".xlsx" does not match the MIME type detected in the file (application / zip).

No problem with '.xls' files.


Version

MediaWiki 1.35.0
PHP 7.3.26 (fpm-fcgi)
SQLite 3.34.0
ICU 68.2
Elasticsearch 6.8.13


I've modified LocalSettings.php to add:
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc',

   'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',

   'pptx', 'ps', 'odt', 'ods', 'odp', 'odg', 'txt', 'html', 'zip',

   'sh', 'py'

);

$wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)

$wgStrictFileExtensions = false;

$wgVerifyMIMEType = false;


Doesnt' work.


I tried to delete 'xlsx' in this part of includes/libs/mime/MimeMap.php:

              'application/x-opc+zip' => [
                        'docx', 'dotx', 'docm', 'dotm', 'potx', 'ppsx', 'pptx', 'ppam', 'pptm', 'potm', 'ppsm',
                        'xltx', 'xlsm', 'xltm', 'xlam', 'xlsb', 'dwfx', 'xps' ],


so this files contains:

'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => [ 'xlsx' ], 'application/vnd.ms-excel' => [ 'xls', 'xlt', 'xla', 'xlsx' ],


Problem not solved.


Thanks Juliobm (talk) 09:35, 7 February 2021 (UTC)

Hi, see this post of mine on these support pages. There are a number of little things you have to edit. The thread is kind of long, but folks here helped me solve the problem of being able to allow most any extension I wanted to be uploaded. RedKnight7 (talk) 13:00, 7 February 2021 (UTC)
It might not solve your problem, but have you tried changing $wgVerifyMIMEType to $wgVerifyMimeType? Jonathan3 (talk) 22:42, 7 February 2021 (UTC)
Thank you RedKnight7 and Jonathan3
Changing $wgVerifyMIMEType to $wgVerifyMimeType solved the problem! Juliobm (talk) 15:29, 8 February 2021 (UTC)
Just wanted to add that I also had this problem with a file that was exported from Google Sheets. Re-saving it from Excel and re-uploading worked fine. Adam Millerchip (talk) 04:24, 21 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I hire you to help with my tiny wiki?

I'm looking for someone to help me with my tiny personal Mediawiki site on an hourly basis. I looked at the Professional development and consulting page but it only talks about big projects. All I want to do is pay someone by the hour while we screen share and you tell me what to do. For example I want to install a contact form and update my Mediawiki, which is several years old. You'll be paid for all the time you spend with me. It should be easy - dare I say relaxing - for someone will Mediawiki skills. Thanks if you can help! RedKnight7 (talk) 13:16, 7 February 2021 (UTC)

Help:Parser functions in templates/diq

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.


Can someone delete this page? It doesn't look like Zazaki language at all. It was translated into Turkish. —Baran ☪︎ 19:37, 7 February 2021 (UTC)

Hi, for issues about the mediawiki.org website, please see Current issues instead. Malyacko (talk) 20:17, 7 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to search all versions of a page with standard Graphical User Interface

API doesn't provide a GUI way to search history. Not resolved.

to find text within one of the versions Johnywhy (talk) 22:27, 7 February 2021 (UTC)

I think you would use action=query, prop=revisions for that. See API:Revisions - MediaWiki Aasim 02:05, 8 February 2021 (UTC)
thx -- no way in the user interface? Johnywhy (talk) 02:19, 8 February 2021 (UTC)
Oh... that? You can click on the "history" button to see the page history. If you were using code to search all versions of a page, then you would iterate using the MediaWiki API. Hope I was helpful.  :) Aasim 02:40, 8 February 2021 (UTC)
thx. It would be cool if the user interface search tool could search versions. Johnywhy (talk) 05:01, 8 February 2021 (UTC)
@Johnywhy you can suggest new features at https://phabricator.wikimedia.org/. Aasim 05:48, 8 February 2021 (UTC)
See How to report a bug instead, if there was some use case for this (so far there isn't). Malyacko (talk) 09:42, 8 February 2021 (UTC)
unclear how a request to search previous versions is a bug-report. Johnywhy (talk) 21:38, 8 February 2021 (UTC)
Unclear how that comment is relevant at all here. Malyacko (talk) 08:32, 9 February 2021 (UTC)
See phab:T22784, phab:T12643 and phab:T173730Ammarpad (talk) 09:59, 8 February 2021 (UTC)
Apparently not under development at this time. Thx Johnywhy (talk) 17:04, 9 February 2021 (UTC)
WikiBlame seems to offer this feature for WikiMedia projects. i'm trying to determine if it can be used on non-WikiMedia wikis.
https://meta.wikimedia.org/wiki/Help:Page_history#Search
Update: WikiBlame seems only for MediaWiki sites, like Wikipedia. Johnywhy (talk) 17:06, 9 February 2021 (UTC)

Making REST API calls inside a ProcessDialog

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


I am using OOUI to make a ProcessDialog which takes some options and then edits a page. I was wondering how do we make REST API calls such that we can still use the OO.ui.Error method and also close the dialog box if it was successful? Aasim 02:39, 8 February 2021 (UTC)

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

FaaS/PaaS hosting model, shared hosting for MediaWiki?

I can't go with an IaaS modeled hosting service; the prices are great, yes, but it's too much time for me about SMTP/MTA/DNS/CDN/Upgrades/Security installations and confs, thus I must go for a Fass/Pass hosting service.


My problem is that most FaaS/PaaS hosting services I know of, especially those of the "shared hosting" sub-model are WordPress-only-oriented in the bad case and WordPress-and-a-bit-of-Drupal-oriented in the less bad case.


If it's in order here, please recommend others and myself about an affordable, commonly-priced, FaaS/PaaS hosting service which respects and supports MediaWiki and also contains Memcahed configured for MediaWiki. Thanks in advance, 2001:44C8:4385:2288:576:15DB:25ED:14 (talk) 16:56, 8 February 2021 (UTC)

See Hosting services Malyacko (talk) 17:49, 8 February 2021 (UTC)
There are many options there including my current hosting provider and Memcached doesn't have its own column there.
I ask for an experience based recommendation for a declaratively MediaWiki friendly hosting plan with the following features:

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 post a link to a page on my wiki on Facebook, Facebook Appends a fbclid, which breaks the link. When clicked, user get "page doesn't exist".

This seems to happen only when my url includes an anchor.

Any fix? Johnywhy (talk) 21:53, 8 February 2021 (UTC)

Why don't you ask Facebook? You've indicated Facebook is the one appending information and changing the link. How is this a MediaWiki issue? Peculiar Investor (talk) 22:51, 8 February 2021 (UTC)
Ask facebook? :D
Maybe there's a way to prevent WM from choking on it. Johnywhy (talk) 23:11, 8 February 2021 (UTC)
Apparently, this same problem affects Google Analytics. Google Analytics has a feature to strip off and ignore specific url query parameters. Maybe MW could do the same.
https://webmasters.stackexchange.com/a/126945 Johnywhy (talk) 00:56, 9 February 2021 (UTC)
sounds like your webserver is misconfigured (check short url config). Mediawiki will handle these types of links fine. Bawolff (talk) 01:25, 9 February 2021 (UTC)
Thx. i read thru this page, but don't know how to proceed.
Manual:Short URL Johnywhy (talk) 02:53, 9 February 2021 (UTC)
Without clear steps to reproduce and specific examples (what's the link before? what's the link after?), everyone has to guess which is not a good use of anyone's time. Please be specific when bringing up issues. Thanks. Malyacko (talk) 08:32, 9 February 2021 (UTC)
@Malyacko "what's the link before? what's the link after?"
Totally fair questions!
Posted on Facebook:
https://gunretort.xyz/index.php/Draft:The_2nd_Amendment_was_intended_for_personal_self-defense.#Short_Retort
On click:
https://gunretort.xyz/index.php/Draft:The_2nd_Amendment_was_intended_for_personal_self-defense.?fbclid=IwAR0ZJiV3MHAeYrWeP429-flTTDKWioB_iLAYM27OrdgPkBgqxviHBE3_60M#Short_Retort
Strangely, this link now loads. So i can't replicate the issue. Maybe due to WM caching?
When the issue happens again, i'll share here. Johnywhy (talk) 09:02, 9 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating of MediaWiki in Plesk

Hi, we are running this MediaWiki which apparently is not up-to-date. However, I do not know how to update because it is installed as an application from Plesk on a HostEurope virtual engine.

I would like to update MediaWiki from Plesk to the newest version since I have big troubles with spam on my wiki site and some extensions would not run properly.

How can this update be initiated?

Thank you Bgerlach (talk) 12:58, 9 February 2021 (UTC)

While I won't comment on the update issue yet, I should note that most extensions should be comparable with MW 1.31, since it is technically a supported LTS release. I don't think extensions would care about the minor update version. Leaderboard (talk) 13:34, 9 February 2021 (UTC)
Thanks for this hint. It indeed slipped my attention that I have to use the extensions for MW 1.31 instead of 1.35. Thank you. I was now able to install the extensions.
Does anybody know how I can find out more about this upgrade in Plesk? Bgerlach (talk) 20:21, 12 February 2021 (UTC)

Logout disable with remote user authentication

Hello


I activate remote user for authentication from sso reverse proxy, we discover that logout link is disable, is it possible to create the link or button for logout when user is logged ?


Thanks for your help.


Regards. Francois187 (talk) 16:42, 9 February 2021 (UTC)

Mediawiki version 1.35. Francois187 (talk) 16:57, 9 February 2021 (UTC)
Pb solved.
Thanks. Francois187 (talk) 17:32, 10 February 2021 (UTC)

Developing an extension in MediaWiki

We need to write some validation logic to validate data that has been entered in the PageForms of SMW before saving it to the database. We are suing MediaWiki 1.34. I came across this : https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/architecture/developing.extension.md

and have been trying to follow the instructions to write a custom extension.

a) I want to confirm that this is the right way to proceed.

b) Are there any instructions on how i can deploy this extension to my installation of Semantic MediaWiki ?

c) Is it possible to call an external service endpoint from SMW when an event is triggered. We want to define the validation rules using Shacl and would like validate the data entered against Shacl rules - any suggestions on how this can be done would be very helpful.

Thank you for your help! Tilottama Sen (talk) 19:49, 9 February 2021 (UTC)

For Semantic MediaWiki questions you may want to ask in a Semantic MediaWiki support forum instead. Malyacko (talk) 09:43, 10 February 2021 (UTC)
Apologies, I am interested in adding the extension to MediaWiki. This is the documentation I am referring to : Manual:Hooks
In addition to my above questions, I also wanted to know how to import an owl/shacl file into mediawiki. Thanks. Tilottama Sen (talk) 14:46, 10 February 2021 (UTC)

Delete my experiments please

My last two contributions -

Here and over there

To my utter shame I read the instructions on Commons erroneously.

The Map Data page on Commons redirects to the Map Data page on MediaW

Which states pretty clearly (on second reading) to create a sandbox on... Commons

So with perfect comedy timing, I stay in MW, create a map file, and then wonder for 9 hours why it doesn't work.

I mean, there is a reason a completely separate Data namespace exists on MW, right? The Equalizer (talk) 01:27, 10 February 2021 (UTC)

Yes Done * Pppery * it has begun 01:42, 10 February 2021 (UTC)

install problem

missing file 216.36.172.93 (talk) 03:32, 10 February 2021 (UTC)

Hi, you need to include more detail about the "install problem" (see the sidebar). Leaderboard (talk) 10:25, 10 February 2021 (UTC)
Log me in now! I have had all I can take with this password stuff log me in now! Now 2604:CA00:1D0:6550:0:0:A60:355 (talk) 16:11, 10 February 2021 (UTC)
Unfortunately, that description is no more helpful, are you sure you're in the right place (see Project:About)? Leaderboard (talk) 16:16, 10 February 2021 (UTC)

Sudden database connection problem

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.


A week ago I had a working app with a Postgresql database on Heroku. I pushed a commit and that connection stopped working, I went back to my previous commit which used to be working and the connection still didn't work.


Since then I've tested my app on two local servers, one on my computer (which does work and is supporting my whole client base right now) and one on my partners computer, which has the same issue as the Heroku server. Could anyone help me in figuring out how to fix this and get my server on Heroku running again?


I have a lot more details about this issue here: https://stackoverflow.com/questions/66073776/local-postgres-connection-not-returning-anything


Thank you so much for your help! Brodrig98 (talk) 03:57, 10 February 2021 (UTC)

this doesnt seem like a mediawiki question. Bawolff (talk) 05:11, 10 February 2021 (UTC)
lol Brodrig98 (talk) 05:41, 10 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error message running update.php after upgrade 1.34.1 to 1.35.1

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 1.35.1
  • PHP 7.3.25 (fpm-fcgi)
  • MySQL 5.6.23-log

See also: https://csdms.colorado.edu/wiki/Special:Version

I'm updating MW from 1.34.1 to 1.35.1 but when running the update.php from the command line I get an error:

Completed actor creation, added 0 new actor(s)

Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor

User name "Stkane" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=121734

Completed migration, updated 0 row(s) with 0 new actor(s), 1 error(s)

Than a bit lower:

Renaming index ipb_address into ipb_address_unique to table ipblocks ...Wikimedia\Rdbms\DBQueryError from line 1699 of xxx/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '0-0' for key 'ipb_address_unique' (localhost)

And than the update stops, resulting in all content pages showing error message; see e.g. https://csdms.colorado.edu/wiki/Main_Page


Also, tried to run cleanupUsersWithNoId.php but not sure what prefix to use.

Any idea to fix this?

Appreciated! @Albert Ke Albert Ke (talk) 03:58, 10 February 2021 (UTC)

the prefix doesnt really matter. Its just prefixed to the username of imported users.
For ipblocks you might have to manually delete that row of the ipblocks table. Bawolff (talk) 05:10, 10 February 2021 (UTC)
Thank you @Bawolff,
Could you point me to some documentation on how to gracefully remove a row from the ipblocks table from the command line?
Thank you for the prompt response! Albert Ke (talk) 15:34, 10 February 2021 (UTC)
you should probably backup db before doing this. You can use Sql.php or mysql command line tool (if the latter, have to do, "use dbname;" first.)
And then do something like
DELETE FROM ipblocks WHERE ipb_address = "0-0";
(Im not sure which key is duplicated. That where clause might be wrong. Maybe it should be just 0) Bawolff (talk) 17:05, 10 February 2021 (UTC)
Thank you @Bawolff,
Made a db backup as sql and xml. Did "use wikidbname" -> Database changed
It looks like the 'delete from' didn't have an impact:
mysql> DELETE FROM ipblocks WHERE ipb_address = "0-0";
OR
mysql> DELETE FROM ipblocks WHERE ipb_address = "0";
OR
mysql> DELETE FROM ipblocks WHERE ipb_address = " ";
OR
mysql> DELETE FROM ipblocks WHERE ipb_address = "";
resulted all in:
Query OK, 0 rows affected (0.0x sec)
Using ipb_address_unique:
mysql> DELETE FROM ipblocks WHERE ipb_address_unique = "0-0";
ERROR 1054 (42S22): Unknown column 'ipb_address_unique' in 'where clause'
Could the problem be in:
Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
User name "Stkane" is usable, cannot create an anonymous actor for it.
And therefore, should I delete from revision 'Stkane' or something?
Or is this a bad suggestion?
Thank you! Albert Ke (talk) 17:16, 10 February 2021 (UTC)
ipb_address_unique is a compound key using multiple fields, so its a bit unclear which field is duplicated. If you dont care about any of your blocks, you could just delete all of them, or the following query might tell you which ones are duplicated:
SELECT ipb_address, ipb_user, ipb_auto group by 1,2,3 HAVING count(*) > 1; Bawolff (talk) 20:40, 10 February 2021 (UTC)
Sorry this took awhile, I think there needs to be a FROM in the statement (without it returns a 1046 error). Also, it looks like the prefix needs to be in front of the table name otherwise it returns an empty set.
When doing:
mysql> SELECT ipb_address, ipb_user, ipb_auto FROM mw_ipblocks group by 1,2,3 HAVING count(*) > 1;
It returns:
+----------------+----------+----------+
| ipb_address    | ipb_user | ipb_auto |
+----------------+----------+----------+
| 173.44.37.242  |        0 |        0 |
| 188.187.33.116 |        0 |        0 |
| 198.245.71.141 |        0 |        0 |
| 199.15.234.122 |        0 |        0 |
| 5.254.138.73   |        0 |        0 |
| 5.254.145.211  |        0 |        0 |
| 5.9.238.41     |        0 |        0 |
| 68.235.38.10   |        0 |        0 |
| 86.159.109.94  |        0 |        0 |
| 93.182.180.14  |        0 |        0 |
+----------------+----------+----------+
10 rows in set (0.00 sec)
Then followed the next steps to remove double entires:
  1. Get the ipb_id for each duplicate, so e.g: select * from mw_ipblocks where ipb_address = "173.44.37.242";
  2. Delete 1 of the two indicated ipb_id's. So e.g.:DELETE FROM mw_ipblocks WHERE ipb_id = "479";
  3. and repeat step 1 & 2 10 times since there are 10 duplicates.
Re-ran the build.php script and now went through it completely so problem solved!!!
Thank you! Albert Ke (talk) 21:35, 10 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

uploaded images arent visible any more

Hi, I noticed that uploaded images arent visibale any more at my wiki.

for example:

file https://www.dasletztewiki.de/images/f/fa/Alex_Couch.jpg isnt available, page is http://www.dasletztewiki.de/index.php?title=Alexander_Voigt


the log entry says the following:

File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a6/Lasche.jpg/468px-Lasche.jpg

[FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/a/a6/Lasche.jpg/468px-Lasche.jpg does not exist.


But on my server, the file is where it should be?!? 195.145.204.21 (talk) 06:27, 10 February 2021 (UTC)

Sorry - the log is about image /images/a/a6/Lasche.jpg - but its on the same page an the same problem 195.145.204.21 (talk) 06:29, 10 February 2021 (UTC)
MediaWiki Version: 1.28.0
PHP Version: 7.4.14 (cgi-fcgi)
MySQL Version: 5.7.30 195.145.204.21 (talk) 06:37, 10 February 2021 (UTC)
Check the error log of your webserver software. See also https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Error:_Could_not_open_lock_file_for_%22mwstore://local-backend/local-public/./../image.png . Also note that 1.28 has been unsupported software since 2017 and has known, public security vulnerabilities. Please upgrade to supported versions for your own safety. Malyacko (talk) 09:42, 10 February 2021 (UTC)
thanks for your reply.
webserver is saying on the corresponding line:
[core:alert] /var/www/vhosts/***/httpdocs/***/images/.htaccess: Option FollowSymLinks not allowed here, referer: _url_/index.php?title=Alexander_Voigt
(the *** in the logs are the correct path)
my 1.28 will be updated soon :) 195.145.204.21 (talk) 09:52, 10 February 2021 (UTC)
Got It!
images directory got its own .htaccess and there I changed "Options +FollowSymLinks" to "Options +SymLinksIfOwnerMatch" ... thanks for pointing out to the webserver logs, that give me the necessary hint 195.145.204.21 (talk) 09:55, 10 February 2021 (UTC)

CirrusSearch autocomplete: Search in NS_MAIN and NS_FILE at the same time as anonymous user

I searched for that several hours for now, but i don't get ist.

Pleas help me.

I have MediaWiki 1.35 with CirrusSearch installed.

I just want to search in NS_MAIN and NS_FILE at the sametime in the autocomplete search box as anonymous user.


I tried


1.)

$wgNamespacesToBeSearchedDefault = [

   NS_MAIN => true,

   NS_FILE => true

];


2.)

Extension MixedNamespaceSearchSuggestions

with

$wgContentNamespaces = [

   NS_MAIN,

   NS_FILE

];


3.)

$wgCirrusSearchExtraIndexes = [

  NS_FILE => [ '' ]

];

Don' know how to setup this.


4.)

$wgCirrusSearchNamespaceMappings = [

  NS_FILE => [ 'titlesuggest' ]

];

$wgCirrusSearchShardCount = [ 'content' => 4, 'general' => 4, 'titlesuggest' => 4 ];

Don' know how to setup this.


I hope someone could help.

BR

Max MaxSlo (talk) 07:43, 10 February 2021 (UTC)

Can someone please help me with this? MaxSlo (talk) 17:33, 18 February 2021 (UTC)
How does this support desk work? Do a have to mention someone?
BR MaxSlo (talk) 08:25, 19 February 2021 (UTC)
Can anyone help me? MaxSlo (talk) 13:09, 23 February 2021 (UTC)
Hi @AKlapper (WMF)!
I'm not sure if you could help here?
I saw that you are a developer in CirrusSearch.
https://phabricator.wikimedia.org/project/profile/209/
BR Max MaxSlo (talk) 17:07, 23 February 2021 (UTC)
Hi, I am not a developer in CirrusSearch (and pinging individuals based on random guesses often doesn't scale), sorry. :) AKlapper (WMF) (talk) 17:49, 23 February 2021 (UTC)

Upgrade Problem 1.28 -> 1.35 - only hyroglyphs visible

Hi,

I tried to upgrade my site from 1.28 to the latest version. Uploaded all files and run the mw-config script.

After all it says everything went fine, but when I access my site - I only see symbols and hyroglyphs


Site running 1.28: https://www.dasletztewiki.de/index.php?title=Hauptseite

Updated site to 1.35: https://hosting152651.a2e79.netcup.net/40_dasletztewiki_1_35/ 195.145.204.21 (talk) 11:41, 10 February 2021 (UTC)

and this is the database update log:
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_text_id field in revision table.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...have ar_text_id field in archive table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
...no page_random rows needed to be set
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
...index rc_ns_usertext already set on recentchanges table.
...index rc_user_text already set on recentchanges table.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
...index pl_namespace on table pagelinks includes field pl_from.
...index tl_namespace on table templatelinks includes field tl_from.
...index il_to on table imagelinks includes field il_from.
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
...index cl_sortkey on table categorylinks includes field cl_from.
...have oi_metadata field in oldimage table.
...index usertext_timestamp already set on archive table.
...index img_usertext_timestamp already set on image table.
...index oi_usertext_timestamp already set on oldimage table.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
...have ipb_by_text field in ipblocks table.
...page_props table already exists.
...updatelog table already exists.
...category table already exists.
...category table already populated.
...have ar_parent_id field in archive table.
...have user_last_timestamp field in user_newtalk table.
...protected_titles table has correct pt_title encoding.
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...have log_user_text field in logging table.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...*_mime_minor fields are already long enough.
...iwlinks table already exists.
...index iwl_prefix_title_from already set on iwlinks table.
...have ul_value field in updatelog table.
...have iw_api field in interwiki table.
...iwl_prefix key doesn't exist.
...have cl_collation field in categorylinks table.
...categorylinks up-to-date.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid already set on archive table.
...user_last_timestamp is already nullable.
...index user_email already set on user table.
...up_property in table user_properties already modified by patch patch-up_property.sql.
...uploadstash table already exists.
...user_former_groups table already exists.
...have rev_sha1 field in revision table.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have ar_sha1 field in archive table.
...index page_redirect_namespace_len already set on page table.
...have us_chunk_inx field in uploadstash table.
...have job_timestamp field in job table.
...index page_user_timestamp already set on revision table.
...have ipb_parent_block_id field in ipblocks table.
...index ipb_parent_block_id already set on ipblocks table.
...category table does not contain cat_hidden field.
...have rev_content_format field in revision table.
...have rev_content_model field in revision table.
...have ar_content_format field in archive table.
...have ar_content_model field in archive table.
...have page_content_model field in page table.
...site_stats table does not contain ss_admins field.
...recentchanges table does not contain rc_moved_to_title field.
...sites table already exists.
...have fa_sha1 field in filearchive table.
...have job_token field in job table.
...have job_attempts field in job table.
...have us_props field in uploadstash table.
...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
...index pp_propname_page already set on page_props table.
...index img_media_mime already set on image table.
...iwl_prefix_title_from index is already non-UNIQUE.
...index iwl_prefix_from_title already set on iwlinks table.
...have ar_id field in archive table.
...have el_id field in externallinks table.
...have rc_source field in recentchanges table.
...index log_user_text_type_time already set on logging table.
...index log_user_text_time already set on logging table.
...have page_links_updated field in page table.
...have user_password_expires field in user table.
...have pp_sortkey field in page_props table.
...recentchanges table does not contain rc_cur_time field.
...index wl_user_notificationtimestamp already set on watchlist table.
...have page_lang field in page table.
...have pl_from_namespace field in pagelinks table.
...have tl_from_namespace field in templatelinks table.
...have il_from_namespace field in imagelinks table.
...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
Extending edit summary lengths (and setting defaults) ...done.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...msg_resource_links doesn't exist.
...msg_resource doesn't exist.
...bot_passwords table already exists.
...have wl_id field in watchlist table.
...cl_collation key doesn't exist.
...index cl_collation_ext already set on categorylinks table.
...collations up-to-date.
...index rc_name_type_patrolled_timestamp already set on recentchanges table.
...rev_page_id index already non-unique.
...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
...have ct_id field in change_tag table.
...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
...index usertext_timestamp already set on archive table.
Adding el_index_60 field to table externallinks ...done.
Dropping ug_user_group index from table user_groups ...done.
Adding ug_expiry field to table user_groups ...done.
Adding index img_user_timestamp to table image ...done.
Modifying img_media_type field of table image ...done.
Creating ip_changes table ...done.
Renaming index cl_from into PRIMARY to table categorylinks ...done.
Renaming index tl_from into PRIMARY to table templatelinks ...done.
Renaming index pl_from into PRIMARY to table pagelinks ...done.
...index PRIMARY already set on text table.
Renaming index il_from into PRIMARY to table imagelinks ...done.
Renaming index iwl_from into PRIMARY to table iwlinks ...done.
Renaming index ll_from into PRIMARY to table langlinks ...done.
Renaming index ls_field_val into PRIMARY to table log_search ...done.
Renaming index md_module_skin into PRIMARY to table module_deps ...done.
...index PRIMARY already set on objectcache table.
Renaming index qci_type into PRIMARY to table querycache_info ...done.
Renaming index ss_row_id into PRIMARY to table site_stats ...done.
Renaming index ufg_user_group into PRIMARY to table user_former_groups ...done.
Renaming index user_properties_user_property into PRIMARY to table user_properties ...done.
Creating comment table ...done.
Creating revision_comment_temp table ...done.
Adding ar_comment_id field to table archive ...done.
Adding fa_description_id field to table filearchive ...done.
Modifying img_description field of table image ...done.
Adding ipb_reason_id field to table ipblocks ...done.
Adding log_comment_id field to table logging ...done.
Adding oi_description_id field to table oldimage ...done.
Adding pt_reason_id field to table protected_titles ...done.
Adding rc_comment_id field to table recentchanges ...done.
Modifying rev_comment field of table revision ...done.
Adding img_description_id field to table image ...done.
Migrating comments to the 'comments' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateComments.php.
Beginning migration of revision.rev_comment to revision_comment_temp.revcomment_comment_id
... 101
... 201
... 301
... 401
... 501
... 601
... 701
... 808
... 911
... 1011
... 1111
... 1212
... 1312
... 1369
Completed migration, updated 1357 row(s) with 402 new comment(s)
Beginning migration of archive.ar_comment to archive.ar_comment_id
... 12
Completed migration, updated 12 row(s) with 11 new comment(s)
Beginning migration of ipblocks.ipb_reason to ipblocks.ipb_reason_id
... 43
Completed migration, updated 42 row(s) with 20 new comment(s)
Beginning migration of image.img_description to image.img_description_id
... Zahnstocher.jpg
Completed migration, updated 96 row(s) with 0 new comment(s)
Beginning migration of oldimage.oi_description to oldimage.oi_description_id
... Uss_amistad.jpg 20191011111317
Completed migration, updated 1 row(s) with 0 new comment(s)
Beginning migration of filearchive.fa_deleted_reason to filearchive.fa_deleted_reason_id
Completed migration, updated 0 row(s) with 0 new comment(s)
Beginning migration of filearchive.fa_description to filearchive.fa_description_id
Completed migration, updated 0 row(s) with 0 new comment(s)
Beginning migration of recentchanges.rc_comment to recentchanges.rc_comment_id
... 1436
Completed migration, updated 25 row(s) with 0 new comment(s)
Beginning migration of logging.log_comment to logging.log_comment_id
... 100
... 200
... 300
... 400
... 500
... 600
... 700
... 800
... 900
... 1000
... 1100
... 1200
... 1300
... 1400
... 1486
Completed migration, updated 1486 row(s) with 12 new comment(s)
Beginning migration of protected_titles.pt_reason to protected_titles.pt_reason_id
Completed migration, updated 0 row(s) with 0 new comment(s)
done.
Renaming index lc_lang_key into PRIMARY to table l10n_cache ...done.
Making bot_passwords.bp_user into an unsigned int ...done.
Making change_tag.ct_log_id into an unsigned int ...done.
Making change_tag.ct_rev_id into an unsigned int ...done.
Making page_restrictions.pr_user into an unsigned int ...done.
...user_newtalk.user_id is already unsigned int.
Making user_properties.up_user into an unsigned int ...done.
Creating slots table ...done.
...have slot_origin field in slots table.
Creating content table ...done.
Creating slot_roles table ...done.
Creating content_models table ...done.
Migrating archive ar_text to modern storage.
Migrating ar_text to modern storage...
Completed ar_text migration, 0 rows updated, 0 missing data.
Dropping ar_text and ar_flags columns ...done.
Creating actor table ...done.
Creating revision_actor_temp table ...done.
Adding ar_actor field to table archive ...done.
Adding ipb_by_actor field to table ipblocks ...done.
Adding img_actor field to table image ...done.
Adding oi_actor field to table oldimage ...done.
Adding fa_actor field to table filearchive ...done.
Adding rc_actor field to table recentchanges ...done.
Adding log_actor field to table logging ...done.
Migrating actors to the 'actor' table, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/migrateActors.php.
Creating actor entries for all registered users
... 1 - 38
Completed actor creation, added 38 new actor(s)
Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
... rev_id=101
... rev_id=201
... rev_id=301
... rev_id=401
... rev_id=501
... rev_id=601
... rev_id=701
... rev_id=808
... rev_id=911
... rev_id=1011
... rev_id=1111
... rev_id=1212
... rev_id=1312
... rev_id=1369
Completed migration, updated 1357 row(s) with 1 new actor(s), 0 error(s)
Beginning migration of archive.ar_user and archive.ar_user_text to archive.ar_actor
... ar_id=12
Completed migration, updated 12 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of ipblocks.ipb_by and ipblocks.ipb_by_text to ipblocks.ipb_by_actor
... ipb_id=43
Completed migration, updated 42 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of image.img_user and image.img_user_text to image.img_actor
... img_name=Zahnstocher.jpg
Completed migration, updated 96 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor
... oi_name=Uss_amistad.jpg oi_timestamp=20191011111317
Completed migration, updated 1 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor
Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor
... rc_id=1436
Completed migration, updated 25 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
... log_id=100
... log_id=200
... log_id=300
... log_id=400
... log_id=500
... log_id=600
... log_id=700
... log_id=800
... log_id=900
... log_id=1000
... log_id=1100
... log_id=1200
... log_id=1300
... log_id=1400
... log_id=1486
Completed migration, updated 1486 row(s) with 0 new actor(s), 0 error(s)
Beginning migration of log_search
Completed migration, inserted 0 row(s) with 0 new actor(s), 0 error(s)
done.
Modifying rev_text_id field of table revision ...done.
Modifying table site_stats ...done.
Populating ar_rev_id.
Populating ar_rev_id...
Completed ar_rev_id population, 0 rows updated.
Making ar_rev_id not nullable ...done.
Adding index rc_namespace_title_timestamp to table recentchanges ...done.
Creating change_tag_def table ...done.
Populating el_index_60 field, printing progress markers. For large
databases, you may want to hit Ctrl-C and do this manually with
maintenance/populateExternallinksIndex60.php.
Populating externallinks.el_index_60...
el_id 0 - 200 of 373
el_id 200 - 400 of 373
Done, 360 rows updated.
done.
Modifying el_index_60 field of table externallinks ...done.
Running maintenance/deduplicateArchiveRevId.php...
Deduplicating ar_rev_id...
... 54-1149
Finished deduplicating ar_rev_id. 0 rows deleted, 0 assigned new IDs.
done.
Adding ct_tag_id field to table change_tag ...done.
Adding index ar_revid_uniq to table archive ...done.
Migrating revision data to the MCR 'slot' and 'content' tables, printing progress markers.
For large databases, you may want to hit Ctrl-C and do this manually with
maintenance/populateContentTables.php.
Populating revision...
... revision processed up to revision id 500 of 1369 (499 rows in 0.036839008331299 seconds)
... revision processed up to revision id 1000 of 1369 (989 rows in 0.076030969619751 seconds)
... revision processed up to revision id 1369 of 1369 (1357 rows in 0.1059250831604 seconds)
Done populating revision table. Processed 1357 rows in 0.10595107078552 seconds
Populating archive...
... archive processed up to revision id 553 of 1149 (1 rows in 0.0044519901275635 seconds)
... archive processed up to revision id 1053 of 1149 (11 rows in 0.010767936706543 seconds)
... archive processed up to revision id 1149 of 1149 (12 rows in 0.014885902404785 seconds)
Done populating archive table. Processed 12 rows in 0.014898061752319 seconds
Done. Processed 1369 rows in 0.12891912460327 seconds
done.
Adding index log_type_action to table logging ...done.
Dropping type_action index from table logging ...done.
Renaming index iw_prefix into PRIMARY to table interwiki ...done.
Renaming index pp_page_propname into PRIMARY to table page_props ...done.
Renaming index pt_namespace_title into PRIMARY to table protected_titles ...done.
Renaming index site_ids_type into PRIMARY to table site_identifiers ...done.
Adding index rc_this_oldid to table recentchanges ...done.
Dropping table transcache ...done.
Running maintenance/populateChangeTagDef.php...
Starting to add ct_tag_id = 1 for ct_tag = mobile edit
Updating ct_tag_id = 1 up to row ct_id = 29
Finished adding ct_tag_id = 1 for ct_tag = mobile edit
Starting to add ct_tag_id = 2 for ct_tag = mobile web edit
Updating ct_tag_id = 2 up to row ct_id = 30
Finished adding ct_tag_id = 2 for ct_tag = mobile web edit
No user defined tags to set, moving on...
done.
Adding index change_tag_rc_tag_id to table change_tag ...done.
Adding ipb_sitewide field to table ipblocks ...done.
Creating ipblocks_restrictions table ...done.
Table change_tag contains ct_tag field. Dropping ...done.
Dropping table valid_tag ...done.
Dropping table tag_summary ...done.
Table archive contains ar_comment field. Dropping ...done.
Table ipblocks contains ipb_reason field. Dropping ...done.
Table image contains img_description field. Dropping ...done.
Table oldimage contains oi_description field. Dropping ...done.
Table filearchive contains fa_description field. Dropping ...done.
Table recentchanges contains rc_comment field. Dropping ...done.
Table logging contains log_comment field. Dropping ...done.
Table protected_titles contains pt_reason field. Dropping ...done.
Modifying table job ...done.
Dropping ar_usertext_timestamp index from table archive ...done.
Dropping usertext_timestamp index from table archive ...done.
Table archive contains ar_user field. Dropping ...done.
...ipblocks table does not contain ip_by field.
Dropping img_user_timestamp index from table image ...done.
Table image contains img_user field. Dropping ...done.
Table oldimage contains oi_user field. Dropping ...done.
Table filearchive contains fa_user field. Dropping ...done.
Table recentchanges contains rc_user field. Dropping ...done.
Table logging contains log_user field. Dropping ...done.
...index un_user_ip already set on user_newtalk table.
Creating watchlist_expiry table ...done.
Modifying page_restrictions field of table page ...done.
Renaming index ipb_address into ipb_address_unique to table ipblocks ...done.
Adding rev_actor field to table revision ...done.
Table archive contains ar_text_id field. Dropping ...done.
Updating length of lc_lang in `l10n_cache` ...done.
Updating length of ll_lang in `langlinks` ...done.
Updating length of site_language in `sites` ...done.
...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added.
...ipb_address_unique index up-to-date.
Modifying actor_name field of table actor ...done.
Modifying site_global_key field of table sites ...done.
...account_requests table already exists.
...have acr_filename field in account_requests table.
...account_credentials table already exists.
...have acr_areas field in account_requests table.
Modifying acr_email field of table account_requests ...done.
...index acr_email already set on account_requests table.
...have acr_agent field in account_requests table.
...acr_deleted_reg key doesn't exist.
...site_stats is populated...done.
Purging caches...done. 195.145.204.21 (talk) 11:43, 10 February 2021 (UTC)
oh I've found another topic here: Project:Support desk/Flow/2020/12#h-MediaWiki_version_1.35.1_garbled_text_encoding_problem_(MySQL_database_incorrect-2020-12-20T01:29:00.000Z
That fix mentioned at bottom of the page worked for me as well 195.145.204.21 (talk) 13:26, 10 February 2021 (UTC)
See e.g. Project:Support desk/Flow/2021/01#h-Install_Problem_-_binary_in_php_code_(question_marks)-2021-01-01T09:48:00.000Z and Manual:$wgDisableOutputCompression Malyacko (talk) 13:52, 10 February 2021 (UTC)

Wiki Design

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,


on my wiki page I have changed the design (settings -> appearance -> user interface).


But this changes are not visible for other users. How can I make my changes for everyone? Thanks Onmiy (talk) 13:03, 10 February 2021 (UTC)

You'll need to make a corresponding change in LocalSettings.php. Leaderboard (talk) 13:26, 10 February 2021 (UTC)
see manual:$wgDefaultSkin Bawolff (talk) 20:48, 10 February 2021 (UTC)
thank you guys Onmiy (talk) 09:59, 11 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

TOC

Hello,


is it possible to create a table of content with collapsible headings? Onmiy (talk) 14:35, 10 February 2021 (UTC)

Basically yes, but Iam not sure whether we have an easy configuration option to ensure collapsed TOC from beginning.
Via JavaScript you may equip the TOC element with class=mw-collapsible mw-collapsed" and need to request: mw.loader.load("jquery.makeCollapsible");
Please see Manual:Collapsible elements and ResourceLoader/Core modules. Gib Senf dazu! (talk) 10:37, 11 February 2021 (UTC)

Migrate from SQLite to MSSQL

Is it possible to migrate my SQLite database to MSSQL and have my wiki use the MSSQL database instead of the SQLite one? If so, can you provide instructions to accomplish this task? Michael.evenson (talk) 14:54, 10 February 2021 (UTC)

No. See Manual:Microsoft SQL ServerAmmarpad (talk) 17:34, 10 February 2021 (UTC)

Pages within a listed category all have starting letter of {

I am creating categories by using a template and the PAGENAME variable. The categories are getting created correctly, and the pages are being added with the correct name, but they always started with the character '{'


If i manually add a category to a page, it shows up ok.


Anyone experienced this before?

Pages in category ‘Example Category’

The following 2 pages are in this category, out of 2 total.

{

  • Page 1
  • Another Page

P

you probably have something like [[category:foo|{{{PAGENAME}}]] with an extra { Bawolff (talk) 20:47, 10 February 2021 (UTC)
The wording in your first sentence does show your problem.
PAGENAME is not a variable, which would be enclosed into three brackets, but calling a parser function which is enclosed in double brackets. Just use two instead of three brackets. Gib Senf dazu! (talk) 10:25, 11 February 2021 (UTC)

Cookies

Does MediaWiki keep cookies for non-registrants, if an unregistered contribution is blocked? 41.254.66.46 (talk) 15:32, 10 February 2021 (UTC)

What exactly does "blocked" mean? Could you please specify? Malyacko (talk) 18:28, 10 February 2021 (UTC)
I do not speak English very well; I want to prevent my site from storing cookies for non-registrants. 41.254.66.46 (talk) 19:10, 10 February 2021 (UTC)
yes, mediawiki sets cookies for people who are blocked. It is configurable via manual:$wgCookieSetOnAutoblock.
Note: that cookies also get set when you save a page, even if logged out (this is to ensure users properly get any talk page messages sent to them, and to make sure that they always read-back a version after their writes in the face of db lag) Bawolff (talk) 20:46, 10 February 2021 (UTC)
I don't mean banned users, I mean they weren't logged in. You have turned off any unverified email user mod 41.254.66.222 (talk) 10:16, 11 February 2021 (UTC)
How can MediaWiki stop storing cookies for non-registrants? 41.254.66.199 (talk) 10:26, 13 February 2021 (UTC)

Slowness of a local wiki

Hi, i recently tried to import XML pages of Infobox and it gave me an error, same as: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2016/04#h-Error-2016-04-27T04%3A38%3A00.000Z

After that i looked at the page Template:Infobox and it was partially filled, with some data lacking. I tried to make an infobox in my wiki, calling the template and it work but when i go to a page with an infobox it is very slow to load

Do you know what can be the problem? Cible30 (talk) 21:04, 10 February 2021 (UTC)

the lua code is taking too long. There might be profiling data you can look at when you preview the page. You will need to know lua to debug this problem.
Its possible switching from LuaStandalone to LuaSandbox might help performance. As always, make sure you have caching setup. Bawolff (talk) 04:11, 11 February 2021 (UTC)
Hi, thank you. I think LuaSandbox isn't available for windows (?) (and i'm on windows)
I don't know if it may be useful but i try to look at the Network panel while the page was loading. ("A" is the page that was loading and that contain infobox)
Images here: https://drive.google.com/file/d/10BQNq0a1ap7z8zP2l0g2GjrUohTudy9A/view?usp=sharing
It seems that the research itself take time? Cible30 (talk) 09:42, 11 February 2021 (UTC)

Templates in Articles Not Automatically Updating

I am having a weird issue all of a sudden (I'm 98% sure it is new) where if I edit a template, the change does not automatically update on any articles featuring that template. If I go to edit that article and then save the changes, then the changes to that template show up. I do not seem to be having any issues with categories or anything like that, my job queue is clear (that was my first guess), and wgJobRunRate is set to 1. I'm running MW 1.31 if that helps, let me know if any other info is needed. Tfkalk (talk) 04:47, 11 February 2021 (UTC)

The website is probably showing you cached versions, and editing them clears the cache. Probably adding &action=purge to the URL would have the same effect. There's some relevant stuff here: Manual:Cache. Jonathan3 (talk) 10:13, 11 February 2021 (UTC)
(I have been looking for an answer meanwhile)
Sounds as if your cache updating is slow. It is the right starting point that you mentioned that your job queue is clear.
We do know this problem but receive an updated page version with some lag since our job queue has always overload.
When you modify a page transcluded anywhere else all depending pages are marked as dirty and put into execution queue to be rebuilt. Apparently this mechanism is out of order.
If you edit or ask for cache clearing by action=purge in URL (see Manual:Parameters to index.php) that page will be rendered freshly. Gib Senf dazu! (talk) 10:49, 11 February 2021 (UTC)
Maybe an extension or something is interfering with the job queue? I think this happened to me once. I think I either updated the extension or deleted the contents of the job queue table, or both, to get things up and running again. Jonathan3 (talk) 15:00, 11 February 2021 (UTC)
Thanks @Jonathan3 @Gib Senf dazu! ! Adding the &action=purge worked. As you can imagine, I would like to not have to purge each time if possible haha and figure out what caused this issue to fix it. I went and re-checked the job table and there are now two jobs there (both of which seem tied to the template I had edited). Is it possible that this is really a job queue issue? Tfkalk (talk) 17:49, 11 February 2021 (UTC)
I always like to blame caching if I don't understand something, if that helps :-) I'd look into that and the job queue thing too (maybe disable extensions and see whether it works etc). Jonathan3 (talk) 23:48, 11 February 2021 (UTC)

How to test if MediaWiki communicates with Memcached?

My hosting provider's staff member reported that Memcached process is running. After that I have set:

$wgMainCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = [
  "127.0.0.1:11211"
];

And yet, I did not experience any significant improvement in content serving speed, rather pages are being loaded/reloaded significantly slower.


How to test if MediaWiki communicates with Memcached either from MediaWiki's side or perhaps even from Memcached's side? 2001:44C8:424C:FDE4:DD9:A557:7608:AA3C (talk) 07:24, 11 February 2021 (UTC)

In my shared server environment, Memcached host is indeed localhost (127.0.0.1) and it indeed listens to port 11211, so the above configuration is probably correct.
Perhaps I lack some conf in another place? 2001:44C8:424C:FDE4:F5C4:1F71:96DA:FDC9 (talk) 07:51, 12 February 2021 (UTC)
Enable a debug log as described in Manual:How to debug and see if it outputs any error when connecting to memcached Ciencia Al Poder (talk) 12:39, 13 February 2021 (UTC)

unwanted bot subscribtions

Hi


I'm annoyed by hundreds of fake automated subscriptions requests every day.


I run every night the maintenance script removeUnusedAccounts.php but it doesn't clear the logs and it will trouble the true people who are not writing immediately after subscription.


What is the best way to prevent such automated subscriptions (and allow true ones, of course).


Thanks Tintinux (talk) 08:00, 11 February 2021 (UTC)

PS : I'm running Mediawiki 1.35.1 Tintinux (talk) 08:01, 11 February 2021 (UTC)
Manual:Combating spam Malyacko (talk) 08:45, 11 February 2021 (UTC)
At one point I had hundreds of these. As they had not made any edits to the wiki, I was able to use Manual:removeUnusedAccounts.php to get rid of them.
Then I used Extension:ConfirmAccount for a while, but it was a pain in the neck because I couldn't find a way to deal with multiple accounts at once. It might suit you, though, and may have been updated.
Maybe the answer is to run the script weekly or monthly, to give genuine people time to make an edit if that is their intention. Jonathan3 (talk) 14:42, 11 February 2021 (UTC)

Atfter Upgrade my Mediawiki my "page" is not show correctly Umlauts

Hey Guys!


So we upgrade our old Mediawiki and it works all fine, but youre Umlauts are not show correctly now. But only in the headlines (from the Page-Table i think).

Instead "für" it shows "für".


Have someone an idea how can i fix it? In the old Version and in the Text-table it stand correctly.

The old Database was UTF-8 like the new one.


Hope someone can help me!


Greetings from Vienna,

Phil 192.84.221.33 (talk) 09:14, 11 February 2021 (UTC)

Okay that fix it for me:
Project:Support desk/Flow/2011/07#h-UTF8_Problem_with_update_from_1.16_to_1.17-2011-07-19T18:34:00.000Z 192.84.221.33 (talk) 09:29, 11 February 2021 (UTC)

Collapsible elements issue after update to 1.35.1

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 making use of the Collapsible elements on our wiki. After upgrading to 1.35.1 it only works once on a page - reloading the page will show all of the elements expanded. Clearing the browser cache will make it work again once. You can test it here: https://docs.derivative.ca/TestPage - reload the page to see all of them suddenly expanded. Looking at the browser's console reveals this:

load.php?lang=en-ca&modules=jquery&skin=vector&version=tqh7e:51 jQuery.Deferred exception: $collapsible.makeCollapsible is not a function TypeError: $collapsible.makeCollapsible is not a function
    at Object.<anonymous> (<anonymous>:12:2286)
    at Object.<anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:28613)
    at j (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:27244)
    at Object.add [as done] (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:27553)
    at Array.<anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:28590)
    at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:2973)
    at Object.<anonymous> (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:28531)
    at Function.Deferred (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:29117)
    at Object.then (https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js:2:28508)
    at <anonymous>:12:2162 undefined

Not sure if this is helpful information but any hints are appreciated. Wuestenarchitekten (talk) 17:11, 11 February 2021 (UTC)

I'm using Firefox and I have no problems to expand or collapse your table. TS (talk) 21:31, 12 February 2021 (UTC)
Hey @SteblerTh
interesting - just checked as well - firefox and brave is working. chromium based browsers don't (Chrome, Edge, Vivaldi).
hm - wait for mediawiki 1.36 as it seems to be working here on mediawiki? Wuestenarchitekten (talk) 22:39, 12 February 2021 (UTC)
the error message says you are not using mediawikis built in version of jquery, which is probably causing the problem.
You can see https://docs.derivative.ca/TestPage?safemode=1 works, so probably something bad in mediawiki:common.js or mediawiki:vector.js or a gadget. Bawolff (talk) 11:43, 13 February 2021 (UTC)
Hi @Bawolff
safemode works for me only when initially hitting the page. reloading it results again in all of them expanded. Wuestenarchitekten (talk) 21:28, 15 February 2021 (UTC)
yes, safemode just temporarily disables Mediawiki:common.js and related pages. It was meant to demonstrate where the problem is, not be the solution. You need to either fix or delete those mediawiki namespace js pages. Bawolff (talk) 05:08, 17 February 2021 (UTC)
Hi @Bawolff,
finally found it - indeed an extension was inserting this jquery overwriting the build in version.
Thanks! Wuestenarchitekten (talk) 00:16, 26 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgScriptPath

Can Arabic URL path be used? 41.254.66.222 (talk) 17:31, 11 February 2021 (UTC)

yes.
You will probably want to use manual:short URL because otherwise the index.php will stay english and mixing left to right with right to left languages can be confusing. Bawolff (talk) 03:12, 12 February 2021 (UTC)
idk 2602:306:BD26:3110:65AA:94B:B30A:6EC3 (talk) 03:20, 12 February 2021 (UTC)

add a category/tag to a link?

I have a lot of files stored in my google drive, so i have links to the different files (which works great)

Is there a way to add a category or a tag or something else to a link so that if search for this tag it deploys me a list.

I read somewhere that advancedbacklinks might be an option but i cant get it to work

Thanks! Bedtry (talk) 20:58, 11 February 2021 (UTC)

Maybe you could use Extension:Cargo. The template with the Cargo call could have fields URL and tag. You could then search for all links with tag=documents or whatever. Jonathan3 (talk) 23:00, 12 February 2021 (UTC)

Which is my database ?

Hi

Sorry I'm beginner in informatic and particularly in mediawiki. I'm sure that my question will make laugh some people.

I try to save my database but I don't know which folder is my wikidatabase. It's for to back up it. Somebody can help me ?

Thanks in advance for your reply 2A01:E0A:20E:7300:F8A4:A9DB:9717:1F47 (talk) 08:21, 12 February 2021 (UTC)

I don't know where the database is stored either but mine is MySQL so I just use mysqldump - there are tutorials online about it. Jonathan3 (talk) 22:57, 12 February 2021 (UTC)
If you want to learn how to backup your wiki then reading Manual:Backing up a wiki should provide the information you. need. Peculiar Investor (talk) 23:59, 12 February 2021 (UTC)

Posting

Hi There

I am trying to post a new post but this is the error?

Internal Server Error

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

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log. 156.155.45.174 (talk) 08:46, 12 February 2021 (UTC)

Looks like you posted the post successfully. Ciencia Al Poder (talk) 12:00, 12 February 2021 (UTC)

How to realize LDAP Single Sign On in the version 1.35

Hi,

we are not mediawiki experts but generally experienced developers. We have to upgrade (ancestral) mediawiky from 1.27 version to the 1.35 one. The former installation uses SSO based on the AuthPlugin extension. In the new (upgraded to 1.35) installation we have already working LDAP authentication based on LDAPProvider (e.t.c.) extension and we really appreciate any idea how to implement the SSO too.

Thanks in advance for your reply/help. Koropeckyi (talk) 08:55, 12 February 2021 (UTC)

For SSO you can use Extension:Auth_remoteuser. You webserver needs to provide the proper username then. Usually this is archived by using Kerberos. On Windows Servers one must just enable "Windows-Authentication" in the IIS. On Linux servers with Apache as webserver you will need to set up mod_auth_kerb or something similar. Osnard (talk) 09:21, 12 February 2021 (UTC)

Search function

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.


Hey guys,

i have installed CirrusSearch and Elastica on my Wiki (1.35), but the search functionality does not get better/ or i do not see any improvements? Do I have to activat or add a code to my wiki page?

thanks Onmiy (talk) 10:26, 12 February 2021 (UTC)

It not only needs to be installed but also configured. Did you follow the extension's installation/configuration instructions? Ciencia Al Poder (talk) 12:38, 13 February 2021 (UTC)
Thanks that was the reason :-) Onmiy (talk) 10:25, 17 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to setup twitter feed like Verify.Wiki ?

How to setup twitter updated feed like https://verify.wiki/wiki/EMC_Big_Data Mayurbhatt (talk) 11:54, 12 February 2021 (UTC)

hmm, the site sames broken and i cant fetch the page source. Nothing obvious in https://verify.wiki/w/api.php?action=query&meta=siteinfo&siprop=extensions&formatversion=2 either
That said, maybe extension:TwitterTag or Extension:External Data might be helpful. Bawolff (talk) 11:39, 13 February 2021 (UTC)

Pagina marcada como irrelevante

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.


Buenos días, ayer publique una pagina, en concreto una biografía y hoy veo en ella una nota avisando de su próximo borrado porque se la ha marcado como irrelevante.

Publiqué en el muro de discusión del usuario que firma dicha "irrelevancia", indicando por qué considero que la persona descrita tiene sobrados (y contrastados) argumentos para ser un personaje de público interés.

La pregunta es (es la primera vez que subo algo a wikipedia) ¿se contrastan las opiniones realizadas por un tercero? ¿alguien supervisa que esos comentarios esten fundados? ¿o se procede a eliminar la pagina en cuestion?

En caso de ser posible donde se puede contraargumentar, para defender la relevancia de una pagina?

gracias por la ayuda

Un saludo Enriquerius (talk) 12:39, 12 February 2021 (UTC)

Bienvenido a MediaWiki.org! Este sitio es para soporte técnico referente al uso del software MediaWiki, normalmente por usuarios externos a los wikis de la fundación Wikimedia. Para problemas relacionados con el contenido de Wikipedia deberías comentarlo en el Wikipedia:Café Ciencia Al Poder (talk) 12:41, 12 February 2021 (UTC)
Ok. Muchas gracias. Asi lo hare.
Un saludo. Enriquerius (talk) 12:57, 12 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to access pages with apostrophe in the title

Hello

We built a new Mediawiki 1.32 environment a year ago and imported all of the existing mediawiki pages from an older mediawiki environment via mysqldump to the new environment.

We have just discovered that we are not able to access wiki pages that was previously created that includes an apostrophe in the title.  Do anyone know if this can be resolved, and what a fix would be?

Here’s an example

Leadville - Al's Notes

https://osswiki.tdc.vzwcorp.com/wiki/Leadville_-_Al%27s_Notes

Our current configuration includes the following.

mediawiki-1.32.2

Apache 2.4

PHP  7.1.33

MySQL 57

Solaris 11.4


Thanks! Rallison11 (talk) 16:07, 12 February 2021 (UTC)

Mgug30, Thanks for the response. But can you put that into english. I am not able to read it. I am trying to determine why we are not able to access wiki pages that were created in a previous version of Mediawiki which includes an apostrophe in the title Rallison11 (talk) 19:17, 12 February 2021 (UTC)
wow, solaris. That's not something you see anymore.
I cant view your site (something about dns), but most likely, something wrong with apache rewrite rules for short urls. Can you view it if you do index.php?title=title_here ? What happens when you go to such pages? Bawolff (talk) 11:23, 13 February 2021 (UTC)
Hello Bawolff,
Yes, we have a heavy Solaris presence. :) This is the only Mediawiki environment we have on Solaris.
The URL is internal. I included it as an example of a page having an apostrophe.
But, when I try to access the page using either of the following https://osswiki.tdc.vzwcorp.com/wiki/Leadville_-_Al’s_Notes  or https://osswiki.tdc.vzwcorp.com/index.php?title=Leadville_-_Al’s_Notes  it takes me to the main page of the wiki (https://osswiki.tdc.vzwcorp.com/wiki/Main_Page), instead of the actual page.
This is what I have in httpd.conf for the rewrite rules
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/wiki/index.php [L]
Any help or direction would be much appreciated.
Thanks Rallison11 (talk) 02:51, 15 February 2021 (UTC)
Hello Bawolff or anyone, ,
I wanted to follow up to see if anyone can provide any assistance on why we are not able to access wiki pages that were created in a previous version of Mediawiki which includes an apostrophe in the title. When we try to access a wiki page that has an apostrophe in the title it takes us to the main page of the wiki, not the actual page we are trying to access. Based on the previous response, I posted the rewrite rules currently in the configuration.
Thanks. Rallison11 (talk) 12:37, 22 February 2021 (UTC)

URL param suppresses link?

when i try to use a url param after a url, the link simply won't show, eg http://www.karaoke-version.com/en/karaoke

oh, there. do you see it? no you don't. why???

the link is this: http://www.karaoke-version.com/en/karaoke/?aff=23

but i just split the url param off the end so it is not part of the link, so you can see it. you try it. why is it failing? Davecotter (talk) 17:28, 12 February 2021 (UTC)

Seems to work all right:
http://www.karaoke-version.com/en/karaoke/?aff=23+KaraokeVersion
http://www.karaoke-version.com/en/karaoke/?aff=23 Jonathan3 (talk) 22:52, 12 February 2021 (UTC)
In your post above you seem to be using xml escape &#x20; for urls you should use percent escapes like %20 (or a + for a space in certain contexts) Bawolff (talk) 11:20, 13 February 2021 (UTC)

I'm new to MediaWiki and am working on a site for a client and I need to upload pictures to complete the project. I've followed all the steps to ensure that uplodaing should be possible yet, no matter what I've done, I still cannot get the upload link t appear.


The $wgEnableUploads = true; is set to true as you can see.

PHP uploads are on from the php.ini file.

The images folder is writable.

I don't know what I'm doing wrong. Please help!


Thank you,

Sarah 2600:1700:7860:6230:2DA9:AE2A:16A2:B6D6 (talk) 19:07, 12 February 2021 (UTC)

What happens if you type [[Media:Test.jpg]] in to a page, save the page, and click the link? Jonathan3 (talk) 22:49, 12 February 2021 (UTC)
Make sure the user you're logged in with has permission to upload. It's true by default for 'user' and 'sysop' groups.
$wgGroupPermissions['user']['upload'] = true;
You should check whether you've changed it in LocalSettings.php – Ammarpad (talk) 06:47, 13 February 2021 (UTC)
if you go directly to the page Special:Upload it might give you a meaningful error message. Bawolff (talk) 11:18, 13 February 2021 (UTC)

cookies

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.


How can MediaWiki stop storing cookies for non-registrants? 41.254.66.39 (talk) 20:05, 12 February 2021 (UTC)

See Project:Support desk/Flow/2021/02#h-Cookies-2021-02-10T15:32:00.000Z. Please do not create duplicate threads - thanks. Malyacko (talk) 21:42, 12 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Special:ReplaceText Issue with Categories

- On replacing,

[[Category:Rebuttal Deep-Dives]]

with

[[Category:Retorts]]

i received alert:

The information you’re about to submit is not secure

Because the site is using a connection that’s not completely secure, your information will be visible to others.

That's unexpected, because the site is secure.

I clicked "SEND ANYWAY", and was returned to Special:ReplaceText, without any confirmation that the replace was done.

Now, the categories on pages say:

[[Category:Rebuttal Deep-Dives|Category:Rebuttal Deep-Dives]] Johnywhy (talk) 00:36, 13 February 2021 (UTC)

the security warning is probably unrelated to the replacement not working. The replacement issue is probably just specifying the wrong text.
For the security warning, make sure that $wgServer starts with https:// Bawolff (talk) 11:16, 13 February 2021 (UTC)
Thx for the security fix! i wonder why wgServer wasn't https on first installation. Johnywhy (talk) 19:14, 13 February 2021 (UTC)

Ignorewarn deprecated, so how to overwrite already existing files using upload.py?

Hi, I'm doing an upload job where I am trying to overwrite a certain set of files via upload.py. However the ignorewarnings seems t be a legacy feature and the documentation isn't updated to match that. How can I block the upload bot from asking me if I want to upload (necessitating me to type Yes to each uploaded file) to an already existing file without using ignorewarnings? What's the syntax?


Also, is there a list of warning and error codes for uploading and if so where can I find them? C1MM (talk) 00:37, 13 February 2021 (UTC)

Converting pdf

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.


how to convert a PDF file to word document Fsutom56 (talk) 00:47, 13 February 2021 (UTC)

https://duckduckgo.com/?q=convert+pdf+to+word Jonathan3 (talk) 09:04, 13 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgServer must be set in LocalSettings.php. But it IS set

Hello all,

I'm getting this fata error when trying to access the wiki for the first time after creating my LocalSettings.php

Current PHP version: 7.3.27-2+ubuntu20.04.1+deb.sury.org+17.3.27-2+ubuntu20.04.1+deb.sury.org+1


Output of index.php with $wgShowExceptionDetails = true; set in LocalSettings.php

MediaWiki internal error.

Original exception: [caa5d348befb36006ab5d246] [no req] FatalError from line 546 of /var/www/html/forensicswiki/includes/Setup.php: $wgServer must be set in LocalSettings.php. See <a href="https://www.mediawiki.org/wiki/Manual:$wgServer">https://www.mediawiki.org/wiki/Manual:$wgServer</a>.

Backtrace:

#0 /var/www/html/forensicswiki/includes/WebStart.php(89): require_once()

#1 /var/www/html/forensicswiki/index.php(47): require(string)

#2 {main}

Exception caught inside exception handler: [caa5d348befb36006ab5d246] [no req] Error from line 2153 of /var/www/html/forensicswiki/includes/user/User.php: Call to a member function getIP() on null

Backtrace:

#0 /var/www/html/forensicswiki/includes/session/SessionBackend.php(742): User->getName()

#1 /var/www/html/forensicswiki/includes/session/SessionBackend.php(215): MediaWiki\Session\SessionBackend->save(boolean)

#2 /var/www/html/forensicswiki/includes/session/Session.php(73): MediaWiki\Session\SessionBackend->deregisterSession(integer)

#3 /var/www/html/forensicswiki/includes/session/SessionManager.php(334): MediaWiki\Session\Session->__destruct()

#4 /var/www/html/forensicswiki/includes/session/SessionManager.php(268): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)

#5 /var/www/html/forensicswiki/includes/session/SessionManager.php(218): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)

#6 /var/www/html/forensicswiki/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#7 /var/www/html/forensicswiki/includes/user/User.php(1169): WebRequest->getSession()

#8 /var/www/html/forensicswiki/includes/user/User.php(338): User->loadDefaults()

#9 /var/www/html/forensicswiki/includes/user/User.php(2125): User->load()

#10 /var/www/html/forensicswiki/includes/user/User.php(3064): User->getId()

#11 /var/www/html/forensicswiki/includes/user/UserOptionsManager.php(584): User->isRegistered()

#12 /var/www/html/forensicswiki/includes/user/UserOptionsManager.php(487): MediaWiki\User\UserOptionsManager->getCacheKey(User)

#13 /var/www/html/forensicswiki/includes/user/UserOptionsManager.php(135): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)

#14 /var/www/html/forensicswiki/includes/user/User.php(2665): MediaWiki\User\UserOptionsManager->getOption(User, string, NULL, boolean)

#15 /var/www/html/forensicswiki/includes/context/RequestContext.php(355): User->getOption(string)

#16 /var/www/html/forensicswiki/includes/language/Message.php(404): RequestContext->getLanguage()

#17 /var/www/html/forensicswiki/includes/language/Message.php(1304): Message->getLanguage()

#18 /var/www/html/forensicswiki/includes/language/Message.php(862): Message->fetchMessage()

#19 /var/www/html/forensicswiki/includes/language/Message.php(954): Message->toString(string)

#20 /var/www/html/forensicswiki/includes/exception/MWException.php(88): Message->text()

#21 /var/www/html/forensicswiki/includes/exception/MWException.php(169): MWException->msg(string, string)

#22 /var/www/html/forensicswiki/includes/exception/MWException.php(200): MWException->getPageTitle()

#23 /var/www/html/forensicswiki/includes/exception/MWException.php(231): MWException->reportHTML()

#24 /var/www/html/forensicswiki/includes/exception/MWExceptionHandler.php(104): MWException->report()

#25 /var/www/html/forensicswiki/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(FatalError)

#26 /var/www/html/forensicswiki/includes/exception/MWExceptionHandler.php(156): MWExceptionHandler::handleException(FatalError, string)

#27 [internal function]: MWExceptionHandler::handleUncaughtException(FatalError)

#28 {main}


LocalSettings.php sanitized:

<?php

# This file was automatically generated by the MediaWiki 1.35.1

# installer. If you make manual changes, please keep track in case you

# need to recreate them later.

#

# See includes/DefaultSettings.php for all configurable settings

# and their default values, but don't forget to make changes in _this_

# file, not there.

#

# Further documentation for configuration settings may be found at:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "ForensicsWiki";

## The URL base path to the directory containing the wiki;

## defaults for all runtime URL paths are based off of this.

## For more information on customizing the URLs

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://forensicswiki.info";

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

$wgResourceBasePath = $wgScriptPath;

## The URL paths to the logo.  Make sure you change this from the default,

## or else you'll overwrite your logo when you upgrade!

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

## UPO means: this is also a user preference option

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "apache@🌻.invalid";

$wgPasswordSender = "apache@🌻.invalid";

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = false; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "REDACTED";

$wgDBuser = "REDACTED";

$wgDBpassword = "REDACTED";

# MySQL specific settings

$wgDBprefix = "fwiki";

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Shared database table

# This has no effect unless $wgSharedDB is also set.

$wgSharedTables[] = "actor";

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = [];

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = false;

#$wgUseImageMagick = true;

#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org

$wgUseInstantCommons = false;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data

# about this MediaWiki instance. The Wikimedia Foundation shares this data

# with MediaWiki developers to help guide future development efforts.

$wgPingback = true;

## If you use ImageMagick (or any other shell command) on a

## Linux server, this will need to be set to the name of an

## available UTF-8 locale. This should ideally be set to an English

## language locale so that the behaviour of C library functions will

## be consistent with typical installations. Use $wgLanguageCode to

## localise the wiki.

$wgShellLocale = "C.UTF-8";

## Set $wgCacheDirectory to a writable directory on the web server

## to make your wiki go slightly faster. The directory should not

## be publicly accessible from the web.

#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/data/Names.php

$wgLanguageCode = "en";

$wgSecretKey = "REDACTED";

# Changing this will log out all existing sessions.

$wgAuthenticationTokenVersion = "1";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = "REDACTED";

## For attaching licensing metadata to pages, and displaying an

## appropriate copyright notice / icon. GNU Free Documentation

## License and Creative Commons licenses are supported so far.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "/usr/bin/diff3";

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'Vector' );

# End of automatically generated settings.

# Add more configuration options below.


Any suggestions on what to try next?

Many thanks! BeauwithaBang (talk) 01:24, 13 February 2021 (UTC)

Try to open the page on a private window, to discard this is a cache issue. Ciencia Al Poder (talk) 12:34, 13 February 2021 (UTC)
I opened in an incognito window, and the issue persists. BeauwithaBang (talk) 17:15, 23 February 2021 (UTC)
See [[Manual:$wgServer]]. As the error says on your website. 193.185.246.137 (talk) 17:54, 23 February 2021 (UTC)
I wouldn't be asking in this forum if I had gone to that section of the manual and solved my issue. BeauwithaBang (talk) 14:29, 24 February 2021 (UTC)
$wgServer. Whether this Structured Discussions is poorly developed. 193.185.246.137 (talk) 17:55, 23 February 2021 (UTC)
This is something strange affecting only your particular site. I'd suggest downloading MediaWiki again removing any leftover from the old installation. You can still use the same database when running the installer. Ciencia Al Poder (talk) 15:21, 24 February 2021 (UTC)
we have the same issue with $wgServer .
originally installed 1.35.2 in debian bullseye [ see https://www.mediawiki.org/wiki/MediaWiki_1.35 ]
1.35.2 had bugs like this that I spent 10+ hours on :
Adding default interwiki definitions ...Wikimedia\Rdbms\DBQueryError from line 1699 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: Error 1054: Unknown column 'iw_api' in 'field list'
after that I am trying 1.35 untared over 1.35.2
in 1.35.2 this worked:
$wgServer = WebRequest::detectServer();
now it does not.
tried :
$wgServer = 'http://wiki-2021.<ourdomain>.com';
$wgServer = 'wiki-2021.<ourdomain>.com';
and
$wgServer = 'localhost';
still an issue.
the searching around I've done shows others running into the great wall of $wgServer .
we are a 100% Debian shop and as with Debian for many years we greatly appreciate the work done to maintain Mediawiki. So I understand that there can be bugs . I'd like to help get this fixed for all.
I do not consider the 30+ hours working on our migration from what is a git based 1.31 system to 1.35 to be a waste of time. I do not want to give up so and suggested shots in the dark will be appreciated.
PS: we'll probably try install to a new directory and rsync extensions and more to the new install. I'll copy the current virtual machine in case someone has suggestions. RobFantini (talk) 17:42, 19 July 2021 (UTC)
Never mind my last post. I am following Ciencia Al Poder's advise and using latest production wiki version and making progress.
I am still using the debian install method and copying / rsyncing over the latest files and directories. RobFantini (talk) 01:08, 20 July 2021 (UTC)

How to limit new username character?

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.


e.g.:

I want to set 0~9 can't in username which new user


abc123 (x)

abcdef (o) Tunglinwu (talk) 07:50, 13 February 2021 (UTC)

Maybe $wgInvalidUsernameCharacters = '@:0123456789';, adapted from Manual:$wgInvalidUsernameCharacters? Jonathan3 (talk) 09:01, 13 February 2021 (UTC)
Yes, It works, thank you. Tunglinwu (talk) 14:46, 13 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade 1.29.1 to 1.35.1 failing during update.php

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


Hello

I'm trying to upgrade MediaWiki from 1.29.1 to the lates stable (1.35.1) but the DB migration ist failing during the execution of update.php with the following error:


Populating revision...

... revision processed up to revision id 500 of 3583 (485 rows in 0.034866094589233 seconds)

Failed to populate content table revision row batch starting at 501 due to exception: MediaWiki\Storage\BlobAccessException: Bad blob address: tt:0 in /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/Storage/SqlBlobStore.php:295

Stack trace:

#0 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/maintenance/populateContentTables.php(374): MediaWiki\Storage\SqlBlobStore->getBlob('tt:0')

#1 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/maintenance/populateContentTables.php(276): PopulateContentTables->fillMissingFields(Object(stdClass), 'wikitext', 'tt:0')

#2 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/maintenance/populateContentTables.php(230): PopulateContentTables->populateContentTablesForRowBatch(Object(Wikimedia\Rdbms\ResultWrapper), 501, 'revision')

#3 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/maintenance/populateContentTables.php(97): PopulateContentTables->populateTable('revision')

#4 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/DatabaseUpdater.php(1458): PopulateContentTables->execute()

#5 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->populateContentTables()

#6 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates(Array, false)

#7 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/DatabaseInstaller.php(424): DatabaseUpdater->doUpdates()

#8 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/WebInstallerUpgrade.php(64): DatabaseInstaller->doUpgrade()

#9 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/installer/WebInstaller.php(269): WebInstallerUpgrade->execute()

#10 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/mw-config/index.php(82): WebInstaller->execute(Array)

#11 /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/mw-config/index.php(40): wfInstallerMain()

#12 {main}


I managed to get back to my backup so 1.29.1 is up and running again.

Any help would be appreciated.


Thanks in advance

Jo from Germany DEJoWuTal (talk) 11:44, 13 February 2021 (UTC)

Update:
Tried to upgrade from 1.29.1 to 1.31.12. The update.php finished without problems.
Went on to upgrade from 1.31.12 to 1.35.1 but it is still failing with the same error
Failed to populate content table revision row batch starting at 501 due to exception: MediaWiki\Storage\BlobAccessException: Bad blob address: tt:0 in /homepages/4/d51112786/htdocs/Kunden/Lindemann/wiki/includes/Storage/SqlBlobStore.php:295
Thanks in advance for any help DEJoWuTal (talk) 12:02, 13 February 2021 (UTC)
Apparently one of the revisions points to a text id = 0, which is invalid. That shouldn't happen during normal operation, and is an error. You probably would get an error if you view the diff of that particular revision.
Possible fixes involve manually editing the database: Find that revision and either delete it, or update the rev_text_id with the id of the previous or next revision of the same page. Ciencia Al Poder (talk) 12:25, 13 February 2021 (UTC)
Thank you for your hint, @Ciencia Al Poder. I checked the revisions table:
SELECT * FROM `mw_revision` WHERE `rev_text_id` = 0
1 Result from 2011. Would it OK to just delete this entry? Or will this cause other inconsistencies?
Thanks again. 2003:E4:FF15:E000:39EF:2E89:9CC9:9783 (talk) 16:29, 13 February 2021 (UTC)
There will be no inconsistencies, just a revision that disappears. However, that revision is already broken/not accessible, since it has no text associated to it. Ciencia Al Poder (talk) 21:21, 13 February 2021 (UTC)
Solved. Thanks alot @Ciencia Al Poder
I deleted the broken revision and the update.php finished without any problems.
MediaWiki 1.35.1 ist finally up and running.
Thanks again for the great support!
Best regards from Germany DEJoWuTal (talk) 07:31, 15 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to "start slow" with community creation?

I am the admin of a MediaWiki 1.34.2 website; currently I am the only registered user and the website is closed to registration and editing for anyone else.

I do want to open the website for public editing (to both anonymous and registered) but I want to "start slow", allowing only minor edits at start, say, up to creating/deleting 500 bytes per edit. The purpose of such limitation is to slowly learning about patrolling and moderation myself and getting more. Of course, a user who edits should get a clear message that editing is limited.

If you were in a similar situation, which limitation/s would you utilize and how would you do so? Thanks 2001:44C8:424C:FDE4:A70C:CC50:427D:2A46 (talk) 12:14, 13 February 2021 (UTC)

You may have to use Extension:AbuseFilter to do that. See Extension:AbuseFilter/Rules formatAmmarpad (talk) 12:45, 17 February 2021 (UTC)

Using Javascript to filter out lines

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 wanted to filter lines in my wiki based on an input box. Outside mediawiki this works

<script> 
function filter() { 
  var x = document.getElementsByClassName("column"); 
  search=document.getElementById("input").value; 
  for (i = 0; i < x.length; i++) { 
    if (x[i].id.indexOf(search) == -1) { 
      x[i].style.display = 'none'; 
    } else { 
      x[i].style.display = 'inline'; 
    } 
  } 
} 
 
filter(); 
</script> 

<input type="text" id="input" onkeyup="filter()" value="Golden" placeholder="Filter..." title="Type in a name"> 
<div id="Boulder 1" class="column">Boulder 1</div> 
<div id="Golden 1" class="column">Golden 1</div> 
<div id="Boulder 2" class="column">Boulder 2</div> 
<div id="Golden 2" class="column">Golden 2</div>

But I've got confused on how to put this in common.js, my current approach is

$(function () {
  var x = document.getElementsByClassName("filtered");
  var input = document.getElementById("input");
  if (input != null) {
    search=input.value;
  } else {
    search="Golden";
  }
  for (i = 0; i < x.length; i++) {
    if (x[i].id.indexOf(search) == -1) {
      x[i].style.display = 'none';
    } else {
      x[i].style.display = 'block';
    }
  }


}());
$('#boxhere').html('<input type="text" id="input" onkeyup="function ()" value="Golden" placeholder="Filter..." title="Type in a name">');

With wiki page

<div id="boxhere"></div>
<div id="Boulder 1" class="filtered">Boulder 1</div>
<div id="Golden 1" class="filtered">Golden 1</div>
<div id="Golden 2" class="filtered">Golden 2</div>
<div id="Boulder 2" class="filtered">Boulder 2</div>

But the javascript function is not being run as I type. I guess the problem is how to give names to the function and call it correctly, but I can't get the right combination of function keyword and different sorts of brackets. Vicarage (talk) 16:00, 13 February 2021 (UTC)

Several problems:
  1. You have encapsulated your code via $(}());
    • Basically it is a good idea to encapsulate things.
    • But it is hidden from the world now.
  2. It does need a name in global JS namespace.
    • That name is required in onkeyup="uniqueName"
  3. It is a strange mixture of jQuery and document.getElements HTML DOM functions, but would work.
  4. search was not declared and might collide with something else in global JS namespace.
  5. Some minor strict coding issues. PerfektesChaos (talk) 18:39, 13 February 2021 (UTC)
Thanks for the suggestions, which I've tried to take on board, thought as I'm sure is apparent I don't really know Javascript. I was following the advice in Adding JavaScript to Wiki Pages, and didn't really understand the syntax, and why there there was a function keyword but not followed by a name
If I rewrite still clumsily as
function fred () {
  var x = document.getElementsByClassName("filtered");
  var output = document.getElementById("output");
  var search123 = "Golden";
  if(document.getElementById("input") && document.getElementById("input").value)
  {
    search123 = document.getElementById("input").value;  
    output.innerHTML = document.getElementById("input").value
  } 
  for (i = 0; i < x.length; i++) {
    if (x[i].id.indexOf(search123) == -1) {
      x[i].style.display = 'none';
    } else {
      x[i].style.display = 'block';
    }
  }
}
fred();
$('#boxhere').html('<input type="text" id="input" onkeyup="fred" value="Golden" placeholder="Filter..." title="Type in a name">');
then fred clearly runs once, but it doesn't seem to run again, as <div id="output"></div> in a mediawiki page never gets changed as I type in the box Vicarage (talk) 20:07, 13 February 2021 (UTC)
Ah-ha onkeyup="fred()". I will write-up when I've tidied it. Vicarage (talk) 21:47, 13 February 2021 (UTC)
My solution can be seen at http://wiki.johnbray.org.uk/Documents/Magazines/Subterranea, using template:FIles and common.js Vicarage (talk) 08:15, 15 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LocalSettings.php-only-debugging in MediaWiki 1.32 or greater

I want to know if there are or there aren't problems with Memcached in my MediaWiki 1.34.2 installation and to do so only via LocalSettings.php (in part because my hosting environment is PaaS-shared and I don't have a lot of control over its components).


Please review my LocalSettings.php configuration below and share if you find any problem or would change something (perhaps adding some information security):

# PHP:
error_reporting( -1 );
ini_set( 'display_errors', 1 );

# SQL:
$wgDebugDumpSql = true;

# Creating a log file:
$wgDebugLogFile = "./myLog.txt";

2001:44C8:424C:FDE4:84FE:C86C:C2BE:11DC (talk) 17:10, 13 February 2021 (UTC)

@Malyacko by "information security" I meant to ensure secured output with as less as possible potential for security breaches or data that could make easier work for potential crackers. 2001:44C8:4180:F93D:749F:92CB:35E8:D44B (talk) 09:54, 14 February 2021 (UTC)
In that case I'd rather recommend running supported software versions. The 1.34.x series had its end of life in November 2020, so its security issues will not get fixed by 1.34.x updates. Malyacko (talk) 20:56, 14 February 2021 (UTC)

Renaming Category Failed with MassEditRegex

(also posted to MassEditRegex talk page)

My rename failed. First i went to the category page https://MyUrl/Category:Delete_Me, which lists one page called DeletemeNext, i clicked `Edit All`, and got the Mass Edit page with the category pre-loaded.So far, so good. Then i enter my desired find-replace text:

find: \[\[Category:Delete Me\]\]

replace: [[Category: New Category Name]]But when i submit, i get an error, saying the page (the page that's in the old category) doesn't exist: Johnywhy (talk) 19:22, 13 February 2021 (UTC)

how to set a offset to view the heading below the nav

In ChameleonLayoutFile: fixedhead (MW135) the headings are under the fixed nav not visible after a jump from TOC. How to set a offset to move down the page (slider scroll up) by nav.height after jumping from TOC only?

Many thanks for a solution! Lutz.bose (talk) 19:37, 14 February 2021 (UTC)

Maybe check https://github.com/ProfessionalWiki/chameleon/issues Malyacko (talk) 20:54, 14 February 2021 (UTC)

MediaWiki internal error - bug in extension???

Our site is running MediaWiki (possibly v.1.25.1? this is what I found in the release notes on the cpanel file manager) through HostGator (running PHP 7.3.6).

We do next to nothing behind the scenes with the wiki in the cpanel and whatnot, we solely update the content. We are not tech savvy at all (we're Jane Austen enthusiasts) so if you are able to help, please assume that I'm extremely stupid when explaining!

The wiki was running just fine a couple of days ago but yesterday we discovered that when trying to load any page on the wiki it was throwing up an internal error like the one copy and pasted below. I googled around and tried doing an update through the browser mw-config, having managed to find the upgrade key, but this only gives me the 1.25.1 option. I looked at attempting to upgrade to the latest MW, but if I'm reading it right, HostGator's PHP isn't a new enough version to do it -- v.1.35.1 requires PHP 7.3.19? And HostGator's inbuilt MW install option is 1.23.9 which I assume is no help whatsoever! We do have a backup of the content, but have no idea where to go from here. Can anyone help???


MediaWiki internal error.

Original exception: [f8224f7c] /wiki/index.php?title=Main_Page MWException from line 226 of /home1/elletu/public_html/wiki/includes/Hooks.php: Detected bug in an extension! Hook Cite::checkRefsNoReferences has invalid call signature; Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given

Backtrace:

#0 /home1/elletu/public_html/wiki/includes/parser/Parser.php(435): Hooks::run(string, array)

#1 /home1/elletu/public_html/wiki/includes/content/WikitextContent.php(333): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#2 /home1/elletu/public_html/wiki/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#3 /home1/elletu/public_html/wiki/includes/poolcounter/PoolWorkArticleView.php(139): AbstractContent->getParserOutput(Title, integer, ParserOptions)

#4 /home1/elletu/public_html/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#5 /home1/elletu/public_html/wiki/includes/page/Article.php(674): PoolCounterWork->execute()

#6 /home1/elletu/public_html/wiki/includes/actions/ViewAction.php(44): Article->view()

#7 /home1/elletu/public_html/wiki/includes/MediaWiki.php(395): ViewAction->show()

#8 /home1/elletu/public_html/wiki/includes/MediaWiki.php(273): MediaWiki->performAction(Article, Title)

#9 /home1/elletu/public_html/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()

#10 /home1/elletu/public_html/wiki/includes/MediaWiki.php(414): MediaWiki->main()

#11 /home1/elletu/public_html/wiki/index.php(41): MediaWiki->run()

#12 {main}

Exception caught inside exception handler: [648bae74] /wiki/index.php?title=Main_Page MWException from line 226 of /home1/elletu/public_html/wiki/includes/Hooks.php: Detected bug in an extension! Hook Cite::checkRefsNoReferences has invalid call signature; Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given

Backtrace:

#0 /home1/elletu/public_html/wiki/includes/parser/Parser.php(435): Hooks::run(string, array)

#1 /home1/elletu/public_html/wiki/includes/cache/MessageCache.php(1056): Parser->parse(string, Title, ParserOptions, boolean)

#2 /home1/elletu/public_html/wiki/includes/Message.php(1038): MessageCache->parse(string, Title, boolean, boolean, Language)

#3 /home1/elletu/public_html/wiki/includes/Message.php(721): Message->parseText(string)

#4 /home1/elletu/public_html/wiki/includes/Message.php(777): Message->toString()

#5 /home1/elletu/public_html/wiki/includes/skins/Skin.php(654): Message->parse()

#6 /home1/elletu/public_html/wiki/includes/skins/SkinTemplate.php(418): Skin->printSource()

#7 /home1/elletu/public_html/wiki/includes/skins/SkinTemplate.php(230): SkinTemplate->prepareQuickTemplate(OutputPage)

#8 /home1/elletu/public_html/wiki/includes/OutputPage.php(2288): SkinTemplate->outputPage()

#9 /home1/elletu/public_html/wiki/includes/exception/MWException.php(204): OutputPage->output()

#10 /home1/elletu/public_html/wiki/includes/exception/MWException.php(245): MWException->reportHTML()

#11 /home1/elletu/public_html/wiki/includes/exception/MWExceptionHandler.php(59): MWException->report()

#12 /home1/elletu/public_html/wiki/includes/exception/MWExceptionHandler.php(169): MWExceptionHandler::report(MWException)

#13 /home1/elletu/public_html/wiki/includes/MediaWiki.php(428): MWExceptionHandler::handleException(MWException)

#14 /home1/elletu/public_html/wiki/index.php(41): MediaWiki->run()

#15 {main} Ruxburgh (talk) 21:20, 14 February 2021 (UTC)

The "Special:Version" page in MediaWiki should tell you which exact version you are running. Just to make this clear, did this internal error happen before you tried upgrading? Malyacko (talk) 23:59, 14 February 2021 (UTC)
Before - only two users on the site have access to the "behind the scenes" content, myself and the board administrator, and neither of us have touched any of the wiki files in years. The error came out of nowhere! Ruxburgh (talk) 08:30, 15 February 2021 (UTC)
the internal error sounds a lot like having the wrong version of extension:Cite for your version of mediawiki. Bawolff (talk) 00:20, 15 February 2021 (UTC)
Thanks! Would it be normal for this to break out of nowhere? How would I go about changing the version? Ruxburgh (talk) 08:32, 15 February 2021 (UTC)
I think MediaWiki 1.25 is not (fully) compatible with PHP 7.3
HostGator probably upgraded PHP and that broke things. If you can't return to the previous PHP version, you'll have to upgrade MediaWiki and extensions to a recent supported MediaWiki version. Ciencia Al Poder (talk) 12:14, 15 February 2021 (UTC)
How do you update the extensions? Sin Stalker (talk) 00:25, 31 January 2022 (UTC)
See Manual:Upgrading Ciencia Al Poder (talk) 09:18, 31 January 2022 (UTC)
HostGator supports PHP 7.4, which MediaWiki supports: How to Update the PHP Version | HostGator Support. You can switch the PHP version there, and then upgrade MediaWiki. Leaderboard (talk) 14:04, 15 February 2021 (UTC)
Were you able to fix this?
I am having the same issue, but with Webhostinghub. I've updated PHP and MediaWiki but neither fixed this error. Sin Stalker (talk) 00:25, 31 January 2022 (UTC)

Need to disable DatabaseMysqlBase::serverIsReadOnly

I currently have a Mediawiki 1.30 install that I have tried to upgrade to the latest 1.35 and that has failed due to the db server read only checking.


My db backend is a master/multi-replica Mariadb cluster with Maxscale doing read/write routing. All writes go to the master and all reads to to the replicas. When the upgrade.php attempts to see if the db is read only, it does so with a select statement, thus routed to a read only replica and fails. I changed to db from the maxscal IP to the master mariadb box and the upgrade worked. Swapped the host back to the maxscale box and found I was unable to log in. Enabled debugging and got this:


[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0.001s] xxxxxxxx: SELECT @@GLOBAL.read_only AS Value


So, I rolled back my install and things are working again. While I cannot understand why there would be a need to have read only logic in the software at all, I need to know if there is a way to disable it as it will not work in my environment at all. Joeotterson (talk) 22:04, 14 February 2021 (UTC)

MediaWiki handles the Primary/Replica connections through $wgDBservers. Looks like Maxscale doing the read/write routing is not supported. You probably want to bugreport it. Ciencia Al Poder (talk) 12:05, 15 February 2021 (UTC)
Phab task phab:T274830Ammarpad (talk) 12:38, 17 February 2021 (UTC)

User groups resetting after re login to my mediawiki site

HI All,

I created a gorup named 'Project Members' in my mediawiki site version 1.27.5. Next I added a person to the group and asked him to relogin...

To my surprise, he's automatically removed from the group. Pelase help me what would be the issue and how to resolve it. 148.168.40.123 (talk) 05:23, 15 February 2021 (UTC)

Hi All, Could you please help me with this? 148.168.40.123 (talk) 04:34, 16 February 2021 (UTC)
Do you have a SSL Certificate signed by a Certificate Authority? MWilsonCK (talk) 11:06, 16 February 2021 (UTC)

Detecting the presense/absense of flag argument to a template

I would like to detect the mere presense/absense of an argument to a template as an elegant flag, to distinguish between {{fred|flag}} and {{fred}}. But all the #if and #ifeq logic and using defaults means the best I can do is {{fred|flag=}} which seems crude. Vicarage (talk) 09:12, 15 February 2021 (UTC)

use {{{1}}}. Complex argument handling is easier in lua. Bawolff (talk) 01:52, 16 February 2021 (UTC)
You should never treat {{fred}} and {{fred|}} and {{fred| }} and {{fred|1=}} differently.
The VisualEditor is inserting empty assignments automatically for recommended fields, and using VisualEditor the performers do not know how source text looks like. Template programming is much older.
I understand from our template magicians that best approach to deal with default value 42 (or none) by
  • {{#if: {{{1|}}} | {{{1}}} | 42 }}
  • This is also trimming but unnamed parameters keep whitespace.
It makes no difference whether Lua is used or traditional template programming, both suffering from the same nuisances. Gib Senf dazu! (talk) 10:50, 16 February 2021 (UTC)
As far as I can see {{fred|flag}} and {{fred}} end up exactly the same if you interrogate flag in a template, so you can't see it was provided that way or not. My hopes were raised as the External Data extension for example uses flags, https://www.mediawiki.org/wiki/Extension:External_Data##get_web_data_-_CSV,_GFF,_JSON,_XML,_HTML, but I guess that's because its a parser function.
Oh well, ugly it is. Vicarage (talk) 18:02, 16 February 2021 (UTC)

How to safely remove ContactPage?

On MediaWiki 1.34.2 the only addon extension I ever installed is ContactPage; for now I would like to remove it.


Is there anything to take into account when (backuping) and removing its configuration from LocalSettings.php and when removing its files from the file tree? 2001:44C8:4180:F93D:B543:F43:460A:F3A9 (talk) 11:42, 15 February 2021 (UTC)

I recall I had to create some 301 reference when getting ContactPage to work but I can't find that reference in a list of all the references I have. 2001:44C8:4180:F93D:B543:F43:460A:F3A9 (talk) 11:43, 15 February 2021 (UTC)
Looks like Extension:ContactPage doesn't write anything to the database. Removing the extension from LocalSettings.php should be sufficient. Ciencia Al Poder (talk) 12:00, 15 February 2021 (UTC)

Error when using Extension:CheckUser

I try to install mediawiki on heroku with postgresql, it was success.

But when I install CheckUser, it throw Error

2021-02-15T13:43:58.109411+00:00 app[web.1]: [15-Feb-2021 13:43:58 UTC] PHP Fatal error:  Uncaught Exception: Unable to open file /app/www/w/extensions/CheckUser/extension.json: filemtime(): stat failed for /app/www/w/extensions/CheckUser/extension.json in /app/www/w/includes/registration/ExtensionRegistry.php:177
2021-02-15T13:43:58.109444+00:00 app[web.1]: Stack trace:
2021-02-15T13:43:58.109609+00:00 app[web.1]: #0 /app/www/w/includes/GlobalFunctions.php(51): ExtensionRegistry->queue()
2021-02-15T13:43:58.109751+00:00 app[web.1]: #1 /app/www/w/LocalSettings.php(149): wfLoadExtension()
2021-02-15T13:43:58.109897+00:00 app[web.1]: #2 /app/www/w/includes/Setup.php(143): require_once('...')
2021-02-15T13:43:58.110068+00:00 app[web.1]: #3 /app/www/w/includes/WebStart.php(89): require_once('...')
2021-02-15T13:43:58.110206+00:00 app[web.1]: #4 /app/www/w/index.php(44): require('...')
2021-02-15T13:43:58.110323+00:00 app[web.1]: #5 /app/www/index.php(2): require_once('...')
2021-02-15T13:43:58.110354+00:00 app[web.1]: #6 {main}
2021-02-15T13:43:58.110513+00:00 app[web.1]:   thrown in /app/www/w/includes/registration/ExtensionRegistry.php on line 177

and when I try to using php maintenance/update.php in my computer, it throw another error:

Wikimedia\Rdbms\DBQueryError from line 1699 of \www\w\includes\libs\rdbms\database\Database.php: Error 23503: ERROR:  insert or update on table "cu_changes" violates foreign key constraint "cu_changes_cuc_page_id_fkey"
DETAIL:  Key (cuc_page_id)=(2) is not present in table "page".

Function: PopulateCheckUserTable::doDBUpdates
Query: INSERT INTO "cu_changes" ( <deleted because of non-public personal information> )

#0 \www\w\includes\libs\rdbms\database\Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 \www\w\includes\libs\rdbms\database\Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 \www\w\includes\libs\rdbms\database\Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 \www\w\includes\libs\rdbms\database\Database.php(2343): Wikimedia\Rdbms\Database->query()
#4 \www\w\includes\libs\rdbms\database\Database.php(2323): Wikimedia\Rdbms\Database->doInsert()
#5 \www\w\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->insert()
#6 \www\w\includes\libs\rdbms\database\DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call()
#7 \www\w\extensions\CheckUser\maintenance\populateCheckUserTable.php(103): Wikimedia\Rdbms\DBConnRef->insert()
#8 \www\w\maintenance\includes\LoggedUpdateMaintenance.php(45): PopulateCheckUserTable->doDBUpdates()
#9 \www\w\maintenance\update.php(193): LoggedUpdateMaintenance->execute()
#10 \www\w\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()
#11 \www\w\maintenance\update.php(253): require_once('...')
#12 {main}

why? SunAfterRain 13:37, 15 February 2021 (UTC)

Please check: is /app/www/w/extensions/CheckUser/extension.json exist? Wiki emoji | 😷🅔🅜🅞🅙🅘🅦🅘🅚🅘😷 Keep Healthy~ 00:45, 16 February 2021 (UTC)
what db backend are you using? I didnt think we used foreign key contraints.
The two errors dont make sense. If extension.json is missing (first error) then the update shouldnt run. Maybe its a permission error. Check its readable by web server. Bawolff (talk) 01:50, 16 February 2021 (UTC)
The frist question is CheckUser is download by git and it is marked as submodule, and I used git to upload to heroku. How about the second question? SunAfterRain 06:17, 16 February 2021 (UTC)

using certificate for MediaWiki webpage

I want to use the MediaWiki page with sef-signed certificate? how do I do that?

thx 213.125.100.46 (talk) 15:01, 15 February 2021 (UTC)

Hi, this sounds like a question on the web server software level and is unrelated to MediaWiki itself. Malyacko (talk) 15:05, 15 February 2021 (UTC)
It appears that if you use a self-signed certificate 'account creation' attempts will result in a session error resulting from within the 'form processing' function. It seems to be an application triggered error.
See: Setup Mediawiki as HTTPS Only MWilsonCK (talk) 11:19, 16 February 2021 (UTC)

How do I change my contributions page from title=Special:Contributions&target=XX to Special:Contributions/XX

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.


How do I change my contributions page from title=Special:Contributions&target=XX to Special:Contributions/XX format. I upgraded my wiki to the new wiki and mycontributions link was change to a different format resulting in a broken link. 50.73.98.161 (talk) 16:04, 15 February 2021 (UTC)

Please see the sidebar and provide more context. Malyacko (talk) 17:58, 15 February 2021 (UTC)
See Manual:Short URLAmmarpad (talk) 14:22, 16 February 2021 (UTC)
The problem is that when I click on contributions on the top right of the site I get a 404 error, because it is linking to ..index.php/Special:Contributions/XX . I would love to keep the contribution link in the short format. The actual link that works is ..title=Special:Contributions&target=XX. how do I change it so the the link is ../Special:Contributions/XX and that I get to see my contributions. Santiagourib (talk) 16:20, 16 February 2021 (UTC)
looking at www.mediawiki.org/wiki/Help:User_contributions they explain the different variation of URLS under "URLs and Links" , but it does not explain how to set it up or change it from one specific URL to the shorter version Special:Contributions/XX. Can someone please help. Santiagourib (talk) 21:25, 16 February 2021 (UTC)
Have the you read the page I linked above? – Ammarpad (talk) 12:34, 17 February 2021 (UTC)
I was thinking of a global fix, but URL rewrite worked. Thanks Ammarpad Santiagourib (talk) 15:31, 17 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

a question

Hi, does anyone know how to add protection “Only autopatrol allowed”?

Thank you! 2A01:6500:A046:214B:1513:8645:4638:8751 (talk) 17:11, 15 February 2021 (UTC)

On a page? Leaderboard (talk) 17:18, 15 February 2021 (UTC)
Yes. 2A01:6500:A046:214B:1513:8645:4638:8751 (talk) 17:26, 15 February 2021 (UTC)
You can write an Extension:AbuseFilter to handle that (see this filter for an example). Leaderboard (talk) 17:35, 15 February 2021 (UTC)
see Manual:$wgRestrictionLevels Bawolff (talk) 01:26, 16 February 2021 (UTC)

Problem with mediawiki Class 'FormatJson' not found

Hello


I have two wikis with MediaWiki 1.31.0 but one of them shows this bug today:

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

[YCrGyVvHeAgAADE-v60AAAAC] /wikines77/index.php/P%C3%A1gina_principal Error from line 689 of /home/s05ad1fa/public_html/wikines77/includes/exception/MWExceptionHandler.php: Class 'FormatJson' not found

Backtrace:

#0 /home/s05ad1fa/public_html/wikines77/includes/exception/MWExceptionHandler.php(216): MWExceptionHandler::logError(ErrorException, string, string)

#1 /home/s05ad1fa/public_html/wikines77/includes/AutoLoader.php(109): MWExceptionHandler::handleError(integer, string, string, integer, array)

#2 /home/s05ad1fa/public_html/wikines77/includes/AutoLoader.php(109): require()

#3 [internal function]: AutoLoader::autoload(string)

#4 /home/s05ad1fa/public_html/wikines77/includes/Xml.php(664): spl_autoload_call(string)

#5 /home/s05ad1fa/public_html/wikines77/includes/Xml.php(680): Xml::encodeJsVar(array, boolean)

#6 /home/s05ad1fa/public_html/wikines77/includes/resourceloader/ResourceLoader.php(1528): Xml::encodeJsCall(string, array, boolean)

#7 /home/s05ad1fa/public_html/wikines77/includes/OutputPage.php(3011): ResourceLoader::makeConfigSetScript(array)

#8 /home/s05ad1fa/public_html/wikines77/includes/skins/Skin.php(658): OutputPage->getBottomScripts()

#9 /home/s05ad1fa/public_html/wikines77/includes/skins/SkinTemplate.php(485): Skin->bottomScripts()

#10 /home/s05ad1fa/public_html/wikines77/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()

#11 /home/s05ad1fa/public_html/wikines77/includes/OutputPage.php(2388): SkinTemplate->outputPage()

#12 /home/s05ad1fa/public_html/wikines77/includes/MediaWiki.php(868): OutputPage->output(boolean)

#13 /home/s05ad1fa/public_html/wikines77/includes/MediaWiki.php(880): MediaWiki->{closure}()

#14 /home/s05ad1fa/public_html/wikines77/includes/MediaWiki.php(524): MediaWiki->main()

#15 /home/s05ad1fa/public_html/wikines77/index.php(42): MediaWiki->run()

#16 {main}

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


They are in the same dominion (kaiserland77.com), I haven't changed anything and the other mediawiki works great. Any ideas?

Thanks Martin.gpu (talk) 23:03, 15 February 2021 (UTC)

i guess you are missing php files. Try reinstalling. Bawolff (talk) 01:24, 16 February 2021 (UTC)
@Martin.gpu Please also upgrade your installation for your own safety. MediaWiki 1.31.0 is an old, insecure version. Malyacko (talk) 08:52, 16 February 2021 (UTC)

Pywikibot - Summary

Hello! Instructions here tell you how to set up a summary or leave the default specific edit summaries for your bot. How can I make it to have both simultaneously? For example:


General summary message: [specific edit that was made] Klein Muçi (talk) 00:19, 16 February 2021 (UTC)

Hi, please refer to Manual:Pywikibot Malyacko (talk) 08:51, 16 February 2021 (UTC)
Hey! Thank you for the fast response! :) I've literally read every page there is to read about the documentation of Pywikibot (how to operate it on PAWS, computer and Toolforge) and even searched specific pywikibot script examples that are available to see to learn about that specific thing but I couldn't find any information that specifically tells you what I wanted to know. Klein Muçi (talk) 11:13, 16 February 2021 (UTC)
I should have been more explicit, sorry - Please see "Get help" on Manual:Pywikibot. I'm not sure how many people know much about Pywikibot on the MediaWiki support desk. Malyacko (talk) 12:42, 16 February 2021 (UTC)
Oh, I see. I tried posting at the corresponding talk page but I read the notice there that said I should post here. Unfortunately I haven't had much luck with IRC/mailing lists on the past regarding pywikibot. Klein Muçi (talk) 20:41, 16 February 2021 (UTC)

I need to disable the noreferrer attribute for 4 external "_blank" links in my wiki.

I completely understand that noreferrer has been included for security but I really need to turn it off in my use case.

Any help would be greatly appreciated.

MediaWiki 1.35.1
PHP 7.4.9 (apache2handler)
MariaDB 10.5.8-MariaDB
ICU 66.1

41.77.201.56 (talk) 06:41, 16 February 2021 (UTC)

i guess you would have to make an extension. I don't think that MW supports disabling tabnapping protection in core. Bawolff (talk) 09:58, 16 February 2021 (UTC)
You can use LinkerMakeExternalLinkHook to unset attribute that you don't like in your LocalSettings. – Ammarpad (talk) 14:21, 16 February 2021 (UTC)

Setup Mediawiki as HTTPS Only

Does anyone have prepared steps to setting up Mediawiki as HTTPS Only? I am setting up an internal CA and Intermediate CA so I am looking for any previous experiences in this effort. Especially regarding Mediawiki behavior. Currently, I am able to display the 'create account' and 'login' pages, but their actions result in a session error. I am assuming it is the certificate, so I am setting up the CAs as well. MWilsonCK (talk) 09:32, 16 February 2021 (UTC)

that's something you do on the webserver layer not mediawiki. As far as mediawiki is concerned, all you need is $wgServer to be the correct origin starting with https://. Everything else is on the webserver layer below mediawiki.
If you want strict https only, you may also want to configure your webserver to send HSTS headers.
> Currently, I am able to display the 'create account' and 'login' pages, but their actions result in a session error. I am assuming it is the certificate...
Almost certainly not due to the certificate. It could be something related to rewrite rules or $wgServer. If those are set incorrectly the action of the form might be in a different origin than the original page which would cause a session error. If caching is misconfigured it can can also cause a session error. Bawolff (talk) 09:55, 16 February 2021 (UTC)
Thanks for the prompt response Mr. Bawolff. $wgServer is currently set as follows: MWilsonCK (talk) 10:23, 16 February 2021 (UTC)
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://hostname:443"; MWilsonCK (talk) 10:24, 16 February 2021 (UTC)
normally you would not include :443 at the end since port 443 is the default for https. Bawolff (talk) 05:04, 17 February 2021 (UTC)
I have toggled $wgServer before and that resulted in a fatal error.
I have also toggled: #$wgForceHTTPS = true;
And currently commenting out forcehttps has gotten me to this current state.
Further reading suggests using Let's Encrypt. So I'm taking a trip through SSL Land.
What do you suggest? Everything else works on my old Mediawiki (http only) and my system. MWilsonCK (talk) 10:24, 16 February 2021 (UTC)
Of course my situation is somewhat specific, so I would like to document options with solutions.
And, it appears that Mediawiki won't work with a self-sign cert? MWilsonCK (talk) 10:40, 16 February 2021 (UTC)
So my question is: are their any other hacks? e.g. cURL, etc.? MWilsonCK (talk) 10:51, 16 February 2021 (UTC)
It appears that if you use a self-signed certificate 'account creation' attempts will result in a session error resulting from within the 'form processing' function. It seems to be an application triggered error. Maybe cert verification functions.
See: using certificate for MediaWiki webpage
Hello, can anybody help me?!
She puts the solution in the basket! MWilsonCK (talk) 11:24, 16 February 2021 (UTC)
Additional info; here is the form error message:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form. MWilsonCK (talk) 11:59, 16 February 2021 (UTC)
She put the solution in the basket.
You know about this guy?!
Found at:
===There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form.===
Please follow Manual:How to debug/Login problems. MWilsonCK (talk) 13:33, 16 February 2021 (UTC)
Well well well, the chicken is on the other foot!
Bawolff was right, it was a cache error, indeed. Once again I have mastered Mediawiki knighthood thanks to Master Bawolff. I have levitated the vessel from the swamp through my concentration on the force... https... May the force be with you.... MWilsonCK (talk) 13:46, 16 February 2021 (UTC)

Error creating thumbnail: Failed to save thumbnail in destination

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,

this error pop up after i transfer the wiki on windows from linux. I cannot find a solution, also reading what i found on internet.

- all the folders have all the permissions

- these are my settings:

$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "C:/Programmi/ImageMagick-7.0.11-Q16-HDRI/convert.exe";

$wgTmpDirectory = "$wgResourceBasePath/images/temp";


In the debug log file there are a lot of rows, i report the following, i don't know if they say something useful

File::transform: Doing stat for mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/319px-Casent0179599_h_1_high.jpg

[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/319px-Casent0179599_h_1_high.jpg does not exist

File::transform: Doing stat for mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/1073px-Casent0179599_h_1_high.jpg

[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/1073px-Casent0179599_h_1_high.jpg does not exist

File::transform: Doing stat for mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/796px-Casent0179599_h_1_high.jpg

[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/796px-Casent0179599_h_1_high.jpg does not exist

File::transform: Doing stat for mwstore://local-backend/local-thumb/d/d0/Casent0179599_h_1_high.jpg/796px-Casent0179599_h_1_high.jpg

[DBQuery] LCStoreDB::get [0.001s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'messages:thumbnail_error'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'messages:thumbnail-dest-create'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'messages:size-kilobytes'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'digitGroupingPattern'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'minimumGroupingDigits'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'separatorTransformTable'  LIMIT 1  

[DBQuery] LCStoreDB::get [0s] 127.0.0.1: SELECT  lc_value  FROM `l10n_cache`    WHERE lc_lang = 'it' AND lc_key = 'messages:file-info-size'  LIMIT 1


In images/thumb/d/d0 there isn't the image.


Thank you Cible30 (talk) 14:45, 16 February 2021 (UTC)

Nobody? Cible30 (talk) 18:14, 22 February 2021 (UTC)
Manual:Common errors and symptoms#Unable to save thumbnail to destination TiltedCerebellum (talk) 21:41, 1 March 2021 (UTC)
Hi, thank you for the answer, the Tmp directory is ok i guess, I set it to $wgTmpDirectory = "$wgResourceBasePath/images/temp"; Cible30 (talk) 10:13, 9 March 2021 (UTC)
Unusually there's more info to the debug log that helps to point to the error. Someone with more knowledge on this will need to help you I think--just a MW user over here. The <code>does not exist</code> part to me would suggest it's looking for the files in the wrong place? Or a missing config settings like this topic:
Project:Support desk/Flow/2018/05#h-After_upgrade_to_1.30_old_images_no_longer_displayed/new_uploaded_are-2018-05-11T09:28:00.000Z re: Setting $wgHashedUploadDirectory TiltedCerebellum (talk) 20:50, 13 March 2021 (UTC)
Yes, it is solved.
I change the ResourceBasePath to the path manually written. Maybe it is because i created and set the wiki on Linux and once on windows the ResourceBasePath doesn't work.
Thank you for the help Cible30 (talk) 17:47, 15 March 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to use bot

see wabsite I want to use bots on my website and I use Android mobile.What bots can I create with Android mobile and how to create D.Peter (talk) 15:55, 16 February 2021 (UTC)

See Manual:Bots Malyacko (talk) 21:29, 16 February 2021 (UTC)

Gaining Admin Privilges

Hi,

So we created a wiki in 2020 but upon creation there was a pre-existing user with the bureaucratic and admin privileges. How is that ? I am now trying to gain these privileges and and have tried contacting this user, but they don't respond. Now we would like to get this resolved prior to publishing our wiki. Can I create a new local settings on a pre-existing wiki, in order to gain these priviliges? Take into consideration that the wiki is ours and there is no infringement of rights. If we were to ask for professional help, who would we go to?


Thank you TVC690 (talk) 17:21, 16 February 2021 (UTC)

This sounds exactly like Changing bureaucratic/administrator status?? on Project:Support desk (mediawiki.org) Peculiar Investor (talk) 17:56, 16 February 2021 (UTC)
Yes, that was posted by my colleague but we have been trying to the Manual:Createandpromote.php solution but we were not able to get it to work. TVC690 (talk) 18:27, 16 February 2021 (UTC)
> Can I create a new local settings on a pre-existing wiki, in order to gain these priviliges?
Not easily. Usual method is to give all users the userrights right, add yourself to admin group, remove the userrights right from the all users group.
> If we were to ask for professional help, who would we go to?
Professional development and consulting
> Yes, that was posted by my colleague but we have been trying to the Manual:Createandpromote.php solution but we were not able to get it to work.
If you describe what happened someone might be able to help. Bawolff (talk) 05:01, 17 February 2021 (UTC)
Thank you for your replies :)
>If you describe what happened someone might be able to help
When trying to add the permissions on the manual:createandPromote.php this is how I tried to type in the code in different ways
1. php createandPromote.php --bureaucrat --sysop --force Username
2. php createandPromote.php [--bureaucrat --sysop --force] Username
3. $permit roles = ['sysop' , "bureaucrat', 'bot' ] Username
4. Also tried to create a new user using php createAndPromote.php --bureaucrat --sysop --custom-groups=developer WikiSysop mypassword
but none of the worked after uploading the file via ftp. TVC690 (talk) 14:17, 17 February 2021 (UTC)
1 or 4 are correct. But where did you try to type this and what text was outputted after you did? Bawolff (talk) 08:13, 18 February 2021 (UTC)
So I have access to the SSH Terminal now and I locate the file that has the Manual:createandPromote.php on terminal and when I type that command the responding message is "Could not open input file: createandPromote.php" TVC690 (talk) 18:02, 19 February 2021 (UTC)
All of MediaWiki's maintenance scripts should be found in the maintenance directory, so if you are the wiki's root directory the command is php maintenance/createandPromote.php <options>
So #1 becomes:
php maintenance/createandPromote.php --bureaucrat --sysop --force Username Peculiar Investor (talk) 18:42, 19 February 2021 (UTC)
Do I have to be in the root directory to execute the command? I used the cd command to get to the maintanence directory to execute the command but i still get the same message Could not open input file TVC690 (talk) 19:04, 19 February 2021 (UTC)
@TVC690 It has gone unnoticed as we've cut and pasted your previous attempts that the command is createAndPrompt.php, (case sensitive).
So from the maintenance directory the command is:
php createAndPromote.php --bureaucrat --sysop <username> [password] Peculiar Investor (talk) 19:33, 19 February 2021 (UTC)
So I tried the command above still isn't working. But this message keeps popping up now, Usage: php [options] [-f] <file> [--] [args...] and a whole list of codes like -h and -r and -c . I don't know how to proceed. I though maybe I have a problem with php as an executable file ??. I don't know.
I appreciate the assistance and your patience with my questions. TVC690 (talk) 21:31, 19 February 2021 (UTC)
@TVC690 What does php -v report? Peculiar Investor (talk) 22:42, 19 February 2021 (UTC)
@Peculiar Investor PHP 7.3.11 (cli) (built: Nov 14 2019 14:45:47) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.11, Copyright (c) 1999-2018, by Zend Technologies TVC690 (talk) 15:20, 22 February 2021 (UTC)
@TVC690 In the wiki's maintenance directory, try the command
php showJobs.php
It often returns 0. See Manual:ShowJobs.php for more information if you are curious.
If that command works then I don't understand why the command is:
php createAndPromote.php --bureaucrat --sysop <username> [password]
isn't working for you. Have you confirmed the createAndPromote.php script exists in your maintenance directory? Peculiar Investor (talk) 15:43, 22 February 2021 (UTC)
@Peculiar Investor So I still get the same response which is "Can't open input file". and yes both files exist in the directory. TVC690 (talk) 17:22, 22 February 2021 (UTC)
@TVC690 The only other thing that I can think of is file permissions are preventing the maintenance script(s) from being opened. You might need to involve your hosting provider's support desk. Peculiar Investor (talk) 17:56, 22 February 2021 (UTC)
So I tried to type the command "php createandPromote.php --bureaucrat --sysop --force Username [password]" on the hosting providers website/file manager/ftp but there is a little x next to the line and that says Syntax error Unxpexcted T_String" How can I correct this ? TVC690 (talk) 19:55, 23 February 2021 (UTC)
To the best of my knowledge you need to execute it on the command line, via SSH. Peculiar Investor (talk) 20:30, 23 February 2021 (UTC)
When I did it in the SSH Command line I got the same error TVC690 (talk) 20:43, 23 February 2021 (UTC)
Google turns up a few ideas, see mediawiki Syntax error Unexpected T_String - Google Search Many are for older versions of MediaWiki but they might help you debug the problem.
Is the wiki currently live and operating without other issues? Peculiar Investor (talk) 00:10, 24 February 2021 (UTC)
Your colleague previously mentioned where you are hosted. Do you have ssh access there so that you can execute the createAndPromote.php script from the command line? Peculiar Investor (talk) 14:38, 17 February 2021 (UTC)
Now I can say "yes" to this, but when I do the above message is given. TVC690 (talk) 18:03, 19 February 2021 (UTC)

Technical maintenance planed‬

MediaWiki message delivery (talk) 17:45, 16 February 2021 (UTC)

Technical maintenance planed‬

MediaWiki message delivery (talk) 19:52, 16 February 2021 (UTC)

Why can I not see the CookieWarning using the master

Hi Support Desk help,

Why can I not see the CookieWarning when I use the extension form master which appears to contain the fixes for previously reported problems with the Vector skin in MW 1.35?

I opened a new topic since updating previously opened entries

Project:Support desk/Flow/2021/01#h-How_can_I_get_the_CookieWarning_extension_to_work_in_MW_1.35.1-2021-01-31T16:21:00.000Z

does not appear to get any answers.

Is there a new configuration option that now restricts the CookieWarning by default to European countries?

I upgraded our production wiki last weekend and am still trying to get the CookieWarning to work.

It is difficult to debug web applications from screen captures !! since I can not see the CookieWarning

Thanks in advance for any help you all can provide. Ken Roy (talk) 22:25, 16 February 2021 (UTC)

Error importing pages from 1.32 into 1.35

Hello again. I am importing pages from 1.32 to 1.35 and I received a mass of errors at 'warning level'.

Example:

( ! ) Warning: XMLReader::read(): Load Data before trying to read in root\www\knowledgebase\includes\import\WikiImporter.php on line 626
Call Stack
#	Time	Memory	Function	Location
1	0.0004	370192	{main}( )	...\index.php:0
2	0.2022	2265752	wfIndexMain( )	...\index.php:48
3	0.2024	2267896	MediaWiki->run( )	...\index.php:55
4	0.2037	2267896	MediaWiki->main( )	...\MediaWiki.php:543
5	0.2122	2284216	MediaWiki->performRequest( )	...\MediaWiki.php:940
6	0.2929	2595128	MediaWiki\SpecialPage\SpecialPageFactory->executePath( )	...\MediaWiki.php:307
7	0.2937	2596776	SpecialImport->run( )	...\SpecialPageFactory.php:635
8	0.2939	2596776	SpecialImport->execute( )	...\SpecialPage.php:600
9	0.4149	4286608	SpecialImport->doImport( )	...\SpecialImport.php:118
10	0.5606	4564136	WikiImporter->doImport( )	...\SpecialImport.php:235
11	37.6055	10815000	read ( )	...\WikiImporter.php:626

( ! ) Warning: Cannot modify header information - headers already sent by (output started at root\www\knowledgebase\includes\import\WikiImporter.php:549) in root\www\knowledgebase\includes\WebResponse.php on line 74
Call Stack
#	Time	Memory	Function	Location
1	0.0004	370192	{main}( )	...\index.php:0
2	0.2022	2265752	wfIndexMain( )	...\index.php:48
3	0.2024	2267896	MediaWiki->run( )	...\index.php:55
4	0.2037	2267896	MediaWiki->main( )	...\MediaWiki.php:543
5	38.2096	9611464	MediaWiki->{closure:C:\wamp64.3.2.3\www\knowledgebase\includes\MediaWiki.php:945-951}( )	...\MediaWiki.php:960
6	38.2096	9611464	OutputPage->output( )	...\MediaWiki.php:947
7	38.2097	9628040	WebResponse->header( )	...\OutputPage.php:2564
8	38.2100	9629640	header ( )	...\WebResponse.php:74

Instructions for topic 'Setup Mediawiki as HTTPS Only' were given by 'There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form.' The instructions suggest changing $wgSessionCacheType to CACHE_DB. And, it worked fine.


I have placed the CACHE_DB change in LocalSetting.php. Would this latest error have anything to do with that change?


The imports worked fine as well. MWilsonCK (talk) 07:28, 17 February 2021 (UTC)

Disable error reporting on production websites. This warning may be a bug, but have otherwise no impact in the wiki if you prevent PHP warnings from being displayed on the page Ciencia Al Poder (talk) 13:57, 17 February 2021 (UTC)
Thanks for the reply. I import often, more often may upload. I'll give it a shot and let you know. MWilsonCK (talk) 11:14, 19 February 2021 (UTC)
Adding "error_reporting(E_ALL ^ E_WARNING);" to the local settings file has worked, however, is there a error reporting class and/or function where this change is supposed to be made? MWilsonCK (talk) 06:31, 20 February 2021 (UTC)
error_reporting can be set in LocalSettings.php or in the php configuration (usually, php.ini) Ciencia Al Poder (talk) 11:50, 20 February 2021 (UTC)

ExternalGuidance

I want to run an extension: ExternalGuidance on my site, why isn't it working? 41.254.66.111 (talk) 07:59, 17 February 2021 (UTC)

Please see How to debug and provide us more information. Taavi (talk!) 09:41, 17 February 2021 (UTC)

I cannot change language in preferences

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 get this message in mediawiki hosted by miraheze

[503f209a72a12273a550fb9b] 2021-02-17 07:32:45: Fatal exception of type "JobQueueError" Omda4wady (talk) 08:03, 17 February 2021 (UTC)

Contact Miraheze and not us. That's an issue with their setup. Taavi (talk!) 09:41, 17 February 2021 (UTC)
Hi,
We are aware of this issue. Our current metrics indicate it is down from 50-100 errors per minute to about 1-2. We are working to fix the remaining issues. You can see more information and monitor it at https://phabricator.miraheze.org/T6859.
Thanks,
RhinosF1
MediaWiki Engineer
Miraheze RhinosF1 (talk) 09:46, 17 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error uploading images into 1.35

I am merely uploading images and I get the following errors with header errors:

( ! ) Warning: Use of undefined constant SOCKET_ENOENT - assumed 'SOCKET_ENOENT' (this will throw an Error in a future version of PHP) in C:\wamp64.3.2.3\www\knowledgebase\includes\libs\filebackend\FSFileBackend.php on line 1036
Call Stack
#	Time	Memory	Function	Location
1	0.0003	368160	{main}( )	...\index.php:0
2	0.1821	2263912	wfIndexMain( )	...\index.php:48
3	0.1823	2266056	MediaWiki->run( )	...\index.php:55
4	0.1830	2266056	MediaWiki->main( )	...\MediaWiki.php:543
5	0.1898	2282376	MediaWiki->performRequest( )	...\MediaWiki.php:940
6	0.2405	2593352	MediaWiki\SpecialPage\SpecialPageFactory->executePath( )	...\MediaWiki.php:307
7	0.2411	2595000	SpecialUpload->run( )	...\SpecialPageFactory.php:635
8	0.2412	2595000	SpecialUpload->execute( )	...\SpecialPage.php:600
9	0.3508	4318552	SpecialUpload->processUpload( )	...\SpecialUpload.php:214
10	0.6364	4966104	UploadFromFile->performUpload( )	...\SpecialUpload.php:579
11	0.6365	4966136	LocalFile->upload( )	...\UploadBase.php:944
12	0.6440	4971448	LocalFile->publish( )	...\LocalFile.php:1415
13	0.6440	4971496	LocalFile->publishTo( )	...\LocalFile.php:1908
14	0.6442	4971632	LocalRepo->publish( )	...\LocalFile.php:1963
15	0.6442	4972008	LocalRepo->skipWriteOperationIfSha1( )	...\LocalRepo.php:558
16	0.6443	4972008	LocalRepo->publish( )	...\LocalRepo.php:587
17	0.6443	4972760	LocalRepo->publishBatch( )	...\FileRepo.php:1232
18	0.6443	4973136	LocalRepo->skipWriteOperationIfSha1( )	...\LocalRepo.php:562
19	0.6443	4973136	LocalRepo->publishBatch( )	...\LocalRepo.php:587
20	0.6500	4977320	FSFileBackend->doOperations( )	...\FileRepo.php:1336
21	0.6500	4978608	FSFileBackend->doOperationsInternal( )	...\FileBackend.php:484
22	0.6695	4999992	FileOpBatch::attempt( )	...\FileBackendStore.php:1308
23	0.6745	5009776	FileOpBatch::runParallelBatches( )	...\FileOpBatch.php:132
24	0.6746	5010720	StoreFileOp->attempt( )	...\FileOpBatch.php:176
25	0.6746	5010720	StoreFileOp->doAttempt( )	...\FileOp.php:301
26	0.6746	5011096	FSFileBackend->storeInternal( )	...\StoreFileOp.php:74
27	0.6747	5011096	FSFileBackend->doStoreInternal( )	...\FileBackendStore.php:187
28	0.6751	5011736	FSFileBackend->trapWarningsIgnoringNotFound( )	...\FSFileBackend.php:310
29	0.6751	5011736	FSFileBackend->getFileNotFoundRegex( )	...\FSFileBackend.php:1004

( ! ) Warning: socket_strerror() expects parameter 1 to be int, string given in C:\wamp64.3.2.3\www\knowledgebase\includes\libs\filebackend\FSFileBackend.php on line 1036
Call Stack
#	Time	Memory	Function	Location
1	0.0003	368160	{main}( )	...\index.php:0
2	0.1821	2263912	wfIndexMain( )	...\index.php:48
3	0.1823	2266056	MediaWiki->run( )	...\index.php:55
4	0.1830	2266056	MediaWiki->main( )	...\MediaWiki.php:543
5	0.1898	2282376	MediaWiki->performRequest( )	...\MediaWiki.php:940
6	0.2405	2593352	MediaWiki\SpecialPage\SpecialPageFactory->executePath( )	...\MediaWiki.php:307
7	0.2411	2595000	SpecialUpload->run( )	...\SpecialPageFactory.php:635
8	0.2412	2595000	SpecialUpload->execute( )	...\SpecialPage.php:600
9	0.3508	4318552	SpecialUpload->processUpload( )	...\SpecialUpload.php:214
10	0.6364	4966104	UploadFromFile->performUpload( )	...\SpecialUpload.php:579
11	0.6365	4966136	LocalFile->upload( )	...\UploadBase.php:944
12	0.6440	4971448	LocalFile->publish( )	...\LocalFile.php:1415
13	0.6440	4971496	LocalFile->publishTo( )	...\LocalFile.php:1908
14	0.6442	4971632	LocalRepo->publish( )	...\LocalFile.php:1963
15	0.6442	4972008	LocalRepo->skipWriteOperationIfSha1( )	...\LocalRepo.php:558
16	0.6443	4972008	LocalRepo->publish( )	...\LocalRepo.php:587
17	0.6443	4972760	LocalRepo->publishBatch( )	...\FileRepo.php:1232
18	0.6443	4973136	LocalRepo->skipWriteOperationIfSha1( )	...\LocalRepo.php:562
19	0.6443	4973136	LocalRepo->publishBatch( )	...\LocalRepo.php:587
20	0.6500	4977320	FSFileBackend->doOperations( )	...\FileRepo.php:1336
21	0.6500	4978608	FSFileBackend->doOperationsInternal( )	...\FileBackend.php:484
22	0.6695	4999992	FileOpBatch::attempt( )	...\FileBackendStore.php:1308
23	0.6745	5009776	FileOpBatch::runParallelBatches( )	...\FileOpBatch.php:132
24	0.6746	5010720	StoreFileOp->attempt( )	...\FileOpBatch.php:176
25	0.6746	5010720	StoreFileOp->doAttempt( )	...\FileOp.php:301
26	0.6746	5011096	FSFileBackend->storeInternal( )	...\StoreFileOp.php:74
27	0.6747	5011096	FSFileBackend->doStoreInternal( )	...\FileBackendStore.php:187
28	0.6751	5011736	FSFileBackend->trapWarningsIgnoringNotFound( )	...\FSFileBackend.php:310
29	0.6751	5011736	FSFileBackend->getFileNotFoundRegex( )	...\FSFileBackend.php:1004
30	1.3464	5040296	socket_strerror ( )	...\FSFileBackend.php:1036

Sorry for the length. And the image has not uploaded. (see topic: Error importing pages from 1.32 into 1.35)


After rechecking, the image has loaded. But, the errors were showing on the filelist page before refreshing. MWilsonCK (talk) 08:29, 17 February 2021 (UTC)

I believe this will be fixed by this commit. Try reinstalling the updated 1.35 – Ammarpad (talk) 12:34, 17 February 2021 (UTC)
Thanks for the reply, I'll see what I can do and let you know. MWilsonCK (talk) 11:24, 19 February 2021 (UTC)

CirrusSearch

Hello,

after installing the extension and define the settings, is it necessary to put a CirrusSearch search bar on a page or is the CirrusSearch function integrated n the MediaWiki search funtion? Thanks Onmiy (talk) 11:09, 17 February 2021 (UTC)

its integrated. The normal search bar gets replaced with a cirrus one automatically when the extension is enabled. Bawolff (talk) 08:10, 18 February 2021 (UTC)
Does the cirrus one look different? I dont see any advantages after installing cirrussearch with elastica. Onmiy (talk) 09:46, 18 February 2021 (UTC)

Hiding View on Wikimedia Commons tab

Are there an option to disable View on Wikimedia Commons tab ? Omda4wady (talk) 11:49, 17 February 2021 (UTC)

See Manual:CSS. Malyacko (talk) 19:11, 17 February 2021 (UTC)
The manual explain main tabs only Omda4wady (talk) 06:28, 18 February 2021 (UTC)

Proton setup in wiki 1.35.1 on RHEL 7

Hello Team,

I am working on wiki 1.35.1 with RHEL 7, and I need to configure proton server.


I am following a below document for Proton pdf server in my wiki :

https://m.mediawiki.org/wiki/ServiceTemplateNode/GettingStarted


Steps Done:

step 1. Taken git clone

    $ git clone https://github.com/wikimedia/service-template-node.git svg2png

step 2. Edit package.json which suggested in the link.

step 3. Configure config.dev.yaml, changed port and name which suggested in the link.

step 4.  Dependencies:  npm install, yum install librsvg2-devel,npm install --save librsvg

step 5. Creating the route module, changed path and app version which suggested in the link

   Created new route module by copying the example routes/empty.js.template, to routes/svg2png-v1.js

step 6.Now, find a convenient location in the body of the file to register a route, and its corresponding handler function.

So my questions are in step 6.

question 1. In which  file or where I need to add given code:

router.get('/:file', function(req, res) {

    return preq.post({

        uri: 'http://' + req.params.domain + '/w/api.php',

        body: {

            format: 'json',

            action: 'query',

            prop:   'imageinfo',

            iiprop: 'url',

            titles: 'File:' + req.params.file + '.svg'

        }

    })

});

question 2. What will be the exact URI (uri: 'http://' + req.params.domain + '/w/api.php') ? As I have taken clone in data/www/html


Team kindly suggest me proper steps, looking for your positive response .


TIA

  Akki30 (talk) 14:58, 17 February 2021 (UTC)

VisualEditor strange behavior (unregistered inputs, double line breaks, disappearing characters...)

Hi all,

On my wiki (using mediawiki 1.35.1), VisualEditor (0.1.2) behaves very strangely and I can't figure out what might be causing it. (PHP 7.4.13, MySQL 5.7.33.)


Here's a gif showing this, with the on-screen keyboard on just for the purposes of seeing my inputs: vgy.me/u/DlMgW6

I've also poster on VE's talk page and StackOverflow (https://stackoverflow.com/questions/66229966/visualeditor-strange-behavior-unregistered-inputs-double-line-breaks-disappea).


Partial list of some weird things I've seen:

- Can't enter text if there's nothing written yet (must use the toolbar to add a formatted string and then you're able to add to it).

- Can't input a line break if the cursor is at the end of the line (must add a random character, add the line break before it, then remove the character).

- Line breaks inconsistently add one or two lines.

- If adding several line breaks with no text, it's impossible to then navigate to one in the middle; arrows keys make the cursor jump to the next line with text.

- Sometimes inputs are simply not registered, or the characters get added to the end of the line regardless of where the cursor is.

- Adding line breaks sometimes makes random characters appear (presumably the same characters who did not appear when trying to input them earlier)

- etc.


Does anyone have any idea what might be causing this, and/or how to fix it? Thanks.

(Unfortunately I can't link to the wiki at the moment as it's not public yet...) Acccent (talk) 17:00, 17 February 2021 (UTC)

Custom position of LANGUAGES in MediaWiki:Sidebar ignored, displayed at bottom

From https://phabricator.wikimedia.org/T274916

MW1.35.0 / Windows Server / IIS / MySQL 5.7

Using vector skin. I am using the following code for the MediaWiki:sidebar page:

*LANGUAGES 
*PERSONAL 
*navigation 
**mainpage|Main Page
**Special:Categories|Categories (All) 
**Category:Consular|Consular 
**Category:Corporate|Corporate
**Category:Development|Development 
**Category:Diplomacy|Diplomacy 
**Category:Geographic|Geographic 
**Category:Global_Issues|Global Issues 
**Category:Legal|Legal 
**Category:Missions|Missions 
**Category:Trade|Trade 
**Special:AllPages|A-Z index 
*Support 
**Help:Contents|Help 
**User_guidelines|User Guidelines 
**Wiki_training|Wiki Training 
**Wiki_suggestions|Suggestions 
*TOOLBOX

In my MW1.33 instance, the language link was showing up at the top of the sidebar as expected. However, in MW 1.35, the language link is pushed at the bottom of the sidebar.

  • Is this a bug?
I guess that this is part of skin Vector migration and recent development.
There is a user preference to keep LEGACY Vector which is MW 1.33.
Future design will be adapted step by step. Gib Senf dazu! (talk) 10:32, 18 February 2021 (UTC)
I am already using the legacy vector, makes no difference (can't attach the associated screenshot, unfortunately) Ti infotrad (talk) 22:02, 18 February 2021 (UTC)
For now, fixed it by hardcoding location in
skins/Vector/includes/templates/legacy/Sidebar.mustache Ti infotrad (talk) 21:34, 22 February 2021 (UTC)

Google AdSense

How to add Mediawiki Google AdSense ads.txt D.Peter (talk) 04:10, 18 February 2021 (UTC)

Have you tried an internet search for "Mediawiki Google AdSense", and what were the results / what have you tried so far? Malyacko (talk) 08:34, 18 February 2021 (UTC)

Issues with fresh mediawiki installation.

Hi,

I installed MediaWiki for the first time on my server and noticed a couple of issues. When loading the default page, index.php, the page keeps loading and then gives a "ERR_HTTP2_PROTOCOL_ERROR 200". Same thing happens when I try to edit my preferences, and when I click on something like "Skins", the page starts loading but there's no redirect at all, after a while it stays on the same page. I went on the unofficial mediawiki discord to try and solve the issue but nothing seems to be working. One user mentioned the error is related to "api.js" and "in the Selenium testing stuff, which is not normally run by loading a page". There's no special configuration for mediawiki, no extension, skin or anything else. Other websites on the same machine work just fine. Cloudflare works fine on other websites hosted in the same machine too. 62.211.59.45 (talk) 04:52, 18 February 2021 (UTC)

Which exact MediaWiki version is this about? Which exact installation steps (URL) were followed? Which webserver software is used? What's shown in the error log of the webserver software when this happens? Malyacko (talk) 08:33, 18 February 2021 (UTC)
Highly likely you've encountered T235554, a known problem with MediaWiki 1.35.
Please confirm which MediaWiki version you are using plus the other information that Malyacko has indicated as part of the standard 'Post your question' materials. Peculiar Investor (talk) 12:14, 18 February 2021 (UTC)
Sorry for the late reply, but I was able to access the server just today.
My version is 1.35.1.
The installation URL (although I'm not sure if that's the information you're asking) was wiki.mydomain.ltd/mw-config/index.php?page=Install. I didn't do anything special during the installation, I only provided a login password, a database table, user, password, and selected couple of standard settings.
I'm using Apache as a webserver.
The apache error logs are just a few and 4 days old, but appeared after I started tweaking my configuration to find a possible fix to the previous issue
"PHP Parse error:  syntax error, unexpected '=' in /webfolder/LocalSettings.php on line 143, referer: wiki.mydomain.tld/index.php/Speciale:Preferenze
or "PHP Parse error:  syntax error, unexpected '=' in /webfolder/LocalSettings.php on line 143"
Line 143 contains $wgForceHTTPS = true;
I thought it was related to redirects at first but that wasn't the case.
So, nothing relevant in the server logs. 62.211.53.116 (talk) 13:19, 22 February 2021 (UTC)

HOWTO make a single page full open

Hi, I have a restricted WIKI and want to have a single page complete open (editable) to everyone - it is a Brainstorming goal


→ the page: https://nhi1.selfhost.co/wiki/index.php?title=Public_appeal_for_a_LINUX_server_for_everyone


what I have to do? Aotto1968 2 (talk) 09:24, 18 February 2021 (UTC)

See Manual:Preventing access for what is [not] possible. Malyacko (talk) 09:38, 18 February 2021 (UTC)
I was already on this page - but this is the opposite I want - I understand now that mediawiki seems require a user-account.
  • is this right?
Now, what I have to do - everyone who want to edit this page give an user-account?
and restrict this user account on this single place ?
or is there probably an other feature I can use for brainstorming tasks in mediawiki Aotto1968 2 (talk) 09:46, 18 February 2021 (UTC)
MediaWiki does not require an user account to edit. It depends on the configuration.
For that particular use case, I'd create a custom namespace, assign a new fake permission to the user group (or sysop, or whatever) if you want only a specific group to edit other pages, and add that fake permission to Manual:$wgNamespaceProtection for all namespaces except the one you want to be editable for all.
You can also remove the createpage permission to the "*" group and add it only to users, or the groups you want to create pages, so people can not simply create new pages under that namespace. Ciencia Al Poder (talk) 17:54, 18 February 2021 (UTC)

Why many wikis use example.com/wiki/ subdirectory?

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.


Why many wikis use example.com/wiki/ subdirectory?

Why add that "wiki/" sub directory and not present direct URLs?


I understand that subdirectories in URLs are often needed for organization as for storing images, videos, audios, special forms, content-contexts (such as food/clothing/phrama/furniture etc. but I also recognize a recurrent paradigm of organizing regular articles in a "wiki" directory and I don't know why it has become a common practice (and perhaps even a best practice?) in regards to MediaWiki websites.

Thanks for sharing a point of understanding about this, 2001:44C8:4247:5F3C:743F:77B0:6C95:ACC (talk) 11:15, 18 February 2021 (UTC)

You got it already. You would not be able to distiguish between
I understand the meaning now, I think that instead "wiki" I would name it "wiki_articles" or just "articles".
BTW, is that on by default? Because in my MediaWiki 1.34.2 Hebrew website paths are like:
example.com/robots.txt
example.com/index.php?title=ערך 2001:44C8:4247:5F3C:743F:77B0:6C95:ACC (talk) 12:17, 18 February 2021 (UTC)
@Gib Senf dazu! 2001:44C8:4247:5F3C:743F:77B0:6C95:ACC (talk) 13:05, 18 February 2021 (UTC)
No, it's not default. See Manual:Short URL for configuration, since it requires rewrite rules on the server. Ciencia Al Poder (talk) 17:46, 18 February 2021 (UTC)
The /wiki/ part of the URL is unnecessary. As noted above, for short URLs you just need rewrite rules. I think it is only recommended as it is easier to support as people run into fewer problems. Jonathan3 (talk) 21:30, 18 February 2021 (UTC)
You also get less attack surface from bots that try to scan common URLs to find vulnerabilities. If everything is a page from the root, all those scans will end up on a wiki page, which means CPU and database load. A lot more costly than a simple static HTTP 404 error page. Ciencia Al Poder (talk) 22:22, 18 February 2021 (UTC)
That's really interesting, and not something I've read or thought of over the years. It seems obvious now. Anyway, too late to change! :-) Jonathan3 (talk) 22:36, 18 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How can I change the E-Mail layout?

I am using the Extension:CategoryWatch extension, and I want to change the E-Mail layout. How can I do that? Simini W (talk) 08:02, 19 February 2021 (UTC)

How to setup GoogleRichCards Extension?

I try to setup GoogleRichCards Extension with https://packagist.org/packages/justinrainbow/json-schema

I upload GoogleRichCards to extension and set localsetting.php after it site gone disappear !

Can any one help to install it & install https://packagist.org/packages/justinrainbow/json-schema in libraries


My site is https://wikidot.com.au/ Mayurbhatt (talk) 08:22, 19 February 2021 (UTC)

I'm not sure how to answer your question but a good first step is to set Manual:$wgShowExceptionDetails to true, which might give you a more helpful error message. Garuda3 (talk) 11:52, 19 February 2021 (UTC)

UploadWizard Flickr suddenly stopped working

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 using UploadWizard with Flickr and now when a user submits a URL (or anything), the "Get from Flickr" button goes gray but nothing happens. I've checked my API key and it appears to still be active. I've also updated to the latest version of UploadWizard for MediaWiki 1.35. Anyone had a smiilar situation? Thanks Garuda3 (talk) 11:56, 19 February 2021 (UTC)

An update on this, it appears my API key stopped working. I've switched keys and it's working again now. Garuda3 (talk) 22:54, 24 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Uploading photos of covers

I am note able to upload photos of covers. I last tried a year ago. It worked fine. The photos are taken on an iPad. I am accessing library thing on a Mac. I can add books and edit. 2600:1014:B02A:FB82:A5:6631:8874:4927 (talk) 19:34, 19 February 2021 (UTC)

Why do you think that you are unable to upload? On which website? Which MediaWiki version? What "library thing?" Malyacko (talk) 22:50, 19 February 2021 (UTC)

Too many open files from ClassLoader.php when doing a rebuildall

For a Mediawiki 1.35.0 wiki http://wiki.johnbray.org.uk/Special:Version, which is unusual because it has very high numbers of deeply nested subpages, when I run /usr/local/php74/bin/php -f ./rebuildall.php I repeatably get

0 
Refreshing links tables. 
Starting from page_id 1 of 1929. 
100 
200 
300 
PHP Warning:  include(/home/johnbray1/wiki.johnbray.org.uk/vendor/guzzlehttp/guzzle/src/Excep
tion/ConnectException.php): failed to open stream: Too many open files in /home/johnbray1/wik
i.johnbray.org.uk/vendor/composer/ClassLoader.php on line 444 
PHP Warning:  include(): Failed opening '/home/johnbray1/wiki.johnbray.org.uk/vendor/composer
/../guzzlehttp/guzzle/src/Exception/ConnectException.php' for inclusion (include_path='/home/
johnbray1/wiki.johnbray.org.uk/vendor/pear/console_getopt:/home/johnbray1/wiki.johnbray.org.u
k/vendor/pear/mail:/home/johnbray1/wiki.johnbray.org.uk/vendor/pear/mail_mime:/home/johnbray1
/wiki.johnbray.org.uk/vendor/pear/net_smtp:/home/johnbray1/wiki.johnbray.org.uk/vendor/pear/n
et_socket:/home/johnbray1/wiki.johnbray.org.uk/vendor/pear/pear-core-minimal/src:/home/johnbr
ay1/wiki.johnbray.org.uk/vendor/pear/pear_exception:.:') in /home/johnbray1/wiki.johnbray.org
.uk/vendor/composer/ClassLoader.php on line 444
<pre> [[User:Vicarage|Vicarage]] ([[User talk:Vicarage|talk]]) 22:43, 19 February 2021 (UTC)
:some sort of sandboxing on your shell maybe. Generally something you probably have to take up with the sysadmin
:You can check what ulimit -Hn and ulimit -Sn is set to. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 07:13, 20 February 2021 (UTC)
:<syntaxhighlight lang='text'>ulimit -Hn; ulimit -Sn       
1048576 
1024</syntaxhighlight>
:They don't sound low to me [[User:Vicarage|Vicarage]] ([[User talk:Vicarage|talk]]) 07:49, 20 February 2021 (UTC)
:I repeated this on my personal Mint 19 box, and got the same problem. My ulimits are the same as dreamhost who host the public wiki [[User:Vicarage|Vicarage]] ([[User talk:Vicarage|talk]]) 08:44, 20 February 2021 (UTC)

== collapsable elements don't work ==
{{Archive top|status=resolved}}

Per : [[Manual:Collapsible elements|https://www.mediawiki.org/wiki/Manual:Collapsible_elements]] the "simple" code does not work: 
 <code><!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
 <div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
 This text is collapsible.
 </div></code>
It produces the text and the [Collapse] but the "collapse" option is not active.

Do I need to activate some scripts for this to work? 

I'm running: MediaWiki 1.35.1 PHP 7.3.23 (cgi-fcgi) MySQL 5.6.51 ICU 4.2.1

Thanks for your help! [[User:School4schools|School4schools]] ([[User talk:School4schools|talk]]) 23:29, 19 February 2021 (UTC)
:link to your wiki.
:Are there any errors in your web browsers developer console? [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 07:09, 20 February 2021 (UTC)
:I was wondering if maybe I needed to add some functionality, but I should have checked that! 
:Here's the site: [https://www.school4schools.com/wiki/index.php?title=Main_Page School4Schools.com Teacher Lesson Planner & Student Study Guide]
:The only error I see is: 
:load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:4 [YDAfuE3nzjuCch8HzphOyAAAAQg] 2021-02-19 20:29:47: Fatal exception of type "InvalidArgumentException"
:Thanks for the help. [[User:School4schools|School4schools]] ([[User talk:School4schools|talk]]) 23:30, 20 February 2021 (UTC)
:{{FlowMention|School4schools}} Please provide the stacktrace of that exception. See [[Manual:How to debug]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:47, 21 February 2021 (UTC)
:thanks for sending me to the stacktrace.  Turned out to be a malformed namespace that was throwing off the php file and disabling scripts from running properly.  Thanks! [[User:School4schools|School4schools]] ([[User talk:School4schools|talk]]) 04:10, 27 February 2021 (UTC)
{{Archive bottom}}

== Please review my all core MediaWiki upgrade script ==

'''codereview DOT stackexchange DOT com'''

<code>all-core-mediawiki-upgrade-script-round-2</code>


I published it there due to their support in markdown but please feel free to comment here if you don't want to comment there. [[Special:Contributions/2001:44C8:4247:5F3C:65F6:4701:555A:AE38|2001:44C8:4247:5F3C:65F6:4701:555A:AE38]] ([[User talk:2001:44C8:4247:5F3C:65F6:4701:555A:AE38|talk]]) 15:29, 20 February 2021 (UTC)
:Welcome to the support desk for MediaWiki. See [[Manual:Upgrading]] for information how to upgrade. You are of course free to write on your scripts and upload them somewhere, but if you don't explain which problem they solve it's hard to understand what you're asking and why. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 16:04, 20 February 2021 (UTC)
:In case it wasn't clear, I wrote a script explaining how I upgrade MediaWiki based on the linked manual I have read long ago.
:the "problem to solve" here is that I want code reviews and I invite people to give them so I would solve "that problem" that way. 
:It was {{FlowMention|Bawolff}} who invited me (I think last month) to share similar scrips and ask for a review, here I am following his kind advice to do so. [[Special:Contributions/2001:44C8:4247:5F3C:65F6:4701:555A:AE38|2001:44C8:4247:5F3C:65F6:4701:555A:AE38]] ([[User talk:2001:44C8:4247:5F3C:65F6:4701:555A:AE38|talk]]) 16:30, 20 February 2021 (UTC)
:The link to the question on codereview.stackexchange.com is https://codereview.stackexchange.com/questions/256262/all-core-mediawiki-upgrade-script-round-2. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun</sub>]] 17:38, 20 February 2021 (UTC)
:{{FlowMention|Tgr (WMF)}} you might find this interesting. [[Special:Contributions/2001:44C8:4247:5F3C:9115:463B:F038:AEA3|2001:44C8:4247:5F3C:9115:463B:F038:AEA3]] ([[User talk:2001:44C8:4247:5F3C:9115:463B:F038:AEA3|talk]]) 21:31, 21 February 2021 (UTC)

== Multiple domains for the same wiki ==

I have a brand new mediawiki installation running on awebsite.domain.com via apache on ubuntu 20.04. 

Now, I've also created an alias for that website, bwebsite.domain.com. What I would like to achieve is that both awebsite and bwebsite are fully functional, identical copies of one another, but just with different domain names. 

I thought all I would have to do is just create a new apache configuration that serves bwebsite.domain.com. That I did, and it works, except some parts of the wiki appear to be broken. In particular, I am using authentication via the PluggableAuth extension. When trying to log in on bwebsite.domain.com, I end up with "Fatal error authenticating user" on awebsite.domain.com.

I have the feeling that this might be because inside LocalSettings.php $wgServer is set to be fixed to awebsite.domain.com. Would it be possible, perhaps via some if statements in LocalSettings.php, to add some code that looks at what the current path is and uses an if statement to set $wgServer?

I tried searching for something like this, but I have not been able to find it. [[Special:Contributions/2A02:A452:64AD:1:34A9:2BB:8A9C:912C|2A02:A452:64AD:1:34A9:2BB:8A9C:912C]] ([[User talk:2A02:A452:64AD:1:34A9:2BB:8A9C:912C|talk]]) 15:31, 20 February 2021 (UTC)
:yes, you can set it based on values in $_SERVER or WebRequest::detectServer() (assuming the latter is still a thing)
:To prevent cache pollution you may also want to set [[manual:$wgRenderHashAppend]] although it doesnt super matter if path is the same and just server is different. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 06:03, 21 February 2021 (UTC)

== Modules appearing as pages ==

Hello!


I have a bunch of Module: pages appearing on my All Pages

https://jfwiki.org/index.php?title=Special:AllPages


Any idea how I can clean this up? 

Thank you [[User:Jackson Mornard|Jackson Mornard]] ([[User talk:Jackson Mornard|talk]]) 20:58, 20 February 2021 (UTC)
:try [[manual:cleanupTitles.php]] (assuming scribunto is already installed) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 05:59, 21 February 2021 (UTC)
:Yes!!! Thank you so much!!    {{FlowMention|Bawolff}} [[User:Jackson Mornard|Jackson Mornard]] ([[User talk:Jackson Mornard|talk]]) 14:24, 21 February 2021 (UTC)

== i started a page for myself, Matthew J Jorgenson, and I don't see it in draft to publish or during a search ==

This was just a few weeks ago and I can't figure out how to get into wiki the right way to essentiallly click publish. Thanks!

matt [[Special:Contributions/75.76.239.15|75.76.239.15]] ([[User talk:75.76.239.15|talk]]) 23:20, 20 February 2021 (UTC)
:ask at [[w:WP:Teahouse]]
:(This page is only for technology questions about mediawiki) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 05:57, 21 February 2021 (UTC)

== Warning: session_name(), Warning: session_id(), Warning: session_start() - I'm out of ideas! ==

I added my favicon to LocalSettings.php, and as I was reading the page about all of the settings options I toyed around and I evidently messed up the file somehow because none of my pages are loading with styles at all. So I added the Print Debug code, and I'll share what I'm seeing when I go to [https://usa.abandonedbusiness.club the wiki in question's] home page below, but I've gotten pretty far by googling. The issue is that the warnings mention files I haven't touched. There doesn't appear to be any ladders or ropes down in this hole. Please help?  


The messages I see are:  


'''Warning''': session_name(): Cannot change session name when headers already sent in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/Setup.php''' on line '''713'''

'''Warning''': session_id(): Cannot change session id when headers already sent in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/session/SessionBackend.php''' on line '''796'''

'''Warning''': session_id(): Cannot change session id when headers already sent in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/Setup.php''' on line '''757'''

'''Warning''': session_start(): Cannot start session when headers already sent in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/Setup.php''' on line '''758'''

'''Warning''': Cannot modify header information - headers already sent by (output started at /homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/LocalSettings.php:1) in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/WebResponse.php''' on line '''74'''

'''Warning''': Cannot modify header information - headers already sent by (output started at /homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/LocalSettings.php:1) in '''/homepages/33/d847677087/htdocs/clickandbuilds/MediaWiki/ABC_US/includes/WebResponse.php''' on line '''74''' [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 05:44, 21 February 2021 (UTC)
:check that you dont have any spaces,newlines or other characters before <?php at the beginning of LocalSettings.php
:i'm not sure if this is still relavent in modern php  but also check for BOM characters at the beginning. This is an invisible character that some text editors (famously notepad on windows) add at the beginning of a file which are invisible and some text editors wont let you delete. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 05:56, 21 February 2021 (UTC)
:Awesome input! See, I had started in notepad, then the more I learned I eventually switched over to Notepad++. Reading your response, I went and looked and sure enough - <?php was on line 2.  I had no idea how sensitive PHP is to things that I had thought of as insignificant, like having a blank row.  
:Anyway, the wiki looks like it's supposed to again! Thank you, Bawolff! I really appreciate your help! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 06:05, 21 February 2021 (UTC)
:@Bawolff thank you very much for your hint. 
:It solved my problem!
:Greetings from Italy. [[User:Elecraft|Elecraft]] ([[User talk:Elecraft|talk]]) 16:43, 30 July 2021 (UTC)

== Certain pages are showing white, codechecker says my php is fine, I'm stuck. ==

I made a mistake when inserting code for a favicon to LocalSettings.php and I've had a nightmare clawing back to full functionality on my wiki. I won't bore you with detail, but now everything seems to be working and the site looks like it should but if I search for something that doesn't exist, the results page is just white. No information given, despite having display_errors code that has worked everywhere else.  


[https://usa.abandonedbusiness.club Wiki In Question]


Any possible idea what I've messed up in my code? Thanks in advance for your time.


---And after several attempts on different browsers, I can't share my code here. I get ⧼abusefilter-warning-keyleak⧽ when I attempt to submit and so I finally created a github account.  


https://gist.github.com/GuacamoleRob/42395bb3f27e453d9ff318519cf19d00 [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 22:43, 21 February 2021 (UTC)
:You've got a database password in that file (though maybe it's deliberately different to your real one). The search seems to work fine. [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 23:24, 21 February 2021 (UTC)
:Okay - yes I did change the password yesterday after I saw that it resides there in plain text! I hadn't thought anything of the password to the database when I was installing, and chose my default "I'm annoyed that this wants me to create ANOTHER password," choice. So yeah, it's different.  
:Is this problem only on my machine, then? I've gotten pretty good at DNS Cache wipes. Do I need to do that?  
:Thanks for your time and help! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 00:50, 22 February 2021 (UTC)
:I just did a DNS flush and rebooted my PC. Still, when I search for an article that doesn't exist I get a white page!  
:What on earth is going on? Any ideas? [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 02:49, 22 February 2021 (UTC)
:in addition to display_errors,make sure that error_reporting is set appropriately. You need both.
:Although its pretty rare, another possible cause of a white page is php segfaulting. You can check your apache (assuming you use apache) error log to see if that is the case. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:31, 22 February 2021 (UTC)
:Man, you are REAL good at this stuff. I went back and re-RTFM:How to debug article, and THE FIRST THING IT SAYS is "add this to the second line, after <?php,"  
:I had it there originally, then after pages started to work again I had the thought "Better make sure all the stuff I've added is below #Add more configuration options below. That had been the source of an earlier issue, and I must have just spaced on what the manual said. 
:Thank you so much! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 04:02, 22 February 2021 (UTC)

== [YDMx@OZ2uHh@JEtoJHn6vAAAAB0] 2021-02-22 04:24:24: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" ==
{{Archive top|status=resolved}}

I hate to fill up this space with my own little problems, but getting this wiki ready to rock is what I've been committed to all weekend. I am attempting to create a specific article. When I search, I get this error message. Google returns ZERO results. Anybody have any ideas? Thanks in advance! 


[YDMx@OZ2uHh@JEtoJHn6vAAAAB0] 2021-02-22 04:24:24: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 04:34, 22 February 2021 (UTC)
:See [[Manual:How_to_debug]] for how to get a stacktrace, and see the sidebar on [[Project:Support desk]] for required information. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:08, 22 February 2021 (UTC)
:With apologies, I require more information. I've added $wgShowExceptionDetails = true; to LocalSettings.php and then got lost in sidebar purgatory searching for "required information."  I'm not clear on what I am looking for!
:I tried searching the relevant term again, but instead of coming up with the error message mentioned previously, it is now revealing a blank, white page. [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 19:43, 22 February 2021 (UTC)
:Ultimately, I solved this problem by starting an article with a different name, then 'move,"-ing it to the proper headline.  
:Thanks, everyone! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 09:49, 23 February 2021 (UTC)
:With $wgShowExceptionDetails = true; you should get a more detailed error message. This looks like a bad extension or missing updates from an upgrade. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 12:55, 23 February 2021 (UTC)
{{Archive bottom}}

== PLS Registration that includes password hint and other checkups ==

:MediaWiki is notorious for registration that only gives email as an option for resent of password, which makes it super hard for people that do not want to have it connected to email or may have forgotten it.
:I think it should be important and possible to do quickly extra step of having password hints and other modes of user checkups if password fails to add to this as alternative is having so many users continuously locked out of their accounts. ~ [[User:Zblace|Zblace]] ([[User talk:Zblace|talk]]) 11:38, 22 February 2021 (UTC)
::{{FlowMention|Zblace}} Anything else will make it super hard for people that do not want to use anything else. What specific other methods do you have in mind? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:07, 22 February 2021 (UTC)
::Maybe have optional 3 questions to answer. That way it is not as easy to guess. 
::Also ask for some private preference info like name 2 pages that you follow and/or something similar that is not visible edits from outside? [[User:Zblace|Zblace]] ([[User talk:Zblace|talk]]) 17:13, 22 February 2021 (UTC)
:The problem with password hints is that the "hint" could be obvious enough (such as the password itself) that it could lead to a compromise. And no security questions, they are awful... [[User:Leaderboard|Leaderboard]] ([[User talk:Leaderboard|talk]]) 17:01, 22 February 2021 (UTC)
::OK maybe not hint for password but 3 questions as alternative. See above! [[User:Zblace|Zblace]] ([[User talk:Zblace|talk]]) 17:15, 22 February 2021 (UTC)
:OK maybe not hint for password but 3 questions as alternative. [[User:Zblace|Zblace]] ([[User talk:Zblace|talk]]) 17:14, 22 February 2021 (UTC)
:No, that's awful. Because
:*it's easy to forget them
:*the questions are awful (especially since you are forced to pick them from a limited set of options) [[User:Leaderboard|Leaderboard]] ([[User talk:Leaderboard|talk]]) 17:47, 22 February 2021 (UTC)
:security questions and password hints are widely considered to be insecure practises in the security community. Generally its very easy to hack the account of people who use such features. Often people choose questions which you can readily find out by googling the person.
:If you don't want to associate an email, just make sure your password is written down somewhere secure. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:06, 23 February 2021 (UTC)

== It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved ==

I just installed new wiki, and when i try to edit any page it shows this. 

It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved.

I use Apache, i added AddDefaultCharset utf-8 to httpd.conf

I have php 7.3.27 with default_charset UTF-8

but it is not working. Any help? Thank you. [[Special:Contributions/194.213.41.2|194.213.41.2]] ([[User talk:194.213.41.2|talk]]) 12:04, 22 February 2021 (UTC)
:See [[Talk:MediaWiki 1.30#h-T181332_-_It_appears_that_your_browser_does_not_support_Unicode._It_is_required-2018-01-08T01:39:00.000Z]], [[Project:Support desk/Flow/2019/09#h-It_appears_that_your_browser_does_not_support_Unicode._It_is_required_to_edit_pa-2019-09-07T17:28:00.000Z]], [[Project:Support desk/Flow/2017/12#h-Can't_edit_pages._I_get_"It_appears_that_your_browser_does_not_support_Unicode.-2017-12-20T17:15:00.000Z]], [[Project:Support desk/Flow/2018/09#h-Error_message_while_saving_new_page-2018-09-28T18:45:00.000Z]], etc. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 14:05, 22 February 2021 (UTC)
:Probably more likely an issue with some sort of proxy, or maybe some sort of web firewall. The error likely means that the post body is getting corrupted [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:29, 25 February 2021 (UTC)

== Special:RecentChanges, Special:RnadomPage and Special:Categories are all robots.txt excluded, is this a serious SEO problem in your opinion? ==

Special:RecentChanges, Special:RnadomPage and Special:Categories are all robots.txt excluded, is this a serious SEO problem in your opinion?


I opine that it is:

*Recent Changes page can act as a "second" (and eloquently dynamic) minor sitemap, especially if well served for crawling bots.
*Random Page can induce nice dynamicity to crawling bots, each time the site is being crawled in a general way
*Special Categories might increase the chance of the category tree (and its changes) to be crawled


Why not exclude these from the broader, common, exclusion of special pages in robots.txt in MediaWiki? [[Special:Contributions/2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB|2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB]] ([[User talk:2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB|talk]]) 17:25, 22 February 2021 (UTC)
:if you really wanted that, you would probably want [[special:allpages]] instead.
:In any case, mediawiki generally doesnt let automatically generated pages be requested by spiders because they can get stuck in loops and cause performance problems. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:10, 23 February 2021 (UTC)
:Does the MediaWiki installation process create a robots.txt file now? What does it contain? Thanks. [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 11:00, 23 February 2021 (UTC)
:MediaWiki doesn't create a robots.txt file. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 12:53, 23 February 2021 (UTC)
:{{FlowMention|Ciencia Al Poder}} why it doesn't really? Drupal and WordPress for example do create it;
:I would personally guess that the reason MediaWiki doesn't is an abundance of <code><meta name="robots" content="noindex"></code> syntaxes in generally all publicly-accessible automatically-generated webpages (which are very common in MediaWiki sites in comparison to in Drupal and WordPress). [[Special:Contributions/2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2]] ([[User talk:2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|talk]]) 14:34, 23 February 2021 (UTC)
::robots.txt must be placed on the root directory of a website. MediaWiki doesn't require that, and in fact, there are lots of examples of sites where the wiki is on a subdirectory.
::On the other hand, as you discovered, many pages are already tagged with meta robots tags, which Google recommends to prevent indexing of specific pages or paths instead of a robots.txt rules.
::If you want to block access to specific robots, you're free to do so in a custom robots.txt file [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:12, 24 February 2021 (UTC)
:{{FlowMention|Bawolff}} what loop or performance problem could be caused from allowing Special:RandomPage?
:At least intuitively I can feel it happening from Special:Categories or maybe even Special:RecentChanges but from RandomPage (which is always an article, as far as I know). [[Special:Contributions/2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2]] ([[User talk:2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|talk]]) 18:46, 23 February 2021 (UTC)
:Random page is a URL that redirects to a random article. I don't think it deserves much explanation how an URL that changes every time you access it would confuse search engines or even users that don't expect that, specially if that URL gets indexed instead of the target page for a particular topic. [[User:Ciencia Al Poder|Ciencia Al Poder]] ([[User talk:Ciencia Al Poder|talk]]) 11:16, 24 February 2021 (UTC)
:{{FlowMention|Ciencia Al Poder}}I don't know why you think it will confuse a crawler; 
:As far as I know, any crawler normally crawls a webpage entirely and not just one link in it (be it the dynamic link to a random page) so given the attitude of the developers of a certain search engine, it might even be a good dynamicity aspect, at least if accessed from a particular webpage and not from all pages (say, from a special section in the homepage and not from the main navigation menu). [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 16:24, 24 February 2021 (UTC)
:Of course that there are patterns for certain links and a crawler which already crawled one time or enough times a certain pattern per visit would probably not do so again until next visit. [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 18:51, 24 February 2021 (UTC)

== Visual editor and wikitoolbar missing in Chrome (but not other browsers) ==

I have noticed the edit toolbar, and visual editing is not initiating in chrome on my installation of MediaWiki. Oddly, it renders perfectly well in Firefox and Safari, and on a work version of Chrome. I have tried reinstalling Chrome. I am on a Macbook Pro running Catalina 10.15.7. Am I missing something? [[User:ElectricRay|ElectricRay]] ([[User talk:ElectricRay|talk]]) 18:43, 22 February 2021 (UTC)
:check developer console for errors.
:Are you logged into the same account, there are user preferences that can affect this. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:00, 23 February 2021 (UTC)

== My homepage isn't among my website's most linked webpages although harsh linking from logo image and I find it a bit strange ==

I think I have found an SEO problem in MediaWiki (my current version is 1.35.1 but what I will describe below relates to version 1.34.2).

==Background==
According to ''Google Search Console → Links'', non <code>Special:</code> webpages linked via Sidebar menu in my website are the most linked pages in my website (more than any webpage in the website) but the homepage isn't mentioned in that ''Google Search Console'' list and that's weird because the homepage is linked right above the sidebar menu via my website's logo image.

==Opinions==

*In I find it strange that the webpage of my website, linked via the ''logo image link'' isn't counted one of the aforementioned most linked pages; Perhaps this is because the <code>role="banner"</code> attribute and value in the logo image element with <code>#p-logo</code> CSS ID.
*Allegedly, a way to fix this "problem" is to just add a textual link to my homepage in the sidebar menu but then it would case a (somewhat strange) duplication of links to the homepage - one from the logo image and one right under it from the sidebar menu.

==Side note==

*Maybe the developers of Google Search Console deliberately don't consider the homepage as one of the most linked pages and exclude it from the aforementioned list.

==My question==
What do you think about the situation I described and how would you handle it, if at all? [[Special:Contributions/2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB|2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB]] ([[User talk:2001:44C8:4247:5F3C:A9C1:E404:486D:D5EB|talk]]) 18:52, 22 February 2021 (UTC)
:generally links from within your own site dont matter much from SEO perspective, so i wouldnt worry. I imagine the logo link doesnt work since there is no text in it, just a css-set image, so search engines see it as an empty link. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:11, 23 February 2021 (UTC)
:{{FlowMention|Bawolff}} about your first statement: I think it depends on a particular search engine in a given (algorithm) version.
:About the lack of text; there is an (automatically created) <code><alt></code> text for the logo image but I am sure you meant for the lack of ''anchor text''.
:Well, I guess that currently Google engineers don't care enough about logo images :)
:Thanks ! [[Special:Contributions/2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2]] ([[User talk:2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|talk]]) 14:19, 23 February 2021 (UTC)
::there is no alt text, or even an img tag for the logo in the vector skin. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 20:50, 23 February 2021 (UTC)
::I use TimeLess because it's responsive "out of box". [[Special:Contributions/2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E]] ([[User talk:2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|talk]]) 06:20, 24 February 2021 (UTC)
::Same is true in timeless [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:28, 25 February 2021 (UTC)
::Sorry, I confused image alt attribute with image title attribute;
::With Timeless; when I stand with the mouse cursor on my logo image I do get the following image title printed "ביקור בעמוד הראשי" which I would freely translate from Hebrew as "(to) visit the main page". [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 07:44, 25 February 2021 (UTC)
:logo image links :) * [[Special:Contributions/2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2]] ([[User talk:2001:44C8:4247:5F3C:B0ED:3DFD:DA4E:7EF2|talk]]) 14:19, 23 February 2021 (UTC)

== Hello! Many issues faced and solved. A working favicon is my white whale. ==

For starters, I put a 32x32 pixel favicon.ico in my root directory, adjacent to my LocalSettings.php. Stil, no favicon turns up.  

Then, I used the .ico's source .png. I added $wgFavicon = "$wgResourceBasePath/resources/assets/w.iki.png"; to my LocalSettings.php and still nothing.  

What am I missing? Any ideas? [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 10:00, 23 February 2021 (UTC)
:The first thing should have worked. What do you see when you you type (your wiki URL)/favicon.ico into the address bar? Is it displayed? [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 10:55, 23 February 2021 (UTC)
:Great question - I had not checked yet.  
:https://usa.abandonedbusiness.club/favicon.ico looks like the file it should! 
:Your response is why I posted here. No matter what I google, I see the same two methods for setting the favicon and nothing about troubleshooting this issue. It JUST isn't showing up and obviously, there is a reason but I am out of ideas. I am clueless. [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 16:46, 23 February 2021 (UTC)
:set
:$wgFavicon = 'https://usa.abandonedbusiness.club/favicon.ico';
:The root favicon.ico is only used if no favicon is set in html. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 20:47, 23 February 2021 (UTC)
:Gosh, I love you Bawolff. Everything that comes up, you seem to solve with less than 3 lines of narrative and the number of posts you handle in a day is remarkable. Can I send you a milkshake? 😀 [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 23:02, 23 February 2021 (UTC)
:I use Notepad++, so ultimately what I resorted to was coming back to copy Bawolff's code and pasting it in the line under mine. I realized my mistake is that I'm so noob at PHP. Instead of encapsulating my string with -'- quote marks, I was of course using -"- quote marks.  
:I feel like a moron. Wasted so much time. Apologies to all! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 23:21, 23 February 2021 (UTC)
::just fyi, the difference between ' and " in php is how $ sign and \ is handled. If you are using a variable defined earlier in your value, like $wgResourceBasePath, you need to use ", where if you use a $ sign that is not a variable to be replaced, like the $1 in the value of $wgArticlePath, you need to use '. If your value does not contain $ or \, then it makes no difference if you use ' or ". [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:54, 25 February 2021 (UTC)
:Never mind! Still got nothing. 
:https://gist.github.com/GuacamoleRob/1f028c94a5fdf950d68966cb8c514e7f [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 23:47, 23 February 2021 (UTC)
:In [[Manual:$wgFavicon]] the examples have it as a file path rather than a URL. How about uploading it as an image on your wiki itself and using the <code>$wgFavicon = "/images/6/64/Favicon.ico";</code> example there? (Or whatever the /6/64 turns out to be with a lower-case f.) [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 09:57, 24 February 2021 (UTC)
::just to be clear, it can be a relative url, but it can't be an actual file system path (e.g. /var/www/html/... wont work) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:57, 25 February 2021 (UTC)
:Thanks for the response, Jonathan3! .ico isn't supported by default, so I just FTP'd  favicon.ico to /images/2/26/. If you go to https://usa.abandonedbusiness.club/images/2/26/favicon.ico the image is there.  
:$wgFavicon = "/images/2/26/favicon.ico"; is all the way at the end of my LocalSettings.php. That's the only mention of "favicon," in the file.  
:'''''<u>It's still not working!</u>''''' [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 19:01, 24 February 2021 (UTC)
:Do you think it's something to do with your server forcing https but having <code>$wgServer = "http://usa.abandonedbusiness.club";</code> in LocalSettings.php? [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 20:49, 24 February 2021 (UTC)
:Good note! Thank you.  
:So, with that in mind, my first effort was to create an exception rule on Cloudflare for 
:/images/2/26/favicon.ico
:allowing that file to be served without security. I flushed the cache while I was there, too. Then, opened an incognito window in my test browser (Which clears cache every time it's closed) and it didn't work. Went through my now typical routine and checked 3 browsers, it didn't work.  
:So I changed my $wgServer = to https because I hadn't been introduced to that setting yet. Went to Cloudflare, deleted the exception rule, cleared cache, and repeated verification routine. It still didn't work!
:This issue is simply one of 3 websmithing white whales I'm dealing with right now. '''''<u>White. Whale.</u>''''' This issue just refuses to be solved!  
:Also, I can't get the font Trinigan FG to work on any sort of any kind of Wordpress, and I can't get phpBB to install on my IONOS webspace. These 3 problems are all I've done with my waking hours since i woke on Monday. 😩 [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 21:42, 24 February 2021 (UTC)
:So going to your site on firefox, it seems like the favicon is working.
:However, i do notice that there seems to be some sort of issue with closing the http/2 stream, which makes firefox think the page is still loading and delays showing the favicon. I think there's been some reports of that happening in the past with cloudflare. You could try setting $wgDisableOutputCompression = true; and see if that helps. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 03:27, 25 February 2021 (UTC)
:Wow, hey! That's some great feedback! My wiki is seeing a little traffic today (I'm sure most of it from various tech support people I've been in touch with about one thing or the other), so it's refreshing to hear they've been greeted by a site without a bouncing, blank favicon screaming "This website is administered poorly."  
:I just checked on Firefox, and boom - there it is!  At long friggin' last, Bawolff! One of the white whales is finally on the ship! I can't thank you enough, man. Whoo! That's such a huge relief.   
:Any idea why it's still not showing up in Edge OR Opera, though? My main and my test browser both still fail to load the favicon. What's Firefox that those other guys do not?
:I've been using Opera as my primary for years, but a number of smaller things like this keep coming up. I guess it's time to think about moving back to Firefox. 
:Anyway, thanks again! [[User:GuacamoleRob|GuacamoleRob]] ([[User talk:GuacamoleRob|talk]]) 08:12, 25 February 2021 (UTC)
:Had the same problem in Chrome. 
:Deleting the Chrome cookies helped and double checking the LocalSettings file [[User:SyncmasterN|SyncmasterN]] ([[User talk:SyncmasterN|talk]]) 09:18, 16 February 2022 (UTC)

== Search function ==

Hello,

i have tried all extensions for the search function, but there is no one, which is really user friendly. (MediaWiki 1.35: CirrusSearch, Adv.Cirr.Sear., ElasticSearch, ...)


Do you guys have any idea to simplify the search method?


Thanks [[User:Onmiy|Onmiy]] ([[User talk:Onmiy|talk]]) 10:15, 23 February 2021 (UTC)
:Hi, please be more specific - what is not "user friendly"? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 12:25, 23 February 2021 (UTC)
:E.G. I have a table which contains more than 300 documents (specified by their name and linked to a uploaded data).
:When I search for any kind of documents, i only get results when the searched name is in the source code of the uploaded data . It would be better, when the search method would search on the displayed names in the list (not in source code). 
:Is this specific enough?
:Thanks [[User:Onmiy|Onmiy]] ([[User talk:Onmiy|talk]]) 14:18, 23 February 2021 (UTC)
:What is "a table containing 300 documents"? Do you maybe mean a [[Help:Tables|table]] on a wikipage which in its cells links to 300 documents? Which "list" do you refer to and where? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 18:37, 23 February 2021 (UTC)
:Yes i mean a table on a wikipage which in its cells are names with links to documents. 
:The last question is for me not clear. [[User:Onmiy|Onmiy]] ([[User talk:Onmiy|talk]]) 10:44, 24 February 2021 (UTC)

== Search function ==

Hello,


i have problems with the search function in my Wiki (1.35()


When I am searching for some words, a lot of results are not displayed. What could be the problem?


The words are in the text, and also in the title of pages. [[User:Onmiy|Onmiy]] ([[User talk:Onmiy|talk]]) 11:33, 23 February 2021 (UTC)
:I get this with MW 1.34 too. The dropdown suggestions usually contain more pages than the search results. I'll likely install a search extension when I get a chance. [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 09:52, 24 February 2021 (UTC)
:I hope there is a solution. [[User:Onmiy|Onmiy]] ([[User talk:Onmiy|talk]]) 10:45, 24 February 2021 (UTC)
:there could be lots of reasons. You could be searching for a stop word, jobqueue might not be running, some other error might be happening, etc. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:47, 25 February 2021 (UTC)

== Hidden categories ==

Hey! Is there any variables that show hidden categories to everyone. As with Wikimedia Commons: hidden categories are shown to everyone and can be disabled from the user's own settings page. Thanks in advance! [[Special:Contributions/193.185.246.137|193.185.246.137]] ([[User talk:193.185.246.137|talk]]) 16:25, 23 February 2021 (UTC)
:[[manual:$wgDefaultUserOptions]] [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 20:44, 23 February 2021 (UTC)

== Help with Categories Pages ==

1. Is there any way to changed the limits on the auto generated subcategory tries to make them active - here is an example from this wiki

<span class="mw-default-size">[[File:Disabled category dropdown.png|497x497px]]</span>


2. Is there any way to stop a category heading splitting from the 1st entry - the 'E' example from my wiki

<span class="mw-default-size">[[File:Category headings split from rest of list.png|688x688px]]</span>

3. My categories get stuck in View Source only mode and I cannot reset it with "Refresh" or "?action=purge" without restarting php-fpm. Opcache is off as well. runJobs is running. Is there a way for them to become quickly editable again. [[User:Bluedreamer1|Bluedreamer1]] ([[User talk:Bluedreamer1|talk]]) 18:16, 23 February 2021 (UTC)
:1. What does "active" mean? What's non-active in the first screenshot? 2. You could [[How_to_become_a_MediaWiki_hacker|write a patch]] for [[phab:T104541]]. 3. "Get stuck" how and where? What is "view source only mode"? [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:17, 24 February 2021 (UTC)
:1. `user-select` is set to none and there element is not expandable/collapsible 
:2. I could, but I am asking if its already been done, your sarcastic comment suggests it has not been written
:3. `action=edit` menu label becomes "View source" after changes and the page has message `"This page is locked to prevent accidental data modification while a change propagation update is run."`. There are no outstanding jobs, `action=purge` makes no difference, but restarting php-fpm works once page is reloaded. OPcaching being on or off makes no difference and cache type is `$wgMainCacheType = CACHE_ACCEL;` [[User:Bluedreamer1|Bluedreamer1]] ([[User talk:Bluedreamer1|talk]]) 15:08, 24 February 2021 (UTC)
:Is this a translate specific thing? [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:45, 25 February 2021 (UTC)

== Adding New Icons ==
{{Archive top|status=resolved}}

Hello Admin.

I have friends that are Models on your site and I try to assist them in any way I can. An idea came across to me in a way it would be beneficial to all parties. That is the addition of a countdown clock which Models may choose to use if they find it necessary.

Your assistance in this matter would be greatly appreciated. [[Special:Contributions/190.213.111.185|190.213.111.185]] ([[User talk:190.213.111.185|talk]]) 21:33, 23 February 2021 (UTC)
:No, as far as I know, we do not have models on mediawiki.org. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:12, 24 February 2021 (UTC)
{{Archive bottom}}

== Delete Unused Images With String in Name ==

I'm trying to delete all my unused files that contain a specific string in their name. I have tens of thousands of these images so I don't want to do it by hand, but I also have some unused files mixed in that I want to keep. Luckily the files I want to keep don't contain that certain word in their file name.

Is there any way I can perform this repetitive task? [[Special:Contributions/68.229.117.46|68.229.117.46]] ([[User talk:68.229.117.46|talk]]) 02:55, 24 February 2021 (UTC)
:*You might dig into [[API:Delete]] which will delete pages if the current account has sysop. It can be done with JavaScript or other programming environment.
:*You can use [[API:Lists]] as generator. This enables you to feed the Delete process with lists of pages matching some criteria, e.g. files that contain a specific string in their name. Or you might want to create a category first from those files and inspect for things to be kept, then deleting all category members.
:*Note that this is a logical deletion only, just changing visibility. Those can be undeleted easily. If you want to get rid of binary media data, which might be MB or GB, an SQL operation on database tables might be executed, removing all records belonging to logically deleted files. Be careful, make a backup of database first, and test with limitation on one record only. [[User:Gib Senf dazu!|Gib Senf dazu!]] ([[User talk:Gib Senf dazu!|talk]]) 10:01, 24 February 2021 (UTC)

== Are MediaWiki: namespace webpages generally excluded from search engines? ==

Are MediaWiki: namespace webpages generally excluded from search engines?


I went through some of the (very few) <code>MediaWiki:</code> namespace webpages I have in my all-core MediaWiki 1.35.1 website and I didn't find a <code>__NOINDEX__</code> magic word in their MediaWiki syntax source code nor have I found a  <code><meta name="robots" content="noindex"></code> syntax in their HTML sources.


Given that MediaWiki doesn't come with a robots.txt file (and although I have already created one I want to keep it minimal), I ask:


'''Are MediaWiki: namespace webpages generally excluded from search engines''' (if so, how)'''?''' [[Special:Contributions/2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E]] ([[User talk:2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|talk]]) 08:29, 24 February 2021 (UTC)
:[[Manual:Robots.txt]]; [[Help:Controlling search engine indexing]] [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 13:11, 24 February 2021 (UTC)
:{{FlowMention|Malyacko}} please explain what makes you think I didn't visit these pages before or that if I did what have I missed. [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 15:35, 24 February 2021 (UTC)
:In that case, as you state that MediaWiki does not come with a robots.txt file, and as [[Manual:Robots.txt]] explains how to exclude certain namespaces, I think you already answered your own question with "No". :) [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 17:28, 24 February 2021 (UTC)
:<s>i would guess that mediawiki: pages with their default value might give a 404 status code which would make them unindexable.</s> This is a lie, they get 200 status code. However, any page without a page id is unindexed, which includes mediawiki namespace pages with their default values that have not been created.
:You can use google webmaster tools to find out for sure what's indexed and why. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:43, 25 February 2021 (UTC)

== Generally speaking, should short URLs give better SEO, or rather the contrary? ==
{{Archive top|result=unlikely to make much of a difference either way|status=resolved}}

I understand that short URLs are not a "natural" part of MediaWiki websites and are totally voluntary as a feature.

My personal context of asking the following question is about bilingual websites (my own MediaWiki 1.35.1 website is Hebrew-English ordered) but please feel free to answer generally, without relating to that context or any other context.


Generally speaking, should short URLs give better SEO, or rather the contrary? [[Special:Contributions/2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E]] ([[User talk:2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|talk]]) 08:50, 24 February 2021 (UTC)
:I understand that a possible indirect SEO problem from short URLs is that they might make the creation and the long run maintenance of robots.txt harder than long URLs. [[Special:Contributions/2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E]] ([[User talk:2001:44C8:4247:5F3C:CDCF:C5D4:2445:6E5E|talk]]) 08:53, 24 February 2021 (UTC)
:I've run a wiki with short URLs since 2006 and haven't had a problem with robots.txt or anything else.
:Unfortunately I don't know anything about SEO - sorry!
:There's not much junk in a normal MediaWiki URL, and it contains the full page title, so I don't imagine it makes much difference. [[User:Jonathan3|Jonathan3]] ([[User talk:Jonathan3|talk]]) 09:50, 24 February 2021 (UTC)
:its unlikely to make much of a difference either way. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:40, 25 February 2021 (UTC)
{{Archive bottom}}

== Should magic words such as __NOINDEX__ putted in <noinclude> tags? ==

Should magic words such as <code>__NOINDEX__</code> putted in <noinclude> tags?

Or rather it's fine to put them above all text in a webpage (a template webpage in this case).


Thanks, [[Special:Contributions/2001:44C8:4247:5F3C:E983:929A:26A5:A467|2001:44C8:4247:5F3C:E983:929A:26A5:A467]] ([[User talk:2001:44C8:4247:5F3C:E983:929A:26A5:A467|talk]]) 12:09, 24 February 2021 (UTC)
:'''Should magic words such as <code>__NOINDEX__</code> putted in <noinclude> tags?'''
:That should be the question under title. [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 18:06, 24 February 2021 (UTC)
:depends on if you want it to be included or not. [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:39, 25 February 2021 (UTC)
:I just wanted to make sure that putting magic words inside pseudo HTML tags (?) won't cause any bug/error/bad parsing (not sure what term to use).
:I figure that you clued it is indeed not problematic (from a problem I had with a ''line breaks'' in template outputs after putting the magic word in the very start of templates I figure it's a good bet anyway). [[Special:Contributions/2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB]] ([[User talk:2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB|talk]]) 06:48, 25 February 2021 (UTC)

== I am a user who’s rights have been abused I want help to where I can view an access my user information that’s being kept hidin  supressed revision for user rights page ==
{{Archive top|result=User hasn't said what website they are talking about, which means no one can help. Possible they are in the wrong place, this is the help desk for questions about MediaWiki software, if the user is speaking about a third-party site, they'll need to return to that third-party site and ask this question there.|status=resolved}}

I want to view all my information that is hidden from me  please help me accesss the supressed revision for user rights  page please help? [[User:Chiefydingo|Chiefydingo]] ([[User talk:Chiefydingo|talk]]) 15:47, 24 February 2021 (UTC)
:{{FlowMention|Chiefydingo}} Which website is this about? You likely have to bring that up on the website that you refer to. Please provide links. [[User:Malyacko|Malyacko]] ([[User talk:Malyacko|talk]]) 17:26, 24 February 2021 (UTC)
{{Archive bottom}}

== Watchlist requires page refresh or revisit to email notification ==
{{Archive top|result=intended behaviour|status=resolved}}

I've encountered unusual behavior with MediaWiki 1.35 where email notifications aren't being sent via edits to pages on a user's Watchlist. Here are the steps I've found that consistently works. Notice step 3 that the user must refresh or revisit the page in order to actually trigger the email notification. This shouldn't need to be done but I've done tests using two different accounts and I consistently reproduced the behavior. If that step isn't done then the notification isn't sent.

#User A adds a page to their WatchList.
#User B makes an edit to the watched page.
#User B has to refresh or revisit the watched page.
#User A receives the email notification.
#User A must login and review the changes in order to reset the notifications. [[User:Dancabcaltech|Dancabcaltech]] ([[User talk:Dancabcaltech|talk]]) 17:10, 24 February 2021 (UTC)
:that's the intended behaviour (you only get email the first time someone has edited the page since lsst time you visted) [[User:Bawolff|Bawolff]] ([[User talk:Bawolff|talk]]) 02:37, 25 February 2021 (UTC)
{{Archive bottom}}

== What is the purpose of MediaWiki:Emailsubject? ==

I went through all <code>MediaWiki:</code> webpages in my all-core MediaWiki 1.35.1 website and there I found this file:

*MediaWiki:Emailsubject

The only content this file have is:<pre dir="rtl">
כותרת ההודעה:

Which I would freely translate from Hebrew as "message heading".


I don't know what is the purpose of this file and why do I have it under that namespace (perhaps its a legacy from an extension I once installed and later deleted --- ContactPage).

And by the way, should it be safe to delete it? 2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB (talk) 18:15, 24 February 2021 (UTC)

I am having hard time finding documentation about this topic anywhere. 2001:44C8:4247:5F3C:74FB:D601:8F28:A1CB (talk) 08:51, 25 February 2021 (UTC)
its used on special:emailuser. I'm not sure why you would expect this to be documented. Are you going through every single message. There are like thousands of them. You can't really delete a message. Deleting the page will revert it to its default value. Generally speaking, if there is no dash in the name its a core message not an extension. Bawolff (talk) 17:07, 25 February 2021 (UTC)
I wasn't sure if it does with special:emailuser or ContactPage. Thanks for the clarification. 2001:44C8:4247:5F3C:69F2:1684:7A18:99CF (talk) 18:33, 25 February 2021 (UTC)

external data within maps html tag not expanding fields

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.


Why doesn't

{{#get_web_data: url=http://fileserver.com/page | format=CSV with header | data=file=File,thumb=Thumb,type=Type,title=Title,creator=Creator,date=Date,pages=Pages,size=Size,place=Place,position=Position,notes=Notes|suppress error}}
<display_map height="600" width="600" scrollwheelzoom="off" cluster="yes" service="leaflet">
{{#for_external_table:<nowiki/>
Berlin~{{{title}}}~{{{file}}} {{{thumb}}}}}
</display_map>

expand the external data within the <display_map>. I get {{{title}}} instead


I also tried
<display_map height="600" width="600" scrollwheelzoom="off" cluster="yes" service="leaflet">
{{#display_external_table:template=FileRowMap1|data=position=position,title=title,file=file,thumb=thumb,type=type}}
</display_map>
And I'm confident the template expands the variables outside <display_map>, but the map is still not displayed when its used inside Vicarage (talk) 19:32, 24 February 2021 (UTC)
you need to use #tag:displsy_map instead, see help:magic Words Bawolff (talk) 02:33, 25 February 2021 (UTC)
Thanks. My solution was
{{#tag:display_map|
{{#display_external_table:template=FileRowMap|data=position=position,title=title,file=file,thumb=thumb,type=type}}
| height="600" | width="600" | scrollwheelzoom="on" | cluster="yes" | service="leaflet"}}
with template
{{#ifeq:{{{position}}}|||{{#rreplace:{{{position}}}|[+]|}}~{{{title}}}~[{{extfile|{{{file}}}}} <IMG src="{{extfile|{{#ifeq:{{{thumb}}}||{{{file}}}|{{{thumb}}}}}}}" width="200">]}}
Vicarage (talk) 06:59, 25 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Prevent multiple sessions

Is there any way that

  1. I can restrict multiple logins OR
  2. Terminate the previous session when a user logs in from another device or browser OR
  3. Notify the user that he has logged in from different device ? Aishtest (talk) 05:06, 25 February 2021 (UTC)
for 3, extension:LoginNotify Bawolff (talk) 05:13, 25 February 2021 (UTC)

rebuildimages not moving files into the right subdirectory.

Hello.


We have a wiki that was brought back from the dead using a torrent image archive of 32gb+ (that's compressed).

We ran rebuildimages. That created sub-directories, probably from the image paths of the wiki articles.

Well, we have a lot of images not loading correctly (white space).


Turns out the rebuildimages did not move all the images into their correct subdirecotires.

When you look up the image, it will have the expected sub directory i.e. images/1/1a/hello.jpg

But, the actual file is still in images/hello.jpg.


If you try to reupload the image using the single file uploader, it gives you an overwrite warning, ignoring this warning corrects the image, and stores it in the right subdirectory. But we have 200k+ images, and you cannot overwrite images using uploadWizard.


Is there a way to fix this? A parameter we can run, or a way to set all image paths to use just .../images/?


We are using version 1.35.1 Umkemesik (talk) 06:46, 25 February 2021 (UTC)

How to add our Script in Wiki

Hello team,


I am using puppeteer library and I need to add my Ajax call on wiki's download pdf button.

how to add script for button click call ajax? Akki30 (talk) 09:22, 25 February 2021 (UTC)

Can you elaborate please? Which actual underlying problem would you like to solve by the solution that you have in mind? Malyacko (talk) 12:08, 25 February 2021 (UTC)
Sure!!
I have installed wiki 1.35.1 On RHEL 7, Installed node and created Puppeteer script to render PDF server on 8080 port.
I have created an HTML file (test.html) on my root where I have added a download Button. With on click of a button, my Ajax gets a call and hit my ExpressJs and start my Port 8080 and it downloads HTML to PDF.
Now I want to call that Ajax in my Wiki's sidebar button "Download pdf".
How and where I can add "Button " in Wiki's application So that It call my ajax and can hit my express js.
Please suggest, Hope I have explained well my problem. Akki30 (talk) 12:39, 25 February 2021 (UTC)
see Javascript or manual:extensions Bawolff (talk) 17:01, 25 February 2021 (UTC)
Thanks for the reply, but this is not the exact answer. I just want to know in which file I can add my jquery code which will trigger on Click of "Download as Pdf" button? 143.97.2.35 (talk) 06:34, 26 February 2021 (UTC)
Can Anyone reply here ??? Akki30 (talk) 07:04, 3 March 2021 (UTC)

database tables not created when installing an extension

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


Hi, I have a problem when installing an extensión on this Mediawiki installation: 1.31.0, PHP 7.0.33-0ubuntu0.16.04.16 (apache2handler), MySQL 5.7.23-23-57-log

I've been able to install it in a development environment but not on a pre-production environment, so I think is not a matter of the extension itself, which is compatible with my versions. I must doing something wrong.

The extension is Semantic Mediawiki 3.1.x. and this is what I´ve done:
cd /var/www/mediawiki
composer require mediawiki/semantic-media-wiki "~3.1.0" --update-no-dev
user@server:/var/www/mediawiki$ composer require mediawiki/semantic-media-wiki "~3.1.0" --update-no-dev
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
./composer.json has been updated
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies
Package operations: 22 installs, 0 updates, 50 removals
 - Removing jetbrains/phpstorm-stubs (dev-master)
...
...
...
 - Installing param-processor/param-processor (1.3.4): Downloading (100%)
 - Installing mediawiki/parser-hooks (1.5.0): Downloading (100%)
 - Installing mediawiki/semantic-media-wiki (3.1.6): Downloading (100%)
Package oyejorge/less.php is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
> ComposerVendorHtaccessCreator::onEvent
As a result of this, the folder extensions/SemanticMadiaWiki is created with some files and folders, but extensions/SemanticMediaWiki/.smw.json does not exist, so the next command does not create "smw_..." database tables:
/usr/bin/php maintenance/update.php --skip-external-dependencies
Maybe is a problem when running update.php

Any help please? Thanks in advance! Scejja (talk) 11:16, 25 February 2021 (UTC)

@Scejja Note that 1.31.0 is an outdated insecure version. For your own safety, please upgrade to a supported version. For Semantic Mediawiki questions, you might receive better support in the Semantic Mediawiki support forums. Malyacko (talk) 12:07, 25 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MWException from line 129 Error: invalid magic word 'testopia'

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 think I finished the Internet looking for a solution to this, but I'm out of ideas. Mediawiki works fine up to the moment I add the TestopiaReports to LocalSettings.php, like this:

require_once($IP."/extensions/TestopiaReports/TestopiaReports.php");

$wgTestopiaReports = array(

'host'        => "127.0.0.1",

'database'    => ...

'user'        => ...

'password'    => ...

'bzserver'    => ...

'chartdevice' => "google"

);

Here is what I get:

/index.php?title=Main_Page MWException from line 129 of /var/www/html/mediawiki/includes/MagicWord.php: Error: invalid magic word 'testopia'

Backtrace:

#0 /var/www/html/mediawiki/includes/MagicWordFactory.php(230): MagicWord->load()

#1 /var/www/html/mediawiki/includes/parser/Parser.php(4869): MagicWordFactory->get()

#2 /var/www/html/mediawiki/includes/StubObject.php(116): Parser->setFunctionHook()

#3 /var/www/html/mediawiki/includes/StubObject.php(142): StubObject->_call()

#4 /var/www/html/mediawiki/extensions/TestopiaReports/TestopiaReports.php(63): StubObject->__call()

#5 /var/www/html/mediawiki/includes/Setup.php(807): efTestopiaReportsSetup()

#6 /var/www/html/mediawiki/includes/WebStart.php(89): require_once(string)

#7 /var/www/html/mediawiki/index.php(44): require(string)

#8 {main}

I saw on the extension's wiki that it is deprecated. Shall I just take this as the reason why I cannot make it work or is there anything else you might think of? 193.175.208.30 (talk) 16:43, 25 February 2021 (UTC)

See the top of Extension:Testopia Reports: It may still work, or not (like in your case). Malyacko (talk) 16:49, 26 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I create an administrator user through the server?

I will rejoice in repentance Novike (talk) 18:51, 25 February 2021 (UTC)

What sort of administrator? sysop, bureaucrat or command line user? MarkAHershberger(talk) 22:07, 25 February 2021 (UTC)
sysop Novike (talk) 14:48, 3 March 2021 (UTC)
createAndPromote.php will let you do this on the command line. MarkAHershberger(talk) 19:33, 6 March 2021 (UTC)

Use the wiki in html

How do I use a wiki when html is enabled? 41.254.66.154 (talk) 13:42, 26 February 2021 (UTC)

The same way you use it otherwise. MarkAHershberger(talk) 14:43, 26 February 2021 (UTC)
<html> <script type="application/ld+json"> { "@context": "⧼abusefilter-warning-linkspam⧽","@type": "FAQPage","mainEntity": {"@type": "Question", "name": "{{{1}}}", "acceptedAnswer": {"@type": "Answer", "text": "<html/><html> }}} </script> </html>
this is not working 41.254.66.86 (talk) 14:48, 26 February 2021 (UTC)
That is not working because that is not valid HTML. Malyacko (talk) 16:48, 26 February 2021 (UTC)
Is there a solution? 41.254.66.1 (talk) 16:54, 26 February 2021 (UTC)
what happens when you do this instead of what you expect. Is $wgRawHtml =true; on, is there a link to your wiki with your example of this issue. Bawolff (talk) 17:06, 26 February 2021 (UTC)
The problem is not clear to you, the problem is that I want to create an html template and insert a wiki text inside it, I inserted {{{1}}} in it and the template did not work; There is no problem displaying html text. 41.254.66.235 (talk) 17:10, 26 February 2021 (UTC)
Wow, talk about expecting mind reading....
You need to use the syntax {{#tag:html|all your html here with {{{1}}} and what not}} Bawolff (talk) 05:50, 27 February 2021 (UTC)
I apologize, I do not speak English, I use google translate and my words are not clear 41.254.66.238 (talk) 08:20, 27 February 2021 (UTC)
no worries. I apologize for being snarky. Bawolff (talk) 20:35, 27 February 2021 (UTC)

How to setup LDAP authentication with AD?

I hope this the right place to post support question. If not, please moderator remove this post.


When I try to login, I keep getting this message on the login screen. And by the way, I'm in the Dev.Staff AD group.

"The supplied credentials are not associated with any user on this wiki."

The pluggableauth.log showed this:

2021-02-24 16:26:42 APP2 app069_production-wiki_: In execute()

2021-02-24 16:26:42 APP2 app069_production-wiki_: Getting PluggableAuth singleton

2021-02-24 16:26:42 APP2 app069_production-wiki_: Class name: MediaWiki\Extension\LDAPAuthentication2\PluggableAuth

2021-02-24 16:26:48 APP2 app069_production-wiki_: Authenticated new user:

2021-02-24 16:26:49 APP2 app069_production-wiki_: User is authorized.

Here's my ldapprovider.json file.

{

"OrgName": {

"connection": {

"server": "orgName.org",

"port": 390,

"user": "cn=LDAPWIKI,ou=ldap,ou=other,ou=orgName users,dc=orgName,dc=org",

"pass": "MediaWiki1234",

"enctype": "clear",

"options": [

{"LDAP_OPT_DEREF": 1}

],

"basedn": "dc=orgName,dc=org",

"groupbasedn": "ou=orgName Groups,dc=orgName,dc=org",

"userbasedn": "ou=orgName Users,dc=orgName,dc=org",

"searchattribute": "sAMAccountName",

"searchstring": "",

"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",

"usernameattribute": "sAMAccountName",

"realnameattribute": "displayName",

"emailattribute": "mail"

},

"authorization": {

"rules": {

"groups": {

"required": { "Dev.STAFF" }

}

}

}

}

}

And here is my LocalSettings.php file setting.

# LDAP Auth Extension Start

wfLoadExtensions([ 'PluggableAuth', 'LDAPProvider', 'LDAPAuthentication2' ]);

$LDAPAuthentication2AllowLocalLogin = false;

$wgPluggableAuth_EnableLocalProperties = true;

$LDAPProviderDomainConfigProvider = function() {

$config = [

'org.org' => [

'connection' => [

"server" => "org.org",

"port" => 390,

"user" => "cn=LDAPWIKI,ou=ldap,ou=other,ou=org users,dc=org,dc=org",

"pass" => "MediaWiki1234",

"options" => [

"LDAP_OPT_DEREF" => 1

],

"basedn" => "dc=org,dc=org",

"groupbasedn" => "ou=ORGNAME Groups,dc=org,dc=org",

"userbasedn" => "ou=ORGNAME Users,dc=org,dc=org",

"searchattribute" => "sAMAccountName",

"usernameattribute" => "sAMAccountName",

"realnameattribute" => "displayName",

"emailattribute" => "mail",

"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory"

],

]

];

return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );

};

$wgDebugLogGroups['PluggableAuth'] = 'C:\PHP\log\pluggableauth.log';

$wgDebugLogGroups['LDAP'] = 'C:\PHP\log\ldap.log';

$wgDebugLogGroups['MediaWiki\\Extension\\LDAPProvider\\Client'] = 'C:\PHP\log\ldapprovider.log';

$wgDebugLogGroups['LDAPAuthorization'] = 'C:\PHP\log\ldapauthorization.log';

$wgDebugLogGroups['LDAPAuthorization2'] = 'C:\PHP\log\ldapauthorization2.log'; Laujc (talk) 16:13, 26 February 2021 (UTC)

psychwiki

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 went to this website and the main page is still there but the majority of the links have been deleted by "doug" and I can't even get to the contact page but it says nothing about this. I also went and managed to find a page that hadn't bee deleted and was wondering why and if there is an alterative website. 172.58.172.118 (talk) 16:29, 26 February 2021 (UTC)

Hi, mediawiki.org is about the software called "MediaWiki" that anyone can use on their third-party website. We have nothing to do with that random third-party website so we cannot help, sorry. Malyacko (talk) 16:47, 26 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

periods vs. bullets

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.


A default MediaWiki installation will display unordered lists with periods instead of bullets on Google Chrome, Mozilla Firefox, and Microsoft Edge for Google Android 9 (but unordered lists will display correctly with bullets instead of periods on Opera for Google Android 9). But this issue doesn't seem to happen for Wikimedia wikis (or desktop web browsers). Is there a way to fix this for non-Wikimedia wikis to always display unordered lists with bullets instead of periods for mobile web browsers? Nicole Sharp (talk) 00:27, 27 February 2021 (UTC)

it will probably depend on your skin. Maybe some css is not working. If it works on wikimedia but not on your site it probably means something is wrong with your site. If you include a link maybe someone will be able to figure out why. Bawolff (talk) 05:46, 27 February 2021 (UTC)
There is no custom CSS in place, nor are any custom skins used other then the installation defaults, so the problem is with the default configuration of MediaWiki. I don't know where on MediaWiki I would need to make a change though if unordered lists display correctly on Wikimedia wikis but not on new installations of MediaWiki (with default settings). I also don't know why unordered lists display correctly on Opera for Google Android, but not on any other web browsers for Google Android. I tried using both desktop and mobile modes, and replacing the default font with Google Noto. https://wiki.nicolesharp.net/ Nicole Sharp (talk) 05:58, 27 February 2021 (UTC)
The only major difference between Opera and the other mobile browsers is the Opera VPN, but I disabled the VPN and there was no change on Opera (unordered lists still display correctly with bullets). On Google Chrome for Android 9, I tried disabling adblocking and Lite Mode (Chrome's data saving feature) but no change either (unordered lists still display incorrectly with periods instead of bullets). I also tried disabling on MediaWiki "Use Legacy Vector" but no change there either. I do have Bitdefender Mobile Security for Android, but did not attempt to disable it.
My first thought was that it could be a Unicode problem, if the phone's fonts cannot display the &bullet; (•) special character, and it was being substituted for an ASCII period (.) instead, but using a local install of Google Noto (on the same domain) for the MediaWiki CSS didn't resolve the problem either.
My phone (a Motorola Moto X4 Android One) might be reaching end-of-life later this year (August 2021) if Motorola doesn't provide an upgrade from Android 9 to Android 10. So if anyone can duplicate this problem with a newer version of Google Android, let me know.
I tried experimenting with the other skins provided by the default MediaWiki installation, and here are the results I got for displaying unordered lists on Google Android 9:
Chrome Edge Firefox Opera
Vector . . .
MonoBook .
Timeless
I did not realize though that MediaWiki might be loading a bullet image instead of a bullet Unicode character to display unordered lists, but now I can see the variation in bullets between the different skins. So a simple solution maybe for the Vector skin would be to try to display unordered lists with the Unicode bullet character (&bullet;) instead of an image. Not sure if that would work or what would be the best way to implement that.
Nicole Sharp (talk) 03:19, 28 February 2021 (UTC)
Perhaps SVG rendering is insufficient in those Android environments?
I learnt from our technicians that images were chosen to ensure unified appearance over browsers.
  • By default, list bullets are created by the browser, from plain HTML.
  • Mobile MediaWiki is using this approach.
  • A &bullet; character in code is superfluous. It might be missing in user font, or too small and decreasing accessibility, and might be copied when c&p is done for items or entire list.
  • Monobook, which is older than Vector, has chosen some turquois square bullets, available via image only at that stage of CSS and HTML, about 2003.
  • Vector seems to inherit that in 2010.
  • HTML5 and recent CSS were implemented in browsers during 2010s.
  • Timeless is more contemporary and is using browser style bullets (HTML default).
  • A black circle image is funny for people creating a poor man’s night mode, turning background into black and foreground (scripting) into white.
Looking at your stencil it seems to me that it is reflecting SVG rendering, doesn’t it?
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="5" height="13">
    <circle cx="2.5" cy="9" r="2.5" fill="#202122"/>
</svg>
Does not appear too difficult, but if no direct SVG rendering is present then no image.
  • For this reason MediaWiki SVG files are delivered as PNG, as far as I understand those people.
  • I do expect that this problem will vanish on upgrading your environment.
  • You might use a non-MediaWiki page in your universe and try (I guess the dot will appear as fallback from lack of SVG rendering)
@#<img src="https://www.nicolesharp.net/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg" />#@
Please note that your Minerva is a Vector. Gib Senf dazu! (talk) 09:17, 28 February 2021 (UTC)
Meanwhile I digged out phab:T220327 Unordered list styles: Remove special treatment for browsers which don't understand SVG from 2019.
If the HTML snippet I suggested shows similar appearance under same conditions, the SVG cause has been proven.
I this case you might try to inject the removed lines of fallback into the respective PHP files on your site. Gib Senf dazu! (talk) 18:29, 28 February 2021 (UTC)
Solved!! Simply add the following to LocalSettings.php:
$wgVectorResponsive = true;
# https://www.mediawiki.org/wiki/Skin:Vector
The MediaWiki page says that it is experimental, but it should probably be enabled by default for future versions of MediaWiki.
Nicole Sharp (talk) 04:11, 1 March 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Questions about MediaWiki

Hello, I hope you are doing well.

I would like to create a MediaWiki, however I have several questions:

  • I understand that installing MediaWiki is free: however, I wanted to know if this was also the case for creating a site: once we install MediaWiki, it seems to me that the software asks the name of the site we want to create: is it free to create a site?
  • I would like to know if it is possible to have "discussion walls" like the one on this page. Are there means of communication on MediaWiki, a bit like forums in parallel with encyclopedic spaces?

Have a nice day, Oxymors (talk) 11:25, 27 February 2021 (UTC)

so we make the software, but you're responsible for getting hosting, which we are not involved in providing. There are some free hosts but generally they are lower quality. Typically people use something like digital ocean that costs $5-$10 a month or AWS. The domain name also costs money, typically around $15/year.
When testing it out, people often use their own computer for testing (localhost) this is free, but mostly only works on your own computer.
Some people dont want to host themselves, and get someone else to do it for them. Costs of that can vary a lot depending on who you go with. If its some sort of communal project, miraheze provides that free. Bawolff (talk) 20:33, 27 February 2021 (UTC)
Going to https://www.mediawiki.org/ its content mentions Hosting services. Malyacko (talk) 09:02, 28 February 2021 (UTC)
for part 2, see extension:Flow Bawolff (talk) 22:31, 27 February 2021 (UTC)

Problem with the position of the sidebar

After upgrading Mediawiki from version 1.30 to 1.35, the sidebar is no longer on the left, it is at the bottom of the page.


Who can help me correct this problem?


See the home page 90.40.182.3 (talk) 18:26, 27 February 2021 (UTC)

please set $wgShowExceptionDetails=true; after doing that, https://www.gennievre.net/wiki/load.php?debug=false&lang=fr&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.skinning.interface%7Cskins.monobook.styles&only=styles&skin=monobook should have a more descriptive error.
Also make sure you have the correct version of monobook for your version of mediawiki (if you got it from somewhere that wasnt the official 1.35 tar download) Bawolff (talk) 20:28, 27 February 2021 (UTC)
Hello
Thanks for this help.
I added in variable in LocalSettings, I copied the url for the test and here are the answers:
[YDtHdNYsMHvBvodBtonPdQAAANQ] /wiki/load.php?debug=false&lang=fr&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.skinning.interface%7Cskins.monobook.styles&only=styles&skin=monobook Error from line 657 of /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/exception/MWExceptionHandler.php: Class 'FormatJson' not found
Backtrace:
#0 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::logError(ErrorException, string, string)
#1 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/AutoLoader.php(81): MWExceptionHandler::handleError(integer, string, string, integer, array)
#2 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/AutoLoader.php(81): require()
#3 [internal function]: AutoLoader::autoload(string)
#4 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/resourceloader/ResourceLoader.php(141): spl_autoload_call(string)
#5 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/includes/resourceloader/ResourceLoader.php(752): ResourceLoader->preloadModuleInfo(array, ResourceLoaderContext)
#6 /home/clients/16e57d37cb3303adbeb9d6dbf80efffb/web/wiki/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#7 {main} Gennievre (talk) 07:38, 28 February 2021 (UTC)
Are you using the MW 1.35 version of the skin as Bawolff mentioned? TiltedCerebellum (talk) 21:07, 1 March 2021 (UTC)
I reverted to version 1.30 and that's when the display issue occurred.
Version 1.35 had to modify the database I think.
But I did use an official download. Gennievre (talk) 13:37, 2 March 2021 (UTC)
It's unclear to me what reverted means. You went back to using MW 1.30, using the matching 1.30 version of the skin, and you reverted back to the 1.30 version of the database? (In my understanding, you can't use mismatched versions of things or errors are likely to occur as a result of that). TiltedCerebellum (talk) 19:57, 4 March 2021 (UTC)
Excuse me but I am using the google translator.
A migration from v 1.30 to v 1.35 went wrong (blank page on the home page and numerous warnings). However, I had used an official 1.35 by following the procedure as best as possible.
So I wanted to go back to version 1.30 with my backups. But it didn't work well since the sidebar is no longer on the left, it is at the bottom of the page.
I would therefore like to find a normal wiki with version 1.30 and then successfully switch to 1.35 afterwards.
But I don't know how to fix this sidebar problem.
Wiki home page is here https://www.gennievre.net/wiki/index.php?title=Accueil Gennievre (talk) 16:48, 7 March 2021 (UTC)
I'm just a MW user so I'll leave it up to the experts here because there may be several things going wrong with your setup.
One thing: MW 1.30 is not compatible with the version of PHP you are using (Your Spécial:Version page says you're using 7.3.27). See Compatibility, the highest version of php 1.30 can use is 7.1.x.
If you use MW 1.30 you need to use the compatible Monobook skin version, as I said above (for some reason your Spécial:Version reports no version number for any of your skins, which makes me wonder if you're using the wrong version of Monobook for MediaWiki 1.30).
Your extensions also need to match the MW version you are using (if you install MW1.30, your extensions must be 1.30 compatible too), and it may be helpful to disable extensions on setup and re-enable after setup is complete.
What lines in your LocalSettings.php are you using to (1) load Monobook, and (2) set Monobook as the default skin?
Did you copy one version of mediawiki over top of the other?
Sounds like the problem you ran into with MediaWiki 1.35 is the same as the problem you are now having with 1.30? -- If so there may be problems with in your configuration settings in the LocalSettings.php file. TiltedCerebellum (talk) 05:44, 8 March 2021 (UTC)
Yesssss !
You may not be an expert, but you are very efficient and your diagnosis was correct.
I switched back to PHP version 7.1 and it's all good! Thank you so much.
If I can abuse it, what would be your advice so that I upgrade to version 1.35 of MW without having a problem? Gennievre (talk) 12:47, 8 March 2021 (UTC)
Well, check that you were trying to use a compatible php version for that one too (7.4.3+ for 1.35)... I find it strange you had the same exact issue on 2 different versions of Mediawiki. Quite possible you also had the wrong php version there too? Disable extensions on upgrade then re-enable one or two at a time. You can't trust that all in our LocalSettings.php is current and working. Recheking the upgrade manual every time can help prevent skipping over important stuff. Usually I install 1.35 using the web installer as if starting from scratch and let it regenerate a default LocalSettings.php. Then I start adding things back a bit at a time. That helps me to find any outdated code. I also visit each extension page and make sure the configs haven't changed for those too (sometimes they do) and one wrong line of code in LocalSettings.php can also tank everything as well as mismatched versioning. TiltedCerebellum (talk) 06:31, 9 March 2021 (UTC)
> Well, check that you were trying to use a compatible php version for that one too (7.4.3+ for 1.35).
My web host offers me PHP 7.4.15 so it should be okay?
> Disable extensions on upgrade then re-enable one or two at a time.
How do you deactivate extensions? This is by commenting out the lines wfLoadExtension ('xxxxxx'); in LocalSettings.php?
> Recheking the upgrade manual every time can help prevent skipping over important stuff.
There is one step in the update that I don't understand, it's:
Clear pending jobs
For performance reasons, some actions in the database are delayed, and are managed by the job queue. Those jobs are stored in database and contain parameters with information about     actions it should perform. It's strongly recommended to run those pending jobs before upgrading the wiki, to avoid them failing in case the parameter specification of those jobs change on the     new version. Use runJobs.php to run all pending jobs and clear the queue before performing the upgrade. Gennievre (talk) 18:22, 9 March 2021 (UTC)
Yep, you're right I misread the numbers (I get a little bit number blindness now and then due to my beautiful broken brain ;)
Yes, I comment out any added (non-bundled) extensions on upgrade because I find often there may be issues with these that's easier to sort out one by one after I've confirmed MW is functioning as expected out of the box (prior to addons)--Helps me narrow down where potential issues might be. Get MW running first out of the box without addons tells me if the problem is with MW and not an extension. If an issue emerges after enabling an extension, that tells me something else.
For clearing pending jobs, people usually access the command line and do follow: Manual:RunJobs.php. Requires access to command line on your web host, since I have that, I'd log into SSH, navigate to the MediaWiki maintenance directory, then run: php runJobs.php
You need to consult your web host documentation to see if you have access to command line.
To check how many jobs are in the queue if you don't have access to command line, you can go to:
yoursite.com/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm TiltedCerebellum (talk) 21:00, 13 March 2021 (UTC)
So if I see this, does that mean I don't have any jobs in the queue?
"query": {
       "statistics": {
           "pages": 11171,
           "articles": 4829,
           "edits": 39791,
           "images": 2607,
           "users": 1176,
           "activeusers": 2,
           "admins": 2,
           "jobs": 0 Gennievre (talk) 14:20, 15 March 2021 (UTC)
@TiltedCerebellum I don't think you understand PHP's versioning. See https://www.php.net/ChangeLog-7.php#7.4.16 to see the history of the PHP 7.4 branch. PHP 7.4.15 is most definitely more than the required 7.4.3+. Peculiar Investor (talk) 21:17, 13 March 2021 (UTC)
Actually, I misread it myself whilst trying to help lol--Multiple sclerosis kills my brain's ability to see numbers properly sometimes. Consequences of having lesions in that part of my brain. Apologies for that... will edit to fix now that I can actually see it lol. ;)
At current it is reporting 0 jobs in the queue. Do you not have access to command line?
Honestly I just follow the MW manual as less can go wrong this way. Most hosts offer command line access, even shared hosts. In the latter case often it's just restricted to your own user directory which usually works fine for average stuff. TiltedCerebellum (talk) 05:33, 17 March 2021 (UTC)
Thank you again for this dialogue. I did not understand everything with the command line but I will ask my web host.
I propose to stop this thread. But I have a new question that I will ask with a new title. Gennievre (talk) 18:51, 17 March 2021 (UTC)

Outage?

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


I am getting a message that I need an internet connection even though my computer is connected to the internet and everything is working except World Archives project. I was able to work on images last night but today I cannot get anything to load. Is there an outage? Kalabu (talk) 19:01, 27 February 2021 (UTC)

This is the support desk for the MediaWiki wiki software. We have no idea what "World Archives project" is. Taavi (talk!) 19:49, 27 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Correction of the mis-spelling of Berihn

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.


As the creator of the character Jannah Berihn, I have noticed that the name has been mis-spelt several times on this wiki and would politely request that the errors be corrected. The primary ones can be found here: The HPA Saga - Elite Wiki (alioth.net)

I'm not about to give out my real-world name, but I created and authored Berihn and Longhaul Outpost (LHO) related media at the Elite Bulletin Board Service/System (EBBS) for a number of years, and worked with the artist known as Jonathan Bluestone (who can be found at JD-Bluestone at Deviantart) on the often comically absurd postings that were attributed to Jannah. Most notably the ones which were dialogued at The ELITE Bar and Grill and as a foil to the author of the Norman Mosser materials.


Most notably and other than the mis-spelling of Berihn (prou; Burr-Rinn) is the apparently missing Longhaul Outpost aka LHO, which has been also described in the wiki as ''long haul'' when the former above is the correct usage. LHO was a former Coriolis class station that Berihn purchased and then retro-fitted after it was moved by tugs to the very edge of the Diso System so that it was in Interstellar Space and therefore not under the jurisdiction of the GalCops or any other authority within the Diso System.


From there, Berihn ran the place like a speakeasy, allowed illegal trade with one exception - no slaving. The station was attacked several times by both authorities, and was the scene of a Mosser inspired incident mentioned in the HPA Sagaaaagh when the HPA prematurely went off and took half the station with it and thus ended Berihn's business. The lady herself, the ''Commanderess'' was then reported missing, presumed dead, but she was anything but.


You may be interested to know her Autobiography is in the works. 2A00:23C5:198A:FA00:C091:B839:90C9:A072 (talk) 22:23, 27 February 2021 (UTC)

you're in the wrong place. You should direct your inquiries to the wiki in question. We have nothing to do with them. Bawolff (talk) 22:31, 27 February 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


How I can insert a Picture into the sidebar? Thank you for answers.

Peter 2003:EB:B71D:AB09:C571:D82E:ACBD:A0F1 (talk) 22:37, 27 February 2021 (UTC)

Use SidebarBeforeOutputHookAmmarpad (talk) 05:27, 28 February 2021 (UTC)
I can't find an answer to my question there. 2003:EB:B71D:AB64:1817:A625:609C:16CB (talk) 09:36, 28 February 2021 (UTC)
You can't insert pictures into the sidebar, unless you add them from PHP code. You'll need some basic PHP skills to do that. Ciencia Al Poder (talk) 15:25, 1 March 2021 (UTC)
Thank you for answers.
Stay healthy!
Peter 2003:EB:B71D:AB44:C1D4:A78C:C662:AB77 (talk) 17:05, 1 March 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki isn't sending confirmation or password reset emails.

Localsettings.php says MediaWiki 1.35.0


I had my friend set my wikis up for me a couple months ago. I haven't hadd issues with email confirmations due to having very few editors. But I've tried to edit the localsettings.php and I can-not get my wiki to send any sort of emails. It doesn't work to confirm my account or reset my password. SungHerSong (talk) 04:05, 28 February 2021 (UTC)

I had the same problem: "Project:Support desk/Flow/2021/02#h-confirmation_email_failure-2021-02-03T08:46:00.000Z."
Make sure the email address for $wgEmergencyContact and $wgPasswordSender in LocalSettings.php is using the same domain name as where MediaWiki is installed.
Also, should upgrade to MediaWiki 1.35.1 LTS for the latest security updates.
Nicole Sharp (talk) 04:16, 28 February 2021 (UTC)
My installation of Mediawiki is installed on a server rented through Cloudways. So what email should I be using here?
I'll have to look into upgrading once I sort out the current issue(s) then. Thanks for the suggestion. SungHerSong (talk) 15:57, 24 March 2021 (UTC)
assuming you are not using $wgSMTP, test the host's mail system. Can you send mail via the commandline mail program? If not, an MTA might not be installed, it might not be configured correctly, there might be a firewall blocking outgoing email, etc. Bawolff (talk) 06:33, 28 February 2021 (UTC)
> test the host's mail system. Can you send mail via the commandline mail program?
I don't know what that is or how to do it. I've been learning as I go and I've never even heard of that. SungHerSong (talk) 15:58, 24 March 2021 (UTC)

I was wondering if there was a way to add a sidebar to both sides of a site. The default one on the left, and another one on the right that shows the RecentChanges. 2A02:587:B421:3700:9825:5461:ED71:EA54 (talk) 06:24, 28 February 2021 (UTC)

There's no way to do that with configuration. I'm not aware of an extension to provide that functionality. You'll have to code something to do that. Ciencia Al Poder (talk) 15:27, 1 March 2021 (UTC)
There's a Professional development and consulting page to help users find folks proficient in MW customization where code is required, that might be of some help? TiltedCerebellum (talk) 20:01, 4 March 2021 (UTC)

username

I would like to change my nickname, is this possible? 85.27.75.198 (talk) 06:32, 28 February 2021 (UTC)

On which site? – Ammarpad (talk) 08:57, 28 February 2021 (UTC)

Adding redirect for domain starting with www.

This is a newbie question but very hard to google for because of the ubiquity of "www"

So I have in my /etc/apache2/sites-available/000-default.conf some lines like

ServerName example.wiki

ServerAlias www.example.wiki


but the www.example.wiki domain doesn't work. So do I do it through apache rewrite rules to get www to work? Wqwt (talk) 09:23, 28 February 2021 (UTC)

"does not work" is very vague. Provide exact error messages. Ciencia Al Poder (talk) 15:24, 1 March 2021 (UTC)
the page does not load at all. do you mean like apache logs? Wqwt (talk) 22:09, 1 March 2021 (UTC)
If its a blank white page enable php error reporting and include any php errors.
If its an apache error (typically this is not a blank white page but a message saying 500) include the apache error log.
More generally, include any errors from any error log that seem related. Bawolff (talk) 07:20, 2 March 2021 (UTC)

Template:Module_rating protect template execution when only reading documentation

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


Hi all. When I display for example page Template:Module_rating to read the documentation, i would like to suppress the first red header message "Module rating is invalid or not specified." resulting obviously from automatic dummy execution of the template. More of that, the case 'Anything else or if missing' is described in the array below.

Please, which tag structure to use to make template active only when transcluding ?

Thank you. --Christian 🇫🇷 FR (talk) 10:56, 28 February 2021 (UTC)

You can wrap the template contents inside <includeonly></includeonly> to prevent it from executing on the template page itself and only execute when transcluding it. Ciencia Al Poder (talk) 15:23, 1 March 2021 (UTC)
ok adopting structure:
<noinclude>
<languages/>
</noinclude><includeonly>{{#switch:<translate>...</translate>
... active body of the template ...
}}</includeonly><noinclude>{{Documentation|content=
{{...
Christian 🇫🇷 FR 🚨 (talk) 18:20, 1 March 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing namespace constants

I've got a couple of custom namespaces with constants 100-103 inclusive, but now realise I should have been using 3000+ (Extension_default_namespaces). What's the best way to change these? Can I just change the number in the define line or would that break things? Thanks. Jonathan3 (talk) 14:00, 28 February 2021 (UTC)

if they are custom namespaces you made, 100-103 is the correct range. Bawolff (talk) 21:04, 28 February 2021 (UTC)
I have no plans to use SMW at the minute, but I see that SMW uses those constants for the Relation and Property namespaces. There are warnings (emphasis added):
  • The namespaces in 100–199 are reserved for site-specific namespaces, and should not be used by extensions. Many extensions are already using this range, though, so be careful. If you're writing a new extension you should never hardcode any namespaces inside the 100–199 range.
  • Namespace numbers between 3000 and 4999 should not be used [for extensions?]; these numbers are reserved for wikis to define their own custom namespaces. Furthermore, care should be taken when selecting numbers under 1000, since this range has historically been quite heavily used by extensions and sites alike (numbers under 200 should probably be avoided altogether).
  • Avoid namespace numbers 100–199. These were historically used by both extensions and sites.
  • Custom namespaces on sites should use namespace numbers 3000–4999. These should not be used by extensions.
I'm fairly sure I went for 100+ by following advice at the time, so maybe this is all new.
If I were to just change the constants now would it cause any problems? Thanks. Jonathan3 (talk) 10:35, 1 March 2021 (UTC)
Smw isnt using them anymore. Im not sure i agree with that page's advice. 100-200 has always been custom. Extensions are not supposed to use that range. Bawolff (talk) 07:16, 2 March 2021 (UTC)
I've just checked and the page table has a page_namespace column. After changing LocalSettings.php, would I just need to, for example, change every 100 to 3000, every 101 to 3001, etc? Thanks. Jonathan3 (talk) 00:20, 2 March 2021 (UTC)
And every other field ending in _namespace. There is a lot of potential for referential integeity issues if you miss a field. Highly reccomend you take a backup before doing this. I would honestly not reccomend doing this unless absolutely neccesary. Bawolff (talk) 07:17, 2 March 2021 (UTC)
Yes, I will leave it alone... it looks like Semantic MediaWiki is the only likely overlap and I'm not planning to start using it for as long as Cargo exists.
Just thinking. Would there be a way of getting rid of the old namespace, using ReplaceText to rename the pages (moving to main namespace), creating the new namespace (same name, different constant), and renaming the pages back again? Jonathan3 (talk) 10:43, 2 March 2021 (UTC)

Some problems in the score of CirrusSearch

When I search in en.wikipedia.org with "https://en.wikipedia.org/w/index.php?title=Special:Search&cirrusDumpResult=&cirrusExplain=pretty&search=drug&ns0=1&fulltext=1", I get the result, in which the score is composed of many fields (like all_near_match, text, redirect, title, etc) and the final score is the sum of all fields.

However, when I search in my MediaWiki built locally which installed CirrusSearch and elasticSearch, the score is composed of a parameter, all_near_match and all/all.plain, and the final score is the product of 2 different fields.


I have several questions about this phenomenon.

First, what is the field all/all.plain in my MediaWiki’s result means?

Second, why my MediaWiki’s result doesn’t include other fields like redirect, title, text, etc?

Finally, why the algorithm of score in en.wikipedia.org is different from that in my MediaWiki?


I would appreciate very much if you can help and provide some explanations about the above phenomenon! Jacksonowen401 (talk) 17:21, 28 February 2021 (UTC)