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

Hi everyone, I am using Mediawiki on a hosted site that uses CPanel. We are attempting to set up an alias so that my users can go to a domain that we own as opposed to my hosted domain. We've set up the appropriate CNAME on our DNS for the url, and an alias in the cpanel. However, after going to the site, it does not retain the "normalized" url. My hosting site support says they think it's a configuration in the mediawiki settings that needs to be changed. Any thoughts on how to make this happen?

The site url we are attempting to use is It redirects to Any help would be greatly appreciated!

MarkAHershberger (talkcontribs)
SweeBill (talkcontribs)

@wgServer is set to $wgServer = ""; Changing it to takes me to a default a2hosting page. It's currently set like that right now, if you want to see what it's taking it to.

I'll be honest, I know just enough to be dangerous and don't have a ton of support from our IT section on this. They'd prefer I use Sharepoint's wiki, so they are relatively hands-off. I am not currently using short urls, but would be open to it if it'll fix it.

SweeBill (talkcontribs)

I have to walk away from my computer for a few hours, so I am going to change it back so that the site at least works for our users. Let me know if you'd like me to change it back so you can see what it's doing.

MarkAHershberger (talkcontribs)

Nice wiki!

I don't understand why it isn't behaving correctly. Let me know when you are around to change it back.

SweeBill (talkcontribs)

Hi Mark, I'm back. Thanks for the compliments. I've switched it back again to where it's "broken"


SweeBill (talkcontribs)

Also, just to make sure I mention it. Mediawiki isn't installed in it's default location. I created a subdomain that I installed it under. So, it's in a folder on the server. I hope that's the right way to explain it...

SweeBill (talkcontribs)

Sorry, I ran out of time again and needed to set it back.

I may try to call A2Hosting support again just to make sure I have it all set up right and hope to get hold of someone in support that has some sort of mediawiki experience.

They seemed to think that there was something missing in the localsettings.php that I needed to set, but I'm starting to wonder now if there is just something set up incorrectly, or if I set something up incorrectly when I set the server up.

Reply to "Mediawiki and CPanel Alias"

Upload error - Could not create directory "mwstore://local-backend/local-public/".

Biggino14 (talkcontribs)

The complete message is "Could not create directory "mwstore://local-backend/local-public/f/f9"." when I try to upload a file from Special:Upload.

I search solution on internet but no one is referred to my problem.

I add in LocalSettings.php these lines: Manual:Disabling file lock manager

I've already setting correctly the upload folder.

For any dubt I've temporary set 777 on mywiki/images directory.

On php (7.3) I've set the upload option on.

All software is updated.

Tell me if you need more info. I've log of 1810 lines when I click on upload buotton :(.

Bawolff (talkcontribs)

did you set the file permissions on the subdirectories of mywiki/images?

Biggino14 (talkcontribs)

yes, for any dubt I do:

sudo chown -R user mywiki/

sudo chgrp -R www-data mywiki/

sudo chmod -R 777 mywiki/

sudo chmod g+s mywiki/

I'm in local test machine so no problem to test with these permissions.

Reply to "Upload error - Could not create directory "mwstore://local-backend/local-public/"." (talkcontribs)

Message top Your admin:

I get a failure at downloading PDF from:

The failure is:

"C:\Tmp\B6JXywCA.pdf.part konnte nicht gespeichert werden, weil die Quelldatei nicht gelesen werden konnte.

Versuchen Sie es später erneut oder kontaktieren Sie den Server-Administrator."

Please correct



MarkAHershberger (talkcontribs)

This is not the right place to report his problem.

Reply to "Technical Problem"
SweeBill (talkcontribs)

I'm trying to created an unordered list that is collapsible. The list has multiple levels. So, for example:

List Title (show/hide)

  • Level 1a
    • Level 2a
    • Level 2b
      • Level 3a
    • Level 2c
  • Level 1b

I want to be able to click on the List Title and have it collapse the whole list. I was using something like this:

<ul class="mw-collapsible mw-collapsed" data-collapsetext="List Title (hide)" data-expandtext="List Title (show)">

<li>Level 1a</li>


<li>Level 2a</li>

<li>Level 2b</li>


<li>Level 3a</li>


<li>Level 2c</li>


<li>Level 1b</li>


However, it only collapses the first level. Is it possible to collapse the whole list and, if so, what am I missing?

TiltedCerebellum (talkcontribs)
This post was hidden by SweeBill (history)
TiltedCerebellum (talkcontribs)
Reply to "Collapsible Nested Lists"

Show articles first on category pages?

Stefahn (talkcontribs)

Category pages first show subcategories and second the articles. Is there a way to swap that, so that articles are shown first and subcategories second?

MarkAHershberger (talkcontribs)

I think you might be able to use CSS. See this tutorial. You would have to swap the #mw-subcategories and #mw-pages elements.

Stefahn (talkcontribs)

Yes, we could use JavaScript to swap them. But there is no setup file or setting anyone knows?

MarkAHershberger (talkcontribs)

You would have to use your wiki's MediaWiki:Common.css and MediaWiki:Common.js.

Reply to "Show articles first on category pages?"
JDobbsy1987 (talkcontribs)


I have just started my first wiki and trying to get to grips with how it works.

I am trying to create what i believe are content grids? on the main page like the home page and Help:Contents page here.

I have tried to copy the source of the Help:Contents page but then i just get "Template:ContentGrid (page does not exist)"

I assume i have to create that template and maybe add some CSS but i'm at a loss as when i create a page with CSS like Template:ContentGrid/styles.css it doesn't appear as formatted CSS but plain text.

Any help would be greatly appreciated.

MarkAHershberger (talkcontribs)

Where are you getting your page from? If you're using, then go to Special:Export, put "Template:ContentGrid" in the text area labeled "Add pages manually", make sure the "Include templates" box is checked and submit the form.

Then go to your wiki and import the file.

Reply to "Content Grid Creation"

users can login to mediawiki from another site

2 (talkcontribs)

Hi everyone

we have an MVC site with more than 200 users. we want our users can login to MediaWiki by their user name and password without sign up for MediaWiki. how can we do that?

MarkAHershberger (talkcontribs)

It depends upon the authentication method you are using for your site.

If you have a database of usernames and passwords in the app and want to allow people to use them, you could write an extension to use those usernames and passwords for authentication or you could expose, say, an OpenID interface there that your wiki could use.

Reply to "users can login to mediawiki from another site"

Writing my own syntax highlighting

Barney97 (talkcontribs)


I'm currently working on a Wiki about the computer algebra software CoCoA and want to include code in the Wiki. The problem is that this language is not supported yet by the Extension:SyntaxHighlight.

Is there any way to create a custom syntax highlighting only using CSS, HTML and JS? Just a simple way to highlight chosen keywords would be great.

MarkAHershberger (talkcontribs)

I don't know about a way to do it with CSS, HTML and JS, but you could talk to the maintainers of Pygments or read the documentation there to see how to get SyntaxHighlight working for CoCoA.

Reply to "Writing my own syntax highlighting"

MediaWiki 1.35 Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached

CharlesCivi (talkcontribs)

I just installed MediaWiki 1.35 on an Amazon Linux EC2 server, with php 7.3 and MariaDB

Everything seems to work fine, except when I try to edit a page using VisualEditor.

I cannot load a page for editing, I get the error:

Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached

I can edit a new page with VisualEditor, but I when I try to save it, I get the same error.

Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached

I have no trouble reaching the page via the REST endpoint:


Which returns:

// 20201019142902

// http://MyWayCoolIPAddress/rest.php/v1/page/Main_Page


 "id": 1,
 "key": "Main_Page",
 "title": "Main Page",
 "latest": {
   "id": 1,
   "timestamp": "2020-10-14T17:17:27Z"
 "content_model": "wikitext",
 "license": {
   "url": "",
   "title": ""
 "source": "MediaWiki has been installed.\n\nConsult the User's Guide for information on using the wiki software.\n\n== Getting started ==\n* Configuration settings list\n* MediaWiki FAQ\n* MediaWiki release mailing list\n* Localise MediaWiki for your language\n* Learn how to combat spam on your wiki"


If I try to call the API endpoint directly:


I get a similar error:


   "error": {
       "code": "apierror-visualeditor-docserver-http-error",
       "info": "Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached",
       "*": "See http://MyWayCoolIPAddress/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <> for notice of API deprecations and breaking changes."


This is MediaWiki 1.35, and as far as I know it includes Parsoid-PHP, so I don't need to do any additional configuration.

I assume VisualEditor is not the problem because I can edit a new page, I just can't save it.

MarkAHershberger (talkcontribs)
CharlesCivi (talkcontribs)

SELinux status: disabled

CharlesCivi (talkcontribs)

Is it trying to reach parsoid from the client, or from the server side and then pass it to the client?

MarkAHershberger (talkcontribs)

VE connects to MW via api.phpand then, because of the way VE was originally created, MW makes an http call to itself via rest.php. I'm pretty sure this will change in the next version of MW/VE.

The connections (from the instances I've seen) are made on localhost. Maybe your webserver isn't listening on localhost?

In any, case check the "Linking with Parsoid" section of the documentation. It may help.

CharlesCivi (talkcontribs)

On the server I execute: curl http://localhost/rest.php/v1/page/Main_Page and I get a good result

I checked the Link with Parsoid section, and it suggests adding the URL parameter, which I do,

But, setting it to 'url' => $wgServer . $wgScriptPath . '/rest.php' as suggested merely results in a timeout, as I would expect, because it can't reach itself by domain name

I set it specifically to 'url' => 'http://localhost/rest.php' Which I've proven works through curl, but I receive a different error - 404, not found.

I added to the apache server to Listen localhost:8000 and then modified the url to use: 'url' => 'http://localhost:8000/rest.php' but that gets the 404

Based on those results, I assume that parsoid is using $wgServer by default, which is why it can't reach itself.

CharlesCivi (talkcontribs)

Based on my last response, I realized parsoid is using $wgServer to connect to rest.php

So, I added the domain name to /etc/hosts using and now it works!

Thanks for helping me work it through

CharlesCivi (talkcontribs)

But it does make me wonder why it got a 404 when I changed the URL to localhost?

MarkAHershberger (talkcontribs)

Your webserver probably thought that it wasn't serving a site named "localhost" but when you gave it your domain name, it worked. If you had told your server to serve the same site on localhost and your domain name, it probably would have worked.

Ryansbudza (talkcontribs)

I am getting the same error above on Mediawiki 1.35, but only on large pages with large tables. Visual Editor works on all other pages without issue. On large pages, the progress bar for loading gets about 75% of the way and then this error pops up.

Is there a way to increase the time limit?

MarkAHershberger (talkcontribs)

Please ask a new question instead of replying to old ones with new issues.

Changing the current text shown

Adithyak1997 (talkcontribs)

Consider the following log entry:

14:42, October 27, 2020 Materialscientist talk contribs blocked Conorhater talk contribs with an expiration time of indefinite (account creation blocked)

Do note that above one is just a random example. I would like to know how I can change the text "with an expiration" to "with a expiration". Note that this too is just an example. I actually need to make the change in

Malyacko (talkcontribs)
Reply to "Changing the current text shown"