Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

How to run custom PHP over MediaWiki

1 (talkcontribs)

I have created a PHP file which loads an HTML-frontend custom-developed "call now" position:absolute "sticky" button module.

I want to run that PHP file every time a MediaWiki page is loaded, so that this custom developed module would be loaded for each MediaWiki page and thus available to any user on any webpage in my website.

How can this be done?

Reply to "How to run custom PHP over MediaWiki"
Thatnewman (talkcontribs)

Hello how do i install Module on my Wiki??

Reply to "How do I install Module"

Design MainPage Like Wikipedia

Thatnewman (talkcontribs)

Hello Everyone, I am new to mediawiki. Wikipedia has this features on their MainPage

From today's featured article

In the news

Did you know ...

On this day

Today's featured picture

Other areas of Wikipedia

Wikipedia's sister projects

How do I design Mine to have them also. Same thing with wikipedia...

Malyacko (talkcontribs)
Thatnewman (talkcontribs)

How do i add the colours????

Reply to "Design MainPage Like Wikipedia"

Is there a way to totally disable sidebar menu?

4 (talkcontribs)

MediaWiki 1.36.1 with Timeless and one sidebar menu.

I have two links in my sidebar menu: One is to the homepage and one is to the contact page.

  • A link to my homepage is already available from my site's name (#p-logo-text > p-banner) so the navigation link to the homepage causes some kind of a duplication
  • I think to put a sticky HTTP link to the contact page from the bottom part of the screen display which will appear in every page as an alternative to the navigation page link

Is there a way to totally disable sidebar menu?

Not just by CSS but from PHP?

Jonathan3 (talkcontribs)

I'm sure it is (likely there'll be a file in skins/timeless that you can just delete a chunk of). There are skins designed without sidebars too: (talkcontribs)

Thank you, I try to work all-core because it makes my upgrades much easier.

Jkhan12 (talkcontribs)

Our MediaWiki is version 1.32, and most of the available extensions, such as PluggableSSO, PluggableAuth, SimpleSAMLPhp, and OpenIdConnect, do not support it.

Reply to "Is there a way to totally disable sidebar menu?"

Rewrite MediaWiki's URLs - change index.php to Wiki on Main page

Thatnewman (talkcontribs)

Hello I am New to Media Wiki and I would like to change The default from /Index.php to /wiki.

this is what my website looks like

And what I want is

Please, don't instruct me to read:, the guide might be clear for you guys but at least for me, it isn't.

I Already changed $wgScriptPath = ''; to $wgArticlePath = '/wiki/$1';

what Else do I need to do?????????

and Secondly

is it also possible to use both

$wgScriptPath = '/w';

$wgArticlePath = '/wiki/$1';


Example Below and

One Has w and the other one has wiki.

Jonathan3 (talkcontribs)
Reply to "Rewrite MediaWiki's URLs - change index.php to Wiki on Main page"

Does MediaWiki disallow downloading SVG files?

Summary by Jonathan3

No :-) (talkcontribs) (talkcontribs)

I had to click "Save as..." instead the nonexistent "Save image as" (for that image).

I don't know how to explain this (because to me, sophistication aside, SVG files are still image files) but okay.

Malyacko (talkcontribs)

This is your web browser. This has nothing to do with MediaWiki. Please ask in a forum of your web browser. (talkcontribs)

Malyacko I am actually satisfied with your reply, thanks.

Mediawiki 1.32 version not available in most of the extension

Frizzow (talkcontribs)

Our MediaWiki is 1.32 version and most of the extension available such as PluggableSSO, PluggableAuth, SimpleSAMLPhp and OpenIdConnect etc are not offering the version. What would be the most compatible and safer version i should choose? We would like to configure SSO for our on-prem server and hope that it wouldn’t cause much trouble if we are using a different ver. Appreciate your help!!

Jonathan3 (talkcontribs)

Pick one from here: Version lifecycle.

Depends on extension compatibility and how often you plan to upgrade :-)

Bawolff (talkcontribs)

Often you can get older versions of extensions at github. However we do reccomend you use a recent version of mediawiki.

Reply to "Mediawiki 1.32 version not available in most of the extension"

WikiFamily creation user problems

Summary by Fokebox

Solution was found. The problems were in settings of prefixes

Fokebox (talkcontribs)

Hello dear Team.

I have a wikifamuly made just like wikipedia. I set up wiki with different localisations: ru.wikijournal - Russian wiki, - english wiki etc.

After upgrading wiki to 1.35. I noticed that there is problems with user account creation. I mean that if you are creating user at, it does not create account in other localisations and vice versa creating for example at it does not create account in other localisations. I have following set upo at Localsettings.php:

# MySQL specific settings
$wgDBprefix = "ru__";

# Single Sign On (one entry point for all wikis)
$wgSharedDB = "wikijournal_org"; 
$wgSharedPrefix = "ru__"; 
$wgCookieDomain = '';

# Shared tables
$wgSharedTables[] = 'interwiki';
$wgSharedTables[] = 'ipblocks';
$wgSharedTables[] = 'user_groups';

So, previously at wiki 1.30. all worked fine, but after upgrading something happened and I have creation user problems described above. Could someone help me to resolve the issue? What can I try?

Fokebox (talkcontribs)

And additionally share my thoughts. sysadmin made some settings for localization with setting on prefixes used at wiki. Maybe it caused the problems while creating new account. Share the code, may be there is a problem:

} elseif ( strpos( $uri, 'ru.' ) === 0 ){
    $wikiId = 'ru';
    $wgSitename    = 'Викижурнал';
	$wgMetaNamespace = "Викижурнал";

} elseif ( strpos( $uri, 'en.' ) === 0 ){
    $wikiId = 'en';
    $wgSitename    = 'WikiJournal';
	$wgMetaNamespace = "WikiJournal";

} elseif ( strpos( $uri, 'de.' ) === 0 ){
    $wikiId = 'de';
    $wgSitename    = 'WikiJournal';
	$wgMetaNamespace = "WikiJournal";

} elseif ( strpos( $uri, 'es.' ) === 0 ){
    $wikiId = 'es';
    $wgSitename    = 'WikiJournal';
	$wgMetaNamespace = "WikiJournal";

} elseif ( strpos( $uri, 'fr.' ) === 0 ){
    $wikiId = 'fr';
    $wgSitename    = 'WikiJournal';
	$wgMetaNamespace = "WikiJournal";

} elseif ( strpos( $uri, 'it.' ) === 0 ){
    $wikiId = 'it';
    $wgSitename    = 'WikiJournal';
	$wgMetaNamespace = "WikiJournal";

# Set varaiable depending on wiki ID
$wgServer      = 'https://'. $wikiId .'';
$wgDBprefix    = $wikiId .'__';
$wgLanguageCode = $wikiId;
if ( strpos( $uri, 'files.' ) === 0 ){ $wgLanguageCode = "en"; }
//echo "\n wikiID=$wikiId; \n Lang=$wgLanguageCode ";

# Use config from site root
$wikiConfig = $IP .'/LS_'. $wikiId .'.php';


Why Growth pop-up windows don't appear in Central Kurdish Wikipedia?

Aram (talkcontribs)

Hi, Growth Features has recently been added to the Kurdish (ckbwiki and kuwiki) Wikipedias, but I don't know why Growth features pop-up windows don't appeared. For example, when you want to add links between articles, and click one article, nothing else will appear, such as the pop-up windows appeared in English and Arabic Wikipedias. Thanks,

Malyacko (talkcontribs)

@AramThis seems about configuration of some Wikimedia website, and not about MediaWiki itself. So this should either be brought up on meta:Tech, or reported by following How to report a bug.

Malyacko (talkcontribs)
Aram (talkcontribs)

@Malyacko Thank you for the reply. I asked one of the maintainers of Growth Features and said "that version is still being tested". Thank you both!

Tanbirzx (talkcontribs)

Welcome to Mediawiki. Please stay calm down because it has recently been added to your wiki. Maybe it will fix after sometime.

Malyacko (talkcontribs)

@Tanbirzx If you have nothing helpful to add, then please stop commenting on random posts here (as this isn't the first time this happens). Thanks for your understanding.

Reply to "Why Growth pop-up windows don't appear in Central Kurdish Wikipedia?"

Need some help with upgrading mediawiki

Pritesh j thakkar (talkcontribs)

We are currently running following version, plan is to move mediawiki to CentOS 7 and upgrade mediawiki. Can you please guide me which version I should upgrade to first before latest LTS version ? and how can i upgrade it ?

Product Version
MediaWiki 1.15.4
PHP 5.3.3 (apache2handler)
MySQL 5.1.73


Fokebox (talkcontribs)

First of all try to follow official guidance on upgrading. If you face any difficulties, drop a message here.

P.S. I believe you will have some difficulties as you MW version extremely old, so probably you should ugrade step by step to newer version like from 1.15. to 1.20 to 1.25 to 1.30. etc.

Pritesh j thakkar (talkcontribs)

@Jonathan3 @Fokebox

Can you please have a look at following approach and tell me if I should be doing it differently ?

- I have built new centos 7 server and installed following packages :

httpd php php-mysql php-gd mariadb-server php-xml php-intl mysql

- export db from old server, and import it on new server, bring mediawiki code (/var/www/wiki) and save it on new server

- After 1.15 next LTS version is 1.19 so download that code. Backup existing mediawiki dir, untar new mediawiki release, copy LocalSettings.php from backup and test

Is there any document I can follow for step upgrade ?

Jonathan3 (talkcontribs)
Jonathan3 (talkcontribs)

Yes, there's a new note on that page saying: "Since Version 1.36, MediaWiki only commits to supporting upgrades from two LTS releases ago (see phab:T259771). Upgrades from older versions of MediaWiki will have to be performed in multiple steps. This means that if you want to upgrade to 1.36 from 1.23 or earlier, you'll first have to upgrade your 1.23 wiki to 1.27 (or 1.35), and, from 1.27 (or 1.35), you'll be able to upgrade to 1.36."

Jonathan3 (talkcontribs)

Looking at it again, to me this sentence is nonsense (i.e. I can't make sense of it!)

[Edit, since indentation didn't work as I had expected: I mean the sentence beginning "Since Version 1.36, MediaWiki only commits to supporting upgrades from two LTS releases ago..."]

Looking at task T259771, it says: "Also, everything up to 1.35 can still be done in one step. So someone who, in four years, wants to upgrade from 1.29 to 1.43, will have to do two steps: one to 1.35, and one to 1.43. To upgrade to 1.50 in seven years, you'd go from 1.29 to 1.35 (2020), then to 1.43 (2024), and finally to 1.50 (2027). Not too terrible, I think."

So it looks like you could go straight from 1.15 to 1.35. You couldn't go from 1.15 to 1.36 though. You might as well go straight to 1.35, then 1.36, as then you don't have to mess around with different PHP versions etc.

This post was hidden by Pritesh j thakkar (history)
Jonathan3 (talkcontribs)

Maybe that's a php version thing. You don't need to move the old wiki php files across. Just the database plus a selection of files (localsettings.php etc). You download the new mediawiki files from the tarball, then copy across those selected files.

Reply to "Need some help with upgrading mediawiki"