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 isn't loading after upgrading to MW-1.26

5 (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. (talkcontribs)

Two steps:

First, at the bottom of your LocalSettings.php file, please add the line

$wgResourceLoaderDebug = true;

Then, second step, please have a look inside the source code of an affected page.

In the head of this page, you will have a number of links pointing to load.php. Please visit each of these links!

In all of these links you should see some CSS styles. In your case, you will most likely not have CSS styles, but you will see a PHP error in at least one of these links.

What is the error message? (talkcontribs)

Hey, Thanks for replying.

So, I added the code in my localsettings.php and refreshed the main page but it's still the same with no errors showing up anywhere on the page or on any other pages on my wiki. There are no links in the head either.

Also, every page on the wiki is showing up like this, so it is not just one page issue. The css used "inside" the wiki page is however working fine. The issue is that the navigation links, footer links, site's name, create account/login links, etc are not showing as configured in the skin's CSS. They are like:

●Create an account

●log in


●Main page

●recent changes

●Random page


●What links here

●Related Changes

●Special pages

■Main Page




Ciencia Al Poder (talkcontribs)

I've installed it on 1.26 and indeed it fails to load styles. With $wgShowExceptionDetails, loading load.php with &modules=skins.splash&only=styles&skin=splash gives me:

exception 'Less_Exception_Chunk' with message 'ParseError: Unexpected input in screen.less on line 396, column 3
394| 		border: none;
395| 		height: 1px;
396| 		padding: 0;
397| 		margin: .5em 0;
398| 		display: list-item !ie;
399| 		list-style: url('images/hr.png') inside !ie;' in /home/www/lib/mediawiki-1.26.0/vendor/oyejorge/less.php/lib/Less/Parser.php:543

I'm not sure what's up with that line, as removing it gives the same error on the avobe line, etc

Removing from that line until the end of the ruleset "}" stopts the error, though.

I suspect there's a bug in the less parser of MediaWiki

Ciencia Al Poder (talkcontribs)

Well, probably. Some changes have been done on the screen.less file after it was branched for REL1_26, but they weren't backported to the 1_26 release. I've asked a backport in phab:rSSPL7666707e469dc2f4d3f2810662a0cf22235a9beb

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

I enable flow in this page of my wiki but not load page for post a comment.

AKlapper (WMF) (talkcontribs)

Maybe unrelated, but the developer console of your web browser shows "Error: Unknown dependency: ext.gadget.enwp-boxes" on that page (which might potentially influence the behavior).

Ciencia Al Poder (talkcontribs)

I see a JavaScript error: Error: Unknown dependency: ext.gadget.enwp-boxes

You seem to have a broken gadget

Reply to "Flow Extension not load"

MW1.26 : javascriptSlideshow extension 1.23

Summary by Chantoune

OK great thanks

I modify the source of JavascriptSlideshow.php as following and now the slideShow works again

(it will be better if in the download of the extension this modification was reported)

$wgResourceModules += array(


'ext.slideshow.main' => $slideshowResourceTemplate + array(


'scripts' => array('slideshow.js',),




'ext.slideshow.css' => $slideshowResourceTemplate + array(


'position' => 'top',


'styles' => array('JavascriptSlideshow.css',),



); (talkcontribs)

with this new medawiki version I get this error in orange color

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.slideshow.css ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in C:\wamp\www\mediawiki-1.26.0\includes\OutputPage.php at line 621] in C:\wamp\www\mediawiki-1.26.0\includes\debug\MWDebug.php on line 300            

and there is no new version of this exetension : how to solve this warning which mask the top of my site (talkcontribs)


I'll add this to the Release Note page at 1.26.

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.

Rgjleclaire (talkcontribs)

Any other ideas?

Reply to "No LocalSettings - but there is..?"
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)


AKlapper (WMF) (talkcontribs)

If you have a specific question, please ask your question.

Reply to "Trying to contact project admin"

MW1.26 can't move page. How to fix this?

Zoglun (talkcontribs)

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

Ciencia Al Poder (talkcontribs)

If you upgraded, please be sure to unpack the installation files on a new empty directory instead of overwriting the old files.

Reply to "MW1.26 can't move page. How to fix this?" (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" (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?"