Project:Support desk

Jump to navigation Jump to search

About this board

vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".

Modification on a Wikimonde article

2
InesBouza (talkcontribs)

Hello,

I would like to know how to edit an article on the encyclopedia wikimonde because the information contained in it are wrong.

Thank you for your help!

AhmadF.Cheema (talkcontribs)

Wikimonde is not associated with the Wikimedia foundation, therefore this would be the wrong forum to ask.

Probably make your query at Wikimonde:Bistro.

How to create a Clickable Button in MediaWiki?

3
142.157.25.184 (talkcontribs)

Hello, I'm trying to create a site using mediawiki and ineed to have a clickable button at one page. I've tried to include a text provided here https://commons.wikimedia.org/w/index.php?title=Template:Clickable_button/doc&action=submit

and it resulted in the text Template:Clickable button on the page. Apparently, my mediawiki doesn't contain a template for clickable buttons. The question is: where can I take the code for this template so that my clickable button works? Thank you

142.157.25.184 (talkcontribs)
AhmadF.Cheema (talkcontribs)

A template may include several other templates and modules which would also need to be imported into your Wiki.

  1. Go to Special:Export.
  2. In the "Add pages manually:" textbox, add "Template:Clickable button".
  3. Check "Include templates" and click the blue "Export" button. A file will be downloaded to your computer.
  4. Then go to your Wiki's version of the Special:Import page and then import this exported file.
Reply to "How to create a Clickable Button in MediaWiki?"

Dear Team, What is the skillset we we need to upgrade the existing wikipedia version to the latest?

2
160.62.4.100 (talkcontribs)

Dear Team, What is the skillset we we need to upgrade the existing wikipedia version to the latest?

AhmadF.Cheema (talkcontribs)

*existing MediaWiki version

Following instructions and documentation and being able to search on Google should be enough.

See Manual:Upgrading for details.

Reply to "Dear Team, What is the skillset we we need to upgrade the existing wikipedia version to the latest?"
49.178.37.57 (talkcontribs)

We have received a ftp dump of all the files from a Wiki running version 1.24.2, and are trying to get it running on a new server. However, we haven’t had much luck getting it to work if we move the files into a modern version of MediaWiki. Do we need to get these files running on an old version of MediaWiki before upgrading, or is it possible to upgrade these files to make them functional on a current MediaWiki release without installing 1.24.2 first?

AhmadF.Cheema (talkcontribs)

By "we move the files into a modern version of MediaWiki", do you mean all the files and directories or just the images/uploads directory and LocalSettings.php file?

See Manual:Upgrading#Using a tarball package.

You shouldn't "need to get these files running on an old version of MediaWiki before upgrading". Also did you receive the database backup too, because that is the most significant part of the old Wiki, comprising of almost all of the Wiki content.

Reply to "Installing and upgrading old wiki"
38.72.131.175 (talkcontribs)

Migrated to new server and upgraded from 1.21 to 1.31 and PHP to the latest. Now when anyone click Edit on any page, we get: Fatal exception of type "Error"

Hope this is an easy fix. Thanks!

AKlapper (WMF) (talkcontribs)
38.72.131.175 (talkcontribs)

I followed the instructions to display PHP errors, display startup errors, and display SQL errors, but it still just throws this error (with a different prefix string and date) when you click Edit on any page:

Internal error

[b4eb2ce02cd149d8c2da49cd] 2018-07-18 16:41:47: Fatal exception of type "Error"

[b4eb2ce02cd149d8c2da49cd] 2018-07-18 16:41:47: Fatal exception of type "Error"

38.72.131.175 (talkcontribs)

I also added the $wgShowExceptionDetails = True to the LocalSettings.php file but it still shows now more info in the error, even after rebooting.

This is on a Windows 2016 server, running the same version of XAMPP as our current server, 1.8.3-0, then manually upgrading PHP to 7.2.7 and upgrading MediaWiki from 1.21 to 1.31 and running the config page to upgrade the db. Prior to upgrading, clicking Edit works on this new 2016 server.

Malyacko (talkcontribs)
38.72.131.175 (talkcontribs)

meant to say it still shows no more info on the error page.

38.72.131.175 (talkcontribs)
Reply to "After upgrade, can't edit pages"

Site CSS, can't find header h1 element

2
Noxiousnoxy (talkcontribs)

Hi, inspecting the header, h1, title of a page it has the following css loading...

h1, h2, h3, h4, h5, h6 {

    color: #000;

    background: none;

    font-weight: normal;

    margin: 0;

    overflow: hidden;

    padding-top: 0.5em;

    padding-bottom: 0.17em;

    border-bottom: 1px solid #a2a9b1;

}

I can't find this css anywhere.

It says it loads in at...

...w/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.content.externallinks%7Cmediawiki.skinning.interface%7Cskins.madwiki&only=styles&skin=madwiki

But I don't know where to find this to edit it. I do not wish to overide it, but find where it's already stated.

Thanks

Malyacko (talkcontribs)

You can use the URL parameter "debug=true" to find the exact file.

Reply to "Site CSS, can't find header h1 element"
Summary by Scejja

HALAMP

Scejja (talkcontribs)

I successfully installed mediawiki in one server just to test (mediawiki 1.30 , php 7, mysql 5.7, ubuntu0.16.04, apache). Among others I installed (I'm interested in) this extension: VisualEditor (parsoid server, restbase server).

Now, I would like to install mediawiki in a high availability environment but I have no experience on that. I think I could start by trying to use two servers for the application server and other two servers for mysql database, but I do not know which cluster software should I use for each.

In Mediawiki documentation I only find this documentation (to be configured in LocalSettings.php): Manual:$wgDBservers

I need a starting point, thanks in advance

Juanjo

85.16.10.75 (talkcontribs)

That sounds like you want to do something that Wikimedia is doing with Wikipedia as well. They e.g. are using a master and several slave databases.

Scejja (talkcontribs)

Yes it can be a good solution (as stated here Manual:MediaWiki architecture). The real goal for me is that if a node fail, the application may continue to work until that node has been "repaired".

So which software may I use for mysql cluster?, and for apache server?

Any guide related to Mediawiki?

Thanks!

Scejja (talkcontribs)

I found halamp, I will start here. thanks a lot

193.178.246.121 (talkcontribs)

Hi, I've a problem with local file link.

I've installed MediaWiki on my PC with XAMPP.

I have some file stored on a shared NAS server ("\\server_example\file.xls").

I created a link that can point to this NAS server and I read about all the referred browser problems for accessing file system.

But I want that when I click on the link, the site don't try to open the file on the browser but it must download the file.

I tried to create the link in HTML with <a href=""></a> in a simple test blank page on my PC:

<html><a href="\\server_example\file.xls">TEST</a></html>

And the browser automatically donwload the file, and so why in MediaWiki this method don't do nothing?

Thanks.

Reply to "Problem with local file link"
Faimetti (talkcontribs)
MediaWiki 1.30.0 (3e317bb)
PHP 7.1.19 (fpm-fcgi)
MariaDB 10.0.35-MariaDB-0+deb8u1
ICU 52.1

Impossible to display a slideshare document in my mediawiki page : https://wikiagile.cesi.fr/index.php?title=Lean_Primer with Extension:SlideShare2012. However, when I display source code of the page, I can click on the link and access to the slideshare page :

<div style="width:425px" id="TFz20JkmrSLsT"><iframe src="http://www.slideshare.net/slideshow/embed_code/key/TFz20JkmrSLsT" width="668" height="714" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div>
Reply to "Problem with Slideshare display"
Johnywhy (talkcontribs)

Any font-picker available for Mediawiki? Could be global or per-user.

I don't want to change the whole skin, just pick a different font.

Extension:FontAwesome does not seem created for that purpose.

TheDJ (talkcontribs)

The font settings are part of the skin

Johnywhy (talkcontribs)

Yes, i understand. I'm looking for a font-picker widget that's independent of the skin.

Osnard (talkcontribs)

If you want to have different fonts within a pages' content you may just use an HTML snippet like

... <span style="font-family:serif">My text</span>... 

You could also define CSS classes with the font settings in your Common.css. After that you could add an button to your WikiText-Editor: Manual:Custom edit buttons

But there is not an actual font picker for WikiEditor of VisualEditor as far as I know.

Johnywhy (talkcontribs)

Thx, i'm familiar with the CSS. I don't mean a font-picker for the editor. i mean a font-picker for the site visitor.

Johnywhy (talkcontribs)
Osnard (talkcontribs)

AFAIK there is nothing like this available, so you will have to implement it yourself. If you don't want to create a serverside extension (which I would recommend) you might got for MediaWiki:Common.js. A picker like the one from your example could be implemented that way.

Reply to "Font Picker?"