Project:Support desk

Jump to: navigation, search

About this board

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

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A 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".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Splash skin(customized) isn't loading after upgrading to MW-1.26

1 (talkcontribs)

The skin was working fine in v1.25.2 but now after upgrading my wiki to 1.26 and configuring splash as default skin as before, it just shows plain texts without any styling at all as if there is no skin.

Reply to "Splash skin(customized) isn't loading after upgrading to MW-1.26"
TAP001 (talkcontribs)

Each time I click this thing it give me an error.

This comment was hidden by Ciencia Al Poder (history)
MOHAMD BINIRZI (talkcontribs)


Reply to "Trying to contact project admin"
Rgjleclaire (talkcontribs)

Ok, bizarre situation. I set up a mediawiki yesterday, and at first it kept telling me there was no LocalSettings even though I did put it in the right folder. Now, it is working at some moments and not at others, and it even differs per computer. Yesterday, it wasn't working on my personal laptop, but it was working on a pc at work. Later it was working on my phone, but not on another phone, and now it isn't working on the pc at work, but it is working on my personal laptop. I mean, there seems to be no logic behind this, although I'm sure there is somewhere. Does anyone have any suggestions on where to start looking? The wiki is (talkcontribs)

Very strange. I have now visited your wiki (well only the "Login required" page actually as the wiki obviously is configured to only show that page to anonymous users), but it seems to be working: The wiki is styled correctly and I do see the login page.

What exactly do you mean with "does not work"? (talkcontribs)

PS: The LocalSettings.php file is at the right place currently.

Rgjleclaire (talkcontribs)

Hi: when I say it doesn't work, I mean it randomly gives the error that LocalSettings is not present. Sometimes it gives you this error, and sometimes it doesn't.

It's on different pc's, and switching browser or clearing caches and stuff doesn't seem to matter. I can't explain it.

Reply to "No LocalSettings - but there is..?" (talkcontribs)

Would it be possible that I receive help from you on this code:

Here is how it works. Using this function <span class="listpages">category (without category:)</span>, the script retrieves all the pages from the specified category one under each other in a bulleted list. It also makes them linkable.

Here is the best example I can come up with

* Page 1

* Page 2

* Page 3

so forth and so on.

What I would like this code to do (apart form what it already does) is to have options to retrieve pages that are in a category and are not in other specified categories. i.e. They are in category 1, category 2 and 3, but I only want to retrieve them if they are in the first category. In addition, I would also wish for a reverse function. i.e. Only if they are in the categories I specify.

That's number 1. Number 2 would be for the list to sort itself automatically on rows after it reaches a certain number. Example: let us say there are 30 pages in there. I would want for those 30 pages to sort themselves 10 on a row (so 3 rows).


* Page 1

* Page 2

* Page 3


* Page 4

* Page 5

* Page 6

Any help is much appreciated and I would be very grateful for it.

Ciencia Al Poder (talkcontribs)

You can use the API:Categorymembers generator and then use prop=categories, so you get all members of a category and in turn, categories for each page. You'll have to filter on client side, though.

Example: members of Category:1847 deaths, with their categories (talkcontribs)

But that doesn't sort it on rows...

And neither does it make exceptions (i.e. page is in category 1, but is also in category 2 = don't show it).

Ciencia Al Poder (talkcontribs)

That's what I said, you must do the filtering on client side. There's no API that does that automatically for you. (talkcontribs)

Well, but isn't there a code/function that can be added to the above script? It would be much easier to just use <span class="listpages">category (without category:)</span>.

Anyway, how is the filtering done?

Reply to "Category retrieval"
Zoglun (talkcontribs)

Fatal error: include(): Cannot redeclare class cdb\reader in /wiki/vendor/composer/ClassLoader.php on line 412

Reply to "MW1.26 can't move page. How to fix this?" (talkcontribs)

hello.... as title says i wanna know how can i delete a mediawiki site??? if its possible, only founder of mediawiki site can delete it right?? or can other admins delete it too?? pls give a detailed answer.....

This, that and the other (talkcontribs)

Delete the whole site?? Yeah, you'll have to ask the wiki's operator about that... (talkcontribs)

yeah whole site.. so only way to delete mediawiki site is to contact wiki's operater....??? (talkcontribs)

To delete a complete installation you will need file system access to remove the files and you will need the rights to delete the database.

See Manual:Uninstallation for more details! (talkcontribs)

thanx for link!! is there any video or screenshot tutorial for that uninstallation thing, though?? it'd make things easy for me if theres any.... (talkcontribs)

I don't think so. Access the server the way you usually do, through FTP, through a web interface of your host or whatever. Then it is really just deleting files and database. That's all there is to it. :-)

Ciencia Al Poder (talkcontribs)

There's Manual:Uninstallation FWIW

Reply to "how can i delete my mediawiki site??"

Troubleshooting upload session failure issues

Jalbarnes (talkcontribs)

First, appologies - I'm running in Windows Server 2012 in IIS 8.5 and not in any LAMP emulation, PHP manually installed, MySQL running normally. I'm also using the NTLMActiveDirectory extension to authenticate my users against AD and create accounts automatically. I have a question on that extension's talk page for assistance in case it is related.

My symptoms are:

All functions appear to be working normally, including creating/changing/saving pages, however the upload file process results in a "Sorry! We could not process your edit due to a loss of session data." failure. I am not getting this error when using anything except file uploads.

When connected to the host server and using the same upload link via a localhost connection, the file saves perfectly fine.

Permissions appear to be granted properly to the PHP and web folders and I can see that the PHP session folder is populating with files, but uploads do not work outside of localhost.

This is the only clue I have to go on at this point, so I was hoping someone could point me in the right direction. I'm assuming there's a possability that the NTLMActiveDirectory plugin is in play, but that doesn't explain why things work fine (and are also authenticated properly) when on localhost.

So, sorry that this is a windows question, but my hands are mostly tied in terms of the environment available for this project.

Jalbarnes (talkcontribs)

Additional info: this is an internal wiki I am setting up for my customer, so I can't provide a link. I also have a DEV server not using the NTLMActiveDirectory plugin that appears to work fine and I don't see any difference in configuration outside of the authentication extension...

PHP is version 5.5.29 and MediaWiki 1.25.2

I was hoping that someone could give some clues for this session error based on the difference in functionality between a local and remote connection.

Reply to "Troubleshooting upload session failure issues"

MW 1.26: How to fix "style module should define its position explicitly" warning for custom skin?

CayceP (talkcontribs)

After updating the latest stable release of Mediawiki 1.26. my custom skin throws the following warning:

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.addThis ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in \w\includes\OutputPage.php at line 621] in C:\xampp\htdocs\w\includes\debug\MWDebug.php on line 300

According to this page this can be fixed via editing the skins' skin.json, which is currently not existing for my skin (has never been required before). Does anyone know how to fix this?

In the release notes (line 95 ff) it's also mentioned that all skis and extensions should have set a ""manifest_version" property corresponding to   the schema version they were written for. The only supported version  currently is "1"."

So this means all custom skins require a skin.json from now on? (talkcontribs)

You can or cannot use a skin.json file. That is not the point.

The thing is that your skin somewhere defines configuration for ResourceModules: Either in one of its PHP files as $wgResourceModules or in skin.json in ResourceModules. Inside there, below the entry for the styles (e.g. below skins.vector.styles), you will have to add a position like so (code from skin.json of the Vector skin):

	"ResourceModules": {
		"skins.vector.styles": {
			"position": "top",
			"styles": {
				"screen.less": {
					"media": "screen"

As for the switch to skin.json: Yes, registering a skin using a skin.json file is the new way to go. See Manual:Extension registration for more details!

CayceP (talkcontribs)

Yes, I figured that much and tried that, which did not help. Since I created my skin according to the skinning manual, I don't know how/where to provide the the skins.vector.styles

in my skin.php file, since in the manual is only described on how provide one style name, not several.

$wgResourceModules['skins.foobar'] = array(
	'styles' => array(
		'resources/screen.css' => array( 'media' => 'screen' ),
	'remoteSkinPath' => 'FooBar',
	'localBasePath' => __DIR__,

The only way where I see a possibility to this, is in the skin.json, which means I (and all other people with a custom skin, I presume) have to rebuild my custom skin.

So I did that, created a new version based on the ExampleSkin, but this didn't work either, it still throws the warning and in now it no longer loads/displays my .css file. (talkcontribs)
$wgResourceModules['skins.foobar'] = array(
	'position' => 'top',
	'styles' => array(
		'resources/screen.css' => array( 'media' => 'screen' ),
	'remoteSkinPath' => 'FooBar',
	'localBasePath' => __DIR__,

should solve the problem.

Using skin.json is an alternative; it also works woth the PHP array, which I posted here. Basically you have to add the "position" key - no matter, if you are using PHP code or a skin.json file.

Reply to "MW 1.26: How to fix "style module should define its position explicitly" warning for custom skin?"

Mediawiki on Debian Jessie shows blank pages

3 (talkcontribs)

Just updated my old debian Weezy that runs on 1.23 wiki/visualeditor with php 5.4.39 and mysql 5.5.43 to the new debian Jessie, all update was done right, but, now the pages are blank. But, if i launch the editor, content is already here... hurra... but if i previsualize or other stuffs, the page remains blank...

So, i decide to follow an advice given here and i update my wiki to the 1.24.2 with the visualeditor associated to the 1.24. After doing it all, i run the database update and.... the pages are empty now... Adding the error report it shows me the error below :

Warning: spl_object_hash() expects parameter 1 to be object, null given in /var/www/mediawiki-1.24.2/mediawiki-1.24.2/includes/Title.php on line 184
Catchable fatal error: Argument 1 passed to MediaWikiTitleCodec::__construct() must be an instance of Language, null given, called in /var/www/mediawiki-1.24.2/mediawiki-1.24.2/includes/Title.php on line 195 and defined in /var/www/mediawiki-1.24.2/mediawiki-1.24.2/includes/title/MediaWikiTitleCodec.php on line 567

Any suggestions ?

Ciencia Al Poder (talkcontribs)

Did you upgraded all the extensions as well? Try disabling all extensions to see if one of them is causing the problem.

2001:780:0:B:AC67:93F:7FB6:685A (talkcontribs)

For me, this error came up when I didn't have proper permissions for the database. You can check that by using one of the maintenance scripts, like this

php maintenance/showSiteStats.php

Jkmtm (talkcontribs)

Hello, I believe that I have MediaWiki 1.12 but need to confirm this. If the page is broken, how can I verify the version?

Since I upgraded to PHP53, the MediaWiki no longer works. Is there an easy fix for this? I need v53 for other aps that I am running. I know I need to get my version upgraded and will need to know where the archive for the older version of MediaWiki is located and any instructions for upgrading too. Thanks for the help. (talkcontribs)


You can find the MediaWiki version on your server in the file includes/DefaultSettings.php. It should be a variable assigned somewhere in the first 50 lines or so.

Here are the archives: The complete source code always is in the files which only have a "<version-number>.tar.gz" in the file name. E.g. this is what such a link looks like:

The newest releases from MediaWiki 1.19 or MediaWiki 1.21 are the recommended versions currently. Both work with PHP 5.3. MediaWiki 1.19 has long term support for a few years (I guess), MediaWiki 1.21 is the newest branch released just a few days ago. Instructions for upgrading are here Manual:Upgrading.

Good luck!