Jump to content

Project:Support desk/Flow/2016/03

Add topic
From mediawiki.org
Latest comment: 5 years ago by 2600:1700:6800:65D0:1DC3:42B3:A5F9:53AD in topic Forbidden 403 on user page
This page is an archive.
Please ask questions on the current support desk.


Customize MediaWiki:Common.css doesn't work on login/signup pages

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


I've changed some styles using `MediaWiki:Common.css`, everything works fine but it seems doens't work on login/signup pages, styles are not applied to these pages, is this a feature or bug? Sparanoid (talk) 10:35, 1 March 2016 (UTC)

That is a feature, which you can control with $wgAllowSiteCSSOnRestrictedPages in LocalSettings.php! 87.123.25.27 (talk) 12:26, 1 March 2016 (UTC)
Cool! thanks for the information, that's exactly what I want. Thank you! Sparanoid (talk) 11:03, 2 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Media Wiki in Esperanto

Hello, I wanted to use Media Wiki in Esperanto but unfortunately I can't. The most buttons and texts are still in English. How can I change it? Jettie Noirie (talk) 18:32, 1 March 2016 (UTC)

Search display problem

Hello,

since we have migrate to mediawiki 1.26.2 (we have also tried version 1.27), we have a display problem in the search result page. There were no problem with version 1.25.5.

The problem is that there are two section in then search result : the title text result section and the page text result section. The label for the text result section is just under the title text result label.

In the mediawiki.org search result, the search result is not separate between title text and page text result. I would love to deactivate this on our Wiki, but i haven't found how.

we have a private wiki, so i can't give you the URL, but here is a sreeenshoot of the problem (sorry it is a french wiki) : https://www.dropbox.com/s/jmhp9lx87ezab3n/mediawiki-search-display-problem.jpg?dl=0

Can someone help me? Maalab (talk) 21:20, 1 March 2016 (UTC)

This is already reported as https://phabricator.wikimedia.org/T122499. Patches are welcome. Malyacko (talk) 10:44, 2 March 2016 (UTC)
Thanks for the reply, but is there a way to disable these two section of search result? on mediawiki.org, there is no section like these and we would love to have the same on our Wiki.
Thanks Maalab (talk) 12:45, 2 March 2016 (UTC)
mediawiki.org uses a different backend for searching; I think this is the reason why output here is different from what you get in a default installation. For your default installation of MediaWiki, you obviously have to manually work around that wrong float, if you want it to be worked around now.
The real solution however is to make sure the bugfix gets integrated into the MediaWiki Core. When that's done, the next release will fix the issue without the need for any manual workarounds. 87.123.7.236 (talk) 15:16, 2 March 2016 (UTC)
Thanks for the reply, i have found that the search engine for the wikimedia foundation is CirrusSearch. I have install it on our test Wiki and it work.
In the bug pages that report Malyacko, it is not clear that it will be solved in the core, cause they said that this problem is present only in the vanilla MySQL search engine, and they use the CircusSearch engine.
I will probably only repair the CSS to solve the issue.
Thanks again. Maalab (talk) 18:25, 2 March 2016 (UTC)
Wikimedia Foundation uses CirrusSearch for some(?) of its wikis - however that is not a reason to break everything else. CirrusSearch only is an option, a possibility additional to the vanilla default search. That a bug is not present, if such an addition is used, is no reason to ignore its presence in the default search. This especially as by far the most users are actually using exactly this default. Long story short:
The bug should be fixed. 87.123.7.236 (talk) 20:01, 2 March 2016 (UTC)
The Wikimedia Foundation uses CirrusSearch on all of its wikis.
Please fix this bug by providing a patch: See Gerrit/Tutorial. Malyacko (talk) 09:14, 3 March 2016 (UTC)

Infobox help.

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 dabbling with the most recent media wiki and tried all the extensions and tricks but I can't just get my infobox to display properly. I've created the infobox television template but it doesn't display properly. Can someone help me get a infobox to work in the most simple way possible? JasonB86 (talk) 22:35, 1 March 2016 (UTC)

The simplest infobox is just a div with a float:right CSS property. The rest is just styling, and using templates to build it for convenience. I've no idea what goes in your television template, but if you want something super bare-bones that you can dress up however you like, try:
<div style="float:right;clear:both;">Whatever you want in your infobox</div> Clump (talk) 22:51, 1 March 2016 (UTC)
I tried that and still can't get the infobox to display properly. Am I doing something wrong with the css? JasonB86 (talk) 13:00, 2 March 2016 (UTC)
What do you mean by (im)properly then? Can you point to your wiki?
Here you can find are 2 examples: User:Clump Clump (talk) 13:37, 2 March 2016 (UTC)
I've managed to get Template:Infobox working and displaying but when trying others such as Tempate:Infobox television and Template:Infobox person nothing displays. JasonB86 (talk) 17:25, 3 March 2016 (UTC)
The more complicated infobox templates are built on other templates, which are built on others etc. In order to make them work you need to replicate the full nest of templates and any other features or extensions used in their construction. Clump (talk) 21:41, 3 March 2016 (UTC)
I basically want this exact style infobox from this page: https://en.wikipedia.org/wiki/Tipping_Point_(game_show)
When I copy the infobox data from the wiki page in to my page nothing shows up. It clearly says on my wiki that the template infobox television is there as there is no red link under "templates used"
I also understand that wiki uses something called Lua for it's infoboxes now? JasonB86 (talk) 21:06, 5 March 2016 (UTC)
Can anyone else help me with my last post? JasonB86 (talk) 16:05, 10 March 2016 (UTC)
So. after inserting the template on a page, if you edit the page, no red link is shown in the "templates used on this page" section below the edit area? Ciencia Al Poder (talk) 10:46, 11 March 2016 (UTC)
Yep, no red link is shown. I imported the template from Wikipedia in to my wiki but nothing displays. JasonB86 (talk) 13:55, 17 March 2016 (UTC)
I figured out what I was doing wrong. I wasn't exporting the templates properly. Instead of pasting the template name in the large text box to export, I pasted the template name in the category box instead.
Having corrected this, the info boxes now display properly. JasonB86 (talk) 13:41, 28 March 2016 (UTC)
I now have another issue with this symbol now:
Anything type where the infobox ends somehow manages to still appear in the infobox.
What does < tr/ >
mean? JasonB86 (talk) 15:17, 28 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Rewriting User:Name URLs

I want to replace all links to a User:Name page with a custom profile URL that redirects to mysite.com/user/name

Is it possible to rewrite User:Name URLs? What function is used to generate these URLs? (I'm not against editing core files to achieve this!)

Thank you Swennet (talk) 01:19, 2 March 2016 (UTC)

I may be wrong on this but you could try using the Redirect function. Try editing your user page in source editor and put this on it: #REDIRECT [[pagename]]
If you need to redirect to an external site you could use the ExternalRedirect extension. Innosflew (talk) 11:05, 2 March 2016 (UTC)
MediaWiki has a number of hooks and some of them also influence how MediaWiki creates links. That way it will be possible to adjust how certain links look like.
However, an even better option might be to use one or two Apache RewriteRules in order to rewrite requests for user pages accordingly. I think I would go with this solution (instead of the one using hooks), because this rewrite will affect all such links, no matter where in the souce code MediaWiki creates them and no matter if the hook is run at that special place or if it is not effectively leaving you with unchanged links. 87.123.7.236 (talk) 15:00, 2 March 2016 (UTC)
Apache may be a good solution. However, I'd also use an extension to prevent edits on such namespaces, just in case some spambots target your site and start filling it with spam (they may be using special URLs or api, not the normal editor interface) and you may be unable to clean up them. Ciencia Al Poder (talk) 20:40, 2 March 2016 (UTC)
Like, hooking in during the save of an edit, e.g. with the hooks EditFilter or with EditPage::attemptSave: If edit is in namespace 2 (and also 3 maybe?), then abort and don't save it. 87.123.7.236 (talk) 21:29, 2 March 2016 (UTC)
Or simply use an AbuseFilter rule. 121.214.186.72 (talk) 02:47, 3 March 2016 (UTC)
So what I ended up doing is editing MediaWiki's userLink() function located in 'includes/Linker.php'. This function constructs the user links that are displayed in MediaWiki. I edited it to redirect users to my custom profile pages instead of the default MediaWiki User pages.
Now I know that editing core files is bad practise, so I wonder... Is it possible to overwrite this function (and MediaWiki functions or files in general) from outside the core? For example, duplicating the userLink() function and calling it from a file that doesn't get overwritten on MediaWiki updates? I've actually ended up editing several core files to achieve the level of customization I needed, but it's getting to the point where updating MediaWiki (and manually re-editing these files) gets unmanageable. Swennet (talk) 03:12, 3 March 2016 (UTC)
You may use the LinkBegin hook. Ciencia Al Poder (talk) 10:32, 3 March 2016 (UTC)

Publishing Article - AbuseFilter:Promo blocks

I am currently trying to publish a translation of an article that i have been working on. It's from (de) to (es), using the assistant. If i publish the spanish version through german wikipedia, it will (oddly enough) override the german article which is of course not what i aim for. But when I try to publish it through spanish wikipedia my article gets spamfiltered by the AntiAbuse filter... when it tells me to go to the bottom of the page to press "save page" once more and publish nonetheless, I find no button. Im looking forward to publish that article, so I'd be glad if someone helped me with this issue. JohGabRei (talk) 04:46, 2 March 2016 (UTC)

beggers at the door

A month ago I donated as much as my budget allows to the request for donations! I even took time asside to fill the questionaire, Ever since I'm accousted with the begging page every time I open it and even when I turn over a page! even in red is this a new American style hard sell tactic. personally I find this kind of harrissment intimidating, And am wondering is there an alternative to this site.as you say this is a volutary site but I'm sure you would get a much better result if you targeted someone further up the food chain

this is I know the wrong page to complain, unfortunatley It's the only place I could find to send this complaint Murar1950 (talk) 05:33, 2 March 2016 (UTC)

For a start, you might want to explain what "questionnaire" and what "begging page" you are exactly referring to. I'm not aware of donation banners on mediawiki.org. Malyacko (talk) 10:40, 2 March 2016 (UTC)

Disable Talk 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.


How is it possible to disable Talk page/Discussion page tabs on every article except for the User pages? Innosflew (talk) 10:18, 2 March 2016 (UTC)

As far as I know not easily doable (see https://phabricator.wikimedia.org/T35298) but you could hide the tab at least, see Project:Support desk/Flow/2011/12#c-Thorncrag-2011-12-20T16:27:00.000Z-Subfader-2011-12-20T10:02:00.000Z AKlapper (WMF) (talk) 10:38, 2 March 2016 (UTC)
Is it possible to hide it only on articles but make it remain visible on user pages? Innosflew (talk) 10:53, 2 March 2016 (UTC)
Yes, the body tag of each page has a class named "ns-xxx", where xxx is the namespace number of the according page. See Manual:Namespace#Built-in_namespaces for a list of those numbers! Using this class in your CSS rules, you will be able to differentiate between user pages ("ns-2", "ns-3") and all other pages.
I would try with
 li#ca-talk { display: none; }
 ns-2 li#ca-talk,
 ns-3 li#ca-talk { display: block; }
This code is untested and maybe it does not work exactly the way you want it to, but I think you get the idea! 87.123.7.236 (talk) 15:08, 2 March 2016 (UTC)
Note that this disables it on every namespace, except user/user talk, rather then just disabling it on articles. 121.214.186.72 (talk) 20:51, 2 March 2016 (UTC)
You need to add a dot just before ns-2 and ns-3 (.ns-2 etc) Ciencia Al Poder (talk) 20:38, 2 March 2016 (UTC)
Thanks guys. It worked perfectly! :) Innosflew (talk) 06:18, 3 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need help editing common.css on hebrew wiki

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


I am trying to edit the css on www.wikizehut.org.il but every time I put in css no changes happen. Perhaps this is a problem with rtl? The wiki is in hebrew. Maybe I'm not doing it right, but I have pasted in

body { font-size: larger; }

just to see if it will work, and it doesn't. At first the text is backward, then I change the text to ltr and it looks normal. After I figure out how to edit the css for all the wiki, how do I edit the css and html for a specific page?

Thanks so much

I'm using mediawiki version

MediaWiki 1.25.2

and the vector skin. SuperShuki (talk) 18:44, 2 March 2016 (UTC)

The styling from your MediaWiki:Common.css page gets rendered at this link: view-source:http://www.wikizehut.org.il/load.php?debug=false&lang=de&modules=site&only=styles&skin=vector&* This looks fine to me.
Note that MediaWiki is heavily caching its CSS styles. It might be necessary to empty all caches, which you can find, in order to actually see changes in your styles! This might be the cache tables inside MediaWiki, the cache directory on the server, where depending on configuration MediaWiki might store pre-compiled style files, the browser cache and possibly any proxy caches inbetween. 87.123.7.236 (talk) 19:44, 2 March 2016 (UTC)
Would it be easier to copy the vector skin and give the copy a different name, and change to the "new" skin? Would that fix the issue, without going through all the caches and manually emptying them? SuperShuki (talk) 19:53, 2 March 2016 (UTC)
I purged the browser and wiki caches, and checked the cache folder in file manager, and it was empty. Don't know what to do now.
Thanks SuperShuki (talk) 20:21, 2 March 2016 (UTC)
You seem to have edited the page "Common.css" instead of "MediaWiki:Common.css". You need to edit "MediaWiki:Common.css" instead, which already has some styles on it and they're currently applied to your wiki. Ciencia Al Poder (talk) 20:31, 2 March 2016 (UTC)
Thanks! It works now! SuperShuki (talk) 20:55, 2 March 2016 (UTC)
I had a look at his MediaWiki:Common.css page and I saw it had content. Also according to its editing history it also had recently been edited, so I thought he was in fact editing the right page.
Thanks for noticing, Ciencia! 87.123.7.236 (talk) 21:18, 2 March 2016 (UTC)
The page Common.css (outside of the MediaWiki namespace) should just be deleted. 87.123.7.236 (talk) 21:20, 2 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Template:Reflist help

Hi,

I want to create columns of references in my private media wiki, so I copied Template:Reflist & reference CSS in Mediawiki:Common.css. (CCL specified) {{Reflist|2}} doesn’t work though and I don't know why. I installed Mediawiki 1.26.0 and use recent version of Chrome. Board99 (talk) 18:47, 2 March 2016 (UTC)

Does the browser's developer tools' console display any errors? Are the Cite and ParserFunctions extensions installed? (Also, 1.26.0 is an old version. Please upgrade to 1.26.2 for your own safety.) Malyacko (talk) 14:11, 7 March 2016 (UTC)
Sorry I'm late. Thanks to your help. No, I can't find any errors in Console Tap and Cite and ParserFunctions have been installed. (I didn't know new version of MW was released. Thanks.) Board99 (talk) 10:26, 15 March 2016 (UTC)

User contributions tab on user pages

How is it possible to add only on the user pages at the top a "User contributions" tab near the "Discussion" tab? Innosflew (talk) 10:52, 3 March 2016 (UTC)

With jQuery? Make jQuery add according HTML, if the user is on one of these pages.
Ahh, and the hook SkinTemplateNavigation will give you access to the tabs menu! 87.123.36.13 (talk) 16:39, 3 March 2016 (UTC)

Dear all,

I am trying to query all the page links of a category page in Wikipedia. It was easy to do it with templates but I am having problems with categories.

I generally log into Wikipedia by ssh at ...@tools-login.wmflabs.org and access their mysql database.

For example, if I want to know the titles of all the pagelinks in a template, for instance, https://en.wikipedia.org/wiki/Template:Aviation_accidents_and_incidents_in_2014, I simply run the following query:

SELECT pl.pl_title FROM page p JOIN pagelinks pl on p.page_id=pl.pl_from  WHERE p.page_title='Aviation_accidents_and_incidents_in_2004' AND p.page_namespace=10 AND      pl.pl_namespace=0;

If I want to do the same with the category page https://en.wikipedia.org/wiki/Category:Aviation_accidents_and_incidents_in_2004:

SELECT pl.pl_title FROM page p JOIN pagelinks pl on p.page_id=pl.pl_from WHERE p.page_title='Aviation_accidents_and_incidents_in_2014' AND p.page_namespace=14 AND  pl.pl_namespace=0;

I have tried other combinations but still can't get the "pagelinks."

SELECT pl.pl_title FROM category c JOIN pagelinks pl on c.cat_id=pl.pl_from WHERE c.cat_title='Aviation_accidents_and_incidents_in_2014' AND      pl.pl_namespace=0;

It returns nothing. For example, I will expect to find the link to China_Eastern_Airlines_Flight_5210 (among others) in the results.

Can someone help me with this query? Ruthy gg (talk) 12:10, 3 March 2016 (UTC)

To get a list of pages inside a category you need to query the categorylinks table. Ciencia Al Poder (talk) 10:22, 4 March 2016 (UTC)

Error: invalid magic word 'bidi'

Hello,

after upgrate from mediawiki 1.22 to mediawiki 1.26 I receive frequently this error: [dff7e0cf] /wiki/Speciale:PagineSpeciali MWException from line 337 of /home/dialetti/www/w26/includes/MagicWord.php: Error: invalid magic word 'bidi' Where is recall magic word 'bidi? When I solve it? Thanks 5.170.249.74 (talk) 14:56, 3 March 2016 (UTC)

This may happen sometimes and that can be usually fixed by running the maintenance script rebuildLocalisationCache.php with the "--force" parameter Ciencia Al Poder (talk) 10:19, 4 March 2016 (UTC)
Didn't work in my case. Any ideas? 91.114.88.234 (talk) 13:27, 10 January 2017 (UTC)

Create a Page with Preload from URL or PHP file

I want to add a page creation form to my MediaWiki installation.

There are several plugins that add a similar function (Extension:Create_Page or Extension:InputBox) but both of these do not support VisualEditor editing with the Preload parameter set. This forces me to use the default editor which is undesirable.

Currently it would just redirect the user to the default Wiki Editor for the new page, but the page is not actually created until the user clicks Save Page, and after that they would have to switch to VisualEditor manually.

The idea is to create a Special:Page that displays a form for adding new pages based on existing page templates, and allow users to edit them in VisualEditor directly after submission.

  • 1. User enters the Page Title in the form
  • 2. User selects a Preload Template to generate the new page from
  • 3. User submits the form and New Page is created with the selected Preload Template
  • 4. User is automatically redirected to the newly created page with the VisualEditor edit parameter in the url (veaction=edit)
  • 5. User can now edit the page with Preloaded text in VisualEditor instead of normal Wiki Editor

Step 3 is where I struggle to create this. How can I create and save a page with a Preload parameter in the same query? Swennet (talk) 15:15, 3 March 2016 (UTC)

Modifying every User talk title

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


How can I modify every User talk title? Innosflew (talk) 17:32, 3 March 2016 (UTC)

Where? 87.123.36.13 (talk) 19:59, 3 March 2016 (UTC)
I just realized that this question most likely is related to the other different questions, which you have asked.
Please do not open different topics for the same matter!
I have already answered 4 or 5 of your questions here - I am pretty sure that what you are asking here is part of one of these answers at least. 87.123.36.13 (talk) 20:01, 3 March 2016 (UTC)
I haven't asked about modifying the page User page titles so far. I've asked about different things which were related to the User page, navigation tabs, or to other pages.
Since you don't want me to, I'm not going to open an other thread here. Innosflew (talk) 20:23, 3 March 2016 (UTC)
You can open different topics, but please only for really different things. :-)
Where do you want to modify the user talk page title? In the user signatures? In the page headlines? In navigation links? Or do you in fact want to move pages? 87.123.36.13 (talk) 21:01, 3 March 2016 (UTC)
Oh, alright.
I want to hide the titles from all the User talk pages. I want to hide every "User talk:username" title. I believe those types of titles are also called firstHeadings. I want hide it just like the Main Page title can be hid. I already figured out using the same method that people use for the Main Page how to hide for individual User talk pages, but I still don't know how to do it globally. I want to hide it on the User talk page of every current user and for every future user at once. I don't want to write a new code into the common.css every time a new user registers on my wiki. Innosflew (talk) 21:26, 3 March 2016 (UTC)
Never mind. I've finally figured it out using Namespaces. Innosflew (talk) 21:48, 3 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

spell checking

When write spell check underlines and checks every word. This has just started happening. How do I get it to do a regular spell check? 216.246.133.201 (talk) 19:17, 3 March 2016 (UTC)

Formatting errors after import

Just learning about mediawiki and after initial import fails I installed Scribunto.

Imports are not failing anymore, but imported pages still have some formatting errors.

I don't even know what to begin searching for. Could anyone please point me in the right direction? example page with wrong formatting: http://urlgone.com/ed838d/

Thanks everyone! 71.161.75.27 (talk) 19:22, 3 March 2016 (UTC)

You have tags like "<languages/>" but not the corresponding extension installed hence the parser does not know how to interpret them. Malyacko (talk) 08:34, 4 March 2016 (UTC)

Search results include Wiki Markup

For some reason, the Search Results on my Wiki includes Wiki Markup in the page's excerpt. I noticed that on MediaWiki.org, this doesn't seem to happen.

For example, a page starting with this line: "Hello this is a Wiki Page"

Will show up in the search results as: "Hello this is a [[Wiki Page]]"

When it should show up as: "Hello this is a Wiki Page".

What's wrong here? Swennet (talk) 20:09, 3 March 2016 (UTC)

MediaWiki.org is using a different search backend. This may be the reason why search results are displayed differently here than in your installation.
For the default search engine, seeing wikitext is the default behaviour. At least that is what I am seeing as well.
What you could do is run the rebuildtextindex.php maintenance script. This script will empty and then fill again the searchindex table in the database. This will effectively update the index to fit to the current page contents again. Note that running this script might take some time. And note that I don't think it will help... 87.123.36.13 (talk) 21:06, 3 March 2016 (UTC)
@87.123.36.13 Thanks, I'll try that.
So from my limited understanding MediaWiki is using CirrusSearch + ElasticSearch to do their searching? I would like to set up the same so that the WIki Markup is also hidden from the search results.
It might get a bit too detailed here, but does anyone know how big of a performance hit running ElasticSearch on a Ubuntu server is? My server is already running a LAMP stack and Parsoid. Will adding ElasticSearch on top of this make my website run significantly slower? Swennet (talk) 23:04, 3 March 2016 (UTC)
Okay, so I tried installing Elasticsearch on my web server and it basically make it unusable. It's a shame really... Are there any other alternatives that remove Wiki Markup from the search results? Swennet (talk) 13:31, 29 March 2016 (UTC)
Hii,
Does anyone able to find any solution for this?
Thanks Sarit (talk) 10:54, 5 April 2018 (UTC)
You mean other than CirrusSearch + ElasticSearch, which should also work for this purpose? AhmadF.Cheema (talk) 17:00, 5 April 2018 (UTC)

Installing the latest version of PCRE

I want to install the Scribunto extension and on it's page under Requirements it states "PCRE 8.33 or later is recommended". I've checked the PCRE version of my ubuntu vps with the php -i | grep 'PCRE' code. It said that I have version 8.31 and the requirements of Scribunto state that "PCRE 8.31 has bugs with JIT pattern studying that breaks various patterns when used with HHVM". I've tried to download and install the latest version(8.38) from the official PCRE site so I wouldn't have bugs under any circumstances, but it's only available either in a .zip file or in a .tar.gz file and I don't know how to install it after I download it and unpack it. Innosflew (talk) 22:19, 3 March 2016 (UTC)

If you downloaded the source code in a .tar.gz file, you will need to compile it (configure; make; make install). This is not trivial and steps depend on your distribution, hence please ask in an Ubuntu support forum, or upgrade to a more recent version of Ubuntu that includes a newer PCRE version. Malyacko (talk) 08:32, 4 March 2016 (UTC)

Context menu help

Hello. I wanted to make a custom right-click (contex) menu for my wiki. But I wouldn't know where to add the HTML part (http://pastebin.com/F7BeZMzk). I presume that the CSS and JS part go on common.css and .js respectively, right?

I have taken the information from here, answer 3: http://stackoverflow.com/questions/4909167/how-to-add-a-custom-right-click-menu-to-a-webpage 188.24.79.140 (talk) 00:12, 4 March 2016 (UTC)

Anybody? I would need it pretty urgently and google isn't helpful at all. Honestly, I don't even know what exactly to search for.... 188.24.35.167 (talk) 01:38, 5 March 2016 (UTC)
You don't put the HTML anywhere, unless you want the context menu to be page-specific, in which case you'd write the HTML on the page. You probably want the same context menu on every page, so you should simply insert the HTML as part of your script.
$('body').append(<your html>); 121.214.20.37 (talk) 02:50, 5 March 2016 (UTC)
Thank you for the answer. But where exactly should I add that? Should I create a separate mediawiki.js for the HTML or should I add just below the JS part? So, right below this: http://pastebin.com/gfNEUU8T and the CS part would go on mediawiki:common.cs 188.24.35.167 (talk) 14:09, 5 March 2016 (UTC)
I would try adding it in the wiki page MediaWiki:Common.js in your wiki. 87.123.62.112 (talk) 16:26, 5 March 2016 (UTC)
All right. I have tried adding this: http://pastebin.com/tMLuR57A in common.js, but I am getting all sort of errors. Here is what I am talking about: http://imgur.com/a/Nz8Sw. Would someone please explain me where to add all those three components, more precisely? I am trying to add them from here: http://stackoverflow.com/questions/4909167/how-to-add-a-custom-right-click-menu-to-a-webpage from the answer that as a '22' in-between two grey arrows, and then adapt them. 188.24.79.140 (talk) 10:24, 7 March 2016 (UTC)
I guess you have found the wiki page MediaWiki:Common.js in your wiki. It is exactly this page: MediaWiki:Common.js, but in your wiki, not in this one.
For the code, which you have added: This code contains a complete HTML page. I don't think that this is what you want to add to your page - after all, you would then have two html structures inside one page. I think the result is not a valid HTML document. Instead, you should only add the div tags, which you need.
For the scripts, which you are including: jQuery is available in MediaWiki by default. You should not include it manually (a second time!). For the files contextmenu.js and contextmenu.css, I would add their contents to the according wiki pages as well; to MediaWiki:Common.js and MediaWiki:Common.css in your wiki. 87.123.33.27 (talk) 12:20, 7 March 2016 (UTC)
Hello again. I have tried adding this http://pastebin.com/KDACjCtg to Common.js, but I get this error "expected an identifier and instead saw '<'. Missing ";" before statement".
But I should have been clearer from the start. I don't actually want a custom right-click menu, I only want to remove most of the options when right clicking on images, such as 'save image as' and 'copy image address'. Is there a script that I can introduce in common.js that will allow me to remove whatever I want from the context menu? Kinda like how there is a script to remove or add links under the 'tools' tab. If someone knows, please let me know, as I would really need it. Thank you. 188.24.79.140 (talk) 16:04, 10 March 2016 (UTC)
You can't really alter the default browser menu, and frankly, disallowing the save of such images is not very efficient because people can just take a screenshot or save the entire page (with images). About your problem, MediaWiki:Common.js is for JavaScript, but you're inserting HTML on it. That can't work... Ciencia Al Poder (talk) 10:49, 11 March 2016 (UTC)
So.. where should I insert the HTML part, then? 188.24.79.140 (talk) 12:06, 11 March 2016 (UTC)

unable to log in!

I have a lifetime license but now i cannot log in and get the new upgrade. My User Name is Tim Evangelatos and my email address is tim.evangelatos@yahoo.ca. Order No. 495691533.

Tim Evangelatos 68.200.98.97 (talk) 00:33, 4 March 2016 (UTC)

There is no "lifetime license" for the MediaWiki software, and you are on MediaWiki.org here. Likely you refer to some other software which is not the topic of the mediawiki.org site? Malyacko (talk) 08:30, 4 March 2016 (UTC)
You need to able "cookies" to log in. You can try to log in other wikis, like Wikipedia. SolidBlock (talk) 13:14, 4 March 2016 (UTC)

Sorry! This site is experiencing technical difficulties.

what happen this error?

"

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server)

"

mysql info is right;but wiki didn't work. 183.17.252.236 (talk) 06:56, 4 March 2016 (UTC)

It says "Cannot contact the database server". Why do you think that your mysql info is right? Also see Manual:Errors and symptoms. Malyacko (talk) 08:29, 4 March 2016 (UTC)

Magic Word

I was restoring an old MediaWiki. I am running it on Apache server version 2.4. I have restored all the data and all the functionality but there is one error that I can't remove.

This appears at the top of the site :

Warning: preg_replace_callback(): Requires argument 2, 'pregRemoveAndRecord', to be a valid callback in D:\xampp\htdocs\wiki\includes\MagicWord.php on line 664

I've browsed old versions and new of MediaWiki, and tried replacing the MagicWord.php file with those versions but without luck. Anyone else had this problem? Any idea what I can do? Karithrastarson (talk) 09:14, 4 March 2016 (UTC)

Please don't mix old and new files on the same installation, that can't work.
If you restored all files from a working backup, it should be working. Be sure you haven't left old files behind, etc, and be sure to clear all opcode caching (xcache, etc).
If the restore was partial, you may have some incompatible extension that you should remove or find a correct version for your installation. Ciencia Al Poder (talk) 10:26, 4 March 2016 (UTC)

Error in ContentHandler.php creating first Wikibase item

I've successfully installed **Mediawiki 1.26.2** on **Ubuntu 15.04**. I added the extension Wikibase Repository extension following [these steps][1]. The installation completed without any error.

I then logged in into my new (empty) wiki to start populating my repository, I reached the page `Special:SpecialPages` and clicked on "Create a new Item" (`Special:NewItem`). I filled in the form and clicked "Create".

And then I get this error

Catchable fatal error: Instantiation of 'Closure' is not allowed in /var/lib/mediawiki/mediawiki-1.26.2/includes/content/ContentHandler.php on line 334

I'm moving the first steps with Wikibase so it is possible I didn't get the mechanics/logic of adding new items.

Is this the right way to create new items?

[1]: https://www.mediawiki.org/wiki/Wikibase/Installation FrBailo (talk) 12:43, 4 March 2016 (UTC)

How to solve "#1273 - Unknown collation: 'utf8mb4_unicode_ci' "?

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'm using localhost/phpmyadmin, it displays, "#1273 - Unknown collation: 'utf8mb4_unicode_ci' ". How can I solve the problem? SolidBlock (talk) 13:09, 4 March 2016 (UTC)

I only found the problem in localhost/phpmyadmin. I didn't find any questions in installing wamp5 1.7.4. But using localhost/phpmyadmin is important. SolidBlock (talk) 13:23, 4 March 2016 (UTC)
Error 1273 means that your database is using a collation, which the MySQL server does not understand. This can happen, when you use a database, which has been created with a newer version of MySQL, with an older MySQL server version. This problem can be solved by converting the wrong collations from utf8mb4_unicode_ci to utf8_general_ci. There is a script on stackoverflow, which does exactly that. 87.123.19.121 (talk) 13:40, 4 March 2016 (UTC)
"Error 1273 means that your database is using a collation, which the MySQL server does not understand. This can happen, when you use a database, which has been created with a newer version of MySQL, with an older MySQL server version. This problem can be solved by converting the wrong collations from utf8mb4_unicode_ci to utf8_general_ci. There is a script on stackoverflow, which does exactly that."
--> can you hepl me about link script on stackoverflow?
thanks! 117.3.65.207 (talk) 01:37, 19 May 2016 (UTC)
I found sth in other sites:"方法一:替换编码:使用代码编辑器打开导出的sql数据文件,先查找:utf8mb4_unicode_ci,替换为:utf8_general_ci,再查找,utf8mb4,替换为,utf8。方法二:把网站要用的mysql数据库升级到5.5.3以上版本。"[1] But do you know what "sql数据文件"(maybe means "sql data file") means?
  1. http://www.boke8.net/wordpress-mysql-1273-error.html
  2. SolidBlock (talk) 14:11, 4 March 2016 (UTC)

    hello i am amin to fix this error replace all of utf8mb4_unicode_520_ci to utf8mb4_general_ci 175.106.45.205 (talk) 06:15, 24 October 2016 (UTC)
    It worked..
    thanksss 27.62.106.45 (talk) 19:41, 28 November 2016 (UTC)
    version mismatch 1.23.156.56 (talk) 07:26, 14 December 2016 (UTC)
    yes its works fine.thanks 103.68.21.240 (talk) 05:10, 29 January 2017 (UTC)
    MySQL said:
     
    #1273 - Unknown collation: 'utf8mb4_persian_ci'
    i have this problem when i want to go to phpmyadmin in localhost server i couldn't solve that, can you help me to solve it? 180.94.84.248 (talk) 20:00, 11 February 2017 (UTC)
    Which steps mentioned above did you already perform, and what was the result? Malyacko (talk) 21:42, 12 February 2017 (UTC)
    Here is a complete solution of this problem
    https://www.youtube.com/watch?v=_F48w9Fborw 37.111.128.247 (talk) 15:34, 11 August 2017 (UTC)
    Here is the solution in 4 steps / Solución en 4 pasos:
    https://www.diariodeunprogramador.net/importacion-error-1273-unknown-collation-utf8mb4_unicode_ci/ Jess2333 (talk) 06:52, 13 January 2019 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    E-mail while registering (2)

    Dear Member,

    I receive this error while registering :

    "Failed to connect to mailout.one.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]".

    Added to LocalSettings.php :

    $wgSMTP = array(

    'host' => 'mailout.one.com',

    'IDHost' => 'one.com',

    'port' => 25,

    'username' => '',

    'password' => '',

    'auth' => false

    );

    Comment from one.com :

    1 Please use mailout.one.com instead for SMTP Server.

    2 Are you using mail() script and used SMTP as option to send email from your script? If yes, unfortunately, SMTP will not work. You will need to use a regular mail() script.

    3 Port 465 is used for SMTP. You can also check that in the Control Panel > Mail Administration > Technical Information. For sending mail via a mail program, we recommend 587 or 2525, since most ISPs have this ports open. In some cases, one or two of these ports are blocked by users ISP. For sending mail via script at One.com, always use server mailout.one.com and port 25.

    Why do I receive the error from the e-mail program? What can be improved?

    Thank you.

    Hansie Hansie (talk) 13:49, 4 March 2016 (UTC)

    Dear Ciencia Al Poder, (Power To The Science)
    Might I have a response from you?
    Thank you.
    Hansie Hansie (talk) 13:09, 10 March 2016 (UTC)

    Switch UI language according to content language

    How can I switch the UI language according to content language programatically? Lets say the English speaking user is at https://docs.digitale-lernumgebung.de/Hauptseite but wants to read the wiki in English. So he clicks on the top language navi and the content switches to EN but to his surprise the UI stays German. I would like to change that. Thanks.

    php 5.5

    mediawiki 1.26

    MySQL 5 Koalopete (talk) 17:13, 4 March 2016 (UTC)

    So I clicked "English" on Extension:Translate's language bar and the content switches to English, but the UI is still in my browser's preference - Tagalog. A solution is for them to log in and change the language in Special:Preferences to English. Luis/stranger195 (talkcontribsguestbook) 07:56, 5 March 2016 (UTC)
    Thanks, but my users do not have an account and are not allowed to create one. So your suggestion would not work. Koalopete (talk) 08:46, 5 March 2016 (UTC)
    Can't this be achieved with Extension:UniversalLanguageSelector? Ciencia Al Poder (talk) 11:42, 5 March 2016 (UTC)
    The UniversalLanguageSelector is already installed because it is a dependency of Extension:Translate. So I guess the ULS does not help. Koalopete (talk) 10:09, 6 March 2016 (UTC)
    Maybe you need to configure it properly, like setting $wgULSAnonCanChangeLanguage. I haven't used that extension so you may need to read the documentation first. Ciencia Al Poder (talk) 11:41, 6 March 2016 (UTC)
    Thanks for your hints. I now accept that is not possible to swtich the UI language manually but is controlled by the users browser settings which is not too bad. Koalopete (talk) 10:38, 21 May 2016 (UTC)

    I just created an account and would like to go back to TMSWiki.org

    How do I do This Myback11 (talk) 18:33, 4 March 2016 (UTC)

    You did not tell where you created an account and why you cannot "go back to some other unrelated third party website". Feel free to elaborate. Malyacko (talk) 20:36, 5 March 2016 (UTC)

    wgMainCacheType

    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.


    Howdy, which setting do I have to use after upgrading to PHP 5.5? Should I stick to $wgMainCacheType = 'CACHE_ACCEL'; or probably switch to CACHE_EVERYTHING? 91.65.247.81 (talk) 00:30, 5 March 2016 (UTC)

    wgMainCacheType? was supposed to be the title of this thread. I was identified as spam. 91.65.247.81 (talk) 00:32, 5 March 2016 (UTC)
    CACHE_EVERYTHING does not exist. You may refer to CACHE_ANYTHING. See Manual:$wgMainCacheType for description of each supported value Ciencia Al Poder (talk) 11:36, 5 March 2016 (UTC)
    Thanks for fixing the topic. Sure I meant to refer to CACHE_ANYTHING. Just to make sure I understood the manual page correctly: Since there is no APC in PHP 5.5+ I should change the setting from 'CACHE_ACCEL' to 'CACHE_ANYTHING' right? 91.65.247.81 (talk) 21:12, 5 March 2016 (UTC)
    Yes, that should be fine. You may try different configurations to see what provides better performance, since there's a note about caching in DB may be slower in some setups (for $wgMainCacheType). Ciencia Al Poder (talk) 11:47, 6 March 2016 (UTC)
    Cool, thanks for your time! 91.65.247.81 (talk) 09:57, 7 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    failed to set timezone, help please...

    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 in a tz UTC+08:00

    and use apache & php run in my server, and belowe is my server setting:

    Default timezone UTC

    Directive Local Value Master Value

    date.timezone UTC UTC

    follow Manual:Timezone, I tried the main method, and two alternative methods, but all failed.

    after this, I try use api to find out what's value did 'timecorrection' set (which I found in source code)

    from api feedback, it told me the timecorrection is set as 'Offset|0'.

    what? I think this is default value, but i had tried set this in localsettings.php, such as:

    1.$wgLocalTZoffset= +480;

    2.$wgDefaultUserOptions['timecorrection'] = 'ZoneInfo|60|Asia/Shanghai';

    3.$wgLocalTZoffset= +480;

    and tried in several groups, but all failed.

    so please help me, how can i set the timezone of time-offset to make the page display right edit time and so on. Redlz250 (talk) 08:22, 5 March 2016 (UTC)

    I know user can set the user-timezone in settings page, but I want to make the timezone in UTC+08:00 as default. Redlz250 (talk) 08:27, 5 March 2016 (UTC)
    I'm sorry..
    I have no idea where is wrong, but when test I had opened several browser to test, just now I quit my account in my site, and the time display is in my wish way.
    I think this problem had beed solved.
    tks.. Redlz250 (talk) 08:31, 5 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    paanu gawin to

    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.


    paanu gawin to 180.191.142.25 (talk) 09:22, 5 March 2016 (UTC)

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

    Unique Name 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,

    how can I create such a structure like this in mediawiki? Is this possible?

    • Project 1
      • Test1
        • Demo1
        • Demo2 ...
        • Demo40
      • Test2
        • Demo1 ...
    • Project 2
      • Test1
        • Demo1
        • Demo2 ...
        • Demo40
      • Test2
        • Demo1 ...

    Same with Project 3 and 4. "DemoX" are normal sites, the other categories. The main problem here is that every Project have the same sub category name and similar sites names in this sub categories.

    Actually it looks really ugly to not run into the unique site name problem. When I list "Test1" every "DemoX" entry have a " (Project1)" at the end of the name etc. 92.210.151.112 (talk) 10:08, 5 March 2016 (UTC)

    There's no way to solve this unless you use different names, as you're already doing. You can choose to use parentheses to disambiguate categories, or mount a sort of hierarchy naming things like Project 1/Test1/Demo1, but that may be also hard to write Ciencia Al Poder (talk) 11:39, 5 March 2016 (UTC)
    Ok, thanks. I thought that I get such a answer. Searched hours for a solution and didn't find something. So it's really not possible, good to know. 92.210.151.112 (talk) 12:17, 5 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Changing font type

    How do I change the font type on vector skin for things like titles, headers etc.? Innosflew (talk) 19:54, 5 March 2016 (UTC)

    Add your CSS to the wiki page MediaWiki:Vector.css in your wiki! 87.123.62.112 (talk) 20:15, 5 March 2016 (UTC)
    I know that I have use Vector.css, but I don't know what code do I need to add to Vector.css in order to modify it's looks. Innosflew (talk) 20:29, 5 March 2016 (UTC)
    See Manual:CSS and Manual:Interface/Stylesheets. You need to edit those elements that you want to change. Your web browser's developer tools might help. Malyacko (talk) 20:34, 5 March 2016 (UTC)

    Category not linked

    using MW 1.26.2 and SMW 2.3.1 with SemanticForms 3.4.2-a On some old pages linking (registered in categorylinks) to a category still works. On nearly all new pages, the link to category-page exists but even by editing the page it will not generate a categorylink an these pages aren't shown from the category-page. SemanticForms don't want to use the edit-with-form (obviously not finding the page in categorylink)

    The category-link is embedded by template, but even setting a category in pagetext woudn't work. So it seems to me a general problem - but putting a sandbox-page in category, will list the page ... sometimes.

    Im confused and can't find a solution. Any help? Any ideas, what might cause the mistake? --Letofred (talk) 13:22, 5 March 2016 (UTC)

    Export a particular version of a page?

    Is it possible to export a particular version of a MediaWiki page? For example, I'd like to export the documentation template but without the Lua parts. NeedAGoodUsername (talk) 23:48, 6 March 2016 (UTC)

    You should be able to do that with API:Export, although there's no user interface for selecting the revision of that template and all needed templates recursively, so it may be easier to just edit the old version and copy the contents manually, saying in the edit summary where it came from Ciencia Al Poder (talk) 10:33, 7 March 2016 (UTC)

    wikipedia database: categories

    Hi

    I've imported the wikipedia database in 4 different languages into 4 mysql databases using mwdumper with the goal of running some machine learning algorithms for text classification, and I have a few questions:

    1) where is/are the page category(ies) stored?

    2) Is there a way to know which category in English corresponds to which category in another language (say French)?

    3) The category table is empty after the import? Is this normal?

    Thanks! Podzway (talk) 10:01, 7 March 2016 (UTC)

    1. categorylinks table
    2. No, unless interlanguage links are provided on the category description page
    3. Yes because mwdumper only bulk-copies the contents from XML dumps, which doesn't contain category information. Categories are inside wikitext, so you can regenerate them by running refreshLinks.php after the import. Note that this will spend quite a lot of time, since it needs to reparse every page. I'd expect such metadata information would be available as a separate download in http://dumps.wikimedia.org/ but I was unable to find that. Ciencia Al Poder (talk) 10:29, 7 March 2016 (UTC)

    Refused to execute script

    Newbie to mediawiki, so apologies if this is a simple error.

    I have a local working fine, but on my remote (addon domain, installed in the root of that) my mediawiki install keeps giving me the console error of:

    Refused to execute script from 'http://docs.titan.anglingdirect.co.uk/load.php?debug=false&lang=en&modules=…notify%2Cutil%7Cmediawiki.legacy.wikibits&skin=vector&version=5e0d755bcceb' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

    When I initially actioned the install, I wasn't getting any css, I solved this issue by allowing it to write the session to a directory that was writeable. However I thought everything was then ok, until I noticed this error.

    The page URL on going to the root of the site is different from local to remote, which i've not worked out why yet, but forusm:

    local: /index.php/Main_Page

    remote: /index.php?title=Main_Page

    I've tried looking a the byte order issues for LocalSettings.php, by saving in vim, and googling for quite some time, but alas no solution.

    I am using mediawiki 1.26, php 5.5.3 - any further details please just ask

    Your help would be greatly appreciated. Apologies if I've posted this in the incorrect place as well. Nate.taylor17 (talk) 15:03, 7 March 2016 (UTC)

    ... coming across the $wgUsePathInfo, I wonder if i'm getting this error because my pretty urls are breaking Manual:$wgUsePathInfo . My local is set to server API: apache 2.0, but remote uses CGI/FastCGI. Nate.taylor17 (talk) 16:21, 7 March 2016 (UTC)
    I have finally come across this. Manual:Errors and symptoms#Missing edit toolbar.2C JavaScript not working Though as it's on a VPS i'm sure this isn't the case, that advertising or tracking isn't automatically being added. Could it be a server setting? Any ideas people? Thanks Nate.taylor17 (talk) 20:19, 7 March 2016 (UTC)
    The URL http://docs.titan.anglingdirect.co.uk/load.php?debug=true&lang=en&modules=jquery.accessKeyLabel%2Cclient%7Cmediawiki.RegExp%2Cnotify%2Cutil%7Cmediawiki.legacy.wikibits&skin=vector&version=10de47153c1c is redirecting automatically to http://docs.titan.anglingdirect.co.uk/, which causes a script error.
    I don't think MediaWiki itself is doing such redirect. Check if there's some weird redirect/rewrite rule configured on your nginx server causing this behavior. Ciencia Al Poder (talk) 22:38, 9 March 2016 (UTC)

    Fatal error: Class 'DisambiguationsPage' not found in D:\web\wiki\extensions\ProofreadPage\SpecialPagesWithoutScans.php on line 26

    Wiki operates but get this message when accessing Special Pages. I have done a few web searches and don't see any content related to this error. Mediawiki version: 1.26.2 BroncoKrawler (talk) 18:01, 7 March 2016 (UTC)

    Be sure you have downloaded Extension:ProofreadPage for MediaWiki 1.26 and not for other version. Older versions had DisambiguationsPage as the base class but that's no longer the case. Ciencia Al Poder (talk) 10:44, 8 March 2016 (UTC)

    Display user groups on userpages

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


    How can I display the user group of everyone on their own page on my wiki? Maybe in the title header? I was looking for this all over the internet but could not find anything. I want to do something similar to what can be seen on admin or staff Wikia user pages next to their names. I know that on Wikia people can change what is displayed there for each user group on the "MediaWiki:User-identity-box-group-<group-name>" pages. For admins for example it is the MediaWiki:User-identity-box-group-sysop page(This seems to be kinda similar but still different than the "MediaWiki:Group-<group-name>", "MediaWiki:Group-<group-name>-member", "MediaWiki:Grouppage-<group-name> pages".). Innosflew (talk) 18:24, 7 March 2016 (UTC)

    It's one of wikia's many custom extensions. 121.219.139.69 (talk) 05:22, 8 March 2016 (UTC)
    There are similar extensions like Extension:SocialProfile.
    You can also use a script like UserWikiInfo.js that will look like this. CSS Styles are in MediaWiki:Monobook.css (find "UserWikiInfo" rules) and MediaWiki:UserWikiInfoContribs if you want to display contribution breakdown on "content" namespaces vs global and you have Extension:Editcount. If you know JS and CSS you can basically tune it to your needs Ciencia Al Poder (talk) 10:30, 8 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Text just disappears from editor

    Hi there. I encounter a really weird problem. I created a new page in my wiki (latest MediaWiki), but when I edit that page, the text in the editor is cut off at some point, so there is text missing, and I have no idea why it does that. It is happening to both Firefox and Chrome.

    The URL is http://www.spaghetti-western.net/index.php/One_damned_day_at_dawn%E2%80%A6_an_interview_with_Simone_Blondell

    And you can reach me at office@spaghetti-western.net (my name is Sebastian). I hope someone can help me get this fixed, thanks! 91.32.198.141 (talk) 19:59, 7 March 2016 (UTC)

    Hi Sebastian,
    on the page, which you linked, the content stops at exactly that place where there is this smiley in the text. Maybe that smiley is the reason the the problem.... 87.123.33.27 (talk) 20:28, 7 March 2016 (UTC)
    good point, but how do I fix it? If I click edit, the text is gone.... 91.32.201.215 (talk) 09:15, 8 March 2016 (UTC)
    Ok I just reconstructed the rest of the text. Still... how can a smiley derail the editor? huge bug 91.32.201.215 (talk) 09:21, 8 March 2016 (UTC)
    It works fine on any other wiki, there's obviously something wrong with your site. 121.219.139.69 (talk) 09:33, 8 March 2016 (UTC)
    Where does it say that smileys are working in that editor? I have actually never seen such smileys in wiki text.
    Part of the question would then be: How is the smiley stored? Is it a text string, which through some magic (CSS or so?) gets replaced by a smiley? Or is it actually an image, which is saved that way, as an image, inside the database? Or how does that work? 87.123.18.162 (talk) 12:32, 8 March 2016 (UTC)

    Infobox vertical alignment

    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 created an infobox template. It works fine for the most part. It has parser functions which remove table lines if the parameter isn't defined. The issue is, if some of the parameters aren't defined, the infobox's vertical alignment is lower than if all of the parameters are defined. Actually lower on the page, below the page title's horizontal rule. Not sure what is causing this to occur. 63.147.104.220 (talk) 21:10, 7 March 2016 (UTC)

    If you can give us a link to the template and example of that behavior that would help us to tell you what the problem is. Ciencia Al Poder (talk) 10:35, 8 March 2016 (UTC)
    I'm having trouble replying. It's accusing me of trying to spam 63.147.104.220 (talk) 20:13, 9 March 2016 (UTC)
    Here is my template.
    {{{name}}}
    {{{image}}}
    {{{imagecaption}}}
    63.147.104.220 (talk) 20:14, 9 March 2016 (UTC)
    Since you add a newline between every {{#if: }}, when you have several {{#if: }} that display nothing, that's 2 or more newlines, which in wikitext means a new paragraph. You should avoid those newlines, putting all parser functions next to other.
    If you want to separate them visually in the code, you can insert HTML comments between the newline, for example:
    {{#if: ... }}<!--
    -->{{#if: ... }}<!--
    -->{{#if: ... }}
    
    Ciencia Al Poder (talk) 22:28, 9 March 2016 (UTC)
    That was it! Thank you so much! 63.147.104.220 (talk) 22:54, 10 March 2016 (UTC)
    if I reply can I read the page source and figure out how to make a template like 63.147.104.220's? IJustWantToReadThePageSource (talk) 03:42, 12 December 2019 (UTC)
    no I guess not IJustWantToReadThePageSource (talk) 03:43, 12 December 2019 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Fatal error: Call to a member function xpath() on a non-object in /home/dailystunt/domains/x3wiki.com/public_html/extensions/ConfirmEdit/Asirra.class.php on line 52

    The wiki for the computer game X3:TC/AP (http://www.x3wiki.com/index.php/Main_Page) seems to be broken. According to links it uses MediaWiki and keeps coming up with the above error. This prevents editing of pages and creating accounts.

    Until the 14th of march 2014 it was frequently updated by many people before all updates suddenly cut dead (unlike most wikis that lose popularity and show a steady decline in users) which indicates when the problem probably started.

    There are no links to who the admins are, so my question is as a user and potential contributor to the wiki, how can this be fixed? 81.155.157.229 (talk) 21:31, 7 March 2016 (UTC)

    If the wiki admins are not active anymore, there is not much you can do to fix this issue.
    The following three users are administrators of that wiki: Madned, Rexde500 and Spychotic. That however does not mean that these users actually also have file system access on the wiki server (and they would need that access, if they wanted to solve the problem).
    The domain is registered by a S van Oorschot and he provided the following email address during registration: email [at] sandervanoorschot.nl. This might be a way to reach the right person.
    A step in the right direction would be to upgrade the MediaWiki installation to a supported version. This possibly already fixes the problem. 87.123.33.27 (talk) 23:38, 7 March 2016 (UTC)
    Yeah, an upgrade should fix this issue. "LocalSettings.php" will also have to be adjusted since tha Assira service is no longer available as an anti spam tool. [[kgh]] (talk) 16:22, 8 March 2016 (UTC)

    i am waiting for confirmation email 2 days

    i am waiting for confirmation email 2 days 70.66.156.181 (talk) 00:57, 8 March 2016 (UTC)

    SVG Exploit info

    Was the javascript exploit ever fixed so that it parses out extraneous javascript? 24.163.65.8 (talk) 04:04, 8 March 2016 (UTC)

    I don't know what you are talking about. To my knowledge, there are no known scurity holes in the current, supported versions of MediaWiki. In case you beliee this is wrong, please send your information to security[at]wikimedia.org. See Security for more information! 87.123.18.162 (talk) 12:37, 8 March 2016 (UTC)

    Problem loading .css and .js

    I've paste some scripts in Mediawiki:common.css and Mediawiki:common.js for change my skin,but seems that doesn't works.Any ideas?My wiki link: http://pokemonpositvenegative.96.lt/Pagina_principale 151.26.88.87 (talk) 12:51, 8 March 2016 (UTC)

    You try to load scripts (e.g. User:Ais523/votesymbols.js) from non-existent pages on your wiki. Use full url to wiki where you found them. wargo (talk) 12:56, 8 March 2016 (UTC)
    Sorry but i don't talk english very well.I must create a new page(e.g. User:Ais523/votesymbols.js)? 151.26.88.87 (talk) 15:28, 8 March 2016 (UTC)
    What scripts do you want to put? wargo (talk) 15:51, 8 March 2016 (UTC)
    Rounds :P This skin round the border of my wiki :D 95.226.21.211 (talk) 16:05, 8 March 2016 (UTC)

    Asking questions configuring and tweaking Visual Editor

    What's the right place to ask questions about configuring and tweaking the Visual Editor?

    I thought this would be Extension talk:VisualEditor but this board shows little activity.

    See my question Extension talk:VisualEditor/2016#h-Customizing_the_VE_toolbar-2016-03-04T12:12:00.000Z. Waanders (talk) 12:58, 8 March 2016 (UTC)

    The board shows more than little activity for me. It's the right place I'd say. :) Malyacko (talk) 09:49, 9 March 2016 (UTC)

    Help with editing

    https://swiki.swri.org/index.php/Space_Science_Seminars

    I would like to take the main page Space Science Seminars with the 2014 schedule and move it to a link under Past Space Science Seminars (named Space Science Seminars 2014). Then I need to edit the main page with my new 2016 schedule. I thought to use the "move" function or create a new page, but I'm just not sure. 129.162.62.124 (talk) 15:47, 8 March 2016 (UTC)

    To rename page use "move" tab. wargo (talk) 15:53, 8 March 2016 (UTC)

    Adjusting PWM

    Hello,

    Can I add in a single application two individual PWM sets? One button to PWM that trigger's a 1mS period and another that triggers a 2mS period. Any advise will be a great help. Thank you 137.148.13.101 (talk) 22:18, 8 March 2016 (UTC)

    Welcome to the support desk of the "MediaWiki" software. Feel free to elaborate what "PWM" stands for and how that is related to MediaWiki. Thanks! Malyacko (talk) 09:48, 9 March 2016 (UTC)

    Vector Skin won't load

    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.


    Just installed for the first time and I have an issue with the vector skin not loading. The three other skins in the install all work. I assume it would be something to do with PHP but i'm not an expert in how it all hangs together. It seems to affect most browsers. Looking in the Developers console in chrome gives the message.

    Internal error

    Internal error

    Problematic modules: {"startup":"error"}(anonymous function) @ load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector:8

    System Details

    OS: Windows (IIS)

    PHP: 5.6.16

    DB: MySql Jsmith4c (talk) 10:53, 9 March 2016 (UTC)

    See Manual:Errors and symptoms#The wiki appears without styles applied and images are missing, Most likely IIS doesn't have permissions to write to C:\Windows\Temp Ciencia Al Poder (talk) 22:41, 9 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Please delete unwanted 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 created the following page by mistake. Please can you delete it.

    WildOrchid MedHotels Release Process

    Thanks 31.221.28.171 (talk) 11:38, 9 March 2016 (UTC)

    I have just marked the page for deletion. 87.123.18.162 (talk) 11:54, 9 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Instant Commons not working

    I volunteer on the UK LGBT Archive wiki - http://www.lgbtarchive.uk/wiki/ - which runs Mediawiki 1.26.2. It uses a large number of Commons illustrations via Instant Commons. Suddenly this morning, these images are no longer displaying in our wiki. Help please! --~ Ross Burgess (talk) 11:47, 9 March 2016 (UTC)

    I've now discovered that the problem only occurs when I'm actually logged in to the wiki. Ross Burgess (talk) 13:21, 9 March 2016 (UTC)
    Is there an example page where the problem can be seen? Could you check with your web browser's "developer tools" if there are any errors displayed in the "console" or in the "network" tab? For more information please see: Firefox ≥24, Internet Explorer, Google Chrome. AKlapper (WMF) (talk) 10:29, 10 March 2016 (UTC)

    Reporting childporn

    I wish to report that childporn is beeing uploaded in the swarm in vuze. If you search with the term pthc you'll find a ton of those illegal clips. I urge the owners of vuze/ azureus software inc. to act, remove the torrents and report the uploaders to the proper autorities. 80.60.193.225 (talk) 15:16, 9 March 2016 (UTC)

    Welcome on the Support Desk of MediaWiki, the software used to run wikis like Wikipedia.
    Please note that Wikimedia Foundation, who develops MediaWiki, is not related to Vuze, a filesharing software.
    The responsible people in the developer community of Vuze might be the right persons to discuss this matter with, however, I do not know, in how far the software developer has control over the contents, which are actually distributed with the software.
    Legal authorities like the police or public prosecution service might also be in charge of such matters, however, I don't know how competent these authorities are in regards to filesharing issues. 87.123.3.128 (talk) 16:34, 9 March 2016 (UTC)

    Problem with resizing an 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.


    Hello !

    I have a problem with resizing an image. Everwhere when I am using somthing like Image|123px i will get a timeout. There is a problem with "px". I am using mediawiki 1.26.2 with xampp.

    Thanks Sussifx (talk) 20:22, 9 March 2016 (UTC)

    I solved the problem:
    For me this settings in LocalSettings.php worked:
    $wgEnableUploads = true;
    $wgUseImageMagick = false;
    $wgImageMagickConvertCommand = "/usr/bin/convert";
    $wgTmpDirectory = "$IP/images/temp";
    and create "temp" folder in /images 79.199.248.54 (talk) 07:50, 10 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    how to make multi column in a list?

    I had seen some source code such as:

    ** AAA

    ** BBB

    ** <which code here?I want to know.>

    ** CCC

    and they displayed like this:

    AAA CCC

    BBB

    this is so easy to use.

    after search help:lists,I didn't find out this format style, anyone can help me? Redlz250 (talk) 03:36, 10 March 2016 (UTC)

    That's probably a table syntax (or a template that provides it):
    {|
    |-
    | style="vertical-align:top; width:50%;" |
    * AAA
    * BBB
    | style="vertical-align:top; width:50%;" |
    * CCC
    |}
    
    that gives
    • AAA
    • BBB
    • CCC

    Ciencia Al Poder (talk) 10:24, 10 March 2016 (UTC)

    $HTTP_RAW_POST_DATA error in error_log

    Hi,

    I am using Mediawiki for my wiki. My error_log file is growing rapidly. It was 50.000 line iç 24 hours. Constantly the same error returns.

    [10-Mar-2016 04:22:42 UTC] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

    [10-Mar-2016 04:22:45 UTC] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

    [10-Mar-2016 04:23:04 UTC] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

    [10-Mar-2016 04:23:10 UTC] PHP Deprecated:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

    How i fix that? Thank you! Bekircem (talk) 04:28, 10 March 2016 (UTC)

    The message tells you exactly what to do... 121.214.35.27 (talk) 09:09, 10 March 2016 (UTC)
    Yes, always_populate_raw_post_data was an absolutely useless setting. It makes the system throw "errors", even if $HTTP_RAW_POST_DATA is not used at all. The PHP devs themselves don't know, why they implemented it that way. Apart from adjusting your configuration, updating to a newer PHP version will also solve this problem; in newer versions this setting has finally been removed again. 87.123.3.128 (talk) 11:46, 10 March 2016 (UTC)
    Hi, what is your suggestion for php version? Thank you for informative message. Bekircem (talk) 15:37, 10 March 2016 (UTC)
    I don't know, if updating PHP is the best option for you. However, the setting has been removed in PHP 7. 87.123.46.149 (talk) 18:22, 10 March 2016 (UTC)

    Top icon

    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 there, I'm a middling novice, and I want to create a top icon to track a constantly-changing subject.

    http://www.wiki.cataclysmdda.com/index.php?title=Template:Ver

    This is my attempt to update a version control in place to have the text float at the top right, but the result is always in-line with where it is placed on the page.

    https://nethackwiki.com/wiki/Template:Top_icon

    This is an example of this concept working with an image. I'd like to keep it even simpler with just text.

    Is this not working because the wiki I'm editing doesn't have these CCS styles class="metadata topicon nopopups"? Is there a way to add them somehow? Mattamueizzle (talk) 05:18, 10 March 2016 (UTC)

    Use Page status indicators. 121.214.35.27 (talk) 09:07, 10 March 2016 (UTC)
    Yessssss, thank you. Mattamueizzle (talk) 13:58, 10 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    MediaWiki performance bottleneck

    I'm currently working on a MW installation which is installed on the XAMPP web-server software (for creation and content creation before transfer to a live server) and for some unknown reason I keep receiving bottlenecks in performance when searching/loading user-created pages.

    I've followed all the steps detailed in the various documents for increasing performance, but fail to actually achieve a decent increase in performance. I've also used ZendOpCache and Memcached as detailed in the guides (linked below) but see no improvement.

    Links:

    Manual:Performance tuning

    Performance guidelines Devinthedark (talk) 11:07, 10 March 2016 (UTC)

    Apache version 2.4
    MySQL version 5.5
    Php version 5.6.11
    Media wiki version 1.26.2
    Zend OPCache and Memcached configured and enabled Devinthedark (talk) 22:08, 10 March 2016 (UTC)
    > I keep receiving bottlenecks in performance when searching/loading user-created pages
    All wiki pages are created by some user. So, do you have these issues on all pages? Or did you mean pages in the "User:" namespace? 87.123.46.149 (talk) 00:25, 11 March 2016 (UTC)
    I meant pages that are not pre-made as part of the media wiki installation process..
    pages like special:upload exist and work fine, but the minute I attempt to create & load a page, for example, called democontent it struggles and takes ages to load the page. Devinthedark (talk) 05:35, 11 March 2016 (UTC)

    Error with Image Uploads

    Hello

    I have an error with images that has just appeared in a Wiki that was previously working OK (wiki details at bottom). I have been loading images up without a problem, and the system has been able to create thumbnails and store the main images without a problem. Now, if I try and upload an image, the wiki jumps to a 404 Error page that says the following:

    Not Found

    The requested URL /File:ImageName.jpg was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    I have also noticed that now even images that had previously loaded happily appear to be missing. If I click on a thumbnail of a image from a previous upload, I get the same 404 message as above? I have looked in the root files via FTP and the images are still in the system. They just aren't showing?

    Any ideas?

    Nigel

    MediaWiki Version 1.23.3

    PHP 5.5.29 (cgi-fcgi)

    MySQL 5.6.23 Nigel Walley (talk) 16:52, 10 March 2016 (UTC)

    I've seen some other reports about people having problems accessing pages with file extensions in their name, like in your case, "File:ImageName.jpg", and that was caused by a server misconfiguration (no more details were said in the resolution). You can test if, for any particular page on your wiki that works, go to the URL bar and add a .jpg at the end. If it shows a server 404 error page then you have the same problem. Ciencia Al Poder (talk) 10:44, 11 March 2016 (UTC)
    That seems to be the case? But any idea on how to reconfigure the server or what has caused it? Nigel Walley (talk) 11:53, 11 March 2016 (UTC)
    You should probably ask a specific forum about that, we don't know how have you configured your server. This SO question seems related. Ciencia Al Poder (talk) 17:38, 11 March 2016 (UTC)

    network dude

    how to add ip address in network dude 45.118.164.115 (talk) 18:31, 10 March 2016 (UTC)

    What is network dude? 87.123.46.149 (talk) 18:39, 10 March 2016 (UTC)

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


    When uploading a sample SVG file to my MediaWiki installation (version 1.26.2), I see the following below the image:

    "Size of this preview: 750 × 600 pixels. Other resolution: 300 × 240 pixels.

    Original file ‎(SVG file, nominally 1,250 × 1,000 pixels, file size: 196 KB)

    This image rendered as PNG in other widths: 200px, 500px, 1000px, 2000px."

    The links in the first 2 lines work, whereas the links in the last line (which appear to be controlled by the 'SVGThumbs' class in MediaWiki:Common.js) do not. This initially led me to believe that image thumbnailing was (partly) failing for SVG images, but when I look on the server I see that thumbnails did get generated, except in different sizes than expected by the Wiki: 120, 300, 450, 600, 750, 1125, and 1500 pixels wide (these files load fine when navigated to manually).

    The same file on Commons (I pulled it from there as a test) shows the following "Other resolutions": 300 × 240 pixels | 600 × 480 pixels | 960 × 768 pixels | 1,280 × 1,024 pixels | 1,250 × 1,000 pixels. (not sure those sizes make sense), AND the same "other widths" as my Wiki. On Commons the links in the third line do work, as the server creates the thumbnails on the fly, which my server doesn't.

    I can probably work around this by removing the 'SVGThumbs' class in MediaWiki:Common.js, but is there a better way, one that actually makes use of the other thumbnails sitting on the server?

    Thanks

    Alex Naersjoen (talk) 19:08, 10 March 2016 (UTC)

    You can enable a 404 handler for thumbs to generate them on the fly. Otherwise, I don't know where those 120, 300, 450, 600, 750, 1125, and 1500px dimensions come from. I haven't seen any configuration variable for them and I doubt they could be hardcoded in some way. Maybe they were generated by previewing the image inserted on a page in your wiki at those sizes? Ciencia Al Poder (talk) 10:40, 11 March 2016 (UTC)
    >You can enable a 404 handler for thumbs to generate them on the fly.
    Thank you, that works!
    >Maybe they were generated by previewing the image inserted on a page in your wiki at those sizes?
    No, the thumbnails were created at the same time as the original was uploaded. The default MediaWiki configuration does not create any thumbnails on the fly, on my Cent OS server at least (i.e. If you manually try to retrieve images that did not get created at upload time, it results in an error). The size of the thumbnails that do get generated appears to be dependant on the size of the original, i.e. they are not consistent.
    There is still the issue of thumbnails getting generated but not linked to from the File: page, but the 200px, 500px, 1000px, 2000px links are working, so I am marking this as resolved.
    Thanks for your help! Naersjoen (talk) 16:16, 11 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Import TXT 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.


    Hello, I have a archive with many categorized TXT files, how I can import automatically in Mediawiki? Thank you. sky (talk) 21:29, 10 March 2016 (UTC)

    You can use the maintenance script edit.php to add the contents from your text files into your wiki.
    The manual page of that script has a few examples, one of them showing how you can use it to import contents from a text file. Basically you would use edit.php once per file or per wiki page in order to create the according page. 87.123.46.149 (talk) 00:01, 11 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Create account disabled?

    Hello,

    I have properly edited my LocalSettings.php to allow anyone to create an account by adding:

    $wgGroupPermissions['*']['createaccount'] = true;

    However, I am not seeing the "Create account" link at the top and when I click "Log in", I do not have the option to create an account either. Currently I am the only user. The wiki is at www.thecure.wiki - thank you! Stillhouse (talk) 21:31, 10 March 2016 (UTC)

    you should be able to comment out that line in LocalSettings.php and have the Create Account link appear again. Devinthedark (talk) 22:05, 10 March 2016 (UTC)
    According to your Special:ListGroupRights page in your wiki, the createaccount right currently is not granted to the group "*". So the line in LocalSettings.php for whatever reason does not kick in. Maybe it was added in a comment as Devinthedark suggested, maybe it later in the file gets set to false again or something else... 87.123.46.149 (talk) 00:05, 11 March 2016 (UTC)
    I tried commenting out and tried searching for createaccount later in the file, but nothing. I'm at a loss at this point. Do you mind if I show you my LocalSettings.php? Maybe you can see something I'm not coming across. I'm a novice at this. Thank you much!
    <?php
    # This file was automatically generated by the MediaWiki 1.24.4
    # installer. If you make manual changes, please keep track in case you
    # need to recreate them later.
    #
    # See includes/DefaultSettings.php for all configurable settings
    # and their default values, but don't forget to make changes in _this_
    # file, not there.
    #
    # Further documentation for configuration settings may be found at:
    # https://www.mediawiki.org/wiki/Manual:Configuration_settings
    # Protect against web entry
    if ( !defined( 'MEDIAWIKI' ) ) {
    exit;
    }
    ## Uncomment this to disable output compression
    # $wgDisableOutputCompression = true;
    $wgSitename = "Forever";
    ## The URL base path to the directory containing the wiki;
    ## defaults for all runtime URL paths are based off of this.
    ## For more information on customizing the URLs
    ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
    ## https://www.mediawiki.org/wiki/Manual:Short_URL
    $wgScriptPath = "";
    $wgScriptExtension = ".php";
    ## The protocol and server name to use in fully-qualified URLs
    $wgServer = "http://www.thecure.wiki";
    ## The relative URL path to the skins directory
    $wgStylePath = "$wgScriptPath/skins";
    ## The relative URL path to the logo.  Make sure you change this from the default,
    ## or else you'll overwrite your logo when you upgrade!
    $wgLogo = "{$wgScriptPath}/the_cure_logo_peq.gif";
    ## UPO means: this is also a user preference option
    $wgEnableEmail = true;
    $wgEnableUserEmail = true; # UPO
    $wgEmergencyContact = "benjamin.londa@gmail.com";
    $wgPasswordSender = "benjamin.londa@gmail.com";
    $wgEnotifUserTalk = false; # UPO
    $wgEnotifWatchlist = false; # UPO
    $wgEmailAuthentication = true;
    ## Database settings
    $wgDBtype = "mysql";
    $wgDBserver = "mysql.thecure.wiki";
    $wgDBname = "thecure_wiki";
    $wgDBuser = "thecurewiki";
    $wgDBpassword = "^bBhiXJm";
    # MySQL specific settings
    $wgDBprefix = "";
    # MySQL table options to use during installation or update
    $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
    # Experimental charset support for MySQL 5.0.
    $wgDBmysql5 = true;
    ## Shared memory settings
    $wgMainCacheType = CACHE_NONE;
    $wgMemCachedServers = array();
    ## To enable image uploads, make sure the 'images' directory
    ## is writable, then set this to true:
    $wgEnableUploads = true;
    $wgUseImageMagick = true;
    $wgImageMagickConvertCommand = "/usr/bin/convert";
    # InstantCommons allows wiki to use images from http://commons.wikimedia.org
    $wgUseInstantCommons = true;
    ## If you use ImageMagick (or any other shell command) on a
    ## Linux server, this will need to be set to the name of an
    ## available UTF-8 locale
    $wgShellLocale = "en_US.utf8";
    ## If you want to use image uploads under safe mode,
    ## create the directories images/archive, images/thumb and
    ## images/temp, and make them all writable. Then uncomment
    ## this, if it's not already uncommented:
    #$wgHashedUploadDirectory = false;
    ## Set $wgCacheDirectory to a writable directory on the web server
    ## to make your wiki go slightly faster. The directory should not
    ## be publically accessible from the web.
    #$wgCacheDirectory = "$IP/cache";
    # Site language code, should be one of the list in ./languages/Names.php
    $wgLanguageCode = "en";
    $wgSecretKey = "26d260a5ca9e55bea63794b484d8c56ccb8315966bfc174667f87a7d8eceda0e";
    # Site upgrade key. Must be set to a string (default provided) to turn on the
    # web installer while LocalSettings.php is in place
    $wgUpgradeKey = "eeec0fa1984e7fe4";
    ## For attaching licensing metadata to pages, and displaying an
    ## appropriate copyright notice / icon. GNU Free Documentation
    ## License and Creative Commons licenses are supported so far.
    $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
    $wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
    $wgRightsText = "Creative Commons Attribution-ShareAlike";
    $wgRightsIcon = "{$wgResourceBasePath}/resources/assets/licenses/cc-by-sa.png";
    # Path to the GNU diff3 utility. Used for conflict resolution.
    $wgDiff3 = "/usr/bin/diff3";
    # The following permissions were set based on your choice in the installer
    $wgGroupPermissions['*']['createaccount'] = true;
    ## Default skin: you can change the default skin. Use the internal symbolic
    ## names, ie 'vector', 'monobook':
    $wgDefaultSkin = "vector";
    # Enabled skins.
    # The following skins were automatically enabled:
    require_once "$IP/skins/CologneBlue/CologneBlue.php";
    require_once "$IP/skins/Modern/Modern.php";
    require_once "$IP/skins/MonoBook/MonoBook.php";
    require_once "$IP/skins/Vector/Vector.php";
    # Enabled Extensions. Most extensions are enabled by including the base extension file here
    # but check specific extension documentation for more details
    # The following extensions were automatically enabled:
    require_once "$IP/extensions/Cite/Cite.php";
    require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";
    require_once "$IP/extensions/Gadgets/Gadgets.php";
    require_once "$IP/extensions/ImageMap/ImageMap.php";
    require_once "$IP/extensions/InputBox/InputBox.php";
    require_once "$IP/extensions/Interwiki/Interwiki.php";
    require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";
    require_once "$IP/extensions/Nuke/Nuke.php";
    require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";
    require_once "$IP/extensions/PdfHandler/PdfHandler.php";
    require_once "$IP/extensions/Poem/Poem.php";
    require_once "$IP/extensions/Renameuser/Renameuser.php";
    require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";
    require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
    require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";
    require_once "$IP/extensions/WikiEditor/WikiEditor.php";
    require_once "$IP/extensions/Scribunto/Scribunto.php";
    $wgScribuntoDefaultEngine = 'luastandalone';
    $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 500715200; # bytes
    $wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 500715200; # bytes
    $wgMaxShellMemory = 204800; # in KB
    $wgFileExtensions[] = 'svg';
    $wgAllowTitlesInSVG = true;
    require_once "$IP/extensions/EmbedVideo/EmbedVideo.php";
    # End of automatically generated settings.
    # Add more configuration options below.
    require_once(“$IP/extensions/ConfirmAccount/ConfirmAccount.php”);
    $wgConfirmAccountContact = ‘thecurewiki@gmail.com’; Stillhouse (talk) 15:24, 11 March 2016 (UTC)
    I see nothing suspecious in that file. Should work. What however _is_ strange are the quotation marks in the last two lines. Make sure to really use straight quotes as you are doing for the other lines as well!
    I wonder if these wrong quotes should not result in a syntax error. Are you sure, you are editing the right LocalSettings.php? 87.123.7.7 (talk) 15:45, 11 March 2016 (UTC)
    I checked, and yes - only one LocalSettings.php file in my root directory. I'll try changing the quotes...? Stillhouse (talk) 17:23, 11 March 2016 (UTC)

    Forbidden 403 on user page

    A user of MediaWiki on a site that I support complained about this. I created a user ID (I don't normally use the wiki) and found that clicking on any user name in the user list (including my own, as a Sysop) throws a 403. I could find no reference to this particular problem, so I updated MediaWiki to 1.26.2 (from 1.23.6) in the hopes that the newer version would not have this problem, but it persists.

    Any ideas? TeezerApoe4 (talk) 21:45, 10 March 2016 (UTC)

    You mean what you get is an error 403 in the form of a server error page?
    MediaWiki does not produce server error pages; even if this error happened inside MediaWiki (which I doubt), then you should still see some kind of wiki page. My guess is that this is caused by something in the server configuration. E.g. by some setting in httpd.conf or .htaccess... 87.123.46.149 (talk) 23:56, 10 March 2016 (UTC)
    Thank you for the redirect.
    It turned out to be a patch that the host had created to block SQL injection attacks. TeezerApoe4 (talk) 17:25, 11 March 2016 (UTC)
    @TeezerApoe4 do you have more information on this & were you able to get it resolved? I'm getting the same issue with a recent installation and would like to fix it if possible :) Pmusser (talk) 22:14, 27 March 2017 (UTC)
    I did get it resolved by removing the patch. The host added the patch out of an excess of caution, but no actual threat. Anyway, the patch was in the code that called MediaWiki, not MediaWiki itself. Unfortunately, I didn't keep any specific documentation. TeezerApoe4 (talk) 22:41, 27 March 2017 (UTC)
    I just had the same problem on a hosted site, administering a mediawiki installation through cpanel. I linked here when I complained; the hoster fixed it and wrote: "The 403 error looks like it was being caused by our security software, and clicking on the username link was triggering a false positive. I've just whitelisted the rule, and tested the site to confirm it's loading now." So it's still happening, and there's still no specific documentation, sorry. 150.101.202.198 (talk) 10:30, 20 March 2018 (UTC)
    I was having this problem as well.
    It turned out to be apache modsecurity OtherApps conf. Disabling this rule should solve the problem 2600:1700:6800:65D0:1DC3:42B3:A5F9:53AD (talk) 03:53, 4 June 2020 (UTC)

    <code> blocks on every pasted code entry

    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.


    Been migrating a wiki, from several places including github etc. No matter what I do I have very inconsistent code formatting.

    I almost always get a lot of <code> tags displaying on the published page. See this as an example A-zndr (talk) 22:05, 10 March 2016 (UTC)

    Basically, if you have code tags around your code blocks, then this is an error in your wiki text. A code block in wiki text can be created in different ways:
    • By indenting a line with at least one space. This will make it be parsed like a code line, without the need for any markup at all. It will create preformatted text.
    • With Extension:SyntaxHighlight_GeSHi, by adding either "source" or better "syntaxhighlight" tags around the line/lines. This does not only show the text as being preformatted, but it also allows syntaxhighlighting and much more.
    There is an extension, Extension:Code, which allows MediaWiki to recognize code tags in order to make MediaWiki show a code block. I have not used it myself; according to its wiki page, it looks like it basically uses the GeSHi highlighter and adds code tags to its rendering. This should basically work, but I have not tested it nd possibly it is not secure. I would prefer the other, following option.
    Without an extension, the solution is to remove the code tags from your pages or to replace them with syntaxhighlight tags. This will then make use of the Extension:SyntaxHighlight_GeSHi and will let you use all kinds of highlighting, which GeSHi supports. I think this would be the option, I would go with. 87.123.46.149 (talk) 00:18, 11 March 2016 (UTC)
    I think the issue is I'm pasting in formatted code blocks and it's adding <syntaxhighlight lang='text'><code> to all of it. A-zndr (talk) 01:26, 11 March 2016 (UTC)
    If you only normally indent your lines, MediaWiki should not add something like that. 87.123.46.149 (talk) 01:47, 11 March 2016 (UTC)
    Are you editing with VisualEditor? I would expect it to copy over formatting like that, and perhaps it is doing it incorrectly, in which case you should file a bug. 121.214.143.90 (talk) 03:04, 11 March 2016 (UTC)
    I ended up installing the find and replace extension and just adjusted all the <pre><code> </code></pre> and replacing with <pre></pre> A-zndr (talk) 23:30, 11 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Getting the alt text for an image

    I'm using the MediaWiki API queries to get information about images on Wikipedia pages, but I couldn't get the alt text for an image. Is there any way to get this information? Thanks! 131.107.0.95 (talk) 09:39, 11 March 2016 (UTC)

    You can't get that information from API, unless you get the wikitext or the parsed HTML and find the image inside it to extract that information (parsing the wikitext or HTML yourself, of course). Ciencia Al Poder (talk) 10:50, 11 March 2016 (UTC)

    How do I delete a cover I uploaded.

    Hi, I uploaded a pdf cover for Story of Thor 2 but got a warning message about pdf's containing sensitive information. I couldn't figure out how to delete the upload so I uploaded a jpg version of the file thinking that it would overwrite the pdf. There are now two version of my file uploaded which both say that they are containing errors. I want to delete them but I can't figure out how. Please help. 194.168.217.157 (talk) 12:12, 11 March 2016 (UTC)

    Ask a wiki administrator, if he can delete the uploaded files. 87.123.7.7 (talk) 12:39, 11 March 2016 (UTC)

    how to find wiki-articles that reference to a geografic location

    Hello,

    how can I give the API the information that the artical has to have information about a geografic location ? 188.102.78.226 (talk) 13:32, 11 March 2016 (UTC)

    Beginner question?

    Hi,

    would it be possible to know how to create a same page link table.

    Yes there's the top page content reference link section. I would Like to do same by inserting a table and having link or reference to lower parts on the page.

    Any link or reference for this?

    A big thank you 206.172.0.205 (talk) 17:08, 11 March 2016 (UTC)

    SharePoint as a Wiki

    Hi all... I need to make the case for MediaWiki as a KM tool as opposed to SharePoint.

    Instead of reinventing the wheel, I would love to have some resources so I can fight the good fight. Would really appreciate any ideas you may have.

    Thank you!

    ps: Apologies if this is the wrong channel. PaleoIsh (talk) 17:41, 11 March 2016 (UTC)

    I'm on the tail end of a MW implementation project which started out as "Evaluate a bunch of options including SharePoint". We spun up a 'wiki' using SharePoint enterprise wiki extension. Its... it's not a wiki. I'd summarize the contrast as: MediaWiki never gets in your way while sharepoint can't help but trip over it's feet if you try and use it for wiki.About the only thing that SharePoint allowed us to do easier than MediaWiki was AD integration, but SimpleSAMLPHP wasn't that hard to setup and now that it's running everything is smooth.
    I couldn't find much literature comparing the two platforms but I can certainly share my complaints from my test run with SP:
    • The editor is -okay-, it's Word-like which has pros and cons. One big pro is that you can copy/paste out of Microsoft products. Unfortuantely it also brings the difficulties of such an editor. When formatting doesn't go right it's significantly harder to fix. I'd much rather write with wiki-markup.
    • Handling links in SharePoint is more difficult. You have to know the full document path or browse to it. In contrast to using a link tag with a page name this is cumbersome
    • If you edit source SharePoint is HTML only. I don't know HTML, but I can certainly write wiki markup
    • I don't like SharePoints folder structure for organizing content. It makes sense for files, not so much for text-pages
    • I couldn't find any decent reporting options for sharepoint for usage stats
    • I couldn't find any decent documentation on enterprise wiki. MediaWiki is very well documented in comparison
    One thing we hadn't considered which has become a huge plus: MediaWiki is open source and extensible. We've already written up a number of custom extensions to do things we hadn't considered.
    We reached out to Microsoft and the SharePoint team to see if they would work with us on developing Enterprise wiki to meet our needs, since we already have SharePoint licenses. We were told this isn't the use case they are targeting. 167.220.24.146 (talk) 21:25, 11 March 2016 (UTC)
    "but SimpleSAMLPHP wasn't that hard"
    See Extension:LDAP Authentication Gerdesj (talk) 01:53, 15 March 2016 (UTC)

    [8d218496] 2016-03-11 16:37:57: Excepção fatal do tipo "MWException"

    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 lowered the MediaWiki software, I installed on my computer with Ubuntu, but when I do an upload of the image into my project it gives the following message above, how do I fix this? WikiUser22222 (talk) 20:45, 11 March 2016 (UTC)

    You need to set $wgShowExceptionDetails to true in order to see a detailed error message. Once you get it, you can search for the error, and if you don't find a solution feel free to provide details of the error here. Ciencia Al Poder (talk) 21:14, 13 March 2016 (UTC)
    Bueno, yo pongo $wgShowExceptionDetails=TRUE y el mensaje que me mostró fue esto.
    *****************************************************************************************************************************************************************************
    [d680260b] /mediawiki/mediawiki-1.26.2/index.php/Especial:Carregar_arquivo MWException from line 1868 of /var/www/html/mediawiki/mediawiki-1.26.2/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Brasil.PNG.'
    Backtrace:
    #0 /var/www/html/mediawiki/mediawiki-1.26.2/includes/filerepo/file/LocalFile.php(1147): LocalFile->lock()
    #1 /var/www/html/mediawiki/mediawiki-1.26.2/includes/upload/UploadBase.php(708): LocalFile->upload(string, string, string, integer, array, boolean, User)
    #2 /var/www/html/mediawiki/mediawiki-1.26.2/includes/specials/SpecialUpload.php(486): UploadBase->performUpload(string, string, boolean, User)
    #3 /var/www/html/mediawiki/mediawiki-1.26.2/includes/specials/SpecialUpload.php(197): SpecialUpload->processUpload()
    #4 /var/www/html/mediawiki/mediawiki-1.26.2/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)
    #5 /var/www/html/mediawiki/mediawiki-1.26.2/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)
    #6 /var/www/html/mediawiki/mediawiki-1.26.2/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)
    #7 /var/www/html/mediawiki/mediawiki-1.26.2/includes/MediaWiki.php(714): MediaWiki->performRequest()
    #8 /var/www/html/mediawiki/mediawiki-1.26.2/includes/MediaWiki.php(508): MediaWiki->main()
    #9 /var/www/html/mediawiki/mediawiki-1.26.2/index.php(41): MediaWiki->run()
    #10 {main}
    *****************************************************************************************************************************************************************************
    ¿Qué hago ahora? WikiUser22222 (talk) 21:11, 18 March 2016 (UTC)
    Te respondo en castellano pues quizá te sea más fácil entenderlo, pero si hay problema escribo en inglés. Este problema es generalmente de permisos en los directorios. Revisa el directorio "/images" dentro del directorio de instalación (o si lo has cambiado, el que corresponda) si tiene permisos apropiados para que el servidor pueda escribir. Para ver si se trata de este problema, puedes dar temporalmente permisos totales (chmod -R 777 /var/www/html/mediawiki/mediawiki-1.26.2/images) y probar de nuevo. Si se pudo subir el archivo, debes ajustar los permisos a lo mínimo necesario para poder subir archivos, seguramente ajustando el propietario del directorio (con chown) para que coincida con el del archivo que se ha subido y limitando los permisos a 700.
    Si necesitas más detalles de qué directorio exactamente está tratando de escribir sin éxito, configura un archivo de log en Manual:$wgDebugLogFile y revisa la información que genera al tratar de subir un archivo. Ciencia Al Poder (talk) 12:51, 19 March 2016 (UTC)
    Gracias por el dato, yo conseguido solucionar el problema. WikiUser22222 (talk) 16:03, 19 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Periodic image upload or retrieval problems

    I'm having a problem where uploaded images are sometimes temporarily unavailable, despite the file being on the server and accessable via the direct path. Repro would be:

    1. Upload an image
    2. Go to Special:ListFiles - the image will have an entry in the table, thumbnail will show "filename.png"
    3. Click the link that takes you to 'File:filename.png'

    What happens: "No file by this name exists, but you can upload it"

    If you go back to Special:ListFiles and click on the File link to "https://wiki/images/5/57/filename.png", the image displays just fine.

    After some period of time (usually 1-5 hours) the problem corrects itself.

    Some other details:

    • This doesn't impact all file uploads, or all file uploads of a specific type
    • Files uploaded immediately after a problem file will often work just fine
    • Problem is very intermittent, we have > 250 images hosted and only about 10 have been impacted

    Version info:

    MediaWiki 1.25.3
    PHP 5.6.0 (cgi-fcgi)
    MySQL 5.7.9-log

    I can't link to the site itself since it's behind ADFS. I have enabled the debug toolbar and have a comparison of a working image and a failed one but I can't make sense of it. 167.220.24.146 (talk) 21:54, 11 March 2016 (UTC)

    mwdumper 1.25 fails

    Hello,

    I am trying to import some pages with mwdumper 1.25, but it fails. Sometimes a I get a few pages imported, but mostly nothing. The databases are empty and a also run the rebuild script.

    So when I java -jar mwdumper-1.25.jar --format=sql:1.5 /tmp/wikiclon/dewiki-20160305-pages-articles.xml.bz2 | mysql -u root -p my_wiki I get the error ERROR 1054 (42S22) at line 86: Unknown column 'page_counter' in 'field list'.

    Does anybody may help me?

    Greetings

    Der Buckesfelder Der Buckesfelder - Talk - Valuation - E-mail 12:55, 13 March 2016 (UTC)

    From what you posted, it is not completely clear to me what you are trying to do. However, the hitcounter functionality has been removed prior to MediaWiki 1.25. In MediaWiki 1.26, also the database related parts of this feature -the hitcounter table and the column page_counter from the page table- have been removed.
    So, if you have a dump, which still contains these old information (hitcounter table, page.page_counter column), you will not be able to import them into an existing database of MediaWiki 1.26 or newer.
    A workaround is to check the database of MediaWiki 1.24 and to add the hitcounter table and the missing column in the page table again. Then you should be able to import the dump.
    The right solution however is to properly migrate the source of the dumpfile - the removed table/column should also be removed in the source: If the dump should be compatible with MediaWiki 1.26, then the removed table/column has to be removed in the source of the dump as well. 87.123.18.176 (talk) 13:45, 13 March 2016 (UTC)
    Are you sure you've downloaded the latest version of MWDumper source code and compiled it? This should have been resolved by T120665 Ciencia Al Poder (talk) 21:08, 13 March 2016 (UTC)

    Modify a page using a button (MW 1.26.2)

    I'd like to create a button on a page that runs some script to change the contents of the current page.

    My specific goal at the moment involves using Semantic MediaWiki to keep track of the status of various projects, with a property Is Completed. I'd like to add a button to the project template to change

    {{#set:Is Completed=false}}

    to

    {{#set:Is Completed=false}}

    {{set:Completion Date=<date>}}

    and back again. Devin.micheal.james.baillie (talk) 16:58, 13 March 2016 (UTC)

    Is it possible to change the logo (the woodmark) only for certain pages? Can we apply the specific logo to its sub-pages? can we apply it to the pages in a category? CreativeC (talk) 20:03, 13 March 2016 (UTC)

    Collapse [hide] and un-collapse [show] not working in navbox

    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 again, I inherited these templates on a wiki I am working on and the templates are well above my abilities, but hopefully this is a quick look for someone.

    When [hide] or [show] are clicked today the view is moved to the top of the page and there is no collapse or un-collapse. How can the hide/show functionality be replaced (or fixed) on this navbox: http://www.wiki.cataclysmdda.com/index.php?title=Template:Vehicle?

    I think it is tied to these templates:

    http://www.wiki.cataclysmdda.com/index.php?title=Template:Navbox

    http://www.wiki.cataclysmdda.com/index.php?title=Template:Navbar Mattamueizzle (talk) 04:59, 14 March 2016 (UTC)

    The collapsible feature on your wiki is provided by a piece of javascript located in MediaWiki:Common.js, but it isn't working properly.
    Instead of trying to fix that script, I'd suggest changing the template to use the collapsible functions that are now part of MediaWiki. See Manual:Collapsible elements. Basically, find where the class="collapsible" is used on your templates and change collapsible with mw-collapsible and it should work. Ciencia Al Poder (talk) 10:48, 14 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    issue with wikitexteditor extension

    we have upgraded mediawiki from 1.23.5 to 1.26.2.

    we are having issues with wikitexteditor. we are unable to toggle between wikitexteditor and rich text editor. However, after the page refresh, wikitexteditor opens up.

    can any one help me with this issue. Mahantesh615109 (talk) 10:34, 14 March 2016 (UTC)

    By "rich text editor" do you mean Extension:WikiEditor?
    If so, then you have to add the code lines in LocalSettings.php documented here: Extension:WikiEditor/Configuration, to enable the use of Extension:WikiEditor by default.
    To get back to the old wikitext editor (i.e. the one with lesser features) you will just need to uncheck "Enable enhanced editing toolbar" in the Editing tab of the user Special:Preferences. AhmadF.Cheema (talk) 17:14, 14 March 2016 (UTC)
    yes. there is an issue with Extension:WikiEditor.
    whenever we edit pages in mediawiki, upon clicking link Mahantesh615109 (talk) 10:58, 17 March 2016 (UTC)
    What is the "rich text editor" exactly in your case? Malyacko (talk) 11:06, 17 March 2016 (UTC)
    Is there any way I can put the screenshots here or upload the document with issue Mahantesh615109 (talk) 12:19, 17 March 2016 (UTC)
    I am unable to toggle between wikitexteditor and rich text editor in the mediawiki version 1.26.2 Mahantesh615109 (talk) 12:56, 17 March 2016 (UTC)
    There are multiple ways to do it.
    I suggest you use https://img42.com for temporary online image storage. Drag and drop images and reply with the URL of the uploaded image.
    By-the-way, by "rich text editor" you don't mean the Extension:VisualEditor, do you? Because that is an entirely different and much more complicated problem. AhmadF.Cheema (talk) 13:18, 17 March 2016 (UTC)
    we are not using Extension:VisualEditor. Mahantesh615109 (talk) 13:41, 17 March 2016 (UTC)
    we are using the extension Extension: Mahantesh615109 (talk) 13:47, 17 March 2016 (UTC)
    From what I understand, you want this:
    http://www.tiikoni.com/tis/view/?id=52d35de
    but you are getting this:
    http://www.tiikoni.com/tis/view/?id=bf3ec1e
    Have you added the following lines in LocalSettings.php?
    # Enables use of WikiEditor by default but still allows users to disable it in preferences
    $wgDefaultUserOptions['usebetatoolbar'] = 1;
    # Enables link and table wizards by default but still allows users to disable them in preferences
    $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
    # Displays the Preview and Changes tabs
    $wgDefaultUserOptions['wikieditor-preview'] = 1;
    
    Another possible problem could be slow internet connection, because it takes some bandwidth to load the enhanced WikiEditor, and if it takes too long the toolbar does not get loaded at all. AhmadF.Cheema (talk) 22:51, 17 March 2016 (UTC)
    Mahantesh615109 (talk) 10:38, 18 March 2016 (UTC)
    I have added the lines in the localsettings.php, but no luck.
    I have uploaded the screenshot at http://www.tiikoni.com/tis/view/?id=b546198 .on clicking the link [Show WikiTextEditor], nothing really happens.
    Ideally after clicking the [Show WikiTextEditor], it should toggle to wikieditor section. Mahantesh615109 (talk) 11:13, 18 March 2016 (UTC)
    What you have been using is the Extension:WYSIWYG not Extension:WikiEditor.
    The heading of your topic should've been "issue with Extension:WYSIWYG", that is why there has been so much confusion.
    The code lines I gave, will not work here, those are for Extension:WikiEditor, which apparently you don't have installed.
    Apparently your problem is not new, this is a known bug; check out the discussion here: [[Extension talk:WYSIWYG/2015#h-WYSIWYG_1.5.6_0_[B551+29.11.2015]_is_having_problems_on_mediawiki_1.26.x_(fixed-2015-12-14T16:52:00.000Z]]
    May I ask which version of WYSIWYG are you using? Possibly you are using an older version.
    The latest version and its instructions are located here: https://github.com/Mediawiki-wysiwyg/WYSIWYG-CKeditor/tree/wysiwyg_mw126
    As, I am not personally using this extension, I doubt if I can be of much help here. AhmadF.Cheema (talk) 14:21, 18 March 2016 (UTC)

    Anti screen capture

    Hello. Is there a way to prevent screen capturing on a mediawiki wiki? Maybe through a script in common.js? Anything would be welcome, really. 193.0.225.211 (talk) 13:53, 14 March 2016 (UTC)

    No there is not. If there really was a working way to prevent the user from recording things, which he has on his screen, music and movie industry would be really happy about it. But as long as the information reaches the client, he basically can do with it whatever he wants to. 87.123.50.177 (talk) 16:42, 14 March 2016 (UTC)
    The whole point of MW is the dissemination of information. What you are requesting is effectively anathema to the project.
    Oh, I have a phone with a camera in it .... Gerdesj (talk) 01:36, 15 March 2016 (UTC)
    If it can be displayed/rendered by a browser, it can be copied Ciencia Al Poder (talk) 10:23, 15 March 2016 (UTC)

    what the heck is this call or what option or coding it is

    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.


    LOL

    I been trying for over an hour to find how it is done, I am sure it is simple but i cant ut the finger on it

    http://www.sarna.net/wiki/Technical_Readout:_3039

    look at the link, how do you make that right side Box, i try a table but it do not work well, is it an extension??

    I thank You for any assistance you can provide..

    I just start a few days ago working with Mediawiki, it is a great wiki system, love it,

    Norm 207.164.179.146 (talk) 15:42, 14 March 2016 (UTC)

    I found Infobox4all but the download is not working.,,
    I saw many articles I have no clue where to start, anyone know a tutorial on infobox

    )

    Vindicatorix (talk) 17:12, 14 March 2016 (UTC)
    LOL .. too complicate for me, or more too much info dont know where to start and here it take way too much time for a reply, going back to my Joomla template, less complicate
    thanxs for the help anyway Vindicatorix (talk) 18:10, 14 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Hiding row in template table if empty cell?

    Mediawiki Version 1.24.1.

    I'm making a wiki for my D&D stuff, and I want an all-encompassing template for homebrew NPC/Monster stat blocks. My base table is below (without any conditional stuff)

    But quite a lot of these aren't featured in every stat block, so I want to remove some rows if the template block isn't filled. I've googled and read so much stuff, but there's always one little thing that weirds out.

    One of these three should work, but for some reason I can't make them click, I've probably looked at it so long that I've become markup blind.

    So if I in the below base table want the rows for {{{savingthrows}}}, {{{immunities}}}, {{{skills}}}, {{{senses}}}, {{{languages}}} and {{{legendaryactions}}} to be hidden if empty, what do I do?

    {| class="wikitable"

    !colspan="6" |{{{Namn}}}

    |-

    |colspan="6" |''{{{sizeclassalign}}}''

    |-

    !colspan="3" |AC |colspan="3" |{{{ac}}}

    |-

    !colspan="3" |HP

    |colspan="3" |{{{hp}}}

    |-

    !colspan="3" |Speed

    |colspan="3" |{{{speed}}}

    |-

    ! STR ! DEX ! CON ! INT ! WIS ! CHA

    |-

    | {{{str}}} | {{{dex}}} | {{{con}}} | {{{int}}} | {{{wis}}} | {{{cha}}}

    |-

    |colspan="6" |'''Saving Throws''' {{{savingthrows}}}

    |-

    |colspan="6" |'''Immunities''' {{{Immunities}}}

    |-

    |colspan="6" |'''Skills''' {{{skills}}}

    |-

    |colspan="6" |'''Senses''' {{{senses}}}

    |-

    |colspan="6" |'''Languages''' {{{languages}}}

    |-

    |colspan="6" |'''Challenge''' {{{challenge}}}

    |-

    |colspan="6" | {{{specabi}}}

    |-

    !colspan="6" |Actions

    |-

    |colspan="6" |{{{actions}}}

    |-

    |colspan="6" |'''Legendary Actions'''

    |-

    |colspan="6" |{{{legendaryactions}}}

    |-

    |colspan="6" |{{{misc}}} – {{{kilde}}}

    |} Tanketom (talk) 18:15, 14 March 2016 (UTC)

    The solution is to wrap those rows inside {{#if: }} parser functions. See also Project:Support desk/Flow/2016/03#h-Infobox_vertical_alignment-2016-03-07T21:10:00.000Z for a workaround of a vertical space problem when using {{#if: }} to hide several consecutive rows Ciencia Al Poder (talk) 20:06, 14 March 2016 (UTC)
    Yes, I'm aware of the if parser functions, but they're the ones I haven't been able to get to work.
    I manage to get one working, using this one (Plan A from my link):
    {{#if:{{{savingthrows|}}} |<tr><th>Saving Throws</th><td>{{{savingthrows}}}</td></tr>}}
    But when I do several consecutively, they malfunction – even when I wrap the gap with the HTML comment like in your example.
    {{#if:{{{savingthrows|}}}
    |<tr><th>Saving Throws</th><td>{{{savingthrows}}}</td></tr>}}{{#if:{{{immunities|}}}
    |<tr><th>Immunities</th><td>{{{immunities}}}</td></tr>}}{{#if:{{{skills|}}}
    |<tr><th>Skills</th><td>{{{skills}}}</td></tr>}}{{#if:{{{senses|}}}
    |<tr><th>Senses</th><td>{{{senses}}}</td></tr>}}{{#if:{{{languages|}}}
    |<tr><th>Languages</th><td>{{{languages}}}</td></tr>}}
    Again, I think I've gone blind – what am I doing wrong? Tanketom (talk) 21:26, 14 March 2016 (UTC)
    Strike that, it didn't work on its own either. Tanketom (talk) 22:24, 14 March 2016 (UTC)
    I seem to have gotten it to work with the Plan C – not perfect, but better than nothing. Not really many places that doesn't show CSS these days. Tanketom (talk) 22:34, 14 March 2016 (UTC)

    User Talk Page - Category: Pages with broken maps

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


    My (User talk:Gerdesj) page has developed a smart new (redlink) Category: "Pages with broken maps". I think it is to do with the news posted on there relating to Kartographer (I subscribe to tech news). Gerdesj (talk) 01:20, 15 March 2016 (UTC)

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

    File Upload Email Notification

    Hi

    I am new to mediawiki development and php. I want my wiki to notify me through email when a user uploads a file! But I am facing issues receiving email from wiki.

    $wgEmergencyContact = "***@gmail.com";

    $wgPasswordSender = "***@gmail.com";

    $wgEnotifUserTalk = true; # UPO

    $wgEnotifWatchlist = true; # UPO

    $wgUsersNotifiedOnAllChanges = array('*');

    $wgEmailAuthentication = true;

    $wgSMTP = array(

    'host'     => "gmail.com",

    'IDHost'   => "localhost",

    'port'     => 25,

    'auth'     => false,

    );

    Can any one help me with that Ayazaslam27 (talk) 11:06, 15 March 2016 (UTC)

    Please elaborate how you are "facing issues receiving email from wiki". Also, which MediaWiki version is this about? Malyacko (talk) 12:21, 15 March 2016 (UTC)

    Private Wiki user rights management

    Hello

    I build a private wiki. The wiki has different standard userrights and roles. Admin, all user, and so on.

    How can I define my own custom role. The plan is to have 3 roles in my wiki. I add each role 3-4 users. Users are in role 1 can't see content from users in role 2 and so on. Is that even possible with mediawiki? If yes how?

    Can any one help me with that

    thx 81.200.198.20 (talk) 14:46, 15 March 2016 (UTC)

    I cannot locate a page I submitted.

    I created a page titled "Computer Services, Inc." and I am unable to located the contribution. Can someone please help me located the page? Victoria.bellino (talk) 15:37, 15 March 2016 (UTC)

    Look at your contributions, if it doesn't appear there, it may have been deleted following the deletion policy of the wiki Ciencia Al Poder (talk) 20:11, 15 March 2016 (UTC)

    Comparison with other wiki software

    How does MediaWiki compare with other wiki software? For example, Instiki is used on nLab, and has the following similarities to MediaWiki:

    • !redirects in Instiki is analogous to #REDIRECT in MediaWiki
    • Highlighted links with a question mark after them in Instiki are analogous to redlinks in MediaWiki
    • Using the "Change page name" checkbox in Instiki is analogous to moving a page in MediaWiki
    • !include in Instiki is analogous to transclusion in MediaWiki
    • The "Latest Revisions" or "Recently Revised" link in Instiki (e.g. https://ncatlab.org/nlab/latest_revisions on nLab) is analogous to Special:RecentChanges in MediaWiki
    • The Home Page in Instiki (e.g. https://ncatlab.org/nlab/show/HomePage on nLab) is analogous to the Main Page in MediaWiki
    • The "Linked from" list at the bottom of Instiki pages is analogous to Special:WhatLinksHere in MediaWiki
    • /list pages in Instiki are analogous to categories in MediaWiki
    • The "Edit", "Back in time", "See changes", and "History" links at the bottom of Instiki pages are analogous to the "Edit" link, "oldid" pages, "diff" pages, and "View history" link respectively in MediaWiki GTrang (talk) 00:02, 16 March 2016 (UTC)
    See wikipedia:Comparison of wiki software.
    You can also find useful http://www.wikimatrix.org/ to compare features of different engines Ciencia Al Poder (talk) 10:36, 16 March 2016 (UTC)

    MediaWiki internal error after changing directory to enable shorturl

    Original exception: [3fc8210f] /wiki/index.php?title=Hauptseite   MWException from line 365 of /homepages/0/d364056360/htdocs/wiki/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL) [1] (Link for whole Error Message)

    I tried to enable shorturl in my wiki, in order to do that the way I wanted it to be I changed the name of the directory from /wiki to /w and changed the $wgScriptPath in LocalSettings.php.

    Then I went on http://shorturls.redwerks.org and made the changes that were recommended [2] but after that all I got was an internel server error.

    So I reversed the changes.

    But now, all I get is a blank white page. Enabling $wgShowExceptionDetails gave me the Error Message above.

    Please, can anybody tell me what's going on? 217.186.217.242 (talk) 11:51, 16 March 2016 (UTC)

    ResourceLoader may still point to old filesystem path due to caching. Try truncating the msg_resource and msg_resource_links tables:
    -- Truncate message related caches
    TRUNCATE TABLE `msg_resource`;
    TRUNCATE TABLE `msg_resource_links`;
    
    note that your tables may have a prefix like "wiki_" or similar.
    In MediaWiki 1.25 and newer, running update.php should do this automatically. Ciencia Al Poder (talk) 20:42, 16 March 2016 (UTC)

    in my wiki site, when I use template:Fact, and the link display in '[' and ']' will lead user to wikipedia.

    in the template source, i find a inter-link as '[''[' Wikipedia:xxxxxx']'']', after delete the code 'Wikipedia' , it still open page to wikipedia, how can I make it link to my inter page? Redlz250 (talk) 12:30, 16 March 2016 (UTC)

    Installing Parsoid for VisualEditor on Windows

    I have been following the instructions on installing parsoid in windows here https://www.mediawiki.org/wiki/Parsoid/Developer_Setup#Windows_setup

    However i keep running into problems in getting it to run or link (Not really sure where i'm going wrong).

    I installed all the Prerequisite software fine (Git, VS2013 Express, Python27, NodeJS (v5.8.0)). Then moved on to Contextify. This seems fine only warnings i got were (I assume they are fine):

    npm WARN enoent ENOENT: no such file or directory, open 'C:\Program Files (x86)\

    nodejs\package.json'

    npm WARN nodejs No description

    npm WARN nodejs No repository field.

    npm WARN nodejs No README data

    npm WARN nodejs No license field.

    Parsoid installed fine as well. Pointed the LocalSettings.php and LocalSettings.js version in the parsoid folder to the same things (as Below)

    $wgVirtualRestConfig['modules']['parsoid'] = array('url' => 'http://mysite.com','domain' => 'mysite.com','prefix' => 'myWiki');
    

    AND

    parsoidConfig.setMwApi({ uri: 'http://mysite.com/api.php', domain: 'mysite.com', prefix: 'myWiki' });
    

    Running the Parsoid service seems fine too

    C:\inetpub\wwwroot\myWiki\parsoid>node bin\server.js

    [info][master][2796] initializing 7 workers

    [info][worker][5568] loading ...

    [info][worker][3516] loading ...

    [info][worker][5804] loading ...

    [info][worker][492] loading ...

    [info][worker][3868] loading ...

    [info][worker][4268] loading ...

    [info][worker][5828] loading ...

    [info][worker][4268] ready on :8000

    [info][worker][3516] ready on :8000

    [info][worker][5568] ready on :8000

    [info][worker][5804] ready on :8000

    [info][worker][492] ready on :8000

    [info][worker][3868] ready on :8000

    [info][worker][5828] ready on :8000

    but VisualEditor returns a Timeout error parsoidserver-http-error (curl error 28)

    Under the Special page: Version under the list of installed extensions only Visual Editor appears, not sure if parsoid should be as well.

    I've looked over the troubleshooting pages but can't see much in the way of a solution. Am i missing something blindingly obvious?

    Thanks,

    Josh Jsmith4c (talk) 12:46, 16 March 2016 (UTC)

    I know this is 2 years old but I guess you got to the bottom of this?
    What it looks like is that you had command prompt in the correct location to where Parsoid is (which you moved it to there I guess), then you ran "node bin\server.js" to get it running. But as soon as the CMD screen is closed then this error can occur, my question is how did you (if you worked it out) get Parsoid to continue running successfully to get this tool working? AdamLacey (talk) 15:42, 20 November 2017 (UTC)

    Can't remember my user name

    I can't remember my user name. How can I get this so I can login to my FTP account? I'm under the gun, so a fast response is appreciated. 2601:441:8200:8499:30E7:455A:DB6E:366 (talk) 15:24, 16 March 2016 (UTC)

    I expect that you are speaking about MediaWiki.
    If you remember an article, which you have edited, ou can find your username in the history of that article.
    Else, if you have provided an email address, you might use that email address to have MediaWiki send you a mail with your username in it through the "forgot my password" function.
    Usually there is no connection between FTP usernames and MediaWiki usernames. The one does not have to do with the other. 87.123.57.36 (talk) 15:36, 16 March 2016 (UTC)
    You can also browse database. wargo (talk) 22:00, 17 March 2016 (UTC)
    If you have access to it. The information is in the user table - together with all the usernames of that installation. If the wiki account has special rights, you can narrow down the possible user accounts by only checking those user.user_id values, which also are present in the field ug_user of the user_groups table.
    This would be something like this SQL query (untested):
    SELECT * FROM `user` WHERE `user_id` IN (
    SELECT `ug_user` FROM `user_groups`
    ); 87.123.25.12 (talk) 00:12, 18 March 2016 (UTC)

    Lost my logo!

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


    I installed the MediaWiki, changed logo - everything was O'k, I've seen it.

    Then I tried to change skin. I tried all four, but decided to return to basic one: vector.

    BUT!

    My logo has lost!

    I rewrote Local Settings several times, tried everything I could imagine, ask my friends to check the page - useless. No Logo (((

    What have I done wrong? How to return him back? Kamilla Kerimova (talk) 16:11, 16 March 2016 (UTC)

    The logo can be set in $wgLogo in LocalSettings.php. Make sure it points to an existing file. After changing the value, make sure to empty your browser cache, so that the new file gets used. 87.123.57.36 (talk) 16:37, 16 March 2016 (UTC)
    You could do two things to test what is going wrong:
    1. Type the URL to the logo in the address bar of your browser manually and make sure that you canaccess the logo. If that works
    2. Use the web developer tools of your browser to check the CSS styles of the
    container with id "p-logo". This element, or the <a> tag inside it, should have the image attached to it via CSS. 87.123.57.36 (talk) 16:46, 16 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Search via Url?

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


    Ok I am building an app for forum.ticfleet.com that uses speech recognition to add a search phrase or word to a url and when I type a search in the search box the URL looks something like this https://forums.ticfleet.com/index.php?action=search2 with no mention what so ever of the search word or phrase within the URL...Is there a way to still accomplish search via url like in the rest of wiki https://en.wikipedia.org/wiki/Stuff (where "Stuff" would be blank and populated via in app voice recognition)?
    -Jeff 66.243.217.59 (talk) 16:51, 16 March 2016 (UTC)
    You should ask in the Simple Machines community forum, not here. We provide support for MediaWiki here. MarkAHershberger(talk) 19:56, 16 March 2016 (UTC)
    Can I add input_text= string to the url in some way or something?
    -Jeff 66.243.217.59 (talk) 17:10, 16 March 2016 (UTC)
    esqueci minha senha 179.228.165.183 (talk) 18:24, 16 March 2016 (UTC)
    @179.228.165.183 Special:PasswordReset may help you - even on other projects, it's still the same special page. Tim (SVG) 19:51, 16 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Specific Steps to Use Picture from Wikimedia

    From Creative commons for Attribution 2.5 Generic:
    • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • Thank you very much Mr. MarkAHerschberger. I thought what I should do, and thank you for confirming what should be done. This is the first time I will be using this type of picture from an article. i usually contact the specific agency directly.I really appreciate the help.

    Hello. I am planning to write an article on my visit to Montreal. I saw a picture on Wikimedia that was used on Wikipedia among others. I think I can use the picture with permission or attribution for my article, but I need some help on the specific steps on using this image. Can someone help. The link and information of the picture is below.

    https://en.wikipedia.org/wiki/Mount_Royal#/media/File:Mount_Royal_Montreal_Lookout.jpg

    Thanks. Junruiz (talk) 17:17, 16 March 2016 (UTC)

    You can license the picture under three different licenses: Under the GNU Free Documentation License, Version 1.2 or any later version, or the Creative Commons Attribution-Share Alike 3.0 Unported license or the Creative Commons Attribution 2.5 Generic license.
    E.g. according to the CC-2.5, all you have to do is attribute the work in the manner specified by the author. If supplied, you must provide the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material. CC licenses prior to Version 4.0 also require you to provide the title of the material if supplied, and may have other slight differences. According to the image page, the author has not specified anything he wants to have mentioned (like his real name or so). Also note that this file has been edited by one contributor. So it should be enough to mention source, license and name e.g. like so:
    Mount Royal Montreal Lookout, https://en.wikipedia.org/wiki/File:Mount_Royal_Montreal_Lookout.jpg, CC-2.5, User:Diliff and contributors, Wikipedia. 87.123.57.36 (talk) 19:03, 16 March 2016 (UTC)

    Error when updating 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.


    When I went to update the database for some extensions to work it gave me this error: "Notice: Uncommitted DB writes (transaction from DatabaseUpdater::doUpdates). in /srv/disk3/domain.com/includes/db/Database.php on line 4262"

    How can I fix this? MorbidEntree (talk) 22:57, 16 March 2016 (UTC)

    This message means that somewhere in the code, I don't get it when running update.php in my installations, so maybe in an extension, a database transaction has been started, but that this transaction has never been committed. All MediaWiki is telling you is that this should not happen.
    You could try debugging this by deactivating your extensions and then activating them again one by one or in batches and each time running the updater again until you know, which extension (assuming the message is gone when you deactivate all extensions, is causing this for you. 87.123.57.36 (talk) 02:54, 17 March 2016 (UTC)
    I read through an error report and it was apparently the AntiSpoof extension that was updating my database with a query that was above a limit that my host has set. MorbidEntree (talk) 06:53, 17 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Not playing 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.


    It started when I first downloaded 5.7.1. I am not able to play previously downloaded files or newly downloaded files but am able to download. Everything else seems to be working as expected. This is a major.

    thanks 2601:602:8801:409E:B0DB:30F8:43B5:70D5 (talk) 00:50, 17 March 2016 (UTC)

    Especially it is not MediaWiki related, obviously...
    My guess is, he is speaking about LINE APK. 87.123.57.36 (talk) 02:57, 17 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Security Vulnerability

    Hi

    i have found a security vulnerability in mediawiki software

    Type : HTTP Parameter Pollution

    where i can report it ?

    and do you have any bounty program ?

    thanks

    email : dzmodest@gmail.com Dzmodest (talk) 07:21, 17 March 2016 (UTC)

    Reporting security bugs 121.220.124.21 (talk) 08:44, 17 March 2016 (UTC)

    Announcements Targeting Only Sysops

    Sorry, if this question is a tad off topic. I don't know where else to ask.

    Where are the best places to make the following type of announcement?

    I am looking for experienced Mediawiki sysops and administrators interested in volunteering to work on a recently funded progressive wiki promoting Bernie Sanders and his political revolution.

    As you know, very few Mediawiki editors are experienced in programming or administration, therefore general internet, or even Mediawiki email list announcements won't efficiently find this rare group. AFAIK, there is no existing email list for announcing new mediawiki job positions, and even if there was, only those who are currently unemployed would bother to subscribe.

    WmBliss (talk) 17:10, 17 March 2016 (UTC)

    Reddit is full to the brim with Bernie supporters, so it's a good place to look for volunteers. 177.158.91.154 (talk) 03:21, 18 March 2016 (UTC)

    Main page

    Hello, how I can insert latest category and latest pages on main page? Thank you. sky (talk) 21:45, 17 March 2016 (UTC)

    See Help:New pages, especially "Transclusion" section. wargo (talk) 21:58, 17 March 2016 (UTC)
    Latest pages work, thank you, but how I can insert and latest category? sky (talk) 14:47, 18 March 2016 (UTC)
    Set parameter "namespace" to "category". wargo (talk) 21:08, 19 March 2016 (UTC)

    why reg replace did not work in AWB?

    AWB version:SVN 11887 (2016-02-11)

    i wrote a reg replace such as :/^(TTAB)+[\S\n^\x00-\xff]+?/ in find textbox, ( the '/' is not exist in AWB reg config dialog ) and load serveral pages to test, it passed and replace the words as I wish, in fact, any page which I tested had pass the reg test.

    but when run 'start', AWB did not replace my reg formula, of course I checked 'find and replace' checkbox Redlz250 (talk) 03:19, 18 March 2016 (UTC)

    some pages can't be edited

    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.26.2
    PHP 5.4.33 (cgi-fcgi)
    MySQL 5.5.45-cll-lve

    My wiki was just recently installed, and I imported a database to it, but a few pages are "immune" to edits. Whenever any of the 3 buttons is pressed, the page just reloads with the old, unedited article, regardless of the changes made. The following link is the only thing I have found with any similarities to my problem. Even then, I doubt the mod_security solution applies, as only a few pages of mine have the bug, not all. Regardless, if I find no better answers, I'll try it.

    Manual:Errors and symptoms#Attempting to save an edit gives you a 403 Forbidden error.2C or you get redirected to the main page

    Thanks for your time. 177.158.91.154 (talk) 03:20, 18 March 2016 (UTC)

    well, without even a link to your wiki there's nothing more we can do... Ciencia Al Poder (talk) 10:26, 18 March 2016 (UTC)
    Sorry, I was hoping it wouldn't be needed, as my wiki deals with a parochial, insular topic that nonetheless tends to attract, shall we say, passionate detractors.
    Anyway, here's one such uneditable page: thisisvideogames.com/gamergatewiki/index.php?title=Ben_Kuchera 177.158.91.154 (talk) 01:42, 19 March 2016 (UTC)
    I was able to replicate the problem by editing with the web interface, when saving (even a null edit), page was just reloaded with a HTTP 301 redirect, losing the edit. That also happens when previewing or hitting "show changes". Editing using the api went fine though.
    If I remove the contents of the page, preview goes through. So this is some text on the page that causes that behavior. Try removing parts of the text until you find the offending text, since that's what the errors and symptoms page describes Ciencia Al Poder (talk) 13:29, 19 March 2016 (UTC)
    Oh, I hadn't managed to get any edit to go through. On hindsight, I should have used that elimination method. Thanks.
    I think I narrowed it down, the quotation mark in "having brought a lawsuit seems to be the problem. Removing it allows the edit to go through. I thought maybe that mark was some obscure symbol that looks like a quotation mark and that's why it was glitching the page. But it's a standard quotation mark; simply typing it back in that place renders the page bugged again.
    In other pages I found similar conclusions. It seems that a specific sequence of characters triggers the bug, and that sequence can sometimes be modified to remove it, sometimes you have to remove more than one sequence, and so on.
    So I'm confused by this glitch. For some reason, simple text is causing the bug. 187.114.87.228 (talk) 03:47, 20 March 2016 (UTC)
    From my understanding, this is clearly caused by either mod_security or any other anti-spam module installed on the server, not part of MediaWiki. Ask your hosting for more information. They usually tweak or disable them on request. Ciencia Al Poder (talk) 11:30, 20 March 2016 (UTC)
    So it really came down to mod_security. Let's hope this can be solved by tweaking so I don't have to disable it.
    Many thanks for your help. 187.114.87.228 (talk) 01:41, 21 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Template namespace subpages

    Why isn't the Template namespace in the default setting for Manual:$wgNamespacesWithSubpages , when it is a very common setting for Wikimedia projects, where so many templates are copied from. John Vandenberg (talk) 13:31, 18 March 2016 (UTC)

    Nach Update leere Seite

    Hallo,

    Hallo,

    ich wollte mein Wiki von 1.24.1 auf 1.26.2 updaten. Ich bin nach Anleitung vorgegangen.

    1. Alle Dateien und Datenbank gesichert

    2. Das aktuelle Wiki hochgeladen und alle Dateien ersetzt

    3. Meine alte LocalSettings.php wieder hochgeladen

    4. /mw-config/index.php ausgeführt und das Upgrade gestartet.

    Gleich nach dem ersten Schritt bekam ich eine weiße Seite. Nun geht nichts mehr. Weder das Wiki, noch kann ich auf die Update Seite. Immer bekomme ich eine weiße Seite. Hat jemand Rat? 2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talk) 15:02, 18 March 2016 (UTC)

    A white page means that the php execution is failing. Check the logs of your http server. Probably it's a permission error or something like that. —TheDJ (Not WMF) (talkcontribs) 15:04, 18 March 2016 (UTC)
    Okay, thank you. I can not look something like this at my provider or i do not know where. My Provider is "Strato". 2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talk) 15:15, 18 March 2016 (UTC)
    Should i downgrade the wiki? 2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talk) 15:49, 18 March 2016 (UTC)
    Downgrades are not supported. If you have already updated the database, then a downgrade will break things. What you in this case could do, is to restore your backup from before the update.
    However, have a look at blank page. There is a description on how you can get more information on the error message in your wiki! That is what I would try (instead of restoring from backup). 87.123.63.39 (talk) 15:53, 18 March 2016 (UTC)
    Thanks!
    Here is the Error
    Catchable fatal error: Argument 2 passed to ConfirmAccountUISetup::defineSpecialPages() must be of the type array, null given, called in /mnt/webv/d2/31/56960431/htdocs/mediawiki-1.24.1/extensions/ConfirmAccount/ConfirmAccount.php on line 50 and defined in /mnt/webv/d2/31/56960431/htdocs/mediawiki-1.24.1/extensions/ConfirmAccount/frontend/ConfirmAccountUI.setup.php on line 29 2A02:810D:85C0:D44:71C1:6421:51CB:97E0 (talk) 15:57, 18 March 2016 (UTC)
    This error is caused by the ConfirmAccount extension. Please update it to the version for MediaWiki 1.26 and see, if that helps!
    Generally when you do a MediaWiki update, you should also update the extensions you use. 87.123.63.39 (talk) 16:59, 18 March 2016 (UTC)
    for testing I have deleted the Confirm Account text in the Local Settings. Now i have this...
    [3] 2A02:810D:85C0:D44:2542:BD9:B9B0:7C85 (talk) 08:01, 19 March 2016 (UTC)
    See Manual:Upgrading#Files_remaining_that_may_cause_errors! What you now have are a few notices. These notices come from your Profiler settings. You are obviously using a TransactionProfiler. Removing the StartProfiler.php file should improve that. 87.123.23.242 (talk) 12:34, 19 March 2016 (UTC)
    Thanks for your replay. I dont have a StartProfiler.php file in my MediaWiki installation. Only a StartProfiler.sample 2A02:810D:85C0:D44:B00D:5CE9:D57F:A258 (talk) 13:39, 19 March 2016 (UTC)
    The sample file usually is unused. Then maybe you have profiling set up in LocalSettings.php. Search the file for the string "profil" (without "e" or "ing" at the end). That way you should find some variable definitions, e.g. $wgProfiler or similar, which might be the ones activating the TransactionProfiler. 87.123.23.242 (talk) 14:16, 19 March 2016 (UTC)
    I was looking in this file but i don't find something like that 2A02:810D:85C0:D44:90C7:22DA:1924:419F (talk) 16:54, 19 March 2016 (UTC)
    In this File on line 304 i find this..
    $by = $this->expectBy[$expect];
    The complete block
    $n = $this->expect[$expect];
    $by = $this->expectBy[$expect];
    $this->logger->info(
    "[{$wgRequest->getMethod()}] Expectation ($expect <= $n) by $by not met:\n$query\n" .
    wfBacktrace( true )
    );
    }
    } 2A02:810D:85C0:D44:90C7:22DA:1924:419F (talk) 18:36, 19 March 2016 (UTC)
    No more an idea? 2A02:810D:85C0:D44:297D:72FA:DB5A:2207 (talk) 10:32, 20 March 2016 (UTC)
    Hmm, do you maybe have SQL debugging activated? TransactionProfiler makes it sound like it might get activated by that as well... I have not checked that, though. 87.123.48.229 (talk) 12:50, 20 March 2016 (UTC)
    I do not know if I have activated it. Where can i see this? 2A02:810D:85C0:D44:6C6E:6170:34BB:A777 (talk) 13:40, 20 March 2016 (UTC)
    I started the update script again and now it is completely gone. The error is still there... 2A02:810D:85C0:D44:6C6E:6170:34BB:A777 (talk) 14:05, 20 March 2016 (UTC)
    No one any idea?
    In Firebug i see this error: "SyntaxError: missing ; before statement"
    This is line 304: $by = $this->expectBy[$expect];
    the last sign is a ; 2A02:810D:85C0:D44:E819:EEDF:1486:C938 (talk) 18:05, 24 March 2016 (UTC)

    Upload TXT file

    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, how can I activate to upload and "txt" file to my wiki? Thank you. sky (talk) 15:37, 18 March 2016 (UTC)

    See Manual:Configuring_file_uploads#Configuring_file_types.
    Please note that allowing txt files (and basically any kind of text files) is a potential security problem for the users of your wiki. 87.123.63.39 (talk) 15:50, 18 March 2016 (UTC)
    Hello, I add on file LocalSettings.php
    # Add new types to the existing list from DefaultSettings.php
    $wgFileExtensions[] = 'txt';
    But when upload TXT file on site I receive error
    The file extension "..." does not correspond to its MIME-type (chemical / x-mdl-rgfile).
    and upload is stooped, can you consult? Thank you. sky (talk) 12:51, 23 March 2016 (UTC)
    If you want to upload files with MIME type chemical / x-mdl-rgfile, then you will have to allow this MIME type. Does Manual:MIME type detection help? 87.123.58.10 (talk) 17:55, 23 March 2016 (UTC)
    I upload on my wiki file.txt and receive that message sky (talk) 17:59, 23 March 2016 (UTC)
    I add to "LocalSettings.php" "$wgVerifyMimeType = false;", but anyway I ca not upload txt file. sky (talk) 21:15, 23 March 2016 (UTC)
    The problem is in TXT file encoding, I create a demo TXT file http://r.ournet.biz/1RAQ9bk and I can upload that file to my wiki, but another TXT file http://r.ournet.biz/22KgdIV I can not upload, why? sky (talk) 11:50, 25 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    "A database query error has occurred. This may indicate a bug in the software."

    I've enabled $wgShowSQLErrors = 1; in local settings to see the error and this is the message I am getting at the moment:

    • Query: SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,rev_content_format,rev_content_model,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `mw_revision` INNER JOIN `mw_page` ON ((page_id = rev_page)) LEFT JOIN `mw_user` ON ((rev_user != 0) AND (user_id = rev_user)) WHERE page_namespace = '10' AND page_title = '6s_team_roster_collapsible' AND (rev_id=page_latest) LIMIT 1
    • Function: Revision::fetchFromConds
    • Error: 2006 MySQL server has gone away (localhost)

    Most pages are working fine and this is only happening in some pages Kanecow (talk) 16:28, 18 March 2016 (UTC)

    The problem is that the connection to the server has been lost. A workaround might be to check, if the connection is still there and if not then reconnect.
    Anyway, really fixing this most likely needs a change in the MySQL configuration; often a very low default setting of max_allowed_packet causes the error. Raising it to e.g. 8M or 16M helps in these cases. 87.123.63.39 (talk) 17:03, 18 March 2016 (UTC)
    On my current mysql config I already had
    max_allowed_packet = 32M
    I think the connection is still there but I've noticed in my VPS control panel that the mysql server was using a somewhat abnormaly high amount of resources
    http://i.imgur.com/HwXGejG.png
    http://i.imgur.com/wIj21ce.png
    I've recently installed some other applications on the same server (specifically a wordpress and vanilla forums installation) could this be the cause?
    But I got 4 shared CPUs and 6gb ram on the VPS so it should be able to easily handle all 3 applications I assume.
    Any tips on how I can solve this?
    Also if this a memory or load issue with mysql why wouldnt all pages be giving this error but only some? Kanecow (talk) 17:15, 18 March 2016 (UTC)
    Anyway I could get some extra help with this please? Kanecow (talk) 18:13, 20 March 2016 (UTC)
    If you don't want mysql to use a large amount of memory, you should configure it properly. mysql and any database server uses memory to cache data like recent queries and results to speed up common queries.
    This is the official answer for the problem: http://dev.mysql.com/doc/refman/5.7/en/gone-away.html
    Note that if it takes a while loading the page and then you get the error, it may be a timeout problem. Maybe the other software using mysql is using a lot of CPU and slows down the server... Ciencia Al Poder (talk) 11:04, 21 March 2016 (UTC)

    Deleting an account

    Can you delete my account? 151.47.95.236 (talk) 18:59, 18 March 2016 (UTC)

    On Wikimedia Foundation wikis, accounts cannot be deleted, but they can be renamed.
    In other wikis, it might be possible to merge your account into another one, which effectively makes your account disappear. The according wiki adminsitrator has to do that. 87.123.63.39 (talk) 19:54, 18 March 2016 (UTC)

    Can't create account

    The Tekkenpedia "create account" page says,

    "Your IP address is listed as an open proxy in the DNSBL used by Tekkenpedia. You cannot create an account."

    What can I do? Twinsday (talk) 21:47, 18 March 2016 (UTC)

    Error: table "_pageData" not found.

    I'm creating a wiki at Referata and I've started running into the following error any time I try to update a page:

    -----

    [cdcc8062] /w/index.php?title=Anarchy_101/Notes_on_Detention_Centres&action=submit Exception from line 157 of /home/yaron57/public_html/w/extensions/Cargo/CargoUtils.php: Error: table "_pageData" not found.

    -----

    I'm not a computer scientist. Can anyone tell me what is going on and/or how I can continue working with my wiki? IvanhoeIvanhoe (talk) 23:51, 18 March 2016 (UTC)

    You are using the MediaWiki extension Cargo. This extension requires a few database table inside the database. Obviously one of these is called "_pageData". And this table is currently missing. You might be able to fix this by running the update.php script. This should add missing tables to the database. 87.123.23.242 (talk) 12:39, 19 March 2016 (UTC)

    Displaying Tabs in Mobile View

    Hi,

    I am using the Extension: Tabs to display some tabs and the Extension: MobileFrontend to autodetect and display mobile view.

    The mobile view displays those tabs as a checklist or a radio button, where upon clicking a tickmark appears and nothing happens. Contents of all tabs gets displayed right away.

    Is there someway I can get tabs in Mobile View? If not, is there any way I can just display simplified text view without checklists or radio buttons?

    The link to my wiki: Medinfo. Just contains some test data for the moment.

    Any help or suggestions are highly appreciated.

    Thank You. 83.111.219.33 (talk) 02:42, 19 March 2016 (UTC)

    Tabs is not compatible with the mobile skin as far as I can tell. But it does seem to 'mostly' work. So you could just style it with CSS yourself. —TheDJ (Not WMF) (talkcontribs) 22:35, 20 March 2016 (UTC)

    Translate marked delete

    Hello,

    I've as admin marked a page to translate!

    Was an error page should not be translated!

    the command <translate> etc I deleted .

    But it is users still appear that they are to translate the page.

    "Translate this page"

    How can this be prevented?

    Thanks

    Patric 78.52.51.5 (talk) 15:36, 19 March 2016 (UTC)

    Thanks ei Found it :D Spezial:Übersetzung_von_Seiten 78.52.51.5 (talk) 15:54, 19 March 2016 (UTC)

    Where to find the real name of the user groups? Also, where are the mediawiki pages?

    Where can I find the real name of the user groups? (Meaning, like how the true name of "Administrators" is "sysop") Especially the ones that came with extensions? I made a new user group and I want it to be able to promote/demote specific user groups, but I can't find the true name of the user groups, and I can't use the fake name that is displayed on my wiki.

    Also, I want to know where can I find all of the Mediawiki pages that are hidden by default? (Meaning, like for example "MediaWiki:Mainpage") I want to be able to rename every element on my wiki.

    Please help. Innosflew (talk) 17:25, 19 March 2016 (UTC)

    Run one of these SQL queries on your database:
    SELECT DISTINCT CONVERT(`ug_group` USING utf8) FROM `user_groups`;
    SELECT DISTINCT `ug_group` FROM `user_groups`;
    They will return a list of all user groups, which are assigned to at least one user currently.
    You can get a list of all wiki pges on the wiki page Special:AllPages in your wiki. 87.123.23.242 (talk) 17:41, 19 March 2016 (UTC)
    I can't get the "mediawiki:" pages display on the "Special:AllPages" unless I've modified each of them at least once. Innosflew (talk) 18:20, 19 March 2016 (UTC)
    MediaWiki pages are special. You can view all of them (changed or unchanged) by going to Special:AllMessages.  —TheDJ (Not WMF) (talkcontribs) 22:32, 20 March 2016 (UTC)
    Thank you! That's perfect! Innosflew (talk) 22:37, 20 March 2016 (UTC)
    Also, I've run these SQL queries in my database and it doesn't seem to display every user group that I have. It only displays 7 from about 16 user groups. Innosflew (talk) 18:24, 19 March 2016 (UTC)
    I was able to find the real names all of the user groups using SQL queries after I promoted myself on the wiki to all the user groups. Innosflew (talk) 22:39, 20 March 2016 (UTC)
    Special:ListUsers has a drop down that lists all groups Ciencia Al Poder (talk) 10:51, 21 March 2016 (UTC)
    Btw how can I remove non-default user groups that were added by extensions? I tried the following code but it didn't worked:
    unset( $wgGroupPermissions['user group'] );
    unset( $wgRevokePermissions['user group'] );
    unset( $wgAddGroups['user group'] );
    unset( $wgRemoveGroups['user group'] );
    unset( $wgGroupsAddToSelf['user group'] );
    unset( $wgGroupsRemoveFromSelf['user group'] );
    
    Innosflew (talk) 21:01, 21 March 2016 (UTC)
    It depends:
    If you want to remove them from pages, e.g. from the set user rights page, then the lines of PHP code, which you quoted above, should help. Note that spaces inside user group names might be a problem. I think user group names have, if at all, underscores in them.
    If you in fact want to remove the groups from user accounts, then you can basically do that on the user rights page. If the group is no longer shown there, you can modify the user_groups table accordingly:
    DELETE FROM `user_groups` WHERE `ug_group` = "staff";
    This remove the group "staff" from all members. Note that this kind of action will not be logged inside the MediaWiki log. Also note that it will remove the group not from one single user, but from all users, who were member of it. That way, this removal will not be displayed in the MediaWiki interface. So there also is no easy way to undo it in case of mistakes! 87.123.11.103 (talk) 21:58, 21 March 2016 (UTC)
    So if I understand it correctly if I add your code to LocalSettings.php it will completely delete that user group from everywhere and it cannot be undone even if I delete the line from LocalSettings.php, right? Innosflew (talk) 22:20, 21 March 2016 (UTC)
    The line
    DELETE FROM `user_groups` WHERE `ug_group` = "staff";
    is an SQL query. You have to run it inside the database, just like you did with the SELECT query a few posts above.
    Once running this query will remove the according group from all users. Right, this cannot be undone (exept by doing some MySQL magic like rolling back the query, which depending on MySQL configuration, might be impossible).
    Thi query however will not influence the selectable groups in the interface of MediaWiki. If a group still is defined in an extension, then it will show up in the according wiki pages, e.g. in the set user rights page. That is what you can influence with the PHP code (unset(...);), which you posted above. 87.123.11.103 (talk) 22:55, 21 March 2016 (UTC)
    Ah I see. Then deleting using SQL query is not the one I need, as I only just don't want them to display anywhere on the mediawiki interface. As you said the PHP code (unset(...);) would be a better solution in my case, but my problem is that it doesn't seem to be working when I tried to use it on the non-default extension user groups that I don't want to be displayed on my wiki anymore. Innosflew (talk) 23:08, 21 March 2016 (UTC)
    Two things come to my mind:
    • First, make sure that you are using the unset(); stuff after the extension has been loaded and after you have configured it in LocalSettings.php. If you use these lines before, the creation of the groups in the extension will just overwrite them.
    • Second, make sure that you use the group name correctly. Spaces most likely are not part of the name and the names might be case-sensitive. 87.123.11.103 (talk) 00:21, 22 March 2016 (UTC)
    I'm having similar issues in trying to remove/replace some of the default groups. I've used the same PHP code (unset(...);) successfully before, but this time it is retaining any permissions set by extensions (renameuser, nuke, etc). The only thing that I can notice that is different between the two is how the extensions are called. This newer version of Mediawiki uses wfLoadExtension (...); and not require_once (...); but I'm not sure how much difference that would make.
    Edit: Silly me! I'm running Mediawiki 1.26.2 on PHP 5.5.29 (cgi-fcgi) with MySQL 5.5.48-cll. AiedailEclipsed (talk) 07:58, 22 March 2016 (UTC)
    Maybe the use of wfLoadExtension makes that the user groups registration comes after LocalSettings.php has been processed.
    Maybe you need to run that code inside one hook that runs after wfLoadExtension and before those groups are actually used in the code Ciencia Al Poder (talk) 10:20, 22 March 2016 (UTC)
    Unfortunately, I don't have that level of technical knowledge for Mediawiki. :c AiedailEclipsed (talk) 11:08, 22 March 2016 (UTC)

    How to configure Mediawiki to use Mathoid?

    Dear readers,

    I am using MW 1.26.2 and MariaDB which comes with CentOS 7.

    According to the official MediaWiki Math extension, Mathoid is the recommended way to render Math, but all they write is

    $wgMathValidModes[] = MW_MATH_MATHML;
    $wgDefaultUserOptions['math'] = MW_MATH_MATHML; 
    

    should be in LocalSettings.phpHere they talk about extra software that should be installed, but it is not clear if this is also for Mathoid rendering.

    Looking at setting up Mathoid, I can see that it will expose the service at port 10044.

    Question

    Can anyone explain what I need to do on the MediaWiki host to get it to use the Mathoid service? Jasminelognnes (talk) 00:09, 20 March 2016 (UTC)

    See Mathoid. Malyacko (talk) 17:42, 20 March 2016 (UTC)

    How do I delete my account?

    How do I delete my account? RebelJeneration (talk) 00:34, 20 March 2016 (UTC)

    On Wikimedia Foundation wikis, accounts cannot be deleted, but they can be renamed.
    In other wikis, it might be possible to merge your account into another one, which effectively makes your account disappear. The according wiki adminsitrator has to do that. 87.123.23.242 (talk) 01:24, 20 March 2016 (UTC)

    File:Domingos Pinho left profile.png

    My software is generating strange images withdrawn in the WikiCommos, as this above file what do I do to reverse this situation, for not doing it again. WikiUser22222 (talk) 04:39, 20 March 2016 (UTC)

    What is "your software" and where/how does it generate that exactly? Malyacko (talk) 17:41, 20 March 2016 (UTC)
    The software I am using is the MediaWiki when I will prepare a HTML script to the articles and annex some images that I uploaded to my project, it generates the page normally, until around then, OK, the problem is that when I go delete these pictures from the project, it automatically searches images with similar names (this example up) in the wikicommos Wikipedia, I wanted to know how/where in MediaWiki, I do for to revert this script that causes run this action? WikiUser22222 (talk) 19:48, 20 March 2016 (UTC)
    Maybe you have Manual:$wgUseInstantCommons enabled in LocalSettings.php? If you don't want to fetch images from commons.wikimedia.org, comment out that variable in LocalSettings.php Ciencia Al Poder (talk) 15:11, 3 April 2016 (UTC)

    VoteSystem Error. Please help me so i can help the world!

    i use the version 1.26.2. after seting up the VoteSystem extension, this error comes up:

    Fatal error: Call to a member function addMessages() on a non-object in ..habitwiki/extensions/VoteSystem/VoteSystem_bodyPUNKTphp on line 523

    wwwPUNKThabitsPUNKTwiki

    i think i did every thing right but there shows this massage up.

    I wonna do good to the world with this wiki and already got a lot of people to fill the database and give this thing a start like wikipedia once did.

    So i wonna make it good and useful but i still got a lot to learn in this system. Please anybody help me!

    I just need a votesystem that can be added to an article page. So than it is possibe to vote for a habitdescription that fits to individual habits.

    For example it there are more than one habbit for lets say the evening dinner in one land than you can write another one and every user can make a vote so the habits of countrys are geting more diversified.

    The result should always be shown in % and in the number of votes.

    I know it is not easy and it is a lot what i am asking for. I have to try every thing to make this working. If anybody helps me i can make him admin in this system. Credits will follow and it is not about money. I just do this to make different peoples talk to each other about there life and maybe it helps to understand each other more and better. But if there comes money through donations helpers will be the first to get payed. We can make a Contract about that too.

    I think the VoteSystem Extension would have done a good job.

    Any suggestions or questions?

    I realy need to solve this issue quickly :-/

    on the 14th of april i got a workshop with 18 refugees in the Ars Electronica Center and when every thing runs good habits.wiki will be pushed more and more and that would be a real start for it. thanks anyways :-) Oisxeng (talk) 11:35, 20 March 2016 (UTC)

    Hi,
    I tried Extension:VoteSystem, but also couldn't get it to work (probably because it is in beta).
    Why don't you try other Poll extensions which are stable?
    I haven't tried them, but Extension:Poll, Extension:AJAXPoll and Extension:PollNY appear to be sufficient for your purposes. AhmadF.Cheema (talk) 15:03, 20 March 2016 (UTC)

    Not track users' IP

    How can I avoid to track users' IP? I'm going to do a closed wiki so i don´t need that. Also I have to obey the law of my country (Spain) and I can´t save IP adress without previous permission.

    (Sorry for my bad english) DailySharing (talk) 17:09, 20 March 2016 (UTC)

    https://phabricator.wikimedia.org/T20981 sounds related? That is currently still opened. Malyacko (talk) 17:41, 20 March 2016 (UTC)
    Allowing people to post things in MediaWiki without either having an account or using their IP address is not possible and that for good reasons.
    If you want to prevent IP addresses from appearing on your wiki pages, as a first step, you should disable anonymous editing. That will force people to have an account, which effectively hides their IP address. Apart from that, I know of exactly two places inside MediaWiki, where the IP address is stored anyway, that is in the information on a user block, if the "block the IP address" option has been activated and in a field inside the recent changes table. This information both times is internal and not shown to the public; at least as far as I know. 87.123.48.229 (talk) 21:49, 20 March 2016 (UTC)

    All contributions attributed to the same IP address

    My wiki (which is quite a big one, with over 25k edits and 2,5k registered users) seems to have some weird bug in that all the contributions are attributed to the same IP address. Which is impossible and I know for a fact it's different users.

    This seems to have started around 1 month ago when I moved the wiki from one VPS to another. Not sure if I messed up anything on the server move but I can't seem to find a solution to this problem. I also installed a few more extensions after the move but as far as that goes everything went smooth.

    Any way I can debug this or solve it?

    I am also still having this problem posted here on the Support Desk last week for which I haven't found a solution yet , so if you could help me with that I would really appreciate. Kanecow (talk) 18:19, 20 March 2016 (UTC)

    When I try to look at any results it says to enter kit number and then there is a space for another kit number, but I only have one. 2602:306:CF82:D90:DDD8:B632:AF02:34B7 (talk) 18:21, 20 March 2016 (UTC)
    "seems to have some weird bug in that all the contributions are attributed to the same IP address"
    See http://serverfault.com/a/526551TheDJ (Not WMF) (talkcontribs) 22:28, 20 March 2016 (UTC)

    RecentChanges limited to March 1st

    No matter what options I put on the request, recent changes only go back to March 1st. For example. this request only shows items after March 1st -- days=20.

    title=Special:RecentChanges&days=60&limit=500

    In the file includes/DefaultSettings.php, the settings for wgRCMaxAge appear to be correct for three months and a global egrep of all the files does not show any place where the value is changed.

    $wgRCMaxAge = 13 * 7 * 24 * 3600;

    Any clue where the problem might reside?

    The last entry reported is a page creation.

    (diff | hist) . . N Social Network Profile Notes‎; 01:45 . . (+198)‎ . . ‎Sakshale (Talk | contribs | block)‎ (Created page with "Category:User Applications == Facebook == * Background Image: 852px Wide by 315px High == Twitter == * Background Image: 1,500px Wide by 500px High * Profile Image: 4...") Sakshale (talk) 19:00, 20 March 2016 (UTC)

    That can happen, if the RecentChanges table has been truncated. You can use the rebuildrecentchanges.php maintenance script to rebuild it. 87.123.48.229 (talk) 21:40, 20 March 2016 (UTC)
    It appeared to run correctly;
    Loading from page and revision tables...
    $wgRCMaxAge=7862400 (91 days)
    Updating links and size differences...
    Loading from user, page, and logging tables...
    Flagging bot account edits...
    Flagging auto-patrolled edits...
    Deleting feed timestamps.
    But, it only added patrol log entries, such as one additional line to the end;
    However, the patrol log seems to imply that I have neglected this wiki a lot longer than imaginable.
    Six months without an update would explain the lack of log entries.
    Yes, I think this explains it: If there was no activity, then there also won't be recent changes. :-)
    Time to get this wiki to pace again! :-) 87.123.48.229 (talk) 00:53, 21 March 2016 (UTC)

    Wiki Page Management Control?

    I have a question, and I'm not even sure I have the right dialogue to ask this question properly. Really, I'm looking for any ideas or suggestions.

    I recognize that my question may require a paradigm shift in what we're doing or how we do it.

    We are using Mediawiki as an internal knowledgebase. We have maybe 1200 pages.

    So...the issue is that management is responsible for reviewing each page on a yearly basis, and either updating it, or deleting the page if it is no longer relevant.

    The problem comes from not knowing which pages have been reviewed vs. which pages still need to be reviewed. We are looking for a way to do that. Clearly we would prefer to do this through the Mediawiki - if there is a special page, extension or api which will accomplish this - perfect. But if none of those options are available, can it be done directly from the MySQL DB?

    Obviously 'recentchanges' doesn't work, because it goes back only 91 days. I've been searching for days, but have not found anything even remotely near what I'm trying to do - but it is possible I have overlooked it. Jclementwiki (talk) 19:48, 21 March 2016 (UTC)

    MediaWiki has a special page called Special:AllPages, which lists all pages. That list however is in alphabetical order.
    There is a configuration variable, I think it was called $wgRCMaxAge, which would allow you to change the number of days, which are displayed on Special:RecentChanges.
    Finally there are some extensions, which allow you to review the content of pages, e.g. Extension:Approved_Revs or Extension:FlaggedRevs. That way you will have a list of pages to review and once a page has been reviewed it will no longer be listed. Note that these extensions are based on single revisions: When a page has been marked as reviewed, it is fine. But once a new page revision gets created, the page will by default be listed as "has to be reviewed" again. This might be avoided by configuring user groups rights in a way that every single user can automatically review a page, if that page already _is_ reviewed. 87.123.11.103 (talk) 20:59, 21 March 2016 (UTC)
    interesting...thank you for your reply.
    So.. assuming we can set $wgRCMaxAge to 365, and use the Revs extensions, the trick here is that i would need to be able to flag all pages for review on January 1st of each year, and then let management go through it - throughout the year. Then the following Jan 1st. flag them all again.
    I'm guessing that would be easier to flag all pages by direct SQL table update. (unless there is a extension for that, too.) Jclementwiki (talk) 21:07, 21 March 2016 (UTC)
    A vallue of 365 for $wgRCMaxAge will make MediaWiki clear data after 6 minutes and 5 seconds - as this value is in seconds. What you want is 60*60*24*365 - whatever number that is; PHP can calculate that for you. :-)
    What I thought of is this: First every page is marked for review. Then you have some users, who have the according user group rights to review pages. That way they can review a page. This review in fact only marks the current revision of that page as reviewed. If then a new revision gets created, it would by default be un-reviewed again. To fix that, I propose to give every user the right to automatically review a page, if it had been reviewed before. That way the reviewed status will be preserved also for newer revisions.
    At the start of a new year, you would then have to reset that status. I don't know if the extension provides a way of doing that, but that might be doable with one single SQL query, which just switches the according fields inside the database. 87.123.11.103 (talk) 21:47, 21 March 2016 (UTC)
    lol - I was speaking days.. so the correct number is 31536000.
    Actually, I have no problem if a new version is created and results in an 'un-reviewed' page, because management will then need to review the changes. I'll instruct management how - if they make a change - they can manually approve the new revision.
    And then...once a year... do the SQL thing update the table...i'll look into that. Thank you so much. Jclementwiki (talk) 22:37, 21 March 2016 (UTC)
    It then depends on which of the two extensions - Approved_Revs or FlaggedRevs - you choose. Actually I do not use either of them myself. I guess you also have to configure it to have the wiki always show the latest revision, no matter if it is reviewed or if it's not. As basically these extensions have been written to prevent exactly that, so that MediaWiki always by default only shows the reviewed revision. However, as far as I understood you, this is not what you want. 87.123.11.103 (talk) 22:51, 21 March 2016 (UTC)
    hrmm... I'll review the extensions tomorrow, see if I can make it work or not. Appreciate the help. Jclementwiki (talk) 23:55, 21 March 2016 (UTC)

    Template variables in HTML

    Hello there, I'm having a little difficulty in figuring this out. Say I have the example template:

    {{Summary 
    |image            = enter the link to an image here (just the url) 
    |factioncolor     = enter the color for the faction (e.g. #598CBF) 
    |status           = enter status
    }}
    

    The actual code looking something like this:

    <table class="table" id="plane_summary_table" style="margin-bottom: auto;">

    <tr style="text-align: left; vertical-align: middle;">

    <td style="vertical-align: middle">Status</td>

    <td style="color: {{{factioncolor}}}; font-size: 75%;"><pic src="{{{image}}}" width=64 align=left caption="{{{status}}}" /></td/>

    </tr>

    </table>

    When I do it this way, it just displays a broken image with the text {{{status}}} in the correct color and text size. I did some research and saw that some people had luck with $wgRawHtml and the #tag:html parser function, but I can't get the image and status text to display for the life of me.

    Any ideas? Zaksquatch (talk) 06:26, 22 March 2016 (UTC)

    <pic> is nothing... maybe you mean to use <img>?
    Please read all the warnings described in Manual:$wgRawHtml before enabling that feature, and ask yourself if it's not better to tell your users to upload images directly to your wiki, so they can be embedded without being exposed to such a risk. Ciencia Al Poder (talk) 10:31, 22 March 2016 (UTC)
    I apologize, <pic> is part of the AdaptiveThumb extension. (Extension:AdaptiveThumb) I've tried it with <img> and had no luck.
    As I'm the only person (only user as well) on the wiki, I've reviewed the risks. Thank you for the warning however. :) Zaksquatch (talk) 13:29, 22 March 2016 (UTC)
    You say it just displays a broken image. So apparently the wiki is rendering an img tag. Can you right-click on the broken image and see if the URL points to the right URL?
    Also, some servers disable hotlinking of images from external websites, so maybe the server where the image is hosted detects this and blocks the image when used from your wiki. Ciencia Al Poder (talk) 21:50, 22 March 2016 (UTC)
    The image is hosted on my domain, just in a location outside of the wiki. (http://www.test.com/images/image.jpg)
    When I look at the "location" of the image (such as open image in new tab) it displays http://wiki.test.com/%7B%7B%7Bimage%7D%7D%7D, with {{{image}}} being the name of the variable. This loads up in a wiki page saying that the resource doesn't exist. I'll try a few more things when I get home, but this is where I am at the given time. Zaksquatch (talk) 00:26, 23 March 2016 (UTC)
    Ah, I see the problem now. You need to use the [[Help:Magic_words#Miscellaneous|{{#tag:}}}} parser function because you can't use parameters inside parser tags.
    You can replace <pic src="{{{image}}}" width=64 align=left caption="{{{status}}}" /> with:
    {{#tag: pic || src={{{image}}} | width=64 | align=left | caption={{{status}}} }}
    
    Ciencia Al Poder (talk) 10:25, 23 March 2016 (UTC)

    How to best "split" 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.


    Hey everyone,

    I have a wiki for a project which runs already for 2 years (www.olliw.eu/storm32bgc-wiki/), but the project has progressed now to a point where I want to split into an "old" and "new" wiki. That is, I want to keep the current wiki available, but want the new wiki to be at the same place where the current one currently is. I'm not sure how to do that best, or what my options actually are.

    What I did so far is to copy the wiki to the url www.olliw.eu/storm32bgc-v1-wiki, which should become the "old" wiki. However, the entries of both wikis are "linked" since they access the same data base. I could now

    (a) copy the database into another one and make the "old" wiki and "new" wikis using these different databases.

    (b) stick with one database, but copy each page and rename it e.g. into "page name - old".

    I'm afraid I don't fully understand the side effects of each approach.

    What would you do?

    Are there other/better approaches?

    Thx in advance, Olli 92.75.147.2 (talk) 08:35, 22 March 2016 (UTC)

    Are you really sure you want to split content so when you update one page, the same page on the other wiki is not changed? I can't imagine any circumstance under which this approach would be desirable.
    Can you better explain what are your needs? Ciencia Al Poder (talk) 10:27, 22 March 2016 (UTC)
    If I got you right, then what you re doing is moving a wiki. Just follow the manual to complete this task, e.g. you will have to copy the database and adjust the database credentials in the LocalSettings.php file of one of the wikis to point to this other database. After that, both wikis will start showing different content, if one of them got edited while the other did not.
    Your idea (b), copying each page inside the same database is possible as well. I think I would do that in the database directly, by copying all records of the pages table and - in that process - for the new entries to add " - old" behind the page name. That should work, but the result will be that you have the according, ugly page names.
    What do you want to achieve? 87.123.11.103 (talk) 11:32, 22 March 2016 (UTC)
    THX for the quick replies, much appreciated
    @Cienca Al Poder: yes, I want the old wiki to stay intact as it is, without further changing it. I simply want the users of the "old" project to still find the info relevant to them.
    @8712311103: that's a good suggestion, from a quick read this looks like what I should do. My concern with (b) is that I not only would have to copy manually all pages but probably would also have to correct all internal links/references to the new names, sounds like painful work. Moving the wiki sounds much easier. I guess I still could rename the pages if I wanted to, but leave redirects behind.
    THX 132.230.81.22 (talk) 12:02, 22 March 2016 (UTC)
    Hmm, you would have to test it, but in my head it's working like so:
    From the page table, take all those entries that you want (maybe only those from certain namespaces like only those from the article and article talk namespace?) and add new rows for them. You have to take care that inside the page_title column you have to use underscores instead of spaces in the page names. So it would be "Page_1_-_old".
    Afterwards, you should run the maintenance script rebuildall.php to rebuild link tables and the searchindex. 87.123.33.203 (talk) 14:35, 22 March 2016 (UTC)
    thx so much for all your ideas
    I did now the "move wiki" type of thing. I.e. I duplicated the database into another database, copied the wiki folder to a new folder, and changed the db entries in the LocalSettings.php. Works nicely.
    Duplicating the db wasn't as easy as in the description, since even zipped it was too big for phpMyAdmin, BigDump looked suspicious, and I have no cmdline. However, mysqlDumper worked fantastically! I guess this program could be worth to be added to the "moving-wiki" manual, and probably also to the "backup database" entry. (I'm not related to mysqlDumper, I just really find it very useful).
    Thx to all for these quick and helpful responses. :) 92.75.147.2 (talk) 17:18, 22 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    How do I delete my account?

    I am retiring, and I want to delete my account from your system. How do I do that? TaxDetective (talk) 22:15, 22 March 2016 (UTC)

    On Wikimedia Foundation Wikis, youcan have your account renamed.
    On other wikis, there might be a way to actually remove it (e.g. using the UserMerge extension). An administrator of the according wiki then has to do that. 87.123.33.203 (talk) 00:21, 23 March 2016 (UTC)

    Error message from AccessLog

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


    I'm getting this error message:

    Missing argument 12 for accessLogEditAction() in AccessLog.php on line 104

    onI've had a search, but I can't find it anywhere.

    Any suggestions as to what this might be, and how to fix it?

    I'm running:

    Access Log 2.0

    MediaWiki       1.24.2

    PHP     5.5.29 (cgi-fcgi)

    MySQL   5.5.45-cll-lve Fustbariclation~enwiki (talk) 09:41, 23 March 2016 (UTC)

    Unrelated to your problem, but you are running ancient unsupported insecure software. Please upgrade: See Download and Manual:Upgrading. Thanks! Malyacko (talk) 10:03, 23 March 2016 (UTC)
    Thank you - I've updated it and that problem has gone. I'll ask about the new problem separately. Fustbariclation~enwiki (talk) 11:24, 26 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Using the git of the Wikipedia mobile app

    Is it allowed to use the github of the Wikipedia mobile app to create a mobile app for our MediaWiki based wiki? Innosflew (talk) 10:29, 23 March 2016 (UTC)

    If the license allows that, then yes. So it depends on under which license this app is published. 87.123.58.10 (talk) 17:56, 23 March 2016 (UTC)

    BlueSpice

    Hi all... We're setting up an internal corporate Wiki, and thinking of using the BlueSpice tool. Can I ask for your thoughts on this program?

    Are there better/cheaper alternatives?

    Are we limited by using this program?

    Thank you! Reviews, especially in English, are difficult to find. PaleoIsh (talk) 13:27, 23 March 2016 (UTC)

    Is this about BlueSpice? To allow someone to bring up alternatives or limitations you'd first need to define your needs... Malyacko (talk) 11:37, 24 March 2016 (UTC)
    At least one version of BlueSpice is free, so I don't think you are likely to actually find a cheaper alternative. Platonides (talk) 15:24, 25 March 2016 (UTC)
    Apologies, Malyacko.... looking for a robust document review/approval workflow process attached to a Wiki, in a corporate setting. Wondering if BlueSpice does not play nice with other extensions, if we lose anything with using BlueSpice. PaleoIsh (talk) 12:02, 1 April 2016 (UTC)

    No images show in 1.26.2

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


    Hi. And help. After upgrading from an older version (1.22), MediaWiki won't display any uploaded images all of a sudden (wiki-logo, etc. is fine though). Upon entering the full and valid URL, I get this message:

    "Internal Server Error: The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory."

    I tried changing the folder-permissions on the server, enable Perl, downgrade to PHP 5.5 for a bit, but that's pretty much anything I can do from my host's web interface. Any ideas where I should look?

    Thanks in advance! 193.81.165.150 (talk) 13:50, 23 March 2016 (UTC)

    Alright, I found the culprit: The .htaccess had something in it my host didn't like, deleting it inside "/images" fixed the problem. 193.81.165.150 (talk) 14:06, 23 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Error: Your wiki requires a logged-in account to access the API.

    Getting this message when running curl -k https://site.example.com:8001/localhost/v3/page/html/Main_page

    AccessDeniedError: Your wiki requires a logged-in account to access the API.

    Can someone tell me what I'm doing wrong? 98.245.211.248 (talk) 15:16, 23 March 2016 (UTC)

    You first need to do a login: API:Login 87.123.58.10 (talk) 17:52, 23 March 2016 (UTC)

    Quick Breakdown on Creating a Template

    Hello, I am looking to create a template for generating game detail pages (I.E. One page per game) for multiple games. Information to be included are items such as cover art, platform, genre, publisher, developer, franchise, region, etc.

    I have been reading through the help manual for the past few days but cannot grasp exactly how to set this up so that when a user goes to create a new page it will automatically have all of these fields available for editing along with links to list pages (I.E. click the developer and a page with all games listed by that developer).

    Is anyone available to give me a breakdown on how to achieve this? Thank you. 2605:6000:8A4E:8900:C5E9:A9FE:E120:3D78 (talk) 16:13, 23 March 2016 (UTC)

    Hi,
    work you with semantic and semantic Forms?
    cu
    Patric Bastor de (talk) 09:56, 24 March 2016 (UTC)

    Babel - Account- create?

    MediaWiki 1.26.2
    Babel 1.9.1 GPL-2.0+

    Hello,

    I would like that user during the registration details of Babel input.

    Like a Formular babel-plain|de-N|en-2|fr-1|es-1

    These are then registered with them of the User-page

    Are there easy ways?

    Thanks

    Patric

    Bastor de (talk) 17:17, 23 March 2016 (UTC)

    Embeded videos in MultimediaViewer extension

    Could it be possible somehow to embed videos(e.g. YouTube videos, Vimeo videos etc.) in the Multimedia Viewer similarly to Wikia? Innosflew (talk) 17:23, 23 March 2016 (UTC)

    If someone writes the code to connect/embed Extension:TimedMediaHandler... Malyacko (talk) 11:35, 24 March 2016 (UTC)
    Do you how can I use the TimedMediaHandler extension to embed YouTube and Vimeo videos and videos from other hosting services into my wiki? As far I've seen it only talks about videos that are hosted on your own server, like for example .ogg video files uploaded through the Upload File function, but I don't see a part talking about embeding videos that are hosted else where like the YouTube videos. Innosflew (talk) 09:11, 25 March 2016 (UTC)

    Trying to configure AD LDAP Authentication

    HI there, been trying to configure AD LDAP Authentication for MediaWiki 1.25. Also using PHP 5.6.16 and latest LDAPAuthentication Extension. I have loaded php_ldap.dll from php.ini. I always get incorrect username and password when trying to log in with Active Directory credentials. See code below. Nothing shows up in the log files anywhere. Not PHP nor LDAP one specified. The Wiki users will be residing in the mycity OU. Am I missing something?

    require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";

    $wgAuth = new LdapAuthenticationPlugin();

    $wgLDAPDebug = 5;

    $wgDebugLogGroups["ldap"] = "$IP/tmp/ldapdebug.log";

    $wgLDAPDomainNames=array( "mydomain" );

    $wgLDAPServerNames = array("mydomain" => "mydomain.com:389" );

    $wgUseLocal = false;

    $wgLDAPEncryptionType = array("mydomain" => "clear");

    $wgLDAPBaseDNs = array("mydomain" => "ou=mycityou,ou=myou,dc=mydomain,dc=com");

    $wgLDAPSearchStrings = array( "mydomain" => "USER-NAME@mydomain.com" ); Pbquattro (talk) 18:06, 23 March 2016 (UTC)

    Forgot to mention i am running this on Windows Server 2012 with IIS. Pbquattro (talk) 19:19, 23 March 2016 (UTC)
    I am seeing almost the same thing. I have set the debug all the way to 99 and still see very little info. I'm also trying to get fully qualified logins working since we have multiple AD domains. I've tried setting up MW similar to how the server authenticates to LDAP, but can't tell if it's actually hitting LDAP, other than 'incorrect login or password' messages. I'm running on RHEL 7, which may also be part of the issue since we had to use sssd instead of nslcd in order to get FQ logins working correctly. Ddusza72 (talk) 21:05, 29 March 2016 (UTC)

    CategoryTree in the Sidebar: clicking > has no effect

    Followed all steps and troubleshooting from Extension:CategoryTree#Using CategoryTree in the Sidebar CategoryTree works and the tree expands normally on regular pages but in the sidebar categories don't open when clicking on the blue arrows. XAMPP, MediaWiki and Extensions downloaded 2 weeks ago so we have the latest versions of everything. Please advise?

    From localsettings.php :

    $wgDefaultSkin = "Monobook";

    $wgUseAjax = true;

    require_once "$IP/extensions/CategoryTree/CategoryTree.php";

    $wgCategoryTreeForceHeaders = true;

    $wgCategoryTreeSidebarRoot = "Documentatie";

    $wgCategoryTreeSidebarOptions['depth'] = "1";

    $wgCategoryTreeDefaultOptions['mode'] = 'categories';

    $wgCategoryTreeDefaultOptions['showcount'] = 'on';

    $wgCategoryTreeDefaultOptions['namespaces'] = array( 0, NS_CATEGORY, NS_FILE );

    From httpd.conf (using XAMPP):

    RewriteEngine On

    RewriteCond %{REQUEST_URI} !^/(extensions|skins)/

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

    > Not 100% sure if the RewriteCond is correct to exclude the directories /extensions and /skins as advised?

    From CategoryTree.php:

    function efCategoryTreeParserOutput( $outputPage, $parserOutput )  {

    if ( !empty( $parserOutput->mCategoryTreeTag ) ) {

    CategoryTree::setHeaders( $outputPage );

    }

    return true;

    }

    > Disabling the condition as advised for older versions of CategoryTree extension doesn't fix it

    From CategoryTreeFunctions.php:

    $linkattr[ 'class' ] = "CategoryTreeToggle";

    $linkattr['style'] = 'display: inline !important;'; // Unhidden by JS

    $linkattr['data-ct-title'] = $key;

    > Changed that per the troubleshooting article but has no effect

    At my endswits with this so hoping someone sees what I'm missing here? Eddy Adriaenssens (talk) 19:59, 23 March 2016 (UTC)

    Anyone has an idea how to fix/troubleshoot this please? Eddy Adriaenssens (talk) 07:25, 30 March 2016 (UTC)

    Program Freezes

    I have my Church Bookstore inventory on LibreOffice. The program freezes up on me, and I have to restart my computer in order to get it to work again. Today I have had to do it 5 times. Please tell me how to fix this. Also, is there a way to print out my inventory tables? Otmoorhalf (talk) 23:52, 23 March 2016 (UTC)

    Welcome on the MediaWiki Support Desk, the Support Desk for MediaWiki. MediaWiki is a wiki software, which e.g. is used to run Wikipedia, and maybe also a wiki of your church. You should better post your LibreOffice questions to a LibreOffice forum as we here are no LibreOffice experts. 87.123.58.10 (talk) 01:27, 24 March 2016 (UTC)

    MediaWiki:Centralnotice-template-wm2016registrationv1

    Why I still see alien translation of the m:MediaWiki:Centralnotice-template-wm2016registrationv1 if I have be-tarask interface enabled both on WikiData and Meta?

    Installed software: MediaWiki 1.27.0-wmf.18 (b5f0323) 23:12, 23 сакавіка 2016 HHVM 3.12.1 (srv) MariaDB 10.0.22-MariaDB-log ICU 4.8.1.1 Elasticsearch 1.7.5 LuaSandbox 2.0.12 Lua 5.1.5 Taravyvan Adijene (talk) 08:55, 24 March 2016 (UTC)

    How do you expect some interface setting on some third-party website to influence your personal MediaWiki installation on your server? Malyacko (talk) 11:20, 24 March 2016 (UTC)
    Who saya about personal installation. I'm just visiting WikiData and see centralnotice, which should be displayed in my interface language, but it doesn't. What's the translation intended for then? Taravyvan Adijene (talk) 13:40, 24 March 2016 (UTC)
    Sorry, I misunderstood - I thought the "installed software" section refers to your own installation. Malyacko (talk) 17:10, 24 March 2016 (UTC)

    Does MediaWiki support PHP 7?

    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 installation requirements note that "PHP version 5.3.3 or later is required". Does that include PHP 7? Iantresman (talk) 14:59, 24 March 2016 (UTC)

    While I'm not a MediaWiki dev, common sense would tell me that it would include PHP 7. NeedAGoodUsername (talk) 02:42, 29 March 2016 (UTC)
    It should mostly be working, with less problems in newer releases (1.26 over 1.23). In case you find a bug, you can open a bugreport, but I think it should basically be working. 87.123.13.231 (talk) 12:54, 29 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Please document how to use 'abusefilter-revert'

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


    Hello. I have looked for a page (Extension:AbuseFilter) where documentation wrt. using Special:AbuseFilter/revert/<filter#>, but couldn't find any. In which form we should enter the timestamp, etc. for the page to work? Thanks. —MarcoAurelio (talk) 15:17, 24 March 2016 (UTC)

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

    Removing editor formatting

    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 paste text into this editing box, sometimes it appears with extra formatting such as a large font size, or bold text (because the source text has the same formatting). I see no editor "Help" link, no formatting options beyond bold/italics, no option to edit the source, and no option to paste without formatting.

    How do I remove the extra formatting? Iantresman (talk) 15:18, 24 March 2016 (UTC)

    You may try switching to wikitext editor before pasting, or pasting the contents first on a text editor that doesn't support formatting, then copying again and pasting to the wiki Ciencia Al Poder (talk) 16:40, 24 March 2016 (UTC)
    Found it! (The Wikitext Editor). It's the "" bottom right. Thank you Iantresman (talk) 18:20, 24 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Getting image caption

    Hi,

    Is there a way to get the caption of an image using the Wikimedia API?

    Thanks! Darkov91 (talk) 16:00, 24 March 2016 (UTC)

    Embedding 3rd-party images

    I can embed images from Wiki Commons using InstantCommons, Flikr images (with Extension:Flickrm), and videos using the Extension:YouTube, and there appears to be a number of other Category:Image_extensions.

    But are there also extensions that would let me embed images from (a) Google Photos (b) Google Drive (c) Google Photospheres (d) Geograph (e) Panoramio? Iantresman (talk) 18:34, 24 March 2016 (UTC)

    #1 Extension:Widgets
    #2 If it is safe in your environment, consider this: Manual:$wgAllowExternalImages. Cavila 19:49, 16 April 2016 (UTC)

    Pausing GIFs

    Reading wiki article with gif animation somewhere on the page sometimes is uncomfortable. Often GIF distracts you from text. I suggest adding play/pause JavaScript wrapper. What do you think about this? Do you find it useful? Should I open new ticket on phabricator? Yanpas (talk) 20:32, 24 March 2016 (UTC)

    It isn't possible to pause a GIF, you would have to generate a separate image of the current frame instead, which would require a fairly modern browser. 121.219.12.53 (talk) 08:51, 25 March 2016 (UTC)
    You may also use an animated GIF which stops after one iteration. Or directly not use animated GIFs at all… Platonides (talk) 15:17, 25 March 2016 (UTC)
    There's a ticket for this. See T85838 Ciencia Al Poder (talk) 19:22, 26 March 2016 (UTC)

    wikibase retorna un valor nulo

    Que tal, tengo un problema, en mi instalación de mediawiki en las páginas que usan el módulo wikibase siempre me manda este error

    "Error de Lua en Módulo:Ficha_de_persona en la línea 35: attempt to index field 'wikibase' (a nil value)." Ssquma (talk) 09:23, 25 March 2016 (UTC)

    Code for 16_X_2_LCD_Keypad_Shield_for_Arduino_V2 page

    The test code provided on this wiki page does not work:

    http://linksprite.com/wiki/index.php5?title=16_X_2_LCD_Keypad_Shield_for_Arduino_V2

    Here is code that demonstrates single-button functionality and works well. Please add it to the wiki page. (I do not have edit permissions, or I would do it myself.)


    1. define KEY_SELECT 0
    2. define KEY_RIGHT 1
    3. define KEY_LEFT 2
    4. define KEY_DOWN 3
    5. define KEY_UP 4
    6. define KEY_NONE 5

    //Upper limits for each key int keyCutoffs[] = {714, //select

                 835, //right
                 879, //left
                 917, //down
                 977, //up
                 1024}; //max value of analogRead
    
    1. define Nkeys ((int)6)

    // include the library code:

    1. include <LiquidCrystal.h>

    // initialize the library with the numbers of the interface pins LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

    int sensorValue;

    void setup() {

     // set up the LCD's number of columns and rows: 
     lcd.begin(16, 2);
     // Print a message to the LCD.
     lcd.print("hello, world!");
     sensorValue  = 1023;
     Serial.begin(57600); 
    

    }

    void loop() {

      sensorValue = analogRead(A0);
      lcd.setCursor(0, 1);
      lcd.print(sensorValue);   
       int keyNum = getKeyNum(sensorValue);
       char* keyStr = getKeyName(keyNum);
       lcd.print(": ");
       lcd.print(keyStr);
    

    }


    int getKeyNum(int value){

     //given an analogRead value (0-1024), return key associated with that value.
     for(int i=0; i<Nkeys; i++){
        if (value < keyCutoffs[i]){
           return i;
        }
     }
    

    }

    char* getKeyName(int keyNum){

     //Returns a string of length 8 telling what key was pressed.
     //Used for display, may be handy for debugging.
     switch(keyNum){
       case KEY_SELECT:
         return "Select  ";
       break;
       case KEY_LEFT:
         return "Left    ";
       break;
       case KEY_RIGHT:
         return "Right   ";
       break;
       case KEY_UP:
         return "Up      ";
       break;
       case KEY_DOWN:
         return "Down    ";
       break;
       case KEY_NONE:
         return "No Key  ";
       break;
     }
    

    } 64.56.94.171 (talk) 13:31, 25 March 2016 (UTC)

    You should report that to http://linksprite.com/ The MediaWiki software is free to use, and hundreds of organizations unrelated to us install it. We have no relationship with the people at linksprite.com Platonides (talk) 15:16, 25 March 2016 (UTC)

    Installation problem

    After 10 maybe more instalations i keep get same error when i finish,

    the page is redirecting correctly.

    http://escorts.wiki/index.php/%CE%91%CF%81%CF%87%CE%B9%CE%BA%CE%AE_%CF%83%CE%B5%CE%BB%CE%AF%CE%B4%CE%B1

    Any suggestions ? Escorts Wiki (talk) 20:45, 25 March 2016 (UTC)

    Try to set up a debug log, the file will contain the exact URL requested. Maybe your nginx installation is mangling the request sent to MediaWiki which in turns tries to correct it endlessly. Ciencia Al Poder (talk) 19:18, 26 March 2016 (UTC)

    arraymap seems broken after an upgrade

    I've upgraded to the latest version, and arraymap, which was working before, seems not to any more. The template says this:

    <poem>

    |- ! Role |

    </poem>

    but a page using the template shows:

    <poem>

    Role ,|Y|Y}}

    </poem>

    It's as if arraymap has stopped working.

    My versions are:

    Installed software

    Product Version
    MediaWiki 1.26.2
    PHP 5.5.29 (cgi-fcgi)
    MySQL 5.5.45-cll-lve

    Entry point URLs

    Entry point URL
    Article path /index.php?title=$1
    Script path /
    index.php /index.php
    api.php /api.php
    load.php /load.php

    Installed skins

    Skin Version Licence Description Authors
    Cologne Blue GPL-2.0+ A lightweight skin with minimal formatting Lee Daniel Crocker and others
    Modern GPL-2.0+ A blue/grey theme with sidebar and top bar. Derived from MonoBook River Tarnell and others
    MonoBook GPL-2.0+ The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background Gabriel Wicke and others
    Vector GPL-2.0+ Modern version of MonoBook with fresh look and many usability improvements Trevor Parscal, Roan Kattouw and others

    Installed extensions

    Semantic extensions
    Extension Version Licence Description Authors
    Semantic MediaWiki 2.3.1 GPL-2.0+ Making your wiki more accessible - for machines and humans (online documentation) Markus KrötzschJeroen De Dauw, James Hong Kong and others
    Special pages
    Extension Version Licence Description Authors
    Access Log 2.0 Logs user access to MediaWiki Aleksandar Bojinovic, Peter Kin-Fong Fong
    Maintenance 2.2.0 Wiki interface for various maintenance scripts Ryan Schmidt
    MaintenanceShell 0.5.0 Wiki interface for maintenance scripts Andrew Fitzgerald and Timo Tijhof
    Replace Text 1.1.1(58fc0ba) GPL-2.0+ Provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki Yaron Koren, Niklas Laxström and others
    Parser hooks
    Extension Version Licence Description Authors
    GetUserName 1.0 Get current user's name. Ejcaputo
    ImageMap Licence Allows client-side clickable image maps using <imagemap> tag Tim Starling
    ParserFunctions 1.6.0 Licence Enhance parser with logical functions Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
    Spam prevention
    Extension Version Licence Description Authors
    ConfirmEdit 1.4.0 GPL-2.0+ Provides CAPTCHA techniques to protect against spam and password-guessing Brion Vibber and others
    DataValues
    Extension Version Licence Description Authors
    DataValues 1.0 GPL-2.0+ Collection of objects representing various kinds of values Jeroen De Dauw
    DataValues Common 0.2.3 GPL-2.0+ Contains common implementations of the interfaces defined by DataValuesInterfaces Jeroen De Dauw
    DataValues Interfaces 0.1.5 GPL-2.0+ Defines interfaces for ValueParsers, ValueFormatters and ValueValidators Jeroen De Dauw
    DataValues Validators 0.1.2 GPL-2.0+ Contains common ValueValidator implementations Jeroen De Dauw and The Wikidata team
    Other
    Extension Version Licence Description Authors
    Google Analytics Integration 3.0.1 Inserts Google Universal Analytics (and/or other web analytics) scripts into MediaWiki pages for tracking Tim Laqua and Davis Mosenkovs
    Lockdown Per namespace group permissions Daniel Kinzler and Platonides
    ParserHooks 1.5.0 GPL-2.0+ OOP interface for creating MediaWiki parser hooks in a declarative fashion Jeroen De Dauw
    ReCaptcha

    Installed libraries

    Library Version License Description Authors
    composer/installers 1.0.23 MIT A multi-framework Composer library installer Kyle Robinson Young
    composer/semver 1.0.0 MIT Semver library that offers utilities, version constraint parsing and validation. Rob Bast, Nils Adermann and Jordi Boggiano
    cssjanus/cssjanus 1.1.1 Apache-2.0 Convert CSS stylesheets between left-to-right and right-to-left.
    data-values/common 0.2.3 GPL-2.0+ Contains common implementations of the interfaces defined by DataValuesInterfaces Jeroen De Dauw
    data-values/data-values 1.0.0 GPL-2.0+ Defines the DataValue interface and some trivial implementations Jeroen De Dauw
    data-values/interfaces 0.1.5 GPL-2.0+ Defines interfaces for ValueParsers, ValueFormatters and ValueValidators Jeroen De Dauw
    data-values/validators 0.1.2 GPL-2.0+ Common ValueValidator implementations Jeroen De Dauw and The Wikidata team
    liuggio/statsd-php-client 1.0.16 MIT Statsd (Object Oriented) client library for PHP Giulio De Donato
    mediawiki/at-ease 1.1.0 GPL-2.0+ Safe replacement to @ for suppressing warnings. Tim Starling and MediaWiki developers
    mediawiki/parser-hooks 1.5.0 GPL-2.0+ Adds a OOP and declarative parser hook interface on top of MediaWiki Jeroen De Dauw
    onoi/blob-store 1.2.0 GPL-2.0+ A simple interface to manage schema-free temporal persistent key/values mwjames
    onoi/cache 1.2.0 GPL-2.0+ A minimalistic cache adapter interface library mwjames
    onoi/callback-container 1.0.0 GPL-2.0+ A simple callback container registry library mwjames
    onoi/event-dispatcher 1.0.0 GPL-2.0+ A minimalistic interface to relay generic events to registered listeners mwjames
    onoi/http-request 1.3.0 GPL-2.0+ A minimalistic http/curl request interface library mwjames
    onoi/message-reporter 1.0.0 GPL-2.0+ An interface to report and relay arbitrary messages to registered handlers Jeroen De Dauw and mwjames
    oojs/oojs-ui 0.12.12 MIT Provides library of common widgets, layouts, and windows. Bartosz Dziewoński, Ed Sanders, James D. Forrester, Kirsten Menger-Anderson, Rob Moen, Roan Kattouw, Timo Tijhof and Trevor Parscal
    oyejorge/less.php 1.7.0.9 Apache-2.0 PHP port of the Javascript version of LESS http://lesscss.org Matt AgarMartin Jantošovič and Josh Schmidt
    param-processor/param-processor 1.2.2 GPL-2.0+ Parameter processing library Jeroen De Dauw
    psr/log 1.0.0 MIT Common interface for logging libraries PHP-FIG
    serialization/serialization 3.2.1 GPL-2.0+ Library defining a Serializer and a Deserializer interface and basic utilities Jeroen De Dauw
    wikimedia/assert 0.2.2 MIT Provides runtime assertions Daniel Kinzler
    wikimedia/cdb 1.3.0 GPL-2.0+ Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent. Tim Starling, Chad Horohoe and Ori Livneh
    wikimedia/composer-merge-plugin 1.3.0 MIT Composer plugin to merge multiple composer.json files Bryan Davis
    wikimedia/ip-set 1.0.1 GPL-2.0+ Efficiently match IP addresses against a set of CIDR specifications. Brandon Black
    wikimedia/utfnormal 1.0.3 GPL-2.0+ Contains Unicode normalization routines, including both pure PHP implementations and automatic use of the 'intl' PHP extension when present Brion Vibber
    wikimedia/wrappedstring 2.0.0 MIT Automatically compact sequentially-outputted strings that share a common prefix / suffix pair. Timo Tijhof
    zordius/lightncandy 0.21 MIT An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ). Zordius Chen

    Fustbariclation~enwiki (talk) 11:30, 26 March 2016 (UTC)

    I don't see arraymap listed in your Special:Version page... Are you sure you've upgraded your extensions matching the same MediaWiki version you're using? Ciencia Al Poder (talk) 19:00, 26 March 2016 (UTC)

    Upload.php run error in ConfirmAccount Extension

    PHP catchable fatal error: argument 2 passed to ConfirmAccountSetup::defineSourcePaths() must be of the type array, null given, called in /var/lib/mediawiki/extensions/ConfirmAccount/ConfirmAcount.php on line 39...

    Can somebody tell me what the issue is and how to fix it? Rahulbhaya (talk) 17:34, 26 March 2016 (UTC)

    How to Embed videos in TimedMediaHandler extension?

    How can I use the TimedMediaHandler extension to embed YouTube and Vimeo videos and videos from other hosting services into my wiki? As far I've seen it only talks about videos that are hosted on your own server, like for example .ogg video files uploaded through the Upload File function, but I don't see a part talking about embedding videos that are hosted elsewhere like the YouTube videos.

    In the configuration section of the extension page I only found a single configuration that is about remote embedding:

    // Support iframe for remote embedding
    $wgEnableIframeEmbed = true;

    But I cannot find it anywhere how to use it after I enabled this configuration on in my LocalSettings.php.

    TimedMediaHandler extension is installed successfully on my wiki but I don't know what do do with it, because I'm not interested in it's functions that are about videos that are hosted on my site. I only want to embed videos that are hosted elsewhere. The reason that I want to use this extension for video embedding and not other embedding extensions is because I want to embed videos the same way or at least similarly as Wikia does it. So far the only MediaWiki video embedding extension that I was able to found that's does it in a very similar way as Wikia is the TimedMediaHandler extension.

    Please help. Innosflew (talk) 22:45, 26 March 2016 (UTC)

    You need to use a different extension for this. For example, Extension:YouTube, although there are others. TMH can't handle that, and embedding external videos in the File: namespace as wikia does is something I wouldn't recommend personally, because of the leftover stuff it remains when vide is removed from the external hosting and you need to replace it with another video, etc. Ciencia Al Poder (talk) 09:25, 28 March 2016 (UTC)

    looking for certain functions

    i was wondering if this software can do something close to http://www.ign.com/wikis? CyanideBurial (talk) 18:43, 27 March 2016 (UTC)

    Your question seems rather vague, can you please be more concise? Ciencia Al Poder (talk) 09:20, 28 March 2016 (UTC)
    1. can you create custom pages for users to use? lets say if they are adding something to the wiki and i want to use create.php page for articles rather than the assigned page.
    2. how does the template system work? is it easy to implement a custom template or is it a rough system?
    3. Can you control permissions on who posts?
    4. is there a report a wiki page function?
    5. can you send an article to a moderation que?
    6. alphabetical directory page?
    just some quick questions off the top of my head CyanideBurial (talk) 22:36, 28 March 2016 (UTC)
    1. Create.php is a maintance script. Using these scripts requires file system access on the wiki server. It _is_ possible to give this access to certain/selected users, but that is not how Mediaiki is intended to be used.
    2. Easy.
    3. Only in a very limited way. MediaWiki is not made for access control.
    4. A report?
    5. Yes, using extensions like Approvaed Revs or Flagged Revs.
    6. Special:AllPages 87.123.56.5 (talk) 01:37, 29 March 2016 (UTC)
    MediaWiki provides an API that you can use programatically to list, edit pages, and retrieve content (either wiki syntax or HTML), so in case you're thinking on create a specific form in your page for users to submit their edits, you can use the api to post those edits to MediaWiki. This may be a better alternative to using the edit.php maintenance script. Ciencia Al Poder (talk) 09:40, 29 March 2016 (UTC)

    Skin not loading on our wiki site

    Skins are not loading when saving them on our wiki site. Safariltd.com

    The preview of the skin does not load them either. We have checked IE and Chrome. We want to save the monobook skin. It was loading properly a few weeks ago, but no longer.

    Thank you Safari2016 (talk) 13:38, 28 March 2016 (UTC)

    wiki.safariltd.com/index.php?useskin=monobook works for me. And the default skin (vector) is also displaying properly. Have you fixed it yourself? Ciencia Al Poder (talk) 15:04, 28 March 2016 (UTC)
    No it is not working for me or any of my coworkers browsers. Can you provide a screenshot? Safari2016 (talk) 14:21, 30 March 2016 (UTC)
    The skins are working for me as well.
    We know, how a working skin looks like. Instead, it would be great, if you could show us what it looks like for you. ;-)
    Apart from that I am not sure what you are trying to do. Are you trying to install new skins? 87.123.33.215 (talk) 15:13, 30 March 2016 (UTC)
    Screenshot of what I see, which looks fine to me: http://snag.gy/IXdpa.jpg Ciencia Al Poder (talk) 21:12, 30 March 2016 (UTC)
    when i go to the main page. this is what it looks like http://snag.gy/InWeh.jpg Safari2016 (talk) 17:51, 31 March 2016 (UTC)
    See Manual:Errors_and_symptoms#The_wiki_appears_without_styles_applied_and_images_are_missing! 87.123.61.63 (talk) 20:23, 31 March 2016 (UTC)
    This doesn't happen to me, as I said, so this seems to be an issue of your browser/computer/proxy. Try a different browser/computer Ciencia Al Poder (talk) 20:29, 31 March 2016 (UTC)

    Chinese terms are not padded in database now, how to search?

    Well, this is me who solved this myself. This is very simple actually. You configure the language LocalSetting.php to be "zh-cn" and run "php rebuildtextindex.php" under /maintenance

    Version 1.26.2

    I thought that this issue has been long solved. But it seems that multiple Chinese terms are still being saved as along string so that would not permit searching on one or a few Chinese characters alone.

    The database contains something like " language u8e6b58bu8e8af95u8e4b8adu8e69687u8e58d95u8e5ad97u8e6909cu8e7b4a2" when it should be saved as u8e6b58b u8e8af95 .. separated by white space.

    So now you can search X* (X is Chinese character for u8e6b58b ) to find the page. But not by X itself. Jusfeel (talk) 17:43, 28 March 2016 (UTC)

    CSS no 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.


    Boa tarde.

    Estou utlizando algumas paginas dentro da wikimedia com HTML. Mas consigo utilizar CSS e JavaScript ? Se sim, alguém pode me falar como ?

    Obrigado. Arturmafezzoli (talk) 18:43, 28 March 2016 (UTC)

    Responderé en español, pues no sé portugués pero probablemente lo entiendas mejor que en inglés.
    Por seguridad, MediaWiki solo permite publicar usando un conjunto de HTML, para evitar que usuarios puedan insertar código JavaScript malicioso. Los administradores pueden agregar código JavaScript y CSS para todo el wiki como se explica en Manual:Interface/JavaScript y Manual:Interface/Stylesheets. En esas páginas el código JavaScript se inserta directamente, sin ponerlo dentro de <script></script>.
    Si necesitas ejecutar código JavaScript específico solo en una página, deberás adaptar el código para detectar cuál es la página actual y ejecutar solo el código en ese caso. Puedes usar la variable wgPageName disponible en mw.config.get('wgPageName').
    Cumprimentos Ciencia Al Poder (talk) 09:35, 29 March 2016 (UTC)
    Boa tarde.
    Obrigado pela sua resposta.
    Mas estou meio confuso ainda.
    Eu gostaria de saber se tenho que mudar alguma variável lá no LocalSettings
    Por exemplo para funcionar o html no wiki tive que adicionar a linha $wgRawHtml = true;
    Para o CSS e Javascript não preciso realizar o mesmo procedimento ?
    Obrigado desde já @Ciencia Al Poder Arturmafezzoli (talk) 16:41, 29 March 2016 (UTC)
    $wgRawHtml es un riesgo de seguridad si es un wiki público. Solo recomendaría activar $wgRawHtml si es un wiki privado/corporativo de una intranet. Con $wgRawHtml deberías poder insertar JavaScript directamente incluyendo el código dentro de <script></script>
    El método que describo, de colocar el código JavaScript y CSS en las páginas que se mencionan en Manual:Interface/JavaScript y Manual:Interface/Stylesheets no requiere activar $wgRawHtml y es la forma más segura.
    También puedes usar Extension:Widgets para insertar partes de código HTML, que puede incluir JavaScript y CSS, y puede ser más seguro que $wgRawHtml si permites que solo los administadores puedan crear/modificar widgets. Ciencia Al Poder (talk) 09:33, 30 March 2016 (UTC)
    @Ciência ao Poder
    Obrigado pelos esclarecimentos. Entendi corretamente agora.
    Não se preocupe pois a wiki que utilizo é para nossa empresa (intranet).
    Você me ajudou bastante.
    Obrigado 138.204.191.121 (talk) 14:41, 30 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Make your own media repo as well as instant commons

    So, lets say I wanted to make uploads.mysite.com and use it as a repo, like Commons is. How would I go about doing that?

    Additionally, how would I use InstantCommons at the same time as my own repo? NeedAGoodUsername (talk) 02:40, 29 March 2016 (UTC)

    You should be able to configure them in Manual:$wgForeignFileRepos. That page has examples for both. Since $wgForeignFileRepos is an array, you can have more than one. The order should matter in case of conflicting filename. Ciencia Al Poder (talk) 09:25, 29 March 2016 (UTC)

    Block VPN's

    Is there is an extension or configuration that can block people who are using VPN tunneling to access my wiki? Innosflew (talk) 16:33, 29 March 2016 (UTC)

    No. You would need to know first if a user is connecting through a VPN and that's not automatically possible. See this SO question. Best you can come with is a list of known VPN exit nodes IP's that you can blacklist on the server's firewall or apache. Ciencia Al Poder (talk) 09:20, 30 March 2016 (UTC)

    Checking for diff3?

    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 thought my installation told me that diff3 was not set-up, and I note that localsettings.php has an option to specify the the path to diff3.

    Now that I have mediaWiki installed, how do I tell whether diff3 is set-up correctly? Is there a Special page that will tell me, along with other settings? Iantresman (talk) 20:04, 29 March 2016 (UTC)

    I'm not sure what you want, but you can always run the installer again (openeing yourdomain.tld/mw-config) and you'll see any information again :) Florianschmidtwelzow (talk) 08:46, 30 March 2016 (UTC)
    That kind of works, in my Browser I re-ran mydomain/w/mw-config, and after entering my upgradekey, it tells me that "GNU diff3 not found".
    I then added into my LocalSettings.php file, the entry: $wgDiff3 = "/usr/bin/diff3", and re-ran /w/mw-config, but no change.
    After a bit more research, I found that my PHP was not accessing scripts in /usr/bin (see "UNIX utility binaries not found")
    On my Plesk server, the solution was to go into my Control Panel, and in "PHP Settings", add :/usr/bin/ to the open_basedir settings, so that it now read: {WEBSPACEROOT}{/}{:}{TMP}{/}:/usr/bin/ (this may be different for others). There was also no need to set in my LocalSettings.php file $wgDiff3 = "/usr/bin/diff3" (as this is the default anyway).
    Another benefit is that the configuration now says: Found ImageMagick: /usr/bin/convert Iantresman (talk) 10:32, 30 March 2016 (UTC)
    Great, thanks for the feedback! :) Florianschmidtwelzow (talk) 11:00, 30 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    After running php update script I get this

    PHP Catchable fatal error:  Argument 2 passed to ConfirmAccountSetup::defineSourcePaths() must be of the type array, null given, called in /var/lib/mediawiki/extensions/ConfirmAccount/ConfirmAccount.php on line 39 and defined in /var/lib/mediawiki/extensions/ConfirmAccount/ConfirmAccount.setup.php on line 15 129.49.101.26 (talk) 22:24, 29 March 2016 (UTC)

    You need to update the ConfirmAccount extension. Afterwards, this error should be gone.
    Generally, when you do a MediaWiki update, you also have to update the extensions you use! 87.123.13.231 (talk) 22:34, 29 March 2016 (UTC)
    Hello, I had download the latest version of ConfirmUpdate and also latest MediaWiki
    1.26 108.21.218.193 (talk) 00:23, 31 March 2016 (UTC)
    After reading the code I think this is a bug. ConfirmAccount.php, line 39 uses $wgMessagesDirs. However, this variable is not set correctly at that point; it is NULL. I think this bug is related to this change:
    https://git.wikimedia.org/commit/mediawiki%2Fextensions%2FConfirmAccount.git/98660a29385838c4cc02893303f4fc2cd00f1815
    So what's the best way to fix this? Jörgi123 (talk) 01:34, 31 March 2016 (UTC)
    It looks to me as if the change, which Joergi123 linked, did not fix what it claimed to fix. If $wgMessagesDirs had not been set correctly before the patch, then the patch did not improve things. $wgMessagesDirs still is not set now.
    Is there any reason why $wgMessagesDirs is not set in the global scope of ConfirmAccount.php and that's it? 87.123.33.215 (talk) 01:41, 31 March 2016 (UTC)
    If that looks like a bug it may be worth reporting it. I don't see any related recent bug for that extension. Ciencia Al Poder (talk) 09:33, 31 March 2016 (UTC)

    Mediawiki in multiple languages

    Por favor, ya he buscado bastante sobre tener mi Mediawiki en otros idiomas pero no está muy claro.

    Yo mismo voy hacer la traducción, estará em Portugues y Español.

    Por favor, me confirmen si tengo que instalar la extensión Translate? Con esto ya puedo colocar mi Wiki en varios idiomas?

    Muchas Gracias

    Henry Henry automidia (talk) 14:14, 30 March 2016 (UTC)

    Henry wants to have a wiki with content in two different languages (Spanish and Portuguese). He asks, how he can do that and if and how the Translate extension might help with that.
    I don't have the answer, I just wanted to get the text summarized in English. 87.123.33.215 (talk) 15:18, 30 March 2016 (UTC)
    Hola Henry. Con la Extension:Translate puedes tener páginas en varios idiomas, definiendo un idioma principal, y el resto estará como subpáginas del principal. Para hacer esto, realmente la extensión Translate no es necesaria, puedes hacerlo manualmente, pero la extensión permite definir regiones de la página a traducir, y divide la página en unidades traducibles independientes que facilitan la traducción a partir del idioma principal, gestionando todo el proceso y mostrando el progreso de traducción de cada página. Eso significa que el idioma principal siempre tiene que ser el actualizado, y los demás deben seguir la misma estructura, mismas frases, etc. Ciencia Al Poder (talk) 09:42, 31 March 2016 (UTC)

    change user name

    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 need to change my username from 'JenniferGoreStandiford' to Jennifer Gore 64.69.210.172 (talk) 19:14, 30 March 2016 (UTC)

    I have just checked that, and there is no account "JenniferGoreStandiford" in the Wikimedia Foundation wikis.
    Googlong this user name brought me here: https://icannwiki.com/index.php?title=User_talk:JenniferGore&action=history
    Seems like the issue has been solved already. 87.123.33.215 (talk) 21:57, 30 March 2016 (UTC)
    The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

    Getting Past version of a page

    Hello,

    I was wondering if there is a way to get a past version of a wikipedia page? 165.230.225.218 (talk) 04:33, 31 March 2016 (UTC)

    Click the "View history" tab on the top right of the page. Click on any of the dates shown, which will give you the Wiki page created from the Wiki markup code that existed on that page on that particular date.
    Use the first text box "From year (and earlier)" to define from which year, you want to look up the history. For example, if you enter 2010 the history dates will start from 2010 and go on to earlier revisions.
    Note that, pages like Wikipedia's main page use programming code that keeps it updated. This code hasn't changed much for years, therefore you probably will not see much difference for such pages. For them you will have to use archive sites like archive.org. AhmadF.Cheema (talk) 07:54, 31 March 2016 (UTC)

    Reinstalled Mediawiki to new server got just text now

    Hi, I just reinstalled mediawiki on a new server and I can't remember what I did years ago to fix this. My mediawiki is just text down the left side plain white background no skin no graphics nothing but plain text. I chmod the folders images 777. (Moved the image folder to new server also brought extensions) I aslo brought my LocalSettings. To test I removed my LocalSetting file and created a new 1 and it still is just text and the data is there.

    I exported and imported the mysql data and it's all there just the site is plain. The old site works fine. Rickinfl (talk) 10:08, 31 March 2016 (UTC)

    This might be a problem with the load.php script.
    Note that you might have to copy over the .htaccess file from the old server to the new server as well. Maybe you missed that one?
    See Manual:load.php for a solution for that issue. 87.123.33.215 (talk) 11:23, 31 March 2016 (UTC)

    MWException when changing preferences (MW 1.26.2)

    Hi,

    whenever I want to change something in my personal preferences I get the following error:

    [3620559f] /wiki/Spezial:Einstellungen MWException from line 3701 of /usr/www/users/prepee/wikis_prepedia_marjorie/w/includes/User.php: CAS update failed on user_touched for user ID '11' (read from slave); the version of the user to be saved is older than the current version.

    MW version is current MW 1.26.2 with PHP 5.6.17 and php cache apcu on a debian jessie machine.

    This helps:

    * If we deaktivate apc cache the error is gone but we need a working object cache. BTW: It doesn't matter what object cache is installed (apc, memcached, xcache).

    * The preference change can mostly be accomplished if I reload the page after the mwexception appears. Unfortunally password change is not possible because I get logged out.

    As I remember the error happens since upgrading to MW 1.26.

    Here is the backtrace: https://www.systemli.org/paste/?dd85331162bd2ab2#ImVkD6N1iZfAW7EKOoGPIZ+HyswaO+DHx8/cO2vPTfk=

    I could not find a solution bei searching internet.

    Thanks in advance

    Uwe Singlespeedfahrer (talk) 12:54, 31 March 2016 (UTC)

    Try to poke in T95839 Ciencia Al Poder (talk) 09:42, 1 April 2016 (UTC)
    Thank you for the link. I think I'm a little bit overhelmed with so many patches. But good to see that a fix is to be work in progress. Singlespeedfahrer (talk) 14:29, 1 April 2016 (UTC)

    VisualEditor Help - marking fort translate

    hi, i made some edits with translate tag. There is non marked translates, can some translation manager mark it? Frettie (talk) 13:09, 31 March 2016 (UTC)

    You should ask that in Project:Current issues Ciencia Al Poder (talk) 09:43, 1 April 2016 (UTC)
    Thanks, its hard to know that. Frettie (talk) 12:53, 1 April 2016 (UTC)

    Sitemap

    Hi,

    I have a doubt about how to generate a sitemap.

    I installed 3 wiki: the first in the root, the second and the third in the different folders depending on the language

    1) http://www.mysite.com

    2) http://www.mysite.com/en

    3) http://www.mysite.com/es

    How can I create a Sitemap that includes all three domains?

    Until now I have used this command:

    php maintenance / generateSitemap.php \

    --fspath sitemap \

    --server http://www.mysite.com \

    --urlpath http://www.mysite.com/sitemap

    But it seems that takes into consideration only the url of the wiki installed in the root 185.5.60.134 (talk) 15:25, 31 March 2016 (UTC)

    I have not used this script myself, but I would expect the following behaviour:
    It depends on the folder which you run the command in.
    If you run it in the root, then it will create a sitemap for the wiki located in the root. If you run it from inside one of the subfolders, then it will create the sitemap for the according subfolder wiki. 87.123.61.63 (talk) 20:26, 31 March 2016 (UTC)
    Thanks for the answer! So I have to necessarily create 3 different sitemap? 185.5.60.134 (talk) 01:23, 2 April 2016 (UTC)
    Yes, each wiki generates its own sitemap Ciencia Al Poder (talk) 14:37, 2 April 2016 (UTC)