Jump to content

Project:Support desk/Flow/2017/09

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


linking to Skype from MediaWiki v1.25.3

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,

By writing [mailto : xxx] in wiki, wiki understands that you want to send a mail to xxxx, similar it is possible to use [skype:xxxx] to tell wiki you want to Skype to this person.

Could you help regarding the mediawiki extension required for linking to Skype from MediaWiki ?

Thanks in Adv,

Sanjay Sanjay (talk) 10:57, 1 September 2017 (UTC)

If I understand your query correctly, as mentioned in Help:Links/en#External links, this is down through Manual:$wgUrlProtocols. AhmadF.Cheema (talk) 11:21, 1 September 2017 (UTC)
As I could see the mentioned Custom Links [skype:echo123 call me] in Help:Links/en#External links is (Disabled on mediawiki.org) ?
Also I see Extension:Skype has been archived by mediawiki.
Could you please describe how we could make the custom link in mediawiki to make a call with Skype user ? Sanjay (talk) 11:56, 1 September 2017 (UTC)
You will need to add 'skype:' to the default values of $wgUrlProtocols.
For this purpose, add the following in your LocalSettings.php:
$wgUrlProtocols = array(
   'skype:', 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
   'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
   'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
   'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
);
AhmadF.Cheema (talk) 12:50, 1 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Polyglot Wikipage Structure

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 not sure what is the Wikipage Structure that was meant for Polyglot when created

For example, lets say that we start with Main_Page

We install Polyglot, then if we create Main_Page/es automatically we will have Interlanguage link for Spanish in the left, same happens if we have Main_Page/en, with ULS and English selected for anonymus visitors.

But for example, if we prefer to have a Page called Pagina_Principal (Main Page in Spanish), then, how may we adequately perform this linking?

What I've done is:

  1. Create a new page called Pagina_Principal
  2. Put a REDIRECT in Main_Page/es to Pagina_Principal
  3. Create a new page called Pagina_Principal/en
  4. Put a REDIRECT in Pagina_Principal/en to Main_Page/en

This way I have interlanguage links in both Pages (Main_Page/en + Pagina_Principal)

What I'm thinking it's if I should be doing for just every page in my site, it will be really difficult to maintain:

Lets say I create a new Page call Rice

Then I will have to create a page called Rice/es

Then another page called Arroz

Then another page called Arroz/en

Redirect Rice/es to Arroz

And Redirect Arroz/en to Rice

4 Page for every two languages

Things will go worse if I have to maintain 3 language (or 4)

If I add french then I will have to create Rice/fr + Riz + Riz/es + Riz/en + Arroz/fr

  1. Redirect Rice/fr to Riz
  2. Redirect Riz/es to Arroz
  3. Redirect Riz/en to Rice
  4. Redirect Arroz/fr to Riz

Therefore, 9 pages for 3 languages and 6 Redirects.

With 4 languages, lets say Riso (it), I will have to create:

  1. Riso
  2. Riso/es
  3. Riso/en
  4. Riso/fr
  5. Riz/it
  6. Arroz/it
  7. Rice/it

And Redirects:

  1. Riso/es to Arroz
  2. Riso/en to Rice
  3. Riso/fr to Riz
  4. Riz/it to Riso
  5. Arroz/it to Riso
  6. Rice/it to Riso

Therefore 16 Pages in total + 12 redirects.

Summary: It's impossible to scale the Wiki with this structure. So at this point I think I'm doing something wrong

Any ideas to solve this? SirLouen (talk) 11:28, 1 September 2017 (UTC)

Hi, no you are not doing something wrong. While this would be ok for 2-3 languages, the usual solution when you have too many languages is to stay with one language for the page urls (usually English),
so Rice , Rice/fr, Rice/es, Rice/it, etc.
Even Wikidata is doing this ( https://www.wikidata.org/wiki/Help:Contents/fr ).
Then you have all the urls in English, but the page title that is displayed can be changed.
I have not tried it but apparently you have to use {DISPLAYTITLE:Riz}
and set this to false Manual:$wgRestrictDisplayTitle
and/or maybe use this extension Extension:Display Title
Another solution is to create smaller wikis for each language, not use polyglot, but use standard interwiki links instead.
I hope it helps. 2003:62:5E13:E800:EC1C:1DE5:B4DA:1BE5 (talk) 22:01, 4 September 2017 (UTC)
I posted that reply above Kipcool (talk) 22:02, 4 September 2017 (UTC)
Yes Kipcool this is what I did: 1 lang + Display Titles.
But I feel the extension it's missing the possibility of linking different interlanguage pages for the same topic.
And the wiki farm I also thought about it, the problem is that it's an overkill for me, because there won't be more than 500 articles per language, so it's a lot of updating job for a small project (it may grow bigger, but I'm uncertain about it).
I'm going to stick to the displaytitle option with "normalized" links in 1 language since it's the most comfortable option at this moment.
Thanks for your advice, I wanted to know more from one of the maintainers, because I have the feeling it's not a very trendy extension. SirLouen (talk) 15:01, 13 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

DjVu thumbnail regeneration

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, what can I do if some files were imported before the DjVu libraries were added? The thumbnails aren't showing up, so they should be (re)generated, but I'm not sure how. $wgThumbnailEpoch doesn't work for DjVu files. Reception123 (talk) 16:05, 1 September 2017 (UTC)

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

Software MediaWiki Tracking

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,

My workplace recently started having users use MediaWiki on some of their projects and our Software Management team requires all software to be tracked. I was wondering if anybody knew which files in the MediaWiki package would be a good file to track MediaWiki v1.27. We generally use .exe files, but since MediaWiki is a package and contains no .exe files I'm not sure what would be a crucial file that is necessary for MediaWiki that I can use for software tracking. MattAtGov (talk) 20:48, 1 September 2017 (UTC)

Can you explain what you mean with "software tracking"? What are you using it for?
Spontaneously, without knowing more about the question, I would think that you could use Git and the tags in Git to specify, which files are part of a MediaWiki installation in a given MediaWiki version. 2003:72:6D18:9300:B080:A7B0:4A52:A26E (talk) 21:17, 1 September 2017 (UTC)
Actually, if we are talking about Git, this is the right link for you: https://github.com/wikimedia/mediawiki/releases. 2003:72:6D18:9300:B080:A7B0:4A52:A26E (talk) 21:18, 1 September 2017 (UTC)
Sorry for the late response, we use another software for software discovery -not sure if i can name the software so i'll just describe it-. Our Software discovery tool requires us to generate a Software Definitions file for each software and in the properties file we can put down filenames, file sizes, version, registry keys etc. Let's say for example I created the following Software Definition:
Software Title: MediaWiki v1.27
Filename: RELEASE-NOTES-1.27
The software discovery tool will then scan all the computers for the file "RELEASE-NOTES-1.27" and if that system has the file then it returns as the software being discovered on the computer. In the Mediawiki 1.27.3 folder the only file I found that could possibly be used to identify MediaWiki v1.27.3 was the file "RELEASE-NOTES-1.27". I was wondering if there is a better file that you could suggest we use to track Media Wiki v1.27.3 by. MattAtGov (talk) 18:05, 5 September 2017 (UTC)
You want to extract name and current version? wargo (talk) 22:13, 5 September 2017 (UTC)
Can you only check for existance of a file or are you able to also parse the contents of a given file?
As long as you can only check for existance of a file, RELEASE-NOTES-1.27 obviously will not tell you the exact version, which is present in that folder.
If you can also parse the contents, then the release notes file would be one possibility. However, includes/DefaultSettings.php contains the $wgVersion variable, which contains the value,which MediaWiki is using internally. That would be what I would use. 2003:72:6D1A:7A00:F4C2:C119:76E9:1C48 (talk) 22:21, 5 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:Flow with no VE crashes on Mobile

I am trying to use Extension:Flow with no VE and no Parsoid, but it crashes on Mobile with JS errors:

load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:158 Uncaught Error: Unknown dependency: ext.visualEditor.supportCheck     at sortDependencies (load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:158)     at sortDependencies (load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:159)     at sortDependencies (load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:159)     at resolve (load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:159)     at Object.load (load.php?debug=false&lang=he&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=1oib7a5:169)     at index.php?title=פורום&mobileaction=toggle_view_mobile:10     at startUp (load.php?debug=false&lang=he&modules=startup&only=scripts&skin=minerva&target=mobile:17)     at HTMLScriptElement.script.onload.script.onreadystatechange (load.php?debug=false&lang=he&modules=startup&only=scripts&skin=minerva&target=mobile:17)

I tried defining explicitly that I don't use VE:

$wgFlowParsoidURL = null; $wgFlowContentFormat = 'wikitext'; $wgFlowEditorList = array( 'wikitext' );

But still it runs this check and crashes. Any ideas?

Thanks, Yonidebest (talk) 08:04, 2 September 2017 (UTC)

Making an updating "feed".

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


Hey I am looking to make a list of 5-10 different cryptocurrencies and I want to update their value every 5-10 minutes or so. (Since it changes all the time)

I just have no idea how to do it, I've looked into some javastuff but no success in what to do yet. Could anyone help me out a bit and get started?

Like what extensions (if I need any) to get etc.

Please and thank you! Hipatthen (talk) 11:48, 2 September 2017 (UTC)

With JavaScript you would integrate the according values from some other site I guess.
My first idea would have been the API, which would allow you to automatically do page edits. E.g.: Get the current value from whereever it is and write it into a wiki page. 2003:72:6D7A:7000:857E:B29C:FCF:410A (talk) 17:48, 2 September 2017 (UTC)
Thank you! No idea how to actually use an API though but I'll read into it.
What I'm trying to do seems pretty simple in my head but maybe it's more complicated than I thought. Hipatthen (talk) 14:58, 7 September 2017 (UTC)
You probably don't want having 1 edit every 10 minutes = 144 edits per day just to update a currency value that you get from some other website.
It would make more sense to find a website that already provide that information (maybe as a widget that can be embedded in other pages) and include it in your wiki with Extension:Widgets for example. Ciencia Al Poder (talk) 09:43, 12 September 2017 (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.


Здравствуйте, подскажите, пожалуйста, почему загруженные мной файлы не отображаются там, где "Вклад"-"Загрузки", причем ни прошлогодние файлы не отображаются, ни вчерашние. Раньше отображались, а сейчас всё выглядит так, будто я ни одного файла не загрузила. Что случилось? Если это какая-то техническая ошибка, то как мне её исправить. Как мне теперь продолжить участие в проекте "Wiki любит памятники"? Wildolga (talk) 14:18, 2 September 2017 (UTC)

Your contributions appear to be visible here: https://commons.wikimedia.org/wiki/Special:Contributions/Wildolga AhmadF.Cheema (talk) 15:02, 2 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Customize interpretation of blank lines in Wikitext

Two blank lines preceding a heading (h2, h3, h4, ...) in Wikitext produce extra whitespace because it adds a paragraph

<p><br>
</p>

before it. (More generally, 2n or 2n+1 blank lines produce n such paragraphs.)

Is it possible to have MediaWiki treat two blank lines preceding a h2, h3 or h4 in Wikitext as only one on my wiki? More generally, is there a (clean, not hacky) way to customize the interpretation of Wikitext?

Also: is it possible that MediaWiki will someday ignore multiple blank lines before a heading by default?

Note: I know that it is possible to remove those paragraphs using e.g. JQuery, but I'm wondering if there's a way to change it at a deeper level.

Related: Change the default number of blank lines before a heading (after section editing) nBarto (talk) 10:56, 3 September 2017 (UTC)

Scripting localsettings.php ?

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


For my project I need two Wikies to work together, in two different languages.

Is it possible to set the language for the whole site, in LocalSettings.php, after a check on the SERVER_URI variable?

for example, if /Wiki1 --> load Italian, if /Wiki2 --> load English, where Wiki2 is an alias for Wiki1. I tried to do that, but while the content is loaded with the correct language, the sidebar and the skin does not correspond to the language that should be selected. I scripted a check on the URI to modify only the value of the variable $wgLanguage and the default skin, did i miss something else?

Thank you for your time and your kindness to answer me. Andrea.bozzano87 (talk) 16:37, 3 September 2017 (UTC)

You shouldn't change $wgLanguageCode. This will break the message cache (giving inconsistent messages) and some other problems with extensions like Translate, and also affect users which haven't set their language.
If you are doing this only for interface language, consider using Extension:LanguageSelector Ciencia Al Poder (talk) 09:22, 4 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Creating an account

When I try to log in I'm told there is no account with my username and it suggests 'create an account'. When I try to create an account, it says I can't use that Username because it's in use. Any ideas? 137.44.1.174 (talk) 12:31, 4 September 2017 (UTC)

Does this happen on some public wiki that you could link to? Which MediaWiki version do you use? Malyacko (talk) 08:09, 5 September 2017 (UTC)

Thumbnails are not rendering correctly

I recently upgraded from 1.15 to 1.29 and it seems thumbing isn't working correctly. For unknown reasons, sometimes a gif images would not show the thumbnail, but instead a little tiny dot. I can solve this manually by changing size (say 250px to 270px), then previewing, then changing back, preview, save. However, sometimes this doesn't help, and I have no choice but to change size permanently.

I have the following setting regarding images:

$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgSVGConverterPath = "/usr/bin";
$wgAllowCopyUploads = true;
$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;
$wgSVGConverters = array(
	'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$output',
  );
$wgSVGConverter = "ImageMagick";
$wgThumbnailEpoch =  "20170902000000";
$wgMaxShellMemory = 524288;

Any suggestions? Yonidebest (talk) 18:38, 4 September 2017 (UTC)

Have you checked Manual:Errors and symptoms#Image Thumbnails not working and.2For appearing already? AKlapper (WMF) (talk) 08:08, 5 September 2017 (UTC)
Yes, ImageMagick is up to date. No errors in log =/ Yonidebest (talk) 14:15, 5 September 2017 (UTC)

Global Main Page

I have a multilingual wiki just like at wikipedia and of there is a main page located at mywikisite.org so could someone let me know how to organize main page with statistics (number of articles) by each localization, search bar etc. Fokebox (talk) 10:33, 5 September 2017 (UTC)

Déblocage Chantier Public / tentative de discussion avec SammyDay

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.


Bonjour,
Notre compte d'utilisateur a été bloqué indéfiniment pour création de canular (suite à la création de l'article Solenn San). N'arrivant pas à contacter l'administrateur qui a décidé de notre blocage, nommé SammyDay, nous passons par ce biais et espérons que nous parviendrons à discuter de notre cas avec SammyDay ou un autre administrateur de Wikipédia.
Nous aimerions apporter des explications sur la création de cet article dans l'espoir de faire annuler le blocage. Nous comprenons que notre blocage soit tout à fait justifié, n'ayant pas respecté les principes de Wikipédia et nous nous en excusons. Cependant il nous parait important d'expliquer pourquoi nous avons créé l'article Solenn San, d'expliquer nos intentions et le projet qui fut mené en parallèle. En effet cet article relatait une histoire fictive, celle d'un personnage créé par des artistes en mai 2017 pour accompagner une installation artistique créée à Poitiers à cette période. Cette installation a réellement existé, a même été montrée à de nombreux visiteurs et bénéficié d'une dépêche dans le journal poitevin "La Nouvelle République".
L'article "Solenn-San" a donc été créé afin d'accompagner une oeuvre artistique, laquelle s'appuyait sur une légende montée de toutes pièces à partir de quelques faits historiques réels. Nous avons voulu donner une existence sur le net au personnage créé par deux artistes invités en résidence par l'association Chantier Public (nom de l'utilisateur et compte qui a créé l'article Solenn San).
Si cela est possible et que vous vouliez bien nous débloquer, nous aimerions modifier l'article afin de parler de l'oeuvre "Solenn-San" en toute honnêteté: une installation d'art contemporain créée par les artistes Lou Andréa Lassalle et Fabrice Croux à Poitiers en mai 2017. Nous nous engageons à modifier toutes les informations que nous avons inventées pour la diffusion et l'exposition de cette oeuvre et de ne citer que des faits réels.
Nous sommes vraiment désolés d'avoir rompu des règles cruciales au bon fonctionnement de Wikipédia, nous aurions du être plus honnêtes quant à nos intentions. Nous souhaitions modifier l'article dès la fin de l'exposition puis avons été bloqués et dans l'incapacité de relancer une discussion. Enfin, notre travail et la période estivale a repoussé cette demande jusqu'à aujourd'hui.
Nous serions très reconnaissants si vous vouliez bien nous accueillir à nouveau sur Wikipédia et sommes ouverts à toute discussion ou remontrance.
Merci d'avance pour la lecture de ce message et votre réponse.
Bien cordialement,
Louisa D. pour Chantier Public
chantierpublic.prod@gmail.com CHANTIER PUBLIC (talk) 10:33, 5 September 2017 (UTC)
On doit discuter les procédures et décisions de la Wikipédia française sur la Wikipédia française, pas sur mediawiki.org. Voir https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Blocage_en_%C3%A9criture pour plus d'information. Malyacko (talk) 08:00, 6 September 2017 (UTC)
For unblock requests on Wikipedia see w:Wikipedia:Unblock Ticket Request System. AhmadF.Cheema (talk) 14:39, 5 September 2017 (UTC)
I don't think procedures on English Wikipedia are relevant on French Wikipedia? :) Malyacko (talk) 08:01, 6 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

hi i'm a rookie

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.


where did my page creation go? i'm hoping i submitted it for review so it may bounce back to me..

then, what do i do after that to have it join the real wiki-world lol thanks in advance for any help i'm a nooob Janeykeithy (talk) 18:49, 5 September 2017 (UTC)

I don't see any edits that you have on this wiki other than to a talk page and the above message. Which wiki were you editing? Was it the English-language Wikipedia? —Justin (koavf)TCM 19:27, 5 September 2017 (UTC)
what is a sandbox? oh i was pretty sure it said sumit for review.. it was a whole page on Dani Secomb, the whole career, early life etc etc all linked to wiki pages and external links then it said submit or at least i bloody hope it is somewhere coz that was hours and hours of work, twice too coz at one point i deleted it and started over when i tripped over my laptop lol.
my wiki contribution career might be very brief coz i aint doing that again hahaha thank you for your message at least someone sees my messages! LOL Janeykeithy (talk) 10:26, 6 September 2017 (UTC)
Judging from the notices at w:User_talk:Janeykeithy, you possibly created and edited the article at w:User:Janeykeithy/sandbox.
Probably because of the deletion, your work is inaccessible now, but it should still be available. To retrieve the deleted material, follow the instructions mentioned in the last sentence of the second notice on your talk page. AhmadF.Cheema (talk) 10:58, 6 September 2017 (UTC)
i definitely really appreciate your response, i have to admit i'm having a giggle to myself how foreign this whole site seems to be for me to understand! I'll keep plugging away, or i'll give up, we will see haha thank you i do appreicate it Janeykeithy (talk) 11:03, 6 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

connection between 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.


hi

I hope i am inthe right place to ask that.

I was wondering if tere is any project or any search engine to find out how close 2 values in wikipedia are.

for example is there a way to get a report saying London have more things in common with Britain then with Spain.

Or which value in wikipedia has more things in common with Sansung Galaxy Note 7, is it LG V10 smart phone or the Samsung smart TV.

is threr a tool or an extension to know that?

thanks Yaronbe (talk) 20:06, 5 September 2017 (UTC)

What data you want to compare? You want "releated articles" or want to extract raw data such as "price" and add ability to choose better? wargo (talk) 22:11, 5 September 2017 (UTC)
Hi
I would like to have the ability to know if one page in wikipedia is related to the other or not, and if so, are they more related or less.
Again for example lets take the page London I would like to. Know if the page Britain is related to it, and if the page France is related to it.
If both are related somehow, I would like to. Know if which page is MORE related to London, Britain or France. Yaronbe (talk) 00:34, 6 September 2017 (UTC)
Hi there!
I think there is no such thing. But I like the idea. The topics in Wikipedia are too different to have something like that in an automated way. E.g. what do "spacecraft", "jazz" and "Friedrich Nietzsche" have in common? More or less nothing I would guess.
However, there is something you might possibly be able to build on:
  • Nearly all pages have categories and these categories usually make up a complete hierarchy tree of categories. One could e.g. measure how many categories one has to go up and down that tree until one comes from one page to another.
  • (Similar) pages often link to one another. One could count how many links there are pointing from e.g. "London" to "Britain" and to "Spain". 2003:72:6D1A:7A00:F4C2:C119:76E9:1C48 (talk) 22:13, 5 September 2017 (UTC)
Hi
Thanks for your answers.
Regarding the cattegories I have tryed... But it seems to. My suprise that the cattegories are sometimes randomly given to The page.
If I take the for example the pages Samsung note 7 and LG V20 they are both phablets, and there are many phablets in Wikipedia, but the only phone who has the category phablet is Samsung note series. But you are correct regarding going up and down the tree, I supose there is no tool in Wikipedia that can do that for me..
Regarding the links I did try it in the pet scan tool, is there another tool in Wikipedia to do this?
There are also the templets in almost every page to check for relations between the pages.
So one has to check Cattegories, Templets and links between pages to get a good idea regarding the relations between Wikipedia pages. Maybe there is even more data to compare..
The buttom line, if i understand you correctly, there is no tool in existence right now to help me get the answers i need regarding the relations between the pages in wikipedia... Yaronbe (talk) 00:53, 6 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Category sorting

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've recently changed the category sorting from uppercase to numeric in order for these (http://dragon-mania-legends-wiki.mobga.me/Category:Base_Gold_per_Hour) to be sorted properly. However, it does not seem to work the way it is intended. It worked for the first page, which was created after the change, but other than that it stayed the same. I've run all the possible maintenance scripts related to this issue (rebuildall, refreshlinks, updatespecialpages, populatecategory), but none seem to have worked. I've applied the same change (uppercase to numeric) in the DefaultSettings.php file (so it appears both in there and in local settings). I am really out of ideas. Would anyone please give me a solution? │Star-Warden09:39, 6 September 2017 (UTC)

Maybe try making null edits on the category pages which are not changing. AhmadF.Cheema (talk) 11:01, 6 September 2017 (UTC)
That, unfortunately, didn't work. Nothing happened. Any other suggestions? │Star-Warden00:09, 7 September 2017 (UTC)
Is there no other solution other than to delete and undelete all of them? │Star-Warden09:29, 10 September 2017 (UTC)
Maybe you missed updateCollation.php Ciencia Al Poder (talk) 09:24, 12 September 2017 (UTC)
Ack, right! A very moronic overlook on my side. I feel ashamed. Thank you for pointing out! It works perfectly now. │Star-Warden10:03, 12 September 2017 (UTC)
Ack, right! That was it. I overlooked it like the idiot I am. Thank you very much! │Star-Warden10:05, 12 September 2017 (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 to give network link in wiki

mw : 1.23

link like : \\121.121.121.121\test\test

in wiki page i want to link this,, if user have access directly it should redirect to that network link Rajeshrjsh (talk) 16:40, 6 September 2017 (UTC)

See $wgUrlProtocols for instructions and possible issues with some browsers. Ciencia Al Poder (talk) 09:26, 7 September 2017 (UTC)
it is working fine in IE with localhost,
but not working in live site . same link same procedure followed, link is not opening in IE
both are IE 11 14.140.81.115 (talk) 15:15, 7 September 2017 (UTC)
This is a "security feature" imposed by the browser. See Project:Support desk/Flow/2015/06#h-Opening_external_network_link_with_UNC_or_$wgUrlProtocols-2015-06-25T17:19:00.000Z Ciencia Al Poder (talk) 19:15, 7 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

someone know how create a path on sharepoint 2010 from mediawiki

I try to create a wiki an introduce a name an take this name an post to page of php inside of wiki to make a path in sharepoint whit the same name of the wiki Isidrofd (talk) 19:28, 6 September 2017 (UTC)

image

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 support desk,

How do I replace image on wikipedia? Katerina rubbo (talk) 01:53, 7 September 2017 (UTC)

If you have an improved quality image, reupload it with the same name. Otherwise upload under a different name and change the image it points to on the articles it's being used. Ciencia Al Poder (talk) 09:20, 7 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Moving a Wiki

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


MediaWiki 1.29.1 PHP 5.6.31 (cgi-fcgi) MySQL 5.6.36-82.1-log ICU 4.8.1.1

http://amwellclear.co.uk/w/index.php?title=Main_Page

Hi - I have a pretty simple question. I would like to move the above wiki to a different domain (hosted by the same service provider.

I am not a technical user and am not great with MySQL or PHP. I installed it with Softaculous, so it didn't require any technical ability.

I don't understand the instructions at Manual:Moving_a_wiki as they assume familiarity with MySQL etc.

Is there an idiot's guide, or how would I find someone who could help me? ~ ElectricRay (talk) 09:14, 7 September 2017 (UTC)

Actually, I think all I need to do is change the url - in which case would it just be this? http://www.inmotionhosting.com/support/edu/mediawiki/getting-started-mediawiki/change-url ElectricRay (talk) 09:20, 7 September 2017 (UTC)
You will have to change $wgServer. After that you might see errors, because of old, cached values from a proxy, your browser or whatever. Make sure that all caches are cleared.
Then I would test, if that maybe already was everything to do at that point... 2003:72:6D15:D500:CC05:A012:B857:152 (talk) 01:41, 8 September 2017 (UTC)
You would need to bump Manual:$wgCacheEpoch
Ideally you should keep your old domain doing a 301 redirect to the new URL during some time, so people that have the old URL (and more important, search engines) have time to migrate to the new URL Ciencia Al Poder (talk) 09:10, 8 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

by using java developing wiki

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


how to develop wiki management by using java 103.4.223.69 (talk) 09:19, 7 September 2017 (UTC)

What do you mean with "wiki management"? What should it be able to do? 2003:72:6D15:D500:CC05:A012:B857:152 (talk) 01:42, 8 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hello,

after many years I have changed to the short URL format for my wiki. (/wiki/[Article name]). Before, my URL structure was like this /wiki/index.php?title=[Article name].

I am wondering how I can edit the .htaccess file to automatically redirect people who use the old links (via Google or bookmarks) to the new links. So if anyone enters /wiki/index.php?title=Article into their browser they will always be redirected to /wiki/Article.

Right now my .htaccess file looks like this:

RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]

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

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

HEre are the entries from my LocalSettings.php (in case needed):
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;

What do I need to change or add so that it works like I want it to.

MW-Version 1.29.1
PHP 5.5.38 (cgi-fcgi) Ronathan (talk) 10:46, 7 September 2017 (UTC)

Odd Bullet Numbering

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


The .pdf files are rendered but the files are faulty this means that although the .pdf can be opened the contents are jumbled, specifically anything that is numbered in the document does not number properly as per the original document, oddly the even numbers are missed out so that things number as follows 1, 3, 5, 7, 9 etc instead of 1,2,3,4,5,6,7,8,9 Cristian (talk) 13:47, 7 September 2017 (UTC)

Please provide clear steps to reproduce: How you create that PDF file, which version of MediaWiki you use, etc. Malyacko (talk) 16:44, 11 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

CentralAuth Extension

Who has done installed centralauth extension? Please help me to run/instal it. Murbaut1 (talk) 21:43, 7 September 2017 (UTC)

See Extension:CentralAuth as a starting point. 2003:72:6D15:D500:CC05:A012:B857:152 (talk) 01:38, 8 September 2017 (UTC)
I have broken with instaling it I can't acces Special:CentralAuth Murbaut1 (talk) 12:18, 8 September 2017 (UTC)

load.php is slow

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


I upgraded from 1.15 to 1.29 and this new load.php is very slow. It seems like there are 5 request. First 3 are 1.5-2 seconds long, but at least requested simultaneously. The 4th is 2 seconds and the last one is another 1.6 seconds. All in all, almost 8 seconds to load a single page, every time. It seems these resources aren't been cached even tho $wgUseFileCache = true. Has anyone else encountered this - what can I do to improve this? Yonidebest (talk) 07:59, 8 September 2017 (UTC)

load.php aren't affected by the file cache. The file cache only cache normal pages, and just for anons.
load.php is cached by the main cache. If you have memcached or redis, use it as the main cache type. Otherwise, leave $wgMainCacheType = CACHE_ANYTHING; so it uses database for caching Ciencia Al Poder (talk) 09:05, 8 September 2017 (UTC)
Thanks! I'll change $wgMainCacheType = CACHE_ANYTHING as suggested. Yonidebest (talk) 12:34, 8 September 2017 (UTC)
I can already feel the difference, Thanks again :) Yonidebest (talk) 12:42, 8 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error message after installing html2wiki 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.


Dear all,

I am charged with testing some features of mediaWiki. I am running a fresh install of mw 1.29 on an xamp-server (OS is Win10). Having installed the extension html2wiki according to the steps mentioned at Extension:Html2Wiki , I get the following error message, which I have been unable to decipher. I could not find a proper description on the web either, at least not in context with the extension in question. The error message reads as follows:

Warning:  call_user_func() expects parameter 1 to be a valid callback, class 'Html2Wiki' not found in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 335

Also note that I used GitBash for installing the extension (as suggested). I also added the following lines to my LocalSettings.php:

[...]

#End of automatically generated settings. #Add more configuration options below.

$wgNamespacesWithSubpages[NS_MAIN] = true;

wfLoadExtension( 'Html2Wiki' );

Would be great if somebody could point out what this error signfies. I have currently no idea how to resolve the issue. Thanks for all help provided, it is much appreciated

Kind regards

Bigfoot_c Bigfoot c (talk) 09:15, 8 September 2017 (UTC)

How did you download this extension? By Special:ExtensionDistributor? Or by GIT?
Because if you used GIT, you will have to execute composer install [1]within the extension directory.
[1] https://getcomposer.org Osnard (talk) 10:16, 11 September 2017 (UTC)
Dear Osnard,
Thank you for your reply. I downloaded the extension via git as suggested on the webpage. I added composer to my PATH env and ran composer install in the extension directory. Unfortunately, the error message still occurs when launching my wiki. Please refer to the code below for suggestions should I have made a mistake during installation. Please note, I am using WIN10 and XAMP (not by choice though :=) )
Microsoft Windows [Version 10.0.15063]
c:\xampp\htdocs\mediawiki\extensions>composer install
No composer.json in current directory, do you want to use the one at C:\xampp\htdocs\mediawiki? [Y,n]? y
> ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 38 installs, 1 update, 15 removals
- Removing symfony/process (v3.2.6)
- Removing james-heinrich/getid3 (v1.9.14)
- Removing pear/net_socket (v1.1.0)
- Removing pear/pear-core-minimal (v1.10.3)
- Removing pimple/pimple (v3.0.2)
- Removing pear/net_smtp (1.7.3)
- Removing wikimedia/textcat (1.2.0)
- Removing stil/gd-text (v1.0.0)
- Removing firebase/php-jwt (v4.0.0)
- Removing ruflin/elastica (5.1.0)
- Removing pear/mail (1.3.0)
- Removing pear/mail_mime-decode (1.5.5.2)
- Removing pear/mail_mime (1.10.0)
- Removing pear/console_getopt (v1.4.1)
- Removing pear/pear_exception (v1.0.0)
- Updating justinrainbow/json-schema (5.2.0 => 3.0.1): Downloading (100%)
- Installing composer/spdx-licenses (1.1.4): Downloading (100%)
- Installing jakub-onderka/php-parallel-lint (v0.9.2): Downloading (100%)
- Installing jetbrains/phpstorm-stubs (dev-master 1b99060): Cloning 1b9906084d
Failed to download jetbrains/phpstorm-stubs from source: Failed to clone https://github.com/JetBrains/phpstorm-stubs.git, git was not found, check that it is installed and in your PATH env.
Now trying to download from dist
- Installing jetbrains/phpstorm-stubs (dev-master 1b99060): Downloading (100%)
- Installing squizlabs/php_codesniffer (2.6.0): Downloading (100%)
- Installing mediawiki/mediawiki-codesniffer (v0.7.2): Downloading (100%)
- Installing symfony/yaml (v3.3.9): Downloading (100%)
- Installing sebastian/version (1.0.6): Downloading (100%)
- Installing sebastian/global-state (1.1.1): Downloading (100%)
- Installing sebastian/recursion-context (1.0.5): Downloading (100%)
- Installing sebastian/exporter (1.2.2): Downloading (100%)
- Installing sebastian/environment (1.3.8): Downloading (100%)
- Installing sebastian/diff (1.4.3): Downloading (100%)
- Installing sebastian/comparator (1.2.4): Downloading (100%)
- Installing doctrine/instantiator (1.1.0): Downloading (100%)
- Installing phpunit/php-text-template (1.2.1): Downloading (100%)
- Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%)
- Installing phpunit/php-timer (1.0.9): Downloading (100%)
- Installing phpunit/php-file-iterator (1.4.2): Downloading (100%)
- Installing phpunit/php-token-stream (1.4.11): Downloading (100%)
- Installing phpunit/php-code-coverage (2.2.4): Downloading (100%)
- Installing webmozart/assert (1.2.0): Downloading (100%)
- Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
- Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
- Installing phpdocumentor/reflection-docblock (4.1.1): Downloading (100%)
- Installing phpspec/prophecy (v1.7.2): Downloading (100%)
- Installing phpunit/phpunit (4.8.35): Downloading (100%)
- Installing jakub-onderka/php-console-color (0.1): Downloading (100%)
- Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)
- Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
- Installing nikic/php-parser (v2.1.0): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.5.0): Downloading (100%)
- Installing symfony/var-dumper (v3.3.9): Downloading (100%)
- Installing symfony/debug (v3.3.9): Downloading (100%)
- Installing symfony/console (v3.3.9): Downloading (100%)
- Installing psy/psysh (v0.8.5): Downloading (100%)
- Installing wikimedia/testing-access-wrapper (1.0.0): Downloading (100%)
- Installing hamcrest/hamcrest-php (v2.0.0): Downloading (100%)
- Installing wmde/hamcrest-html-matchers (v0.1.1): Downloading (100%)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/filesystem ()
symfony/console suggests installing symfony/process ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
Writing lock file
Generating optimized autoload files
c:\xampp\htdocs\mediawiki\extensions>
Am I right in the assumption that you would suggest removing the extension and trying to install it using the Extension Distributor? Please let me know if you could provide other hints about how to resolve the issues.
Thank you very much in advance for your support.
PS: Sorry for the formatting, I could not figure out why <code> did not display properly in this case. Help would be appreciated Bigfoot c (talk) 10:10, 12 September 2017 (UTC)
I've had a quick look at the source code. It looks like the master branch is not operational. The "Html2Wiki" class which provides the callback is not registered to the autoloader.
I'd suggest you try to download REL1_29 from Special:ExtensionDistributor. Osnard (talk) 11:48, 12 September 2017 (UTC)
Dear Osnard
Thanks a mil for your suggestions. I followed the instructions you kindly provided, but so far I have been unable to run my wiki after making the necessary changes to the LocalSettings.php. As described in the Html2Wiki documentation, I added the following lines to my LocalSettings.php and ran the composer afterwards.
$wgNamespacesWithSubpages[NS_MAIN] = true;
wfLoadExtension( 'Html2Wiki' );
When launching the wiki on my localhost server, the following error message crops up. I had a look at those php code lines mentioned in the error messages, but could not figure out how to resolve the issue, since the information in question appears to be stored in a variable. I do lack the skills for properly debugging php, but I have the feeling that this will not be necessary, since I am afraid I have yet made another configuration / installation error. This is the error I got (when removing the lines above, the wiki works fine, hence my assumptions about the config/install error). I would be delighted if you or other people could provide some assistance.
Fatal error: Uncaught Exception: C:\xampp\htdocs\mediawiki/extensions/Html2Wiki/extension.json does not exist! in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php:99 Stack trace: #0 C:\xampp\htdocs\mediawiki\includes\GlobalFunctions.php(118): ExtensionRegistry->queue('C:\\xampp\\htdocs...') #1 C:\xampp\htdocs\mediawiki\LocalSettings.php(139): wfLoadExtension('Html2Wiki') #2 C:\xampp\htdocs\mediawiki\includes\WebStart.php(127): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\mediawiki\index.php(40): require('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 99
Thanks in advance for your time and suggestions. Bigfoot c (talk) 10:01, 13 September 2017 (UTC)
Replace wfLoadExtension( 'Html2Wiki' ); with
require_once "$IP/extensions/Html2Wiki/Html2Wiki.php";
(or C:\xampp\htdocs\mediawiki/extensions/Html2Wiki/Html2Wiki.php).
This should resolve one of the errors.
Using wfLoadExtension is the newer method of installing extensions, which required the extension files to have been updated with an extension.json file. For Html2Wiki it appears that only the master version has been updated and not the REL_1.29 branch. Therefore, when using REL_1.29 branch, the older method of activating extensions is required. AhmadF.Cheema (talk) 13:04, 13 September 2017 (UTC)
Dear AhmadF.Cheema,
Thank your very much for your insight. I was able to resolve this particular issue with the help of your comments. However, I am now struggling with a new issue regarding the installation of this particular plugin. I am sorry for all these questions but I have not done any XAMP stuff on a WIN machine before. The next issue is that the Plugin seems to require Pandoc. I install Pandoc on my local machine and also added it ot the path environment. After restarting XAMP the error still appears saying
Html2Wiki requires pandoc.
On Ubuntu systems this is as simple as
sudo apt-get install pandoc
Please see the installation instructions at https://www.mediawiki.org/wiki/Extension:Html2Wiki for more info.
Could anybody please tell me how to go about the installation of Pandoc on an XAMP / WIN10 System?
Thanks in advance for your comments.
Kind regards
C. Bigfoot c (talk) 10:02, 15 September 2017 (UTC)
To make sure that Pandoc is installed and set in PATH, does running pandoc --version in cmd, show the installed Pandoc version? Also, have you installed composer too. AhmadF.Cheema (talk) 14:49, 15 September 2017 (UTC)
Dear AhmadF.Cheema
Thanks a mil for your reply. I just wanted to get back to regarding your comments. Pandoc is installed
C:\WINDOWS\system32>pandoc --version
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: C:\Users\creske\AppData\Roaming\pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose
I ran the composer installer again to make sure it is installed properly. During installation I set the following php executable C:\xampp\php\php.exe
After that I ran a test-import of a zip-file containing html-files that I had previously prepared. The import was successful. I guess it is working now, otherwise I'll get back to the forum.
Thank you so much for your support in this matter, it is much appreciated.
Kind regards
C. Bigfoot c (talk) 07:44, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

picture of private private residence

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.


dear Sir/Madam,

Recently we discover a picture of our private residence on your website.

This picture of our home was taken without us know and proving it for publication. This is a violation of our privacy, so we would like to see the two pictures taken down.

Furthermore it has been published with sensitive information like our address.

The picture was uploaded by user Funkyxian, its the picture of "Pastorie, Kerkhofstraat 28, Smetlede" and "Pastorie, Kerkhofstraat 28, Smetlede".

I would like to remind you, that here in Belgium it's forbidden by law to take pictures of private territory/residences without a letter of approval of the owners and architect. unless its taken from a street site. witch here is not the case. this was taken out our nabbers backyard, (witch is also a violation of privacy), and the second foto was taken from our driveway.

We hope to see this picture removed as quick as possible. otherwise we will be necessitated take further steps.

https://commons.wikimedia.org/wiki/Category:Smetlede#/media/File:Kerkhofstraat_28,_Smetlede_(voorkant).jpg

https://commons.wikimedia.org/wiki/Category:Smetlede#/media/File:Kerkhofstraat_28,_Smetlede_(achterkant).jpg

I hope this issue can be resolved

kind regards

Freek Vijverman owner of the private residence. 213.119.117.166 (talk) 10:48, 8 September 2017 (UTC)

Hi there,
if I got you right, we are talking about these two images:
Deletion of an image can be requested here: https://commons.wikimedia.org/wiki/Commons:Deletion_requests#Starting_requests
So I guess this page should be the right place to continue! 2003:72:6D11:9700:2C72:5ACF:E5D7:2F52 (talk) 13:16, 8 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Encoding issues with MS SQL server

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


I have installed Mediawiki on MS SQL Server (I know it's not the most common setup, but it's supposed to be supported and that's the only database I have access to). I am using mediawiki LTS 1.27.3, PHP 7.0.23, SQL Server 2014. Installation worked correctly, however I have encoding issues whenever I try using non-ASCII characters in the body of a wiki page, such as accents ( é, à, etc. ). They are saved to database as latin-1/ascii however, so "é" becomes "é" after saving a page. I have tried searching for this issue around the net but have not found anything relevant, does anyone have any idea why this is happening? 68.67.57.99 (talk) 14:31, 8 September 2017 (UTC)

I had such an issue. It is the encoding that isn't the same in your database and in mediawiki.
I changed the encoding of my DB and reinstalled, and it was fine. 92.188.39.125 (talk) 14:43, 8 September 2017 (UTC)
92.188.39.125, thanks for the reply but as far as I know, mediawiki only supports UTF-8 whereas sqlserver only supports UTF-16, I am not aware of any way to make sqlserver use utf-8. Could you elaborate? 68.67.57.99 (talk) 14:48, 8 September 2017 (UTC)
add connection_info [utf-8] 202.175.110.18 (talk) 07:34, 12 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pages not displaying correctly after upgrade

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


I just upgraded from 1.23.13 to 1.29.1 cause my host upgraded to php 7. The upgrade appeared to go fine I installed to a new directory moved of my LocalSettings.php and some other custom php files. Then renamed my old folder to old_wiki from wiki and changed my new folder to wiki. Both folders have the same folder structure.

The only way i can get pages to come up is to add a /w in to the url like the following.

http://wiki.mysite.net/w/index.php?title=Main_Page and http://wiki.mysite.net/w/index.php?title=Special:Version

When the above use to come up with the normal link below.

http://wiki.mysite.net/Docs/Main_Page and http://wiki.mysite.net/Docs/Special:SpecialPages

Now i just get.

The requested URL /Docs/Main_Page was not found on this server.

http://wiki.vgoemulator.net/Docs/Special:SpecialPages

These are Shot URL setting which have not changed.

$wgScriptPath = "/w";

$wgArticlePath = "/Docs/$1";

$wgScriptExtension = ".php";

Any help would be appreciated.

Thank you 2600:8801:2A80:122:79DF:C526:677C:AE75 (talk) 04:10, 9 September 2017 (UTC)

Figured it out I forgot to move my .htaccess file. 2600:8801:2A80:122:79DF:C526:677C:AE75 (talk) 04:21, 9 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:WikiSEO fails on MediaWiki 1.29

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 en error: extensions/WikiSEO/WikiSEO.body.php: Call to undefined function wfMsgForContent(). Has this happened to anyone else? Yonidebest (talk) 16:58, 9 September 2017 (UTC)

I replaced all wfMsgForContent with wfMessage and it words fine now. Yonidebest (talk) 17:15, 9 September 2017 (UTC)
"Call to undefined function..." usually happen when there is a mismatch between the extension version and MediaWiki version.
wfMsgForContent() was deprecated since MediaWiki 1.18 and removed in MediaWiki 1.27. However, Extension:WikiSEO hasn't been updated and still contains the function. You can follow the instructions mentioned at Manual:Messages API#Help with replacing deprecated wfMsg.2A functions (or Extension talk:FileList#h-MW1.28_-_Call_to_undefined_function_wfMsgForContent()-2017-03-20T17:07:00.000Z) to make appropriate replacements to the code. AhmadF.Cheema (talk) 17:18, 9 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After installing the MobileFrontend extension, the 'SkinAfterContent' hook no longer works

I have a callback on the 'SkinAfterContent' hook:

     
   static function onSkinAfterContent(&$data, $skin) {
     error_log('onSkinAfterContent');
     $data .= '<span>Hello world!</span>';
     return true;
   }
  
   

The log shows that onSkinAfterContent() is definitely being called, however the "Hello world!" does not get shown in the output page. After uninstalling the MobileFrontend extension, the "Hello world!" is shown. 52.53.126.166 (talk) 19:29, 9 September 2017 (UTC)

Reading your message I first thought that MobileFrontend might just be overwriting $data with something different, erasing what already was in there. However, it does not seem like MobileFrontend is using that hook at all... 2003:72:6D73:7700:C8F6:DCD9:412A:6D98 (talk) 21:40, 9 September 2017 (UTC)

Error message after adding files in articles or replacing 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.


Hey there. Yesterday I replaced a file with another one and this message poped up. After editing an article adding files another message poped up:

Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): ([...]:/tmp/) in [...]/includes/GlobalFunctions.php on line 2426 Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): [...]:/tmp/) in [...]includes/GlobalFunctions.php on line 2426 Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): [...]/:/tmp/) in [...]/includes/GlobalFunctions.php on line 2426

What is the meaning of those two error messages and how can I fix it? Yässinzeldafan (talk) 13:48, 10 September 2017 (UTC)

It looks like the message ("This file is lacking...") is because the wiki page is missing a source parameter for the template used. You can see a the message on some commons files, for example.
See this issue on phabricator for an answer to your other problem. MarkAHershberger(talk) 19:13, 10 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Infobox thumbnail image shows image code

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.29.1
  • PHP: 5.6.22 (cgi-fcgi)
  • Database: MySQL 5.6.35

I have two private wikis, handling different sci-fi 'verses. In one, I've always used a medium blue background around images in the sidebar/infobox, and it's worked fine. On the other, the medium blue was a pure black (#000000) and also worked fine, until I decided to make it a light grey. I've noted that the image displays just fine, but the image code ([[Image: and |191px]]) bracket the displayed image. I waited a bit (hours) and noticed the problem still occurred. I tried different colors before reverting back to black. However, I realized the black was simply masking the text code.

The same issue is not true on my other wiki. I'm presuming this is a Common.css issue, but I cannot figure out where. What might be causing the image code to show? LeyteWolfer (talk) 14:29, 10 September 2017 (UTC)

This doesn't sound like a CSS issue.
What is the wikitext you're using to set up the infobox? Is it different on the two wikis?
What about the infobox template? Is it exactly the same on both wikis? MarkAHershberger(talk) 19:16, 10 September 2017 (UTC)
I'm unclear by what you mean by wikitext. Are you referring to the text that calls and populates the infobox? If you had not directly asked about the infobox template, I would have responded with info about the infobox, but it's clear you are referencing two different things; I'm not sure what the difference is.
As for the second: the infoboxes are different, but behave similarly. For example, the abbreviated (and suspect) infobox is:
{{InfoBoxBattleMech
|image=[[File:Crab (MWO).png|150px|'''CRB-27 Crab''']]
|name= CRB-27 Crab
|role= [[Skirmisher]]
|mass= 50
|chassis= Hollis Mark</nowiki>
|}
The functioning infobox is:
{{Sidebar Guide ship
|image=[[File:Murmansk (stbd).png|250px|''Murmansk'' class heavy transport]]
|classname= ''Murmansk''
|category= heavy transport/command ship/cultural exchange ship
|years= [[2167]]-[[2189]]
|constructed= 13
|length= 250.0 m
|beam= 51.5 m
|height= 43.7 m
|mass= 101,000 tons
|} LeyteWolfer (talk) 20:38, 10 September 2017 (UTC)
At this point the most likely issue appears to be some typo or mistake in the template code. It is difficult to make sure without access to the code. Can you provide it? AhmadF.Cheema (talk) 23:17, 10 September 2017 (UTC)
Absolutely. Thank you. (It can be seen in it's raw form by editing my post.)
name
Role
Mass tons
Chassis
Power Plant
Cruising Speed km/h
Maximum Speed km/h
Armor
Armament
Manufacturer
Production information
Introduced
Battle Value II
Production Cost C-Bills
LeyteWolfer (talk) 01:39, 11 September 2017 (UTC)
The problem is that in your template code you have already used the syntax needed to insert the image and defined its pixel size, [[Image:{{{image}}}|191px]]. When you call your infobox template, you re-use the "syntax needed to insert the image and define its pixel size" ([[File:Crab (MWO).png|150px|'''CRB-27 Crab''']]). Note that here [[File:Foo.png]] and [[Image:Foo.png]] are the same.
Therefore, you need to either remove from the template code [[Image:{{{image}}}|191px]] and replace it with just {{{image}}}, OR in your code used to call the infobox template, you need to only write the filename (Crab (MWO).png). AhmadF.Cheema (talk) 05:50, 11 September 2017 (UTC)
Thank you, AhmadF.Cheema. That explanation was understandable and you were right. I ended up removing the code from the template. LeyteWolfer (talk) 12:51, 11 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I can't install WikiEditor on my wiki.

Please, help me, I can't install the mediawiki extension called WikiEditor, I do all the steps in the extension article and it doesn't appear. I need help 186.219.112.44 (talk) 20:28, 10 September 2017 (UTC)

To save you and a more knowledgeable expert some time, post your versions of MediaWiki, PHP, and Database, as well as any errors you're seeing, whether error messages or indications it's failing. The more information you provide (in a clear format), the sooner you'll get an answer that's helpful. LeyteWolfer (talk) 22:30, 10 September 2017 (UTC)
Media Wiki Version: 1.29.X
Database: MySQL
PHP: Unknown
I'm not receiving any error messages 186.219.112.44 (talk) 23:08, 10 September 2017 (UTC)
Let us know how you set up the extension at LocalSettings.php Fokebox (talk) 07:27, 11 September 2017 (UTC)
Could you check the javascript console to see if any errors show up there? MarkAHershberger(talk) 13:16, 11 September 2017 (UTC)
I set up like in the article, I pasted the code in LocalSettings.php. DyeffersonAz (talk) 15:12, 11 September 2017 (UTC)
MarkAHershberger , I found the current message:
Use of "toolbar" is deprecated.
/load.php?debug=false&lang=pt-br&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=01x6u3d:153
get@/load.php?debug=false&lang=pt-br&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=01x6u3d:153 DyeffersonAz (talk) 15:16, 11 September 2017 (UTC)
Ok, so it looks like it isn't showing any obvious errors there. Are there any error's in your wikis log file? MarkAHershberger(talk) 16:34, 11 September 2017 (UTC)
Also, if you go to the Special:Version page on your wiki, you'll be able to give us the PHP version. That might help. MarkAHershberger(talk) 16:35, 11 September 2017 (UTC)

End of General Support

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.


Does MediaWiki project provide a list with the versions that will not receive more security fixes?

Our goal is to keep all software running in our environment in compliance with the latest security fixes provided by the software maintainer.

So, we need to know when the version that we use will not receive more maintenance to schedule an update. Ikami.castilho (talk) 23:07, 11 September 2017 (UTC)

See Version lifecycle. │Star-Warden23:39, 11 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SSO from application

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

Currently using MW 1.27.12 / PHP 5.6.25. I have the LDAP Authentication Plugin installed, and this works fine.

What doe we want to achieve now:

Users log in in an application, using AD credentials. The user then sees the MediaWiki. But instead of having the login window from MW, I would like the user to auto login.

Is this possible, being redirected from an application, not a browser, and auto-login ? Kronosek (talk) 06:32, 12 September 2017 (UTC)

There are several ways to do this. PluggableAuth has links to a few. You probably want to use something like PluggableSSO or Auth_remoteuser. MarkAHershberger(talk) 21:21, 12 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upload of the pictures on Windows

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 guys, I installed wiki software on Windows, but when I will upload any image into the software the following appear message (mwstore://local-backend/local-public/) wanted to know how do release the upload image. Who can give me some link here, I appreciate it. WikiUser22222 (talk) 18:35, 12 September 2017 (UTC)

It sounds like a permissions problem. Make sure your images directory is writable by the web server. MarkAHershberger(talk) 21:19, 12 September 2017 (UTC)
Yeah, but I don't know how do it. WikiUser22222 (talk) 04:09, 13 September 2017 (UTC)
Start by giving all permissions to the "Everyone" special group, on the upload folder. If this works, see who's the owner of the uploaded file and change permissions to give only write permissions to that user. Ciencia Al Poder (talk) 09:22, 13 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:Comments not working on MediaWiki 1.29

I added extension from Git master. It shows the form with "comments" tag but pressing the button to add a comment does nothing. No php error. Any idea how I can figure out the problem? Yonidebest (talk) 17:46, 13 September 2017 (UTC)

Did you run update.php? │Star-Warden18:37, 13 September 2017 (UTC)
yes, I did. Yonidebest (talk) 17:34, 14 September 2017 (UTC)
Is there an error in your webserver's log? Is there a message in your browser's console? MarkAHershberger(talk) 22:10, 14 September 2017 (UTC)
No error in server log and none in browser's console =/ Yonidebest (talk) 14:18, 15 September 2017 (UTC)
Same problem with MW 1.31 77.47.14.187 (talk) 08:21, 23 March 2021 (UTC)

MediaWiki for noobs

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've downloaded and install MediaWiki on my localhost. Works fine, but I've got some troubles making everything work.

Here's the thing: MediaWiki's simple. But when it comes to adding (for example) an infobox, I'm stuck. I've read many how-to tutorials on how to add infobox templates and create infoboxes, and none of them has worked. I've add CSS and JS, installed extensions such as Scribunto, added the corresponding line in LoclSettings.php, but every website gives a different version of what to do...

Anyway. Can someone give me the download link of a MediaWiki bundle/package that already contains all the required files, extensions and templates (Wikipedia has all the templates, so they exist, right? I've followed many tutorials and tried so many things I don't know what's wrong (and a ready-to-use MediaWiki version would really be awesome, avoiding headaches during the setup process).

As you can read, I'm a beginner, so I don't know much about MediaWiki. Please let me know what are my options.

Thanks a lot,

Chris 84.227.113.45 (talk) 14:45, 14 September 2017 (UTC)

I don't think there is a bundled package for his. The most relevant tutorial is, Manual:Importing Wikipedia infoboxes tutorial.
Exactly what problems are you facing? It would be easier to help if you can mention specific errors that you are facing. AhmadF.Cheema (talk) 14:53, 14 September 2017 (UTC)
Thanks for your reply Ahmad,
Sorry but I don't really know. I don't get specific error messages, infoboxes simply aren't displayed the way they should. The thing is I only need one or two infobox templates because my wiki's only about literature (so maybe a "Book" infobox and an "Author" infobox would be enough).
Is there a way to use Wikipedia's "Special:Export" in order to export all Wikipedia's templates (not only infobox templates)?
I'm going to start again and try with the manual you mentioned. Hope it works.
Thanks again,
Chris 84.227.113.45 (talk) 15:30, 14 September 2017 (UTC)
Okay so I followed the step-by-step manual, strictly followed every step of it, still doesn't work.
If I add an "Infobox book", fill the info and hit "Preview", the page displays and tiny infobox on the top right with only "Book" written in it. The "Template:Infobox_book" displays both this Infobox (the one with only "Book" inside) and the following error twice:
« This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value). »
Any idea how to fix this? Thanks,
Chris 84.227.113.45 (talk) 16:08, 14 September 2017 (UTC)
For some reason I am unable to re-produce the error, so cannot provide an exact fix.
Based on this report, you can try removing the code from your Wiki's version of page Module:Uses Wikidata and see if it helps. AhmadF.Cheema (talk) 18:32, 14 September 2017 (UTC)
The way infoboxes are set up, if you only enter a rough template like: {{Infobox book}} all you'll get is a little pretty much blank infobox in the top right corner -- basically what you're describing. What you want to do is to fill out an infobox like:
{{Infobox writer
|name = Isaac Asimov
|image = Isaac.Asimov01.jpg
|birth_name = Isaak Ozimov
|birth_date = Between October 4, 1919 and January 2, 1920<ref name="birthday" />
|birth_place = {{nowrap|[[Petrovichi, Smolensk Oblast|Petrovichi]], [[Russian Soviet Federative Socialist Republic|Russian SFSR]]}}
|spouse = {{marriage|Gertrude Blugerman|1942|1973|end=div}}{{marriage|[[Janet Asimov|Janet Opal Jeppson]]|1973|1992|end=his death}}
|children = 2
|death_date = {{Death date and age|mf=yes|1992|4|6|1920|1|2}}
|death_place = [[Brooklyn]], [[New York City]], [[New York (state)|New York]], U.S.
|nationality = Russian (early years), American
|occupation = Writer, professor of [[biochemistry]]
|years_active = 1939–1992
|genre = Science fiction ([[hard SF]], [[social SF]]), [[mystery fiction|mystery]]
|subject = [[Popular science]], science [[textbooks]], essays, [[literary criticism]]
|education = [[Columbia University]] <small>([[Bachelor of Science|B.S.]], 1939; [[Master of Arts|M.A.]], 1941; [[Ph.D.]], 1948)</small>
|movement = [[Golden Age of Science Fiction]]
|signature = Isaac Asimov signature.svg
}}
and then try to preview it.
Banaticus (talk) 22:40, 14 September 2017 (UTC)
I think 84.227.113.45 is having an issue similar to the one here.
Taking another look at Template:Infobox book, the default code should not be showing the error. 84.227.113.45, can you show the exact code you write when you "add an 'Infobox book'" and "fill the info"? AhmadF.Cheema (talk) 00:15, 15 September 2017 (UTC)
The Page Forms extension may be helpful for you. Yaron Koren (talk) 00:56, 15 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Improvements coming soon to Recent Changes

Hello

Sorry to use English. Please help translate to your language! Thank you.

In short: starting on 26 September, New Filters for Edit Review (now in Beta) will become standard on Recent Changes. They provide an array of new tools and an improved interface. If you prefer the current page you will be able to opt out. Learn more about the New Filters.

What is this feature again?

This feature improves Special:RecentChanges and Special:RecentChangesLinked (and soon, Special:Watchlist – see below).

Based on a new design, it adds new features that ease vandalism tracking and support of newcomers:

  • Filtering - filter recent changes with easy-to-use and powerful filters combinations, including filtering by namespace or tagged edits.
  • Highlighting - add a colored background to the different changes you are monitoring. It helps quick identification of changes that matter to you.
  • Bookmarking to keep your favorite configurations of filters ready to be used.
  • Quality and Intent Filters - those filters use ORES predictions. They identify real vandalism or good faith intent contributions that need help. They are not available on all wikis.

You can know more about this project by visiting the quick tour help page.

Concerning RecentChanges

Starting on 26 September, New Filters for Edit Review will become standard on Recent Changes. We have decided to do this release because of a long and successful Beta test phase, positive feedback from various users and positive user testing.

Some features will remain as Beta features and will be added later. Learn more about those different features.

If your community has specific concerns about this deployment or internal discussion, it can request to have the deployment to their wikis delayed to October 1, if they have sensible, consistent with the project, actionable, realistic feedback to oppose (at the development team's appreciation).

You will also be able to opt-out this change in your preferences.

Concerning Watchlists

Starting on September 19, the Beta feature will have a new option. Watchlists will have all filters available now on the Beta Recent Changes improvements.

If you have already activated the Beta feature "⧼eri-rcfilters-beta-label⧽", you have no action to take. If you haven't activated the Beta feature "⧼eri-rcfilters-beta-label⧽" and you want to try the filters on Watchlists, please go to your Beta preferences on September 19.

How to be ready

Please share this announcement!

Do you use Gadgets that change things on your RecentChanges or Watchlist pages, or have you customized them with scripts or CSS? You may have to make some changes to your configuration. Despite the fact that we have tried to take most cases into consideration, some configurations may break. The Beta phase is a great opportunity to have a look at local scripts and gadgets: some of them may be replaced by native features from the Beta feature.

Please ping me if you have questions.

On behalf of the Global Collaboration team, Trizek (WMF) 15:26, 14 September 2017 (UTC)

MediaWiki message delivery (talk) 15:26, 14 September 2017 (UTC)

Auto-page-subscribe for particular user types?

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


Is it possible to set it up so that people are autosubscribed to particular pages, so that they get a notification when those pages change? Like, a user subscribes, then requests that an admin make them a MovieCritic user, and they get autosubscribed somehow to everything in Category:Movies?  Obviously I wouldn't want to do that on the English Wikipedia, but just as an example, is that possible? ~ Banaticus (talk) 22:34, 14 September 2017 (UTC)

You can do something like this with CategoryWatch or SemanticWatchlist. MarkAHershberger(talk) 00:46, 15 September 2017 (UTC)
Removing user's comment as it was spam. Warned user on user's talk page. Rosaann (talk) 15:01, 15 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I permanently turn off the visual editor and only edit via source code?

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 permanently turn off this visual editor and make it so that it defaults to source code for me when I'm logged in? Banaticus (talk) 22:42, 14 September 2017 (UTC)
It's in your preferences. —TheDJ (Not WMF) (talkcontribs) 07:44, 15 September 2017 (UTC)
Normally the cookies should take care of that. I just logged out to test it and I opened up a page. It first opened in visual editor, but then I switched it to source. I tried editing another page and it opened up in source editor. 92.83.217.172 (talk) 22:47, 14 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installing extensions

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

I am trying to install extensions of mediawiki but I do something wrong. For example, consider CentralNotice extension. I decompress the extension into /extension/CentralNotice directory, in LocalSetting.php I add require_once( "$IP/extensions/CentralNotice/CentralNotice.php" ); and what else I have to do? In which namespace do I have to enter? How can I now it for any arbitrary extension? 2A01:C50E:896D:C100:30ED:1B34:A061:2149 (talk) 00:08, 15 September 2017 (UTC)

When you say /extension/CentralNotice, I assume you mean /extensions/CentralNotice. (You left out "s".)
But, still, you asked "what else do I have to do" and didn't mention errors, so I assume you did that correctly.
Since you're asking about CentralNotice here, I'm also going to assume that you don't have multiple wikis. In this case, you should follow the instructions for all wikis and also for the infrastructure wiki. It sounds like you did the first, did you do the second?
There are also usage instructions. Did you follow those? MarkAHershberger(talk) 00:45, 15 September 2017 (UTC)
The problem is not for CentralNotice extension. This is only an example. I would like (in general) how to activate an extension after installing. How can I know which name spaces they have created? How can I access to all configuration panels they create? Could you put me an entire example of extension (no matter which) of installing and then of using in order to reproduce it and know how they works?
I have read many tutorials and I cannot never use theses extensions. I do not even know if they are installed correctly or not (in Special:Version) they appear but nothing changes. 2A01:C50E:896D:C100:4508:FAC2:51CA:E3FF (talk) 09:28, 18 September 2017 (UTC)
Is there a particular extension you're having trouble with? The instructions are similar for each one, but it would help to have a specific one to know what you've tried and what didn't work. MarkAHershberger(talk) 01:49, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Set edit window size

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


I was away from Wikipedia for some time and in the interim there seems to be a change in the Preferences:Editing that eliminated the option to set the number of lines displayed. The edit window is now sizeable on the fly; however, it's frustrating to set the window to the size I want and have that revert to the default size every time I use the Preview command. How do I set the window to be 19 lines exactly? D'Ranged 1 (talk) 01:39, 15 September 2017 (UTC)

See https://meta.wikimedia.org/wiki/Tech/News/2017/03 AKlapper (WMF) (talk) 07:30, 15 September 2017 (UTC)
So simple; I never would have known where to look for it, though. Thanks for the assistance! D'Ranged 1 (talk) 09:53, 15 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Fatal error: Allowed memory size of 134217728 bytes exhausted

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 the above error on MediaWiki 1.29. It seems to be related to ForeignAPIRepo, last calls in stack: w/includes/filerepo/ForeignAPIRepo.php and w/includes/http/CurlHttpRequest.php. I have $wgUseInstantCommons = true; in LocalSettings.php and after it I also have Hebrew Wikipedia pictures:

$wgForeignFileRepos[] = array(
  'class'                   => 'ForeignAPIRepo',
  'name'                    => 'hewikipedia',
  'apibase'                 => 'https://he.wikipedia.org/w/api.php',
  'hashLevels'              => 2,
  'fetchDescription'        => true, // Optional
  'descriptionCacheExpiry'  => 43200, // 12 hours, optional
  'apiThumbCacheExpiry'     => 86400, // 24 hours, optional, but required for local thumb caching
);

Had no problem with this code in 1.15. Any ideas as to what I can do to fix this? Yonidebest (talk) 14:25, 15 September 2017 (UTC)

First, I would take out the $wgUseInstantCommons = true;if you only want to use hewiki.
Next, you can edit your your LocalSettings.php file and add the following:
ini_set('memory_limit', '1024M');
If that works, though, reduce the number till you come up with something that works. MarkAHershberger(talk) 18:24, 15 September 2017 (UTC)
Oh, and thank goodness you're upgrading! MarkAHershberger(talk) 18:25, 15 September 2017 (UTC)
I'll try it. I use Commons as well. Sorry for noob question, but when I reduce the limit, can it be any number? i.e. 1000M, 950M, etc. Yonidebest (talk) 17:33, 16 September 2017 (UTC)
It can be whatever works. The smaller the better. MarkAHershberger(talk) 02:33, 18 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Editing Protected Pages with Pywikibot

Hello!

I've been trying to get Pywikibot running on a new test MediaWiki installation. While it is mostly functional now, I'm still running into a problem. Despite the fact that the account being used with Pywikibot has administrator user rights, I'm still unable to edit protected pages via the bot (i.e. when running replace.py).

At first, the bot appears as though it's going to run, but then I get served a singularly unhelpful error in the following format:

You can't edit page [[SOME_PAGENAME]]. 0 pages changed.

Could someone help me figure out what's going on? For your reference, the site is running MediaWiki 1.28.2 and PHP 5.6.31, and we are running Python 3.4.2 on the server and the most recent version of Pywikibot.

Thank you! Jordan Barden (talk) 14:50, 15 September 2017 (UTC)

Issue when installing MW

Hi guys,

when I try to install MW i get the following issue. Does anybody know an solution?

[WbvJ48CoK7UAAETCTg8AAABT] /mw-config/index.php InvalidArgumentException from line 49 of /mnt/web006/b0/85/57175185/htdocs/wiki2/includes/libs/objectcache/HashBagOStuff.php: $maxKeys parameter must be above zero

Thanks FlorianFey (talk) 09:07, 16 September 2017 (UTC)

What is the $maxKeys parameter set to? Malyacko (talk) 13:53, 16 September 2017 (UTC)
Got the same problem. There is no installation process. Already at start $IP/mw-config/index.phpis this message. I don't know where this Parameter is set. 77.64.145.61 (talk) 22:40, 22 January 2018 (UTC)

Validate $request->getVal() values against XSS?

In an extension I use $request->getVal('foo'); from user input.

Is this safe enough already or do I need to validate the inputs against XSS etc? Manual:WebRequest.php reads like there is a security check already.

How would I validate the input with MW core functions? Subfader (talk) 11:30, 16 September 2017 (UTC)

Bump. Subfader (talk) 13:25, 31 October 2017 (UTC)

ResourceLoader: Add js code generated in 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.


In an extension I generate javascript variables.

How can I add the code with ResourceLoader? I only see addModules(), but there are no js files, I generate the code. Subfader (talk) 11:42, 16 September 2017 (UTC)

You can add these with the hooks MakeGlobalVariablesScript and ResourceLoaderGetConfigVars. Mainframe98 talk 12:44, 16 September 2017 (UTC)
Those are both more global. For more page contextual state, you would use the addJsConfigVars() function. See also Manual:OutputPage.php#JavaScript_and_CSSTheDJ (Not WMF) (talkcontribs) 16:25, 17 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Use ResourceLoader in parser 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.


Can I add RL modules in a parser extension?

function pageMcJdTlRenderParserFunction( $parser, $max="10", OutputPage $out ) {
	$wgResourceModules['MyExt.explorerJs'] = array(
		'scripts' => 'modules/MyExt.explorer.js',
		//'styles'  => 'modules/MyExt.explorer.css',
		'localBasePath' => __DIR__,
		'remoteExtPath' => '/',
	);
	$out->addModules( 'MyExt.explorerJs' );
	
	return "test";
}
Subfader (talk) 12:59, 16 September 2017 (UTC)
Yes, something like SyntaxHighlight does that for instance.. But, if they are parser output dependent, then you need to add them to the parseroutput, and not to the outputpage.
$parser->getOutput()->addModules()
(Parseroutput is cached, thus if your page view would be rerendered, without a new parseroutput being generated, as you have it there, it wouldn't know to re-add the modules).
BTW. you should define your resourceloader modules from extension.json these days, or at least outside of the the parserfunction, since a parser function is run for each parsercall (so for 100 calls to the function on a page, it would redefine the resourceloader module 100 times in your current example). —TheDJ (Not WMF) (talkcontribs) 16:21, 17 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LocalSettings.php in correct location, but keeps going through installation

So I was able to finally get through the initial configuration that generates the LocalSettings.php file, I put it in the same folder as the index.php, however when I refresh the website, it goes back to the beginning of the mediawiki installation process.

I am using the raspbian stretch and sqlite3 as db.

I can't figure out why it isn't reading the LocalSettings.php, any help would be great thank you. Wasabad (talk) 17:08, 16 September 2017 (UTC)

MW 1.28/restbase

I need help getting my Restbase server set up correctly. Basically I would like to run MW, Parsoid and and a Restbase server all from the same Amazon AWS EC2 instance which is running Ubuntu 14.04 but I'm getting stuck when I try to get a working Restbase server running.

MW works just fine, and I've installed VisualEditor and Parsoid and both are working as well - if I do curl http://localhost:8142 I get the Parsoid welcome page and I don't have any trouble editing existing pages with the VisualEditor which tells me that there is no issue with Parsoid. In my localsettings.php I have these lines to get Parsoid working:

$wgVirtualRestConfig['modules']['parsoid'] = array('url' => 'localhost:8142','domain' => 'localhost');

$wgSessionsInObjectCache = true;

$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;

After I had all of that working I tried to set up a Restbase server which is where I encountered a ton of trouble. I tried following the directions here: Content translation/cxserver/Setup. (I didn't install cxserver, I just want the restbase server) Here's what I did:

  1. git clone https://github.com/wikimedia/restbase.git from my user home directory
  2. npm install from within the cloned restbase folder
  3. cp config.example.yaml config.yaml from the same folder
  4. apt-get install libsqlite3-dev as instructed in the config.yaml
  5. Edited the config.yaml to look like this (note that I used localhost everywhere because everything should be running from the same EC2 instance):
 - name: restbase
   module: hyperswitch
   conf: 
     port: 7231
     salt: secret
     default_page_size: 125
     user_agent: RESTBase
     ui_name: RESTBase
     ui_url: https://www.mediawiki.org/wiki/RESTBase
     ui_title: RESTBase docs
     spec:
       x-request-filters:
         - path: lib/security_response_header_filter.js
       x-sub-request-filters:
         - type: default
           name: http
           options:
           allow:
             - pattern: http://localhost/api.php
               forward_headers: true
             - pattern: http://localhost:8142
               forward_headers: true
             - pattern: /^https?:\/\//
       paths:
         /{domain:localhost}:
           x-modules:
             - path: projects/example.yaml
               options:
                 action:
                   # XXX Check API URL!
                   apiUriTemplate: http://localhost/api.php
                   # XXX Check the base RESTBase URI
                   baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
                 parsoid:
                   # XXX Check Parsoid URL!
                   host: http://localhost:8142
                 table:
                   backend: sqlite
                   dbname: db.sqlite3
                   pool_idle_timeout: 20000
                   retry_delay: 250
                   retry_limit: 10
                   show_sql: false
                 citoid:
                   host: http://citoid-beta.wmflabs.org
                 mathoid:
                   host: http://mathoid-tester.wmflabs.org
                 mobileapps:
                   host: http://appservice.wmflabs.org
                 purged_cache_control: s-maxage=0, max-age=86400
                 purged_cache_control_client_cache: s-maxage=0, max-age=300

Then I did 'node server' from within the restbase folder to get a restbase server running - it seems to work with a server listening on port 7231. But this is where things don't work as expected.

  1. If I do curl http://localhost/Main_Page I get the html code for my main page on the wiki (so far so good)
  2. If I do curl http://localhost:8142/ I get the html code for the Parsoid welcome page (also good)
  3. If I do curl http://localhost:7231/localhost/v1/ I get: {"items":["page","transform"]} (not sure if this is the correct output but this must mean a Restbase server is running and listening on port 7231 right?)
  4. And if I do curl http://localhost:7231/localhost/v1/page/html/Main_Page I get: {"type":"https://mediawiki.org/wiki/HyperSwitch/errors/server_error","title":"Site info fetch failed.","method":"get","detail":"SiteInfo is unavailable for localhost","uri":"/localhost/v1/page/html/Main_Page"} (this is definitely not right)

When I do number 4 above I should get the html from my main page but it is not working. I'm not sure what I'm doing wrong here - can anyone help? Bluehacker007 (talk) 18:38, 16 September 2017 (UTC)

I have made some progress. When I do this:
  1. curl http://localhost:7231/localhost/v1/page/ I get: {"items":["data-parsoid","html","revision","title","wikitext"]}
  2. curl http://localhost:7231/localhost/v1/page/html/ I get {"type":"https://mediawiki.org/wiki/HyperSwitch/errors/unauthorized","title":"readapidenied","method":"get","detail":"You need read permission to use this module","uri":"/localhost/v1/page/html/"}
I thought this might be a result of having my wiki set up as a private wiki so I changed $wgGroupPermissions['*']['read'] to be true to allow anonymous users to temporarily read everything so I could continue testing. After that I did:
  1. curl http://localhost:7231/localhost/v1/page/html/Main_Page and finally I have the HTML for my Main_Page
But now I have 2 problems!
  1. I don't want to keep my wiki open for anonymous users to read - how can I use $wgGroupPermissions['*']['read'] = true and still use restbase for visual editor?
  2. If I add these lines to the localsettings.php and then try to use the visual editor from a browser accessing my wiki from the internet I get a 404 error right away when I try to open the visual editor, even with $wgGroupPermissions['*']['read'] set to false. I suspect this is a result of having everything set to localhost in my config.yaml for restbase but I'm not sure how to fix this Bluehacker007 (talk) 22:25, 16 September 2017 (UTC)
I've made significant progress but am still having problems. I now have my wiki set up so that read access is limited to logged in users only and the Restbase server is up and running properly. Visualeditor loads and is clearly making use of the restbase server but when I switch from editing source from wikieditor to visual editor I am only presented with the option to discard changes and switch. The whole point of setting up the restbase server was so that I would instead be presented with an option to switch while keeping my changes (this is what happens on wikipedia.org for example).
Here's what happens (exactly as described here: Extension talk:VisualEditor/2017/01#h-Changes_discarded_when_switching_between_WikiEditor_and_VisualEditor-2017-01-23T02:28:00.000Z):
  1. Start editing in VE visual mode -> make changes -> switch to wikitext (with enhanced editing toolbar), changes are present (can be seen in all 3 tabs: Wikitext, Preview and Changes)-> switch back to VE visual mode -> changes are discarded
  2. Start in VE visual mode -> make no changes -> switch to wikitext -> make changes -> switch to VE -> changes are discarded
  3. Start in wikitext -> make changes -> switch to VE -> changes are discarded
  4. Start in wikitext -> make no changes -> switch to VE -> make no changes -> switch to wikitext -> everything ok -> make changes in wikitext -> switch to VE -> changes are discarded
Anyone have any thoughts as to why the switch from editing source back to the visual editor is not allowing me to keep changes even though a properly configured restbase server is running? Bluehacker007 (talk) 01:00, 17 September 2017 (UTC)
Hi Bluehacker007,
good job. How did you fix your issues to say this: " I now have my wiki set up so that read access is limited to logged in users only and the Restbase server is up and running properly". Can you explain, please?
Thank you 93.38.0.180 (talk) 11:56, 20 February 2018 (UTC)
Hello,
I have the same Issue. Do you have find some solution about it ?
"code\":\"readapidenied\",\"info\":\"You need read permission to use this module
I use LDAPauthentication and NetworkAuth.
no Lockdown extension on my config. Khepri35 (talk) 15:07, 3 October 2017 (UTC)

Errors after moving server

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 need to move my site from a MySQL 5 server to a MariaDB 10. I'm sure this isn't ideal, but to get the best result is it likely to require any changes? For phpBB for example, it requires one edit of the database type in config.php

Thanks 89.101.251.25 (talk) 00:01, 18 September 2017 (UTC)

Maybe, you should run update.php. 星耀晨曦 (talk) 00:07, 18 September 2017 (UTC)
For the record, it converted absolutely fine. 89.101.251.25 (talk) 18:42, 18 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Parser functions won't register magic word

So I am following the code at https://www.mediawiki.org/wiki/Manual:Parser_functions and duplicated it exactly. But when I attempt to load my extension, I receive the following message:

/content/Special:Version MWException from line 336 of /var/www/html/wiki/includes/MagicWord.php: Error: invalid magic word 'example'

I'm guessing this may just be another example of documentation being out of date, but I began dissecting other extensions and find they use the exact same syntax and setup from what I can tell. I then thought maybe there was a magic word collision so I began trying out a series of increasingly bizarre combinations of letters but still the exact same error (only with the word "example" replaced, of course).

Any insight on what I am missing?

Again, I set up the project exactly as described at the top of Corpubro (talk) 03:36, 18 September 2017 (UTC)

Digging deeper, for some reason mSynonyms has a length of 0 for the MagicWord I've registered. No other magic word has such a thing. Corpubro (talk) 04:15, 18 September 2017 (UTC)
Further stepping back into MW's code, I'm finding the "example" magic word is not making it into the LocalisationCache. It was suggested elsewhere to run 'rebuildLocalisationCache.php --force' in order to rebuild the cache, and I had already done so in my prior troubleshooting efforts to no avail. I still don't understand where the disconnect is in preventing my magic word from being registered into the localisation cache. I guess the only answer is to continue to take apart the MW code to see where the breakdown is occurring. Unless anyone else has a shortcut to help out here? Corpubro (talk) 04:38, 18 September 2017 (UTC)
Do you have your code online in a public repository, so one could have a look? Osnard (talk) 08:53, 19 September 2017 (UTC)

enable flow board for special page.

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


i m having a requirement of using special pages for getting concatenated topics of all pages flow board. and for that i m trying using queries. but on the same page i need flow board widget to enter new topics.

How to apply flow like widget for special page. any help would be appreciable. Sabiya115 (talk) 08:13, 18 September 2017 (UTC)

Flow is for structured discussions. Special pages are not discussion pages (in my understanding)? Malyacko (talk) 10:07, 18 September 2017 (UTC)
Maybe they could work out something through the SpecialTalk extensions? │Star-Warden10:12, 18 September 2017 (UTC)
Special pages we can can use for our bilerplate code, i want to list all the topics of all talk pages concatenated on single special page via sql queries and want to have add topic widget above the topic list for adding new topic on special page???
How this could be achieved, any suggestions Sabiya115 (talk) 11:21, 18 September 2017 (UTC)
There is a project: https://meta.wikimedia.org/wiki/Grants:Project/ClemFlip/Wikifab/Various_types_of_transclusions_of_Flow_discussion_boards
It aims to create a special page for Flow discussions so it makes like a forum for users and it will structure all topics. But now it is just an idea among volunteers, I hope it will be finally developed Fokebox (talk) 14:40, 18 September 2017 (UTC)
This is exactly what i wanted, thankyou for your suggestion. i need to wait for it to get developed. Sabiya115 (talk) 06:59, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

[RESOLVED] After Update Error: 1054 Unknown column 'ug_expiry' in 'field list' (localhost)

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,

After a upgrade of Ubuntu ( to 16.04) My dear wiki developped on mediawiki 1.23 was not work. After some search on web, I decided to update also mediawiki to last version 1.29 by following all instructions described in Update manuel.

So basicaly, I dump my DB, save in tar.gz files before download the mediawiki-1.29.1.tar.gz.

After all my images folder was copied and extensions are updated I run also the update.php script wiith no error.

The first run my wiki home page I obtain just a error about "wfLoadSkin( 'Vector' );" forgotten. So I modified correctly the LocalSettings.php file and run again the home page of my wiki... but I have this SQL error : 

6e1e893ddacaf2198378f128] /wiki/index.php/Accueil Wikimedia\Rdbms\DBQueryError from line 1075 of /var/lib/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 

Query: SELECT ug_user,ug_group,ug_expiry FROM `user_groups` WHERE ug_user = '31' 

Function: UserGroupMembership::getMembershipsForUser

Error: 1054 Unknown column 'ug_expiry' in 'field list' (localhost)

I was tried to update manually the DB by dump but the error stay.

Could you help me ? 

Produit Version
MediaWiki 1.29.1
PHP 7.0.22-0ubuntu0.16.04.1 (apache2handler)
MySQL 5.7.19-0ubuntu0.16.04.1

Thanks  Nelodie (talk) 16:11, 18 September 2017 (UTC)

Looks like update.php did not apply https://github.com/wikimedia/mediawiki/blob/master/maintenance/archives/patch-user_groups-ug_expiry.sql for whatever reason. You can apply the patch manually. Just make sure to replace /*$wgDBprefix*/ with your configured database prefix (defined in LocalSetting.php) Osnard (talk) 08:51, 19 September 2017 (UTC)
Thanks you very much @Osnard
I  applied manually your SQL Code and the wiki appeared and worked fine.
Thanks. Nelodie (talk) 10:32, 19 September 2017 (UTC)
I ran into this when I tried to upgrade with Flow enabled. Disabling Flow temporarily allowed the upgrade o work. MarkAHershberger(talk) 06:52, 22 September 2018 (UTC)
I ran into this when using a foreign file repo via the ForeignDBRepo class. The providing wiki was updated to 1.35 the receiving wiki was still at 1.31. After also updating the receiving wiki to 1.35 the error went away. [[kgh]] (talk) 18:20, 19 January 2022 (UTC)
Oops, actually in my case the issue was Error: 1054 Unknown column 'img_description' in 'field list' (localhost) [[kgh]] (talk) 18:21, 19 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Failure to Upload files to MediaWiki

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.


Good morning, I am experiencing issues with uploading files to my MediaWiki v1.26.2 server. Our current setup is as follows:

PHP v5.4.16, MariaDB v5.5.47, Apache v2.4.6.40

I have enabled debugging and receive the following errors when attempting to upload:

[exception] [6476b2a0] /mediawiki/index.php/Special:Upload   MWException from line 1868 of /var/www/mediawiki-1.26.2/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Cable.JPG.'

G#0 /var/www/mediawiki-1.26.2/includes/filerepo/file/LocalFile.php(1147): LocalFile->lock()

#1 /var/www/mediawiki-1.26.2/includes/upload/UploadBase.php(708): LocalFile->upload(string, string, string, integer, array, boolean, User)

#2 /var/www/mediawiki-1.26.2/includes/specials/SpecialUpload.php(486): UploadBase->performUpload(string, string, boolean, User)

#3 /var/www/mediawiki-1.26.2/includes/specials/SpecialUpload.php(197): SpecialUpload->processUpload()

#4 /var/www/mediawiki-1.26.2/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)

#5 /var/www/mediawiki-1.26.2/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)

#6 /var/www/mediawiki-1.26.2/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)

#7 /var/www/mediawiki-1.26.2/includes/MediaWiki.php(714): MediaWiki->performRequest()

#8 /var/www/mediawiki-1.26.2/includes/MediaWiki.php(508): MediaWiki->main()

#9 /var/www/mediawiki-1.26.2/index.php(41): MediaWiki->run()

#10 {main}

DatabaseBase::query: Writes done: REPLACE INTO `msg_resource` (mr_resource,mr_lang,mr_blob,mr_timestamp) VALUES ('X')

OutputPage::sendCacheControl: no caching **

[error] [5a2ad114] [no req]   ErrorException from line 4262 of /var/www/mediawiki-1.26.2/includes/db/Database.php: PHP Notice: Uncommitted DB writes (transaction from DatabaseBase::query (User::loadFromDatabase)).

#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)

#1 /var/www/mediawiki-1.26.2/includes/db/Database.php(4262): trigger_error(string)

#2[internal function]: DatabaseBase->__destruct()

#3 {main}

NOTE: This server has worked fine since we set it up. Then out of the blue we couldn't upload files. We are in a production environment and need this thing fixed. Any assistance would be greatly appreciated. Thank you! Steve0613 (talk) 18:39, 18 September 2017 (UTC)

I'd say something has changed in your server, this particular thing doesn't break on its own...
  • Verify permissions on the images folder
  • Verify if you have SELinux enabled, and disable it to test if some kind of additional enforcement was added
  • Check free space on the mount point where images are stored, just in case you ran out of space Ciencia Al Poder (talk) 20:11, 18 September 2017 (UTC)
Figured out the issue pertains to the /var/www/html/mediawiki/images directory being sym-linked to a network share. Moved the images file from the file server to the local machine and this worked. Still need to figure out what was causing the issues with sym-links.
Steve Steve0613 (talk) 20:12, 18 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Messages at the top of the page

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


Hi,

I'd like to know how to add a message at the top of the page. For example, in the page Test to appear the text that is in the template Test-Header.

Thank you. 181.197.42.35 (talk) 19:25, 18 September 2017 (UTC)

I forgot to mention that I want the messages to appear while editing the pages. 181.197.42.35 (talk) 19:31, 18 September 2017 (UTC)
This is done through w:Wikipedia:Editnotice.
In case you just want the same edit-notice for an entire namespace, it is relatively easier (see w:Wikipedia:Editnotice#Technical_details).
For per-page edit-notices you will have to duplicate some Wikipedia templates and modules. AhmadF.Cheema (talk) 20:40, 18 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

can Wiki add an additional language preference for user account holder?

I am using TWO languages, I appreciated to see when I log into WIKI, it will show my language preference, I hope to set them both in my settings. Now I can only choose one language.

what do other users think? is this suggestion helpful to all bilingual users? BirdieJ (talk) 23:13, 18 September 2017 (UTC)

Private messaging

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.


Are there any extensions that support private messaging?

Also, is there a list of recommended extensions? NostalgicColorBird (talk) 23:34, 18 September 2017 (UTC)

Might be possible through Extension:MediaWikiChat. The MediaWiki extensions aren't the most aesthetic or smooth. You can even try GosuChat implemented on this wiki., although I'm not sure whether private messages are possible at the moment or not. AhmadF.Cheema (talk) 04:56, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do i find 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.


Where can i find the database? 212.115.197.97 (talk) 10:13, 19 September 2017 (UTC)

Configuration of the database can be found in the LocalSettings.php file. Search for variables "$wgDBtype", "$wgDBserver", "$wgDBname, "$wgDBuser", and "$wgDBpassword". With this information you should be able to connect to the database. Osnard (talk) 11:09, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Embed modular content

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'm looking for the best way to create modular content. Basically embedding pages, or parts of pages in other pages.

I work at a company where we are using the wiki for training for many different departments.

I'm looking for ways to standarize the information and reduce duplication of effort.

I would like to have standard sets of training content that can be embedded in multiple pages. But that content would only need to be edited and maintained in one area and would automatically be updated in every instance where it is embedded.

What is the best way to do this with MediaWiki?

Thanks! Andrewschlussel (talk) 11:43, 19 September 2017 (UTC)

See Transclusion and Extension:Labeled Section Transclusion. AhmadF.Cheema (talk) 11:52, 19 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How i create "objectcache" table?

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 am deleted objectcache table by mistake. How i create it on the mysql terminal?

CREATE TABLE objectcache;

is it enough? 85.104.149.41 (talk) 19:02, 19 September 2017 (UTC)

No, that is not enough.
Basically, the file maintenance/tables.sql contains the CREATE statement, which you have to run.
How exactly the table has to look may be different in other versions of MediaWiki and in other database management systems (e.g. in MSSQL or PostGres). 2003:72:6D1C:7500:CD92:7D96:FEB1:DD20 (talk) 20:55, 19 September 2017 (UTC)
And note that /*_*/ has to be replaced by the table prefix, if set. And /*i*/ is what indeces are prepended with. 2003:72:6D1C:7500:CD92:7D96:FEB1:DD20 (talk) 21:00, 19 September 2017 (UTC)
If i run maintenance script problem is solve?
I am created table on the terminal like that, it works but i don't know, maybe in the background there may be a problem.
"CREATE TABLE objectcache (keyname char(255) binary, value mediumblob, exptime datetime);" 85.104.149.41 (talk) 21:38, 19 September 2017 (UTC)
No, running update.php will not help.
The query, which you have run, misses the PRIMARY KEY on the keyname column.
Also, you should still add an index:
CREATE INDEX exptime ON objectcache (exptime); 79.228.222.125 (talk) 16:06, 20 September 2017 (UTC)
CREATE INDEX exptime ON objectcache (exptime);
I I applied that command. Is that all? Do I need to do something else?
Thank you for your help.  Bekircem (talk) 16:19, 24 September 2017 (UTC)
That's all you need Ciencia Al Poder (talk) 12:53, 25 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Plugin installation 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.


Hi,

I've installed ConfirmEdit plugin i got error.

Warning: array_merge_recursive(): Argument #1 not an array in /public/includes/registration/ExtensionProcessor.php on line 294

Any ideas? Bekircem (talk) 09:40, 20 September 2017 (UTC)

According to T102522, this was an issue with the old MediaWiki 1.25.
You can either upgrade, or possibly make the changes mentioned here. AhmadF.Cheema (talk) 11:06, 20 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Escape the double quote symbol in page title

How to transform the external link contains double quote symbols in page title e.g.

regex - MySQL REGEXP word boundaries [[:<:]] [[:>:]] and double quotes - Stack Overflow https://stackoverflow.com/questions/18901704/mysql-regexp-word-boundaries-and-double-quotes

 

into MediaWiki link format? Thanks for your time! Planetoid (talk) 10:20, 20 September 2017 (UTC)

(Cannot access 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.


We are receiving the "Cannot access the database" error. This is a new install and we were able to complete the configuration, which means it was able to connect to the SQL server and create the database, logins and security. We also checked the box to use the same account for access as was used to create the SQL DB. We are using Windows authentication, but tried SQL server authentication as well, but with the same result. We enabled PHP errors and debugging, but got no useful information other than the below. Our environment is Windows Server 2016, SQL 2016, MediaWiki LTS 1.27.3. We have installed the correct VC and MS PHP drivers for PHP, which has been proven since everything talks to the SQL server, except after configuration. Looking at previous responses, there doesn't seem to be much help with SQL server, but thought I'd post to see if anyone has had a similar issue. Relevant error and debug log lines are:

PHP error log:PHP Warning:  Declaration of DatabaseMssql::ignoreErrors(array $value = NULL) should be compatible with DatabaseBase::ignoreErrors($ignoreErrors = NULL) in \\xxx\WikiMedia\includes\db\DatabaseMssql.php on line 1413

PHP Debug log:[error] [63d39a8a9c671c22ec901aaa] /   ErrorException from line 1413 of \\xxx\WikiMedia\includes\db\DatabaseMssql.php: PHP Warning: Declaration of DatabaseMssql::ignoreErrors(array $value = NULL) should be compatible with DatabaseBase::ignoreErrors($ignoreErrors = NULL)

[connect] Failed to connect to database 0 at xxx Brianfly (talk) 12:57, 20 September 2017 (UTC)

Just an update. We were able to get SQL authentication working. We also tested windows authentication using the below script, connecting with the same apppool credentials as the site and it works as well. It seems that once the configuration is done, the wiki site does not find the windows authentication username and password. Was wondering if this can be verified?
<?php 
/* Specify the server and connection string attributes. */ 
$serverName = "xxx"; 
$connectionInfo = array( "Database"=>"test_wiki"); 
/* Connect using Windows Authentication. */ 
$conn = sqlsrv_connect( $serverName, $connectionInfo); 
if( $conn === false ) 
     echo "Unable to connect.</br>"; 
     die( print_r( sqlsrv_errors(), true)); 
/* Query SQL Server for the login of the user accessing the 
database. */ 
$tsql = "SELECT CONVERT(varchar(32), SUSER_SNAME())"; 
$stmt = sqlsrv_query( $conn, $tsql); 
if( $stmt === false ) 
     echo "Error in executing query.</br>"; 
     die( print_r( sqlsrv_errors(), true)); 
/* Retrieve and display the results of the query. */ 
$row = sqlsrv_fetch_array($stmt); 
echo "User login: ".$row[0]."</br>"; 
/* Free statement and connection resources. */ 
sqlsrv_free_stmt( $stmt); 
sqlsrv_close( $conn); 
?>  Brianfly (talk) 14:08, 21 September 2017 (UTC)
You're probably missing to set $wgDBWindowsAuthentication Ciencia Al Poder (talk) 12:57, 25 September 2017 (UTC)
Thank you for your input, unfortunately, the parameter is in the localsettings.php file.
# MSSQL specific settings
$wgDBWindowsAuthentication = true;
$wgDBmwschema = "xxx";
$wgDBprefix = "";
We were able to make SQL serer authentication work by changing this setting to false and have the SQL username/password in the Database settings..........Our security won't allow this though. Brianfly (talk) 18:31, 26 September 2017 (UTC)
After running MediaWiki 1.27.3 with SQL Server for a while without a problem I suddenly started getting the "(Cannot access the database)" error. The log showed the same error as for the OP:
Declaration of DatabaseMssql::ignoreErrors(array $value = NULL) should be compatible with DatabaseBase::ignoreErrors($ignoreErrors = NULL) in \\xxx\WikiMedia\includes\db\DatabaseMssql.php
It turned out to be damaged SQL Server ODBC driver. I repaired the ODBC driver and the problem disappeared immediately. 31.24.13.176 (talk) 14:26, 30 September 2017 (UTC)
This error is T162781, fixed in 1.29, but I'm not sure if there would be other MSSql errors in 1.29... Ciencia Al Poder (talk) 12:53, 1 October 2017 (UTC)
Compatibility sums this up nicely: "MediaWiki is compatible with a variety of database servers. (...) Using any other database software [apart from MySQL or MariaDB] is not recommended for production use. (...) Running MediaWiki on anything other than MySQL or MariaDB is not recommended for production use at this point." 2003:72:6D60:DF00:99BD:6BB4:D5F3:8EBE (talk) 13:04, 1 October 2017 (UTC)
Thank you, everyone, for the replies. We were trying to get this up and running for our development team to try out. Being regulated/security driven with our apps we can use MS SQL or MS SQL, so there was no other option. We thought this might be useful, but unfortunately, we just cant' get it working with Windows authentication. Even tried the latest non-LTS version. We mixed different ODBC/PHP drivers and temporarily opened up all windows firewall ports between the SQL server and IIS server, but with no success. We my re-visit this in the future, or when MS SQL is "recommended". Thanks again. Brianfly (talk) 14:45, 2 October 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Access Mediawiki webpage in local network

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,

First off, this is the software that i use for the system:

 Ubuntu 16.04.3 

Apache/2.4.18

PHP 7.0.22

mysqld  Ver 5.7.19

nginx/1.10.3

So, I'm trying to only setup the wiki for a local network. It would be unnecessary to make it available on the internet and I don't want to pay for a domain.

I followed this guide for the installation of Mediawiki:

https://www.linuxbabe.com/ubuntu/how-to-install-mediawiki-ubuntu-16-04-apache-nginx

It seemed to be going well, although I wasn't sure how to edit the files /etc/apache2/sites-available/mediawiki.conf and /etc/nginx/conf.d/mediawiki.conf since I didn't own a domain. I decided to put the server's IP-address in the spaces that should be edited. But when i finished setting up the system and I wanted to access the web interface I only got to the apache default page when I typed in the IP-address in my browser.

I decided to reinstall Mediawiki since I wasn't sure if it was installed correctly. The reason for that is that I wasn't able to find the localsettings.php and defaulsettings.php files in the directory.

This time I followed this guide:

https://www.rosehosting.com/blog/how-to-install-mediawiki-on-an-ubuntu-16-04-vps/

The problem remains.

So if someone could tell me how I can access the web interface of Mediawiki with this setup I would be very grateful. TheSoleIntern (talk) 14:54, 20 September 2017 (UTC)

Reinstalling never solves configuration issues. See https://www.mediawiki.org/wiki/Installation Malyacko (talk) 16:08, 20 September 2017 (UTC)
In which folder is the Apache default page, which you are seeing?
This is the folder, in which you have to install MediaWiki: Remove the default page and instead extract the MediaWiki tarball there.
Then calling the URL with index.php at the end should bring up the MediaWiki installer. 79.228.222.125 (talk) 16:09, 20 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I install a new mediawiki and use an old mediawiki 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.


We are currently running Mediawiki 1.19.

I upgraded the server OS from Ubuntu 12.04 to Ubuntu 14.04 and it broke the wiki extension Wiki2Latex.

PHP version is 5.5.9.

MySQL Database version is 5.5.57.

I would like to upgrade the mediawiki to 1.25 or 1.26 (I still need the LDAP extension functionality), but following the upgrade directions doesn't seem to be working.

Can I install a fresh copy of Mediawiki 1.25 or 1.26, refer it to the existing database and images and run update.php?

Thank you for the help. Serrkind (talk) 20:54, 20 September 2017 (UTC)

You definitely can upgrade from 1.19 to 1.26. While making that upgrade, you will also have to run update.php. A complete guide is available at Upgrading!
What is it that is not working as expected? 2003:72:6D1A:8600:A467:F3F4:B77B:F6B1 (talk) 22:01, 20 September 2017 (UTC)
I was having issues getting the old LocalSettings.php to read the newer media wiki files. I ended up creating a new installation, connecting it to the old database, and going from there.
My next challenge is finding a replacement for the wiki2latex extension. Is using the Math extension the best option? Will it read the previous math equations used in the wiki2latex extension? Serrkind (talk) 16:41, 21 September 2017 (UTC)
If you don't find compatible extensions with your MediaWiki version, you should comment out the lines that include them in LocalSettings.php Ciencia Al Poder (talk) 21:58, 21 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Page Editing Error (Collapse/Expand)

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 editing text through the "Edit" section in MediaWiki 1.29.0, I experience the following:

Source code produces the following output:

Process

Process examples to communicate issues and templates to coders and editors. Test 2

  • Check engine oil level

null Expand

However, when editing text, for example, if I wanted to remove "Test 2" using "Edit" above, the following happens in the source code:

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>

<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-EngineOil">

changes to:

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>

<div class="mw-collapsible mw-collapsed">

To summarize, id="mw-customcollapsible-EngineOil" is removed, which causes [Collapse] or [Expand] to appear in the far right, instead of clicking on the header to expand or collapse.

I can work around this by first editing the text and and then going into the source code to re-enter each ID, but that seems very manually intensive.

Has anyone seen this? Is there a fix? (Please let me know if further clarification is required.)

Thank you. Richarddteamaccent (talk) 22:53, 20 September 2017 (UTC)

It may be a bug with Visual Editor and custom togglers.
If you can reproduce it on a WMF wiki (it can be on a sandbox page), report it as a bug Ciencia Al Poder (talk) 09:38, 22 September 2017 (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.


Здравствуйте, вчера я создала статью о Эльмире Эфендиевой - телеведущей телеканала НТВ. Но сегодня этой статьи нигде нет. Куда она делась? Sportnews1 (talk) 09:35, 21 September 2017 (UTC)

Did you create that article on www.mediawiki.org? Because it does not look like. Hence impossible to tell... Malyacko (talk) 09:50, 21 September 2017 (UTC)
https://ru.wikipedia.org/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%BA%D0%BB%D0%B0%D0%B4/Sportnews1 Malyacko (talk) 09:51, 21 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

missing search results

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.


Using Mediawiki 1.28.0 with Mysql database. I have 2 wiki's that are identical except for the location of app and database. If I do a search on one it gives me correct results while the other gives me just a very small set of results. The only difference between the 2 is I have run the rebuildtextindex.php script against the wiki not returning correct results. I do not know how to troubleshoot this since this script appears to be working fine, no errors. Does anyone have any suggestions on what might be wrong?

I found the issue, the cron was pointing to a symbolic link and not the actual directory, this made it look like it was rebuilding the text indexes but was actually breaking them. Once I fixed the cron it rebuilds correctly and everyone is happy again. Kanto501 (talk) 12:43, 21 September 2017 (UTC)

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

OAUth

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, Apologies if this is in the wrong place,

Each time I go on [https://tools.wmflabs.org/flickr2commons/#interface_language=en Flickr2Commons] or [https://tools.wmflabs.org/commonshelper/Commonshelper] and try to connect via OAuth I keep getting "Error retrieving token: mwoauthdatastore-request-token-not-found",

It used to work a few months ago and as far as i know no settings have changed,

Thanks, ~ Davey2010 (talk) 18:33, 21 September 2017 (UTC)

You need to contact the owners of those tools. I suggest the talk page for Flickr2commons. MarkAHershberger(talk) 20:53, 21 September 2017 (UTC)
Okie dokie thanks Error in {{reply to}}: Username not given. much appreciated :), Thanks, ~ Davey2010 (talk) 17:59, 22 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need help: Add cite to show married to Leif Erland Andersson

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.


GloLeif12234** (talkcontribs)

Dear Wikipedia staff,

The article on my late husband Leif Erland Andersson is requiring a citation that I was his wife. I am having trouble locating the marriage license but have contacted Indiana public records. In the meantime will my passport as Gloria Lee Andersson do? Or else I have this family history that notes our marriage on page 3798?

Andersson, Per and Lindhardt, Johan. Långarydssläkten: Simonsstammen

Band V Stockholm: Drakings Bokförlag, 2014.  p. 3798.

I don't know how to add these in the source code.

Thanks,

Gloria GloLeif12234** (talk) 16:32, 22 September 2017 (UTC)

It looks like they want documentation of your wedding "in 1973 at the Beck Chapel of Indiana University.". Is there an old newspaper article that would have this? MarkAHershberger(talk) 16:40, 22 September 2017 (UTC)
I've temporarily updated the article pointing to here for citation. Hopefully someone will be able to show us what to do. MarkAHershberger(talk) 16:59, 22 September 2017 (UTC)
Monroe County is sending me a link to our marriage licesense today. Will that be enough evidence? Again, I am not sure how to format ref. to a marriage license in your source code.
This is important to me because I am attempting to build bridges between the US and European science fiction writers and fans. Thank you, Gloria (Andersson) McMillan GloLeif12234** (talk) 17:06, 22 September 2017 (UTC)
I'm not sure how to format this, either. If you scan in the license and upload the image, maybe that will give us an idea. MarkAHershberger(talk) 12:00, 28 September 2017 (UTC)
Hello, Mark!
I had to scan this in two pieces since it is linger than letter-sized. I hope you can ask somebody how to cite this document as evidence of our marriage.
Thanks,
Gloria GloLeif12234** (talk) 20:57, 28 September 2017 (UTC)
I have just searched for "Leif Erland Andersson" Gloria, but all you get are Wikipedia and Wikipedia copies. Seems like there is nothing online.
A newspaper article would be nice - and it would be a way, in which you would not have to upload confidential data like what you have in your passport. Note that this newspaper does not have to be online - a version on real paper would do just fine.
Concerning the Långarydssläkten: Simonsstammen, Band V: Has this book been published by a known publishing house? Or is it kind of a private family book, which is passed from generation to generation? 2003:72:6D17:7700:1959:3FFA:1D07:40F (talk) 17:35, 28 September 2017 (UTC)
That Swedish family history looks like a print on demand POD book.
File name here at Wikipedia is: File:Leif and My Marriage License.pdf
It went wherever uploaded stuff goes. GloLeif12234** (talk) 21:03, 28 September 2017 (UTC)
My brother-in-law is asking if there were news stories in Sweden. No answer as yet. GloLeif12234** (talk) 21:04, 28 September 2017 (UTC)
Uploads usually are done on commons.wikipedia.org, but it seems like you have not done any edits on that site.
Also https://tools.wmflabs.org/guc/?user=GloLeif12234%2A%2A should show the upload, but it is not working currently... 2003:72:6D17:7700:61CF:6152:A043:5577 (talk) 21:10, 28 September 2017 (UTC)
I hope it shows up there. I did a successful upload to Wikipedia. I am still not finding a story. Maybe there was one but in what album or where I ut the clipping I don't know. The license should be enough proof. GloLeif12234** (talk) 21:16, 28 September 2017 (UTC)
uploaded that file to Wikipedia Commons. I hope it can be deleted once it is given in evidence. This is rather personal. GloLeif12234** (talk) 21:24, 28 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Log In issue

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


This was done on allthetropes.org, which I believe is under MediaWiki

I created an account, General Hindsight, on or around 9/20/2017. When I went to log back into the account after a day, I was given two errors, one stating that the password was invalid, and another one that simply said there was an internal error of some kind. I know the password was valid, as I retrieved it from a password database that I had saved it in when I created the account. However, I did not make it with an email address, so I thought that maybe the account was complaining about that. I made a second account, General Observation, and to that added my email address. I then went to a wiki page to begin editing, and the page told me that THAT password was now invalid. On top of that, it somehow had me logged in to my General Hindsight account. I thought that I would simply add my current email to the General Hindsight account, get a new password (since I had cleared the old one from the database), restore it, and delete the General Observation account. However this didn't work either.

In short, can you

1) Delete the General Observation account

2) Delete the General Hindsight account or send a reset password to the General Observation account email

?

If you check your logs, you should be able to see that General Observation and General Hindsight are logging in from the same machine. I don't have cookies turned off or anything, I do have adblocker on. Once this is done, can you tell me why I cannot log in to your system without errors: I checked the FAQ can could find nothing describing why I wouldn't be able to log in under my circumstances, and aside from only having HTTP and HTTPS open, I don't have a bunch of weird settings on my machine such that I can't log into various other websites.

Any assistance you can grant in this matter would be appreciated, thank you. 66.61.75.194 (talk) 20:10, 22 September 2017 (UTC)

This is something that you need to ask the people there. Their site is only running on the MediaWiki software, but it's not part of the WMF project. │Star-Warden20:33, 22 September 2017 (UTC)
Thank you for the clarification, I will do so now. 66.61.75.194 (talk) 21:39, 22 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Where to report Spammers?

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.


Where is the page, where vandals and spammers can be shown to the admins to block them? Grüße vom Sänger ♫(Reden) 12:12, 23 September 2017 (UTC)

As the sidebar notes, probably Project:Current issues . Although there isn't really a need to report mass vandalism like this. Admins regularly patrol these pages and will quickly notice it. 197.218.91.47 (talk) 12:49, 23 September 2017 (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.


Hi,

I would like to insert a banner in the new Monoskin of the MediaWiki-version 1.28.1. The banner has the format 468*60. I would like to place it above the "site" and "edit" buttons. How is this possible?

thx

chagall Chagall~mediawikiwiki (talk) 13:18, 23 September 2017 (UTC)

You can use sitenotice:
https://www.mediawiki.org/wiki/Manual:Interface/Sitenotice
Or
https://www.mediawiki.org/wiki/Extension:PCR_GUI_Inserts Fokebox (talk) 13:27, 23 September 2017 (UTC)
Thank you! The Extension helped. It's not perfect and not as easy as it was before, with editing the monobook.php, but it's a step in right direction. Chagall~mediawikiwiki (talk) 19:26, 23 September 2017 (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.


I am trying to set up a template. It is a link to Google Translate. However, the text going in the template makes the link not work.

Is there any template or parser function that can take words and make an html link with them? PokestarFan (talk) 19:05, 23 September 2017 (UTC)

Possibly the magic word "urlencode". See Help:Magic words#URL data.
Also see the source code for w:Template:ShortSearch for something along the lines of what you are apparently trying to create. AhmadF.Cheema (talk) 20:59, 23 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mass patrol

Is there a way to patrol edits en masse? Or something to patrol all the edits that have been done so far? 92.83.217.172 (talk) 22:27, 23 September 2017 (UTC)

Hi there!
If you want all edits by certain users to be patrolled automatically, then I propose adding the according user right to the according user group.
In order to have all existing edits partolled, I guess I would look into the code to see what is happening during patrolling inside the database and then I would run according SQL queries to get that done for all revisions. 2003:72:6D01:3100:6CAC:7389:8613:392C (talk) 08:29, 24 September 2017 (UTC)
Thanks, but I am not good with database, but I can run queries. I only want the edits that exist so far to be patrolled. If anyone could give me a script or an sql query for that it would be great. 92.83.217.172 (talk) 08:40, 24 September 2017 (UTC)

System messages

Hey. I am trying to make modified system messages in the site's default language - English (US), from special:all messages, to appear as the default for all languages. I saw that $wgForceUIMsgAsContentMsg should take care of it, but even if I add $wgForceUIMsgAsContentMsg = 'uploadtext';, the change isn't reflected here (http://dragon-mania-legends-wiki.mobga.me/Special:Upload). I have restarted the server, memcached, database and still nothing. Any idea what's going wrong or if I have missed a step? │Star-Warden22:49, 23 September 2017 (UTC)

$wgForceUIMsgAsContentMsg is an array, so you probably need to use
$wgForceUIMsgAsContentMsg = [ 'uploadtext' ];
or
$wgForceUIMsgAsContentMsg[] = 'uploadtext';
Instead. Ciencia Al Poder (talk) 12:54, 25 September 2017 (UTC)
Tried both options, I tried even with $wgForceUIMsgAsContentMsg = array( 'uploadtext' ); but still nothing. │Star-Warden14:20, 25 September 2017 (UTC)
Up. Still unresolved. │Star-Warden13:53, 10 October 2017 (UTC)

Unable to see extensions 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 have recently installed wikimedia 1.29.1 and chose to install all of the extensions. However, I cannot find the gadgets section under preferences? SimonBrackley (talk) 10:06, 24 September 2017 (UTC)

Can you make sure that Extension:Gadgets is installed by seeing if it present in your Wiki's Special:Version page? AhmadF.Cheema (talk) 11:19, 24 September 2017 (UTC)
Yes, it does appear under the Special:Version page... SimonBrackley (talk) 17:55, 24 September 2017 (UTC)
Can you make sure that at-least one valid gadget is defined in your Wiki's MediaWiki:Gadgets-definition. Without a valid gadget the "Gadgets" tab might not show up. See Extension:Gadgets#Usage. AhmadF.Cheema (talk) 18:06, 24 September 2017 (UTC)
Thank you very much! I should have read the documentation, this works perfectly.T SimonBrackley (talk) 17:29, 27 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Forums

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.


Are there any extensions that allow forums and boards, similar to Wikia's forums? NostalgicColorBird (talk) 15:10, 24 September 2017 (UTC)

Check these. │Star-Warden15:56, 24 September 2017 (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.


I changed MediaWiki:Mainpage to "Main Page#Intro" so clicking on "Main page" in the sidebar takes you to the intro section. Now I'd like the logo to link to that intro section too. Jer Hughes (talk) 16:53, 24 September 2017 (UTC)

At least you can make redirect from the Main page to mainpage/intro Fokebox (talk) 17:17, 24 September 2017 (UTC)
I've actually deleted my "Main Page" and changed my MediaWiki:Mainpage to "Topic#Intro" (with topic being the main topic of my wiki). #Intro doesn't actually exist on the page, but I run some javascript so if the user has "Topic#Intro" in the url, then an introductory section is shown at the top of the page (basically acting as the homepage).
This Topic#Intro page loads when the user just types my domain name: example.com and when the user clicks "Main page" in the sidebar. In times when people follow a link to just [ [ topic ] ] the page acts and appears like every other article page. All of that is great, but I'd like to make the logo link load the Topic#Intro too. Jer Hughes (talk) 17:37, 24 September 2017 (UTC)
According to this, the link-URL of the site-logo also depends on MediaWiki:Mainpage. Maybe there is a cache issue on your end.
Update: Just tested it myself, the link-URL of the site-logo does change with MediaWiki:Mainpage,
but for some reason, when including the "#" symbol on the MediaWiki:Mainpage link, although the sidebar "Main page" presents the correct link - the logo link-URL skips the portion from the "#" symbol (i.e. "Topic#Intro" becomes "Topic"). AhmadF.Cheema (talk) 18:10, 24 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

autentification fail

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 become identified the message "Erreur

Vous avez bien été authentifié par le serveur CAS, mais votre adresse électronique (ou votre login) est introuvable dans la plateforme enquêteur à laquelle vous tentez d'accéder.

Veuillez contacter le webmestre du site." appears 185.24.184.194 (talk) 06:53, 25 September 2017 (UTC)

So did you "contacter le webmestre du site" as told? Which MediaWiki version is this about? What is CAS? Do you have a question? Malyacko (talk) 10:45, 25 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do you shut down a wiki?

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


at my work we have several legacy wikis that we`d like to close so we can avoid duplicate or out of date information . Can you please advise how this can be done? 46.236.17.2 (talk) 08:14, 25 September 2017 (UTC)

I should also add it's a MediaWiki type and there is no admin user in the organization 46.236.17.2 (talk) 08:20, 25 September 2017 (UTC)
You could use this extension. Or you could simply make a backup of your wiki and then completely remove it from the server through the sudo rm -rf name of wiki folder command. │Star-Warden09:17, 25 September 2017 (UTC)
thank you ! 46.236.17.2 (talk) 09:42, 25 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Spam-users

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.


Although we use a captcha (Extension:ConfirmEdit#ReCaptcha .28NoCaptcha.29, saying "Effectiveness at stopping spam" = High), we still get sometimes a bunch of new spam-users registered at our wiki. Just 1 time in 2 months or so, then 10 to 15 new users, and for some users a page or two about cigarettes, Vietnamese literature, college and so on. And then it stops. We block the users and remove the pages but we want them to not be created at all.

I don't understand how these users are created, must be manually.

Anybody any suggestions how to solve this? Waanders (talk) 14:31, 25 September 2017 (UTC)

I use this and it works perfectly:
https://www.mediawiki.org/wiki/Extension:QuestyCaptcha Fokebox (talk) 14:52, 25 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

API "Get-Article(s)"

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 is there a method for getting article based on numeric digit instead of text? Example: GET /page/pdf/{title} instead I am looking for something like GET /page/pdf/458745. Thanks. Oryx17 (talk) 16:02, 25 September 2017 (UTC)

According to the documentation, there's no such method. If you have a use case for such request you can ask its addition with a bugreport (adding the RESTBase-API tag/project) Ciencia Al Poder (talk) 09:21, 26 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

do you have any system page that works as status?

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.


Do you have a status page to show the errors? Eduardoaddad (talk) 16:56, 25 September 2017 (UTC)

Errors are shown by turning their display ON through LocalSettings.php.
See Manual:How to debug. AhmadF.Cheema (talk) 06:34, 26 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Thumbnail Issue

Hi,

We are having an issue with uploading images on http://cx500forum.com/mediawiki/index.php?title=Special:Upload

The image uploads but the thumbnail gives an error every time: Error creating thumbnail: Unable to save thumbnail to destination

We checked the directory's permissions and ownership, even looked into the config file. We found from MediaWiki support boards, the suggestion is to ensure the PHP variables point to a working ./tmp directory.

Even after configuring absolute paths, the thumbnails do NOT appear, but the full images show up.

Is there something that we could be missing that would prevent these thumbnails from being created?

~S Vssupport (talk) 18:55, 25 September 2017 (UTC)

You will need to set-up a debug log file and then browse to a page where a thumbnail should be generated. The log file should contain the commands MediaWiki runs to generate the required thumbnail and any errors it encounters during the process. See Manual:How to debug#Setting up a debug log file. AhmadF.Cheema (talk) 06:30, 26 September 2017 (UTC)
Hi,
We tried the suggested log setup:
Created:  /var/log/mediawiki/debug-[database_name_omitted].txt and /var/log/mediawiki/debug-[database_name_omitted].log with permissions for mediawiki to write to.
In LocalSettings.php, tried:
//$wgDebugLogFile = "/var/log/mediawiki/debug-[database_name_omitted]log";
//$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";
//$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.txt";
$wgDebugLogFile = "/var/log/mediawiki/debug-[database_name_omitted].txt";
However we are not seeing any errors show up in the logs no matter what we tried.
What we did notice that was when we attempted to upload an image, the image would show a preview in the initial upload page but once you go to the published page that is where the error message shows.
~S Vssupport (talk) 19:31, 4 October 2017 (UTC)
Any insight on this? Vssupport (talk) 16:17, 27 October 2017 (UTC)
Is MediaWiki actually writing to the file /var/log/mediawiki/debug-[database_name_omitted].txt?
If so, you can try this: Empty the file, save it and then in MediaWiki browse to a page, which contains a thumbnail, which up to now does not exist. After that, the log file will contain information on exactly this request... 2003:CC:ABC3:9C00:656C:310F:E12B:2601 (talk) 17:04, 27 October 2017 (UTC)
The file is set to write, but it looks like the file is already empty so I do not think it's picking up the errors.
~S Vssupport (talk) 18:59, 14 November 2017 (UTC)

Extension:Restrict access by category and group

Hello people.

I need to restrict access to a certain category of pages to a certain group of users.

Then I found this extension, and I was able to restrict access to a category of pages with the following command "$ wgGroupPermissions ['Update'] ['private'] = true;" inside Localsettings.php

But I'm not able to make it possible for only a certain group of users to access this category of pages. Is there a way to do this? Analistacavanha (talk) 19:36, 25 September 2017 (UTC)

You can use this extension. │Star-Warden20:05, 25 September 2017 (UTC)
Humm, i'am using the 1.28.2 version. There is another way to do this? Analistacavanha (talk) 22:11, 25 September 2017 (UTC)
Have you tried the extension? There shouldn't be a problem with MediaWiki 1.28.2 and should work. AhmadF.Cheema (talk) 06:16, 26 September 2017 (UTC)
Hi good morning.
I was able to install the extension, it's very focused on namespaces, what I'm needing is this:
I have a user category that is called "documents", I need all users in this group not have access to any page that is in the "Update" category.
Does this extension do this? Analistacavanha (talk) 11:46, 26 September 2017 (UTC)
No.
For related extensions see Category:Page specific user rights extensions, specifically Extension:CategoryPermissions and Extension:Restrict access by category and group. However, in my experience Extension:Lockdown is the one with usually fewer bugs. AhmadF.Cheema (talk) 13:57, 26 September 2017 (UTC)
Got it, I'll try to go that way, as soon as I can get it worked, I record it here on the topic in order to share the result. Thank you very much. Analistacavanha (talk) 14:08, 26 September 2017 (UTC)
In case it may be helpful, the following are some of the notes which were shared about a year ago:
  • Extension:CategoryPermissions
  • Extension:IntraACL
    • The extension had patches according the MediaWiki version that needed to be applied for proper functioning of the extension.
    • I was using MediaWiki v1.28alpha, but the latest patch was for v1.26.
    • Tried the patch for v1.26, but it didn't make the extension work.
    • While using update.php, it apparently also created a page: "Permission_denied", which couldn't be deleted.
  • Extension:PermissionACL
    • Got somewhat too complicated to use. Apparently, its default position was to restrict all pages and to include in code the namespaces or categories to exclude.
    • It is possible that I was mistaken in such an assessment, I didn't give enough time to it.
  • Extension:Restrict access by category and group
    • Does not seem to be a need for the groups.php file. As far as I can tell, this file is not even invoked in the main .php file.
    • Not protected from inclusion/transclusion.
    • Hides the page from [[Special:AllPages]], so unless the unauthorized user knows the title of the page, inclusion/transclusion shouldn't be a problem.
    • However, the page is visible from [[Special:RecentChanges]], Wiki search and possibly [[Special:NewPages]] too.
      • On search, page title may appear but the content doesn't show.
    • Diff. and revision links are also protected.
    • Protected from exports, but not any templates (or transcludes) that might be included in the page.
  • Extension:RemoveProtectedContent
    • Removes protected articles from lists (e.g. recentchanges, search results, new articles), and prevents unauthorised users from gaining access to protected content by transcluding it.
    • Patch files were unfortunately for very old MediaWiki versions (v1.15.0 and v1.16.0)
    • Tried patch for ChangesList, but didn't work.
    • Tried it manually for "SpecialRecentchanges.php". Did not try the others.
  • Namespacemanager from BlueSpice
    • Apparently, was not working for newer MediaWiki versions.
  • Extension:Access Control Panel
Hello, I installed the RestrictAccessByCategoryAndGroup extension, it worked in my local environment but remote on the server does not work.
I made the following configuration in LocalSettings:
require_once "$ IP / extensions / RestrictAccessByCategoryAndGroup / RestrictAccessByCategoryAndGroup.php";
$ wgGroupPermissions ['Financialnopublicdata'] ['*'] = true;
$ wgGroupPermissions ['Financialprivatedata'] ['private'] = true;
However, neither the name of the group Financialprivatedata nor the Financialnopublicdata group appears on the special page.
what to do? Marcus.paulo.marques (talk) 15:26, 6 August 2018 (UTC)
In your Wiki's Special:Version page, is the extension showing up?
Your configuration lines in LocalSettings.php have extra spaces in them, maybe that is causing a syntax issue.
Or, it could be just that the extension being no longer maintained has stopped working for your particular platform. AhmadF.Cheema (talk) 15:46, 6 August 2018 (UTC)
So, I'm using the same version 1.29.0 in the local environment and in the remote. In the local environment it works and in the non remote, the version is the same. Marcus.paulo.marques (talk) 16:14, 6 August 2018 (UTC)
In Special: Version appears the extension in the local environment that works but does not appear in the remote server environment that is not working ... Marcus.paulo.marques (talk) 16:18, 6 August 2018 (UTC)
If it doesn't appear in the Special:Version page, then the extension isn't even installed.
In your remote server, have you correctly created the required directory and files for the extension? Also try removing the extra spaces in your LocalSettings.php code, such as those after the $ signs. AhmadF.Cheema (talk) 16:54, 6 August 2018 (UTC)
I already checked all these details ... Anyone else have any other opinion? Marcus.paulo.marques (talk) 14:58, 8 August 2018 (UTC)
I can not create groups or use the extension ...
Do you know if you have something that can prevent the creation of groups? Marcus.paulo.marques (talk) 15:14, 8 August 2018 (UTC)

Login trouble after migration to 1.28

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


Hi all,

I am upgrading my wiki to 1.28 (PHP 5.6.31 on IIS). The migration went well, apart from this: When I try to login I get the Dutch equivalent of "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again"...

It's a clean installation of 1.28, I only copied the LocalSettings.php and the images-directory from the old installation (1.19) and imported the database...

any ideas would be greatly appreciated! 85.148.76.53 (talk) 14:34, 26 September 2017 (UTC)

and of course ran the browser-version of the update-script. Unfortunately I have no shell access... 85.148.76.53 (talk) 14:36, 26 September 2017 (UTC)
As a starting point try setting $wgSessionCacheType = CACHE_DB;
Also see Project:Support desk/Flow/2016/07#h-Login_error_(session_hijacking_protection)-2016-07-11T08:56:00.000Z. AhmadF.Cheema (talk) 14:58, 26 September 2017 (UTC)
thanks for the suggestion, I replaced the original
$wgMainCacheType = CACHE_NONE;
with:
$wgMainCacheType = CACHE_ANYTHING;
$wgSessionCacheType = CACHE_DB;
Still no success, unfortunately... 85.148.76.53 (talk) 15:37, 26 September 2017 (UTC)
There is another solution mentioned here, which should be only temporarily tested due to associated security risk. AhmadF.Cheema (talk) 03:41, 27 September 2017 (UTC)
Well, I have been working on this problem for a while, and tried several approaches. I found out that you can create a debug-log:
$wgDebugLogFile = "$IP/logs/debug-{$wgDBname}.log";
In this log I found out that the software complains about not being able to write session info because the database is locked. Eureka: I remember having locked the database (old-fashioned way via Special:LockDB) before I migrated to the new platform, so there is a lock-file in my images-directory. Deleted that, and the wiki works.
Now I only have to find out why thumbnailing images doesn't seem to work, but that's an other problem. This question may be marked as "resolved"... Thanks AhmadF.Cheema for helping. 85.148.76.53 (talk) 17:26, 28 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Max value $wgParserCacheExpireTime

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.


Question: is there a maximum value for $wgParserCacheExpireTime? Waanders (talk) 14:55, 26 September 2017 (UTC)

Assuming it's an integer value, it should be 2147483647. Ciencia Al Poder (talk) 09:50, 27 September 2017 (UTC)
Thanks. How can I be sure? Waanders (talk) 12:08, 27 September 2017 (UTC)
You can grep the entire code to see where it's being used, see if it's being passed to a PHP function and see in the PHP documentation what values it expects. Ciencia Al Poder (talk) 21:23, 27 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Authentication: Bad User vs. Bad Password

I'm trying to configure a private wiki in such a way as to raise the security bar (from the Mohorovičić discontinuity where it now lies, to at least somewhere around floor level).

Versions:

  MediaWiki 1.29.1
  PHP 7.0.22-0ubuntu0.16.04.1 (fpm-fcgi)
  MySQL 5.7.19-0ubuntu0.16.04.1

My problem: bad logins where the user is unknown are treated completely differently from bad logins where the user name is valid but the password is wrong. (For the former, I get a message like "The supplied credentials could not be authenticated." For the latter, "Incorrect password entered. Please try again.")

This is obviously bad, because it lets an attacker know when they have guessed a correct user name -- information I don't especially care to leak.

It is also more subtly bad, because the AuthManagerLoginAuthenticateAudit hook isn't called in the "bad username" case. This makes me sad, because I am trying to use that hook to write lines to a log file that can be watched by fail2ban.

Any suggestions? (I'd vastly prefer something that can be implemented cleanly in an extension rather than something that involves hacking the MediaWiki source. In part this is because I'm lazy and don't want to do it all over with each new version that comes out. Also, it would make it easier to share with the world -- a thing I intend to do if I get a good solution working.)

I regret that I can't share a public URL because... reasons. However, this shouldn't be hard to replicate on any out-of-the-box MediaWiki installation. SourceQuench (talk) 16:27, 26 September 2017 (UTC)

Sorry for the self-followup but: I missed something relatively obvious. Here's the TL;dr version:
class PrivateWikiLocalPasswordPrimaryAuthenticationProvider extends
MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider {
public function beginPrimaryAuthentication( array $reqs ) {
# Start by calling the function from the parent class that
# we're overriding.
$rsp = parent::beginPrimaryAuthentication($reqs);
# Fold all ABSTAIN and FAIL cases to a FAIL with a single message:
if($rsp->status == MediaWiki\Auth\AuthenticationResponse::ABSTAIN ||
$rsp->status == MediaWiki\Auth\AuthenticationResponse::FAIL) {
return MediaWiki\Auth\AuthenticationResponse::newFail(
wfMessage('authmanager-authn-no-primary'));
}
# Otherwise, return the parent class' response.
return $rsp;
}
}
Once I hook that up in my extension, the user gets the same error message in both cases, and my audit hook function gets called either way. (And, as a bonus, valid logins still work.) SourceQuench (talk) 19:18, 26 September 2017 (UTC)

Unable to Upload .Numbers 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.


MediaWiki 1.29.0

I receive the following error when trying to upload .numbers files (Apple):

File extension ".numbers" does not match the detected MIME type of the file (application/zip).

.Numbers files are not accepted by default, so after doing some research, I did the following:

I added the .numbers file extension to $wgFileExtensions.

I added "application/vnd.apple.numbers" to the mime.types file.

I also added "application/x-iwork-numbers-sffnumbers" to the mime.info file.

Have I missed anything? After making the changes above and trying to upload a .numbers file, I still get a "File extension ".numbers" does not match the detected MIME type of the file (application/zip)" error.

Thank you for your assistance. Richarddteamaccent (talk) 20:03, 26 September 2017 (UTC)

That file type is problematic, because it's really a zip file with .numbers extension. That means, if enabled, that anyone can upload a zip file with that extension, and linux users for example that don't rely on file extensions will download a zip file instead.
If you really want to enable it, knowing the security risks, read Manual:Configuring file uploads#Configuring file types where at near the end of the section explains how to enable that. Ciencia Al Poder (talk) 09:44, 27 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error when searching for not existing articles

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.


Produkt Version
MediaWiki 1.29.0
PHP 7.1.8 (apache2handler)
MySQL 5.7.18-log
ICU 52.1
Lua 5.1.5

When I try to search for an article that do not exist, I get following error message

[8d97b28fd3d3afeccab16c37] /w/index.php?search=foo&title=Special%3AS%C3%B6k&go=G%C3%A5+till Wikimedia\Rdbms\DBQueryError from line 1075 of /var/www/html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT page_id,page_namespace,page_title FROM `mw_page`,`mw_searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+foou800 ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20
Function: SearchMySQL::searchInternal
Error: 1191 Can't find FULLTEXT index matching the column list
Backtrace:
#0 /var/www/html/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /var/www/html/includes/libs/rdbms/database/Database.php(1269): Wikimedia\Rdbms\Database->query(string, string)
#2 /var/www/html/includes/search/SearchMySQL.php(191): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#3 /var/www/html/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)
#4 /var/www/html/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)
#5 /var/www/html/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)
#6 /var/www/html/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)
#7 /var/www/html/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#8 /var/www/html/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#9 /var/www/html/includes/MediaWiki.php(862): MediaWiki->performRequest()
#10 /var/www/html/includes/MediaWiki.php(523): MediaWiki->main()
#11 /var/www/html/index.php(43): MediaWiki->run()
#12 {main}

I have test to run the update script suggested by the error message, but it do not solve it.

I think the the problem started when I did use Special:Import to import some templates from en.wikipedia.org, and accidentally closed the web browser before it was ready. I do not know if this has anything to do with the problem. But after I did that, the wiki became much slower. :-( Magol (talk) 20:42, 26 September 2017 (UTC)

You may try to run rebuildtextindex.php Ciencia Al Poder (talk) 09:39, 27 September 2017 (UTC)
When I try to run rebuildtextindex.php, I got following error:
php rebuildtextindex.php
Clearing searchindex table...Done
Rebuilding index fields for 8361 pages...
500
1000
1500
2000
2500
3000
3500
4000
4500
5000
5500
6000
6500
7000
7500
8000
Rebuild the index...
[336220fa36353baa1133c605] [no req] Wikimedia\Rdbms\DBQueryError from line 1075 of /var/www/html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: ALTER TABLE `mw_searchindex` ADD FULLTEXT si_title (si_title), ADD FULLTEXT si_text (si_text)
Function: RebuildTextIndex::createMysqlTextIndex
Error: 1795 InnoDB presently supports one FULLTEXT index creation at a time
Backtrace:
#0 /var/www/html/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /var/www/html/maintenance/rebuildtextindex.php(150): Wikimedia\Rdbms\Database->query(string, string)
#2 /var/www/html/maintenance/rebuildtextindex.php(77): RebuildTextIndex->createMysqlTextIndex()
#3 /var/www/html/maintenance/doMaintenance.php(111): RebuildTextIndex->execute()
#4 /var/www/html/maintenance/rebuildtextindex.php(164): require_once(string)
#5 {main} Magol (talk) 13:25, 27 September 2017 (UTC)
Are you using the right table engine for the mw_searchindex table? Currently, this table has to use the MyISAM table engine.
However, I think that MySQL 5.6 and newer (you said you are using 5.7) would support FULLTEXT indeces. So it would be interesting to know, why the queries are failing... Maybe this should be fixed as a bug?! 2003:72:6D18:E500:95A7:388B:D3E3:76CE (talk) 16:07, 27 September 2017 (UTC)
I have recently migrated to "Azure Database for MySQL" and now I remember that I hade to change to InnoDB to get it to work. Apparently, that was no good decision. What alternatives do I have now? Magol (talk) 18:21, 27 September 2017 (UTC)
I found the error.
When I did the migration, I forgot the FULLTEXT INDEX.
So when I did run following SQL, the problem was solved.
What is strange is, however, that it actually worked a month before the problem began.
CREATE FULLTEXT INDEX si_title ON mw_searchindex (si_title);
CREATE FULLTEXT INDEX si_text ON mw_searchindex (si_text);
Magol (talk) 08:54, 28 September 2017 (UTC)
When I did run rebuildtextindex.php, the problem returns.
I had to again run the SQL statements to make it work.
As the error message say ("InnoDB presently supports one FULLTEXT index creation at a time"), MySql do not support adding more then one FULLTEXT index in each statement when using InnoDB.
So to fix this bug, make the script run the SQL statements one row at a time when the table is created with InnoDB. Magol (talk) 09:22, 28 September 2017 (UTC)
Is it any bug report on this issue? Magol (talk) 07:06, 5 October 2017 (UTC)
Apparently not, feel free to bugreport it. Ciencia Al Poder (talk) 09:21, 5 October 2017 (UTC)
Ok, it is now reported: https://phabricator.wikimedia.org/T177477 Magol (talk) 11:16, 5 October 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Change "Page" tab wording to say "Article"

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


On Wikipedia articles, next to the "Talk" tab, it says "Article". On my wiki it says "Page". How can I change the wording?O Jer Hughes (talk) 21:21, 26 September 2017 (UTC)

Change the wording on your Wiki's MediaWiki:Nstab-main page. AhmadF.Cheema (talk) 01:18, 27 September 2017 (UTC)
Thank you very much! Is there a place where I can find a list of what these MediaWiki pages are for words used in the software? There are several I'd like to change, such as "Username" on the Create Account page.T Jer Hughes (talk) 01:51, 27 September 2017 (UTC)
Browse to the Wiki page which includes the "word" you want to change.
Add ?uselang=qqx to the end of the URL and reload the page. This will replace the "words" with their MediaWiki message IDs. For example, the tab which says "Page" (next to the "Talk" tab) will be replaced by "nstab-main".
Use these message IDs to locate the relevant MediaWiki messages pages.
A list of all MediaWiki messages can be found at your Wiki's Special:AllMessages. AhmadF.Cheema (talk) 02:09, 27 September 2017 (UTC)
That's great, thank you!T Jer Hughes (talk) 20:16, 27 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

wfSetupImageMap has invalid call signature

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'm a newbie and having trouble with setting up MediaWiki.

I've been given a backup of a live intranet system, which I need to 

setup as a test system.

The backup is from a MediaWiki 1.24.0 system (pretty old I know).

I'm getting the error "Detected bug in an extension! Hook wfSetupImageMap has invalid call signature..."

Details below.

I'm guessing that this is more a configuration problem than an actual bug.

Any help gratefully received!

System:

Windows 10 Home 64bit 1703

WAMPserver 3.1.0 32bit

Apache Version 2.4.27

PHP Version 7.1.9

MySql 5.7.19

Error:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

[71ce1533] /qualitywiki/index.php/Main_Page Exception from line 222 of C:\wamp\www\qualitywiki\includes\Hooks.php: Detected bug in an extension! Hook wfSetupImageMap has invalid call signature; Parameter 1 to wfSetupImageMap() expected to be a reference, value given

Backtrace:

#0 C:\wamp\www\qualitywiki\includes\GlobalFunctions.php(3995): Hooks::run(string, array, NULL)

#1 C:\wamp\www\qualitywiki\includes\parser\Parser.php(279): wfRunHooks(string, array)

#2 C:\wamp\www\qualitywiki\includes\StubObject.php(105): Parser->firstCallInit()

#3 C:\wamp\www\qualitywiki\includes\StubObject.php(125): StubObject->_call(string, array)

#4 C:\wamp\www\qualitywiki\includes\cache\MessageCache.php(1025): StubObject->__call(string, array)

#5 C:\wamp\www\qualitywiki\includes\cache\MessageCache.php(1002): MessageCache->getParser()

#6 C:\wamp\www\qualitywiki\includes\Message.php(1022): MessageCache->transform(string, boolean, Language, Title)

#7 C:\wamp\www\qualitywiki\includes\Message.php(703): Message->transformText(string)

#8 C:\wamp\www\qualitywiki\includes\Message.php(766): Message->toString()

#9 C:\wamp\www\qualitywiki\includes\OutputPage.php(899): Message->text()

#10 C:\wamp\www\qualitywiki\includes\OutputPage.php(946): OutputPage->setHTMLTitle(Message)

#11 C:\wamp\www\qualitywiki\includes\page\Article.php(522): OutputPage->setPageTitle(string)

#12 C:\wamp\www\qualitywiki\includes\actions\ViewAction.php(44): Article->view()

#13 C:\wamp\www\qualitywiki\includes\MediaWiki.php(414): ViewAction->show()

#14 C:\wamp\www\qualitywiki\includes\MediaWiki.php(282): MediaWiki->performAction(Article, Title)

#15 C:\wamp\www\qualitywiki\includes\MediaWiki.php(584): MediaWiki->performRequest()

#16 C:\wamp\www\qualitywiki\includes\MediaWiki.php(435): MediaWiki->main()

#17 C:\wamp\www\qualitywiki\index.php(46): MediaWiki->run()

#18 {main} Donatell007 (talk) 10:06, 27 September 2017 (UTC)

What is your exact version of the ImageMap extension? What is your exact version of MediaWiki? If they are in sync, feel free to file a bug report to update the code of the ImageMap extension. Malyacko (talk) 14:08, 27 September 2017 (UTC)
Solved!
Due to dependencies within the backed up wiki (from a MediaWiki 1.24.0), I had to revert from
PHP 7.1.9 to 5.6.31. This means that the function call now works.
Thanks for looking :)T Donatell007 (talk) 16:28, 27 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Media Wiki isn't finding correct database after system reboot

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


This may be a lot so please bear with me. I am a new-hire, maintaining multiple systems. One of these is a mediawiki server which I hadn't messed with until now. We had been using the web end to add content, but hadn't touched or rebooted the backend/OS in quite some time (apparently since June)

Upon system reboot, our media wiki running Centos 7.4 no longer worked. We are running:

mediawiki-1.26.2

php 5.4.16

In yum history, multiple updates were applied, one being:

Yum history:

Jun 11 05:43:40 Installed: 1:mariadb-libs-5.5.52-1.el7.x86_64

Jun 11 05:43:42 Installed: 1:mariadb-5.5.52-1.el7.x86_64

Sep 22 13:15:11 Updated: 1:mariadb-libs-5.5.56-2.el7.x86_64

Sep 22 13:18:42 Updated: 1:mariadb-5.5.56-2.el7.x86_64

Upon investigation, it appeared that SQL/MariaDB wasn't even installed (???) I could not start any sql service via the service or systemctl commands, and nothing was running when inspecting ps aux. However, when trying mysql -u root -p from the command line, I was prompted to login, but got an error: "can't connect to local mysql server through socket (2)" /var/lib/mysql didn't appear to have a mysql.sock file.

After some researching, I tried installing the maria-db-server-5.5.56-2 package, and what would you know, the wiki came up! However, it appears to be rolled back months and barely has any content, some styling appears to be messed up as well. Where should I look to start fixing this?? Could have something been overwritten and that data is gone? Let me know if I need to provide any more information. BIitzkrieg (talk) 16:15, 27 September 2017 (UTC)

In the LocalSettings.php file you should see the connection settings for the database. $wgDBserver is probably the most useful to you, there you can see the database server IP or socket location. All the data is in the database (pages, users, etc), and uploaded images are on a specific folder (usually /images)
The database can't be overwritten unless by manual intervention... About styling issues, you may take a look at Manual:Errors and symptoms. Ciencia Al Poder (talk) 09:27, 28 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help me setup a wiki farm

Can someone please help me through the steps of setting up a wiki farm? I found the Mediawiki Manual for WikiFamilies to be just too confusing and not clear on a number of steps.

I have XAMPP to run MYSQL and Apache. I have a 1.29.1 copy of Mediawiki to use.

What I'm looking to do is set it up like this:

1 installation of Mediawiki in the HTDOCS folder of XAMPP. The folder name is "wiki". To use multiple databases via MYSQL on the localhost database. Database names are "zephyr", "schaede", and "devereaux".

I want the settings so that I can use this to browse the wikis I create.

127.0.0.1/zephyr/index.php/Main_Page - Zephyr Wiki 127.0.0.1/schaede/index.php/Main_Page - Schaede Wiki 127.0.0.1/devereaux/index.php/Main_Page - Devereaux Wiki

But all extensions and the like are found in the base "wiki" folder in HTDOCs inside my XAMPP installation.

Can someone please help me do this? I have searched and searched online, but I just can't find any detailed help that doesn't flood me with geek-speak about all kinds of stuff. What would really be nice is if Mediawiki would offer a Wikifarm installer you could easily configure with the browser during your initial installation. Crysis19 (talk) 17:27, 27 September 2017 (UTC)

Which specific sentences in the existing manual (link?) are hard to understand, so someone could help clarifying them? Malyacko (talk) 12:43, 28 September 2017 (UTC)
I tried following the directions.
1) I stuck Mediawiki 1.29 into a folder in HTDOCs and named it "wiki".
2) I went into the Browser and ran the configuration, setting up LocalSettings.php for my first wiki "Zephyr".
3) I saved LocalSettings.php as LocalSettings-zephyr.php
4) I repeated steps 2 and 3, changing to Schaede and Devereaux, and subsequently getting LocalSettings-schaede.php and LocalSettings-devereaux.php
5) I then went in and tried to create LocalSettings.php as it listed in the page, with the calls back on the method localhost/zephyr (for wiki 1), localhost/schaede (for wiki 2), and localhost/devereaux (for wiki 3)
Using localhost/zephyr worked, but the other two won't. I tried finding out how to get the others working, but couldn't understand it. XAMPP uses Apache, and from what I can understand Apache has to have a virtual hosts file edited, but that didn't work. And trying to use the HOSTS file in my Windows, which Apache said needed doing, also didn't work.
All I got for my trouble is when trying to use the wiki, the Ports on XAMPP started blinking from 80,443 to numbers over 50000 for some reason. Crysis19 (talk) 14:08, 28 September 2017 (UTC)
Please link to "the directions", as requested before. If something "didn't work" please explain how you set "the calls back on the method" exactly. Malyacko (talk) 09:19, 29 September 2017 (UTC)
https://www.mediawiki.org/wiki/Manual:Wiki_family
These are the steps I did from that page.
Upload MediaWiki files to web folder on the webserver.
Set up initial wiki as usual. For details, see Manual:Installation guide.
After successful installation, move LocalSettings.php into the root directory of your wiki and rename it in such a way to make it easy to track (e.g. LocalSettings_myFirstWiki.php)
Repeat step two and three above for each wiki you wish to create, creating a new LocalSettings.php file for each wiki (e.g., LocalSettings_anotherWiki.php, etc.)
If two or more separately installed wikis are to be merged to operate out of files of the main wiki, then after renaming and moving each of your LocalSettings.php files to the main wiki folder, change the variable $wgScriptPath in each of the LocalSettings.php files to point to the main wiki's folder.
If your wikis are on the same domain but different paths (e.g. yourdomain.com/wiki1, yourdomain.com/wiki2 etc), you can use something like this:
<?php
// Include common settings to all wikis before this line (eg. database configuration)
$callingurl = strtolower( $_SERVER['REQUEST_URI'] ); // get the calling url
if ( strpos( $callingurl, '/wiki1' ) === 0 ) {
require_once 'LocalSettings_wiki1.php';
} elseif ( strpos( $callingurl, '/wiki2' ) === 0 ) {
require_once 'LocalSettings_wiki2.php';
} elseif ( strpos( $callingurl, '/wikiN' ) === 0 ) {
require_once 'LocalSettings_wikiN.php';
} else {
header( 'HTTP/1.1 404 Not Found' );
echo "This wiki (\"" . htmlspecialchars( $callingurl ) . "\") is not available. Check configuration.";
exit( 0 );
But the second and third wikis do not work. Crysis19 (talk) 12:51, 29 September 2017 (UTC)

mw-collapsible isn't 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.


Not sure what I'm doing wrong. This page says that this module was added in MediaWiki 1.18 and up. Well, my wiki is version 1.19.1 and its not working. :(

Any help would be appreciated.

Product Version
MediaWiki 1.19.1
PHP 5.5.9-1ubuntu4.21 (apache2handler)
MySQL 5.5.54-0ubuntu0.14.04.1
Rewenx (talk) 03:49, 28 September 2017 (UTC)
Does the Console tab in browser developer tools (F12) show any errors on a page including "mw-collapsible"? AhmadF.Cheema (talk) 04:46, 28 September 2017 (UTC)
If your wiki is public, a link to the page having the problem would be really helpful. Ciencia Al Poder (talk) 09:17, 28 September 2017 (UTC)
If the wiki is public it also means that it is a huge security hole. 1.19 is ancient and has been unmaintained for ages... Malyacko (talk) 12:42, 28 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Requesting file for Extension:Tooltips

Hello. The download link for Extension:Tooltips is broken. I was wondering if anyone has a mirror, or even if they had the file in their wiki and could share?

Also interested in any similar extension that would allow us to transclude wiki markup in the form of a tooltip/popup like this. Rewenx (talk) 19:24, 28 September 2017 (UTC)

Extension:Tooltips is apparently ~6 years old and might not work.
Have you already tried Extension:SimpleTooltip? AhmadF.Cheema (talk) 21:09, 28 September 2017 (UTC)
I looked at that one. It creates simple text tooltips. I am looking for something that would allow any wiki markup. tables, images, etc. Rewenx (talk) 05:24, 29 September 2017 (UTC)

Your account on wikipedia:ur is blocked by MediaWiki default

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.


Executing query:

<bound method Cursor.execute of <MySQLdb.cursors.Cursor object at 0x7f0517ade290>>

WARNING:

Your account on wikipedia:ur is blocked by MediaWiki default.

Reason: Anonymous contributions are not allowed from your IP address (10.68.23.58). Please log in.

Editing using this account will stop the run.

Logging in to wikipedia:ur as Obaid-bot via API.

Login failed. Wrong password or CAPTCHA answer?

API login failed, retrying using standard webpage.

Logging in to wikipedia:ur as Obaid-bot

Login failed. Wrong password or CAPTCHA answer?

Password for user Obaid-bot on wikipedia:ur Obaid Raza (talk) 06:21, 29 September 2017 (UTC)

please help me! Obaid Raza (talk) 06:22, 29 September 2017 (UTC)
Please explain what you are doing, please ask a question, please explain what Obaid-bot is, please explain how to execute a query, please explain where you're trying this, please provide sufficient context. Malyacko (talk) 09:17, 29 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

When I check my E-mail at phabricator

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 create my account number "NHC" at phabricator,I check my E-mail,and I accidentally enter "XXX@gmail.ocm" at E-mail field.But I did't have any way to change my error E-mail,I just can create a new wikwpedia ID to log .Can I delete my NHC at phabricator and create again? YY NPC (talk) 13:17, 29 September 2017 (UTC)

I've created T177095 for this Ciencia Al Poder (talk) 15:57, 29 September 2017 (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.


Hi.

I was in version 1.16.2 and upgraded to 1.28.2. From this, when I include a page within a category with the command "[[Category:name]]", the categorylinks table is not being populated, and therefore the page does not appear within the category when I try to view.

I've already tried comparing database, tables and even setup but found nothing. Can anyone help me? Analistacavanha (talk) 18:01, 29 September 2017 (UTC)

As a starting point, take a look at Project:Support desk/Flow/2016/07#h-Upgrading_from_1.26_to_1.27_breaks_putting_pages_in_a_category-2016-07-27T19:13:00.000Z and Manual:Job queue. AhmadF.Cheema (talk) 18:17, 29 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

change password mediawiki

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 am logged out of my locally installed mediawiki ("rockefeller_wiki_3") on Windows 7 64-bit laptop (browser accidentally deleted saved settings) and as an amateur I am getting quite lost trying to log back in and get access to my pages, and so I would greatly appreciate any help or direction. I only created one user when I set it up, and only ever accessed it locally at http://localhost/rockefeller_wiki_3/index.php/Main_Page in my browser. By trial and error I was able to figure out my user name (as says doesn't exist otherwise) but completely forget the password as was years ago when I created it and lost paper with written down as well.

Without being able to log in I cannot check my wiki's "Special:Version" page for verison, but the "DefaultSettings.php" file created when I installed it originally says that the mediawiki version is "1.23.5". The version of mysql under "C:\xampp\mysql\bin" is "Ver 14.14 Distrib 5.6.21, for Win32(x86)" , the version of xampp I use to start and stop apache and mysql is v3.2.1, and the version of php is "5.6.3".

My first search for a solution took me to the "Manual:Resetting" passwords page on the central MediaWiki. It lists 4 potential methods, but I cannot seem to make any of them work. I list the methods and the errors I encounter for each below, so if anyone sees a solution to any one of these I should be good. Alternatively, a way to extract the relevant info from mywiki (page text mainly) or disable passwords and accounts altogether would also work.

METHOD 1:"Use Special:UserLogin" or use "Use Special:PasswordReset"

I cannot use these methods as am completely logged out of my mediawiki and only get the login prompt when I redirect to the special page.

METHOD 2: "Use the changePassword.php maintenance script"

I added "C:\xampp\php" to my computer's Path variable and navigated to "C:\Users\USER\Documents\folder_for_my_wiki\maintenance" in the cmd line administrator mode where the changePassword.php is found. I enter php changePassword.php --user="xxx.yyy" --password=new_password and I get the following output:

{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}

{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang1033\f0\fs22 <?php\

par

# This file was automatically generated by the MediaWiki 1.24.0\par

....(i.e. the rest of the text in my LocalSettings.php file....)

\pard $wgLaTexCommand = "$IP/extensions/Math/latex.exe";\par

\pard $wgDvipngCommand = "$IP/extensions/Math/dvipng.exe";\par

\par

}

 DB connection error: Access denied for user ''@'localhost' to database 'm

' (localhost)

What is the cause of this error? How might it be resolved?

METHOD 3: "Direct database modification"

I'm afraid that the steps and info listed on the Manual:Resetting MediaWiki page assume too much knowledge/experience from me, I can't follow. Would anyone be able to break down into more steps what I should do here? There is an IT department at work that might be able to help better if the steps were more detailed too.

Thank you very much, any help or advice would be greatly appreciated Imartyn (talk) 20:46, 29 September 2017 (UTC)

Whatever application was used to corrupt your file (looks like it was an application called "Msftedit" which is not part of MediaWiki), lines such as "{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}" or all the "\pard " at the beginning of lines come from RTF file format and should never be in this file which is supposed to be in plain text file format. Hence the line for the database settings cannot be found either. Malyacko (talk) 12:35, 30 September 2017 (UTC)
Thank you very much. When I first installed mediawiki and extra packages I was unaware of the problem of editing the LocalSettings.php file with default windows editor (notepad in my case). I've downloaded gVim and edited the LocalSettings.php file to remove the offending "{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}} {\*\generator Msftedit .41.21.2510;}\viewkind4\uc1\pard\lang1033\f0\fs22 " text.
However, when I try the changePassword.php script again I still get the exact same error as before:
DB connection error: Access denied for user ''@'localhost' to database 'my_wiki' (localhost) ,
despite the fact that it now reads in the LocalSettings.php file without the problem first lines. I've also compared my LocalSettings.php file to the DefaultSettings.php file for other extraneous lines or formatting but can't seem to find any difference. I have MySql running from the XAMPP control panel when I do this, but do I somehow need to login from the command line or something to get access? Also why would it be trying to access database "my_wiki" when the name for my wiki is "rockefeller_wiki_3"? Imartyn (talk) 14:38, 30 September 2017 (UTC)
I currently wonder how you got MediaWiki installed and usable, if the MySQL credentials are not correct...
In the LocalSettings.php file, which you have just edited, please make sure that the username of the MySQL user is entered. It is the value of the variable $wgDBuser. The error message
Access denied for user @'localhost' to database 'my_wiki'...
makes it look like no MySQL username is being used by MediaWiki at all...
Also "my_wiki" is the name of the database, which you configured in $wgDBname in LocalSettings.php. You can use phpmyadmin to see, if this is the correct name. If the database is named differently, you will have to adjust $wgDBname to the right name.
The database name basically has nothing to do with the foldername rockefeller_wiki_3, in which you have the files of your installation. 2003:72:6D7C:8300:EDBE:2F20:5B5D:DFB (talk) 15:34, 30 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Text next to infobox

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


Hello

I create this Infobox

http://wiki.lichenologie.de/index.php?title=Cladonia_bellidiflora

What I need to do, that the text are see right or left from the Infobox? Flechtenmikroskopie (talk) 10:10, 30 September 2017 (UTC)

I already do see text (the entire article text) left of the infobox... If you see something else, please explain. Malyacko (talk) 12:31, 30 September 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.