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".
Language:Project:Language policy English  español
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
Summary by Ssotocano

Thanks very much to all. The solution was explain in this Topic:Tlgkqz1mbpx8mg1g , and the script whit I could solve this was Manual:UpdateSpecialPages.php


Ssotocano (talkcontribs)


I have a big problem. The categories of my WIKI do not work. I tried to recover the database and it works, but I return the original database and the categories do not work.

The problem is that I create a category but the register don't insert in database, then isn't visible in the especial:Categories. And when I reffer to a category from a any page, don't appear in the list of pages to this category.

I don't know why happen this. I think that is a problem of databases because when changing the databases for a backup, It works correctly but the information is outdate.

Please your help.

Thanks a lot beforehand.

Sergio Andrés

AhmadF.Cheema (talkcontribs)

See Topic:T8jd8uxlq4jqb0np.

Subfader (talkcontribs)

Whoa, MW turned into shit. It was great once :( (talkcontribs)

You are free to use a different system. Or fix the "shit", if you really care about it.

Ssotocano (talkcontribs)

Thanks very much to all. The solution was explain in this Topic:Tlgkqz1mbpx8mg1g , and the script whit I could solve this was Manual:UpdateSpecialPages.php


URLs to Uploaded Files are Being Unintentionally Redirected

Jordan Barden (talkcontribs)

Hello all:

I have a MediaWiki installation--viewable at ""--that is running MediaWiki 1.27.1, PHP 5.6.27 and MySQL 5.1.56, and have come across a couple of issues that have me stumped.

1. The URLs to some of the uploaded files are redirecting improperly when accessed without the "www." prefix. For example, when I click on, the "www." prefix is appended, as intended, but the "w/images/" portion is being stripped from the URL.

I have no clue why this is happening, given the current .htaccess file, the contents of which follow:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^alecexposed\.org$ [NC]

RewriteRule ^(.*)$$1 [L,R=301]

RewriteRule ^/?wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]

RewriteRule ^/?wiki/*$ /w/index.php [L,QSA]

RewriteRule ^/*$ /w/index.php [L,QSA]

2. Additionally, it appears that some of the uploaded files are not searchable within the list of uploaded files (, despite the fact that they do appear in the list. I ran rebuildtextindex.php to rebuild the search index but it did not fix the problem.

I'm not sure if these two issues are related or it's just a coincidence that they are occurring simultaneously.

Any assistance you can give me is greatly appreciated.

Thank you!

Ciencia Al Poder (talkcontribs)

there must be another .htaccess somewhere. Is this one the .htaccess inside the /images folder? in this case, it may be this:

RewriteRule ^(.*)$$1 [L,R=301]

Although it's a bit strange because this one will append the whole URL at the end of the server name. The [L] will skip processing the rest of the rewrite rules.

Reply to "URLs to Uploaded Files are Being Unintentionally Redirected"

In our wiki, are emerging errors that are solved at time alone which generates mistrust in the tool, for example (required pages did not appear the pages not created nor when creating them disappeared from the list)

6 (talkcontribs)

No se porque sucede pero al tiempo se solucionan solos los errores, desearia que me apoyaran

Ciencia Al Poder (talkcontribs)

Empieza describiendo detalladamente el problema, pasos para reproducirlo, y si el wiki es público dar un enlace al mismo. (talkcontribs)

Mira, el problema fue mas que todo el de las paginas requeridas que al crear un link inexistente se debería sumar a la lista de las "Paginas Requeridas" pero no funcionaba, ni tampoco cuando creábamos la pagina de esos links inexistentes se eliminaba de la lista de las "Paginas Requeridas", ese fue el problema básicamente el cual estuve investigando y no halle respuesta alguna, al otro día revise la Wiki y ya no estaba el problema; esa es mi pregunta, ¿Por que se soluciono solo?

(la Wiki es privada)

De antemano gracias.

Ciencia Al Poder (talkcontribs)

El resultado de esas páginas se encuentra en caché (como bien debería advertir un mensaje al inicio de la página especial) y se actualizan cuando se ejecuta el script updateSpecialPages.php. (talkcontribs)

Entonces, ¿se actualiza cada vez que tenga un error?

Ciencia Al Poder (talkcontribs)

En principio su actualización es únicamente cuando se ejecuta el script antes mencionado. Si tienes programado en un proceso cron la ejecución diariamente, o lo ejecutas de forma manual, entonces será en ese momento cuando los datos se actualizarán, hasta entonces seguirá mostrando lo mismo que la última vez que se ejecutó (posiblemente tachando algunos de los títulos que fueron corregidos desde la última ejecución). Tendría que revisarlo de nuevo, pero diría que no hay otra forma de que se actualice automáticamente esas páginas si no es por medio del script (y por lo menos nuestra documentación no lo menciona)

Reply to "In our wiki, are emerging errors that are solved at time alone which generates mistrust in the tool, for example (required pages did not appear the pages not created nor when creating them disappeared from the list)"

Need to restrict editing to a few logged in users

Nomad63 (talkcontribs)

I have been handed a media-wiki (ver 1.25) webserver as a part of a project I took on from an employee who left the company. I don't believe he had much knowledge of setting this thing up other than what the software did at the initial install time. It requires you to login, using the company-wide active directory authentication, but after one logs in, it is free for all as far as editing goes. Even though it is against the idea of wiki, I need to restrict this editing capability to only a handful of people, due to the critical nature of information on this website. This site is intranet only and have no Internet facing parts, if it makes any difference.

On my own, I have researched quite a bit and found the file /var/www/html/includes/DefaultSettings.php and found the section where lines starting with $wgGroupPermissions, followed by some rules, but I could not figure out how to change these lines and how to add people (AD UserIDs) to the groups mentioned, or create new groups if necessary. I need either a document, explaining how this is accomplished step-by-step, or need a light hand-holding as I am a wikimedia beginner.

Thanks in advance

Malyacko (talkcontribs)

See Manual:User rights. Also, 1.25 is an ancient unsupported version that is nowadays full of security issues. Please update: Download.

Reply to "Need to restrict editing to a few logged in users"
Wang.carl (talkcontribs)

I Setup a mediawiki in my company, and we think load balancing is needed, but I don't known how to deal with the image, is there a extension can help me fix this issue. If you notice this issue, please help me, thanks very much!

This comment was hidden by Malyacko (history)
This comment was hidden by Malyacko (history)
This comment was hidden by Malyacko (history)
Reply to "Load Balancing issue"

Any way to list out all images from Wikimedia Commons been used in current wiki now?

Zoglun (talkcontribs)

For wiki enabled InstantCommons, what is the best way to get a list of files' name that cite from Wikimedia Commons?

Zoranzoki21 (talkcontribs)

From Wikimedia Commons.

Ciencia Al Poder (talkcontribs)

Apparently, there's no information about which files are in local file repository or in external repository in the database, or at least I was unable to find that info in the image table.

Reply to "Any way to list out all images from Wikimedia Commons been used in current wiki now?"
Summary by CSchrieb

Clump's advice got me what I needed. Looking forward to learning more about this!

CSchrieb (talkcontribs)

I know this is probably over-asked, but I'm running out of time. I'm having trouble finding information on creating Templates, specifically for Infobox, for a private MediaWiki site. I understand the hesitation to offer the information, due to the chance someone may take it as license to make changes to public sites. However, as a private site, I have some specific needs.

I attempted to follow the Import/Export process spelled out here (below), but I get a Server 500 error when I do the import. (The XML appears well-formed to me, though.)

Manual:Importing Wikipedia infoboxes tutorial

Any direction that can be provided would be appreciated.

MediaWiki version 1.28.0 (release 83)

PHP version 5.4

MySQL version -- unsure

My proof of concept site (my testing for compatibility with the full need) is

Fokebox (talkcontribs)

Please, see here:

CSchrieb (talkcontribs)

Thank you. I may be misunderstanding the topic. It looks like this is where I needed to start.

CSchrieb (talkcontribs)

Unfortunately, this primarily shows how to consume a template. I'm looking to create a template, (and additionally, figure out how to format it so that it moves to the right, like you see on MediaWiki pages).

Any further direction greatly appreciated!

AhmadF.Cheema (talkcontribs)

The server 500 error you are getting is likely because of some server side configuration issue. Take a look at this: Manual:How to debug, in order to get more error information.

CSchrieb (talkcontribs)

I'm still having trouble understanding the relationship between "Template:Infobox" and "Template:Infobox connector", for example. Is Infobox required to create a template like Infobox connector?

I'm literally just trying to create something simple that gets offset to the right:

Name = Bob_File

Location = GLBS22\peer

Acceptance Date = Mar 22, 1988

Am I perhaps not looking for the right object?

Clump (talkcontribs)

If you just a basic infobox on the right then you don't need anything complex; make a div with style="float:right", and include a table within it for your fields. An example is on User:Clump.

CSchrieb (talkcontribs)

Thank you Clump. I'll start there. Can this be made into a template, to be reused in multiple places? Seems like that would just be a matter of making some of the fields parameters, right?

Clump (talkcontribs)

Yes, just replace the text you want to pass in with the template call with {{{1}}}, {{{2}}}, etc.

Warning and Fatal Error after uploading version 1.28

Wschroedter (talkcontribs)

I've upgraded recently to 1.26 without problems.

Now I felt forced to upgrade again to 1.28.

When I start my wiki I get this message:

Warning: require(/kunden/ failed to open stream: No such file or directory in /kunden/ on line 81

Fatal error: require(): Failed opening required '/kunden/' (include_path='/kunden/') in /kunden/ on line 81

What should I do now? (talkcontribs)

Please make sure that you have updated all files of the installation. Also it is important that you extract the new files into a new folder. Any remaining files of the old MediaWiki version may cause errors. More details are at upgrading!

Wschroedter (talkcontribs)

I did it all again and now I see: I'm getting an error message while depackaging mediawiki-1.28.0.tar. It comes while depackaging the file mediawiki-1.28.0\wiki.phtml which says "Can not create symbolic link : Access denied : C:\ local path...\mediawiki-1.28.0\vendor\pear\net_smtp\README.rst"

And pear is the place where the start-up-time error message refers to.

So what to do about this depackaging?

AhmadF.Cheema (talkcontribs)

I don't think this should be a problem.

From what I understand, the MediaWiki package includes a symbolic link "file" which are for Linux operating systems and as such are unsupported on Windows systems. These are like shortcuts and shouldn't be causing any breaking of the software.

MarkAHershberger (talkcontribs)

"Can not create symbolic link" is what you'll see unless you run the extraction (depackaging) as an adminstrator. It won't cause problems because symlinking a README isn't going to affect the functionality.

Are you still getting the "Failed opening required..." error message?

Wschroedter (talkcontribs)

Yes, unfortunately.

I tried to go back to 1.26 but I damaged the backup.

Then I tried to go back to 1.23 but there were too many differences.

So I'm still most interested in getting 1.28 working.

This, that and the other (talkcontribs)

Would it be possible to try using a different software package to extract the TAR file? The actual unzipping (really un-tarring) seems to be where the problem is.

Wschroedter (talkcontribs)

Thank you all!

All problems are solved now!


MarkAHershberger (talkcontribs)

Could you tell us what worked for you so others will know if they run into a similar problem? (talkcontribs)

I have the same problem and I have used the mediawiki-1.28.0.tar.gz which I unpacked in windows first and then placed on my server. Which file to you Wschroedter get to have it to work? (talkcontribs)

regards HenrikKoch (talkcontribs)

I think this stupid symlink should be reported as a bug! See bugreport for how you can do that! It is a useless link and is only causing trouble!

This, that and the other (talkcontribs)

I filed phab:T156491. Please comment there saying which TAR extraction software you used when you encountered this problem.

HKOCH (talkcontribs)

Does anyone have a solution for this? My MediaWiki is still down and I don't know how to solve this after upgrading to 1.28

Warning: require(/volume1/web/MediaWiki/includes/services/ServiceContainer.php): failed to open stream: No such file or directory in /volume1/web/MediaWiki/includes/AutoLoader.php on line 81 Fatal error: require(): Failed opening required '/volume1/web/MediaWiki/includes/services/ServiceContainer.php' (include_path='/volume1/web/MediaWiki/vendor/pear/pear_exception:/volume1/web/MediaWiki/vendor/pear/console_getopt:/volume1/web/MediaWiki/vendor/pear/pear-core-minimal/src:/volume1/web/MediaWiki/vendor/pear/mail_mime:/volume1/web/MediaWiki/vendor/pear/mail_mime-decode:/volume1/web/MediaWiki/vendor/pear/net_socket:/volume1/web/MediaWiki/vendor/pear/net_smtp:/volume1/web/MediaWiki/vendor/pear/mail:.') in /volume1/web/MediaWiki/includes/AutoLoader.php on line 81

HKOCH (talkcontribs)

Found the problem

Somebody had renamed /includes/services to /includes/Services (note the upper case S ) changing this to lower case made the trick!

How and why does this happen in a release´?


Reply to "Warning and Fatal Error after uploading version 1.28"

"Cannot access the database" error, intermittent

Anthonyhobday (talkcontribs)

I've got a Mediawiki installation at the following address:

I see the following error when I visit the address:

If you can't see the image, it reads:

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot access the database)

Here are my installation details:

MediaWiki - 1.25.2

PHP - 5.5.33 (cgi-fcgi)

MariaDB - 10.1.15-MariaDB

Strangely enough, when I go to a specific page, I can see the content:

Even more strangely, sometimes this content is styled, and sometimes it's not, as if the CSS/templates/theme is or isn't loading.

I've even got to the point before where I could visit the main page and not see the error - everything appeared to be working normally.

I've contacted my hosting and apparently no changes have been made to my hosting, nor has anything gone wrong on their end. I've reset the password for the database user and updated it in LocalSettings.php, but that hasn't helped.

Also the fact that it can access content suggests that it's not really the database.

I have not made any changes myself between the time the Wiki was working fine and now.

Kiwkius (talkcontribs)

Turn on Database

Anthonyhobday (talkcontribs)

I don't think this is a serious suggestion, but if it is, you might need to elaborate. (talkcontribs)

The content is unstyled, when the call to load.php, which should in fact return the CSS styles, fails. Btw: It fails with the same error message: Cannot access the database.

I have now purged the cache of the Final Fantasy 10 page and now this page only shows a blank page, nothing else. Anyway, calling the page again afterwards still(?) shows its contents.

Anthonyhobday (talkcontribs)

I have visited other pages on the same wiki and seen styled content, so it seems to be intermittent across pages - not at all consistent. (talkcontribs)

Right now, I also see styled content.

A possibility would be to try connecting to the database e.g. via shell and to see, what error you get there...

I think I once got this kind of error message, when I tried using the same port to connect to two different places. The second one was the database server and that gave me this error. So maybe the database cannot be accessed, because the MariaDB server cannot be reached?

Anthonyhobday (talkcontribs)

I'm not particularly clued up about database administration, but I think from Windows it'd be difficult for me to connect directly to the database. I especially wouldn't know how to check if there are any errors! (talkcontribs)

You can use a tool like Putty to connect to the server and then you try logging in into MariaDB with the database credentials you have. Since the error only happens intermittently, it is important that you try the login exactly at that time, where the wiki shows that the database would not be reachable.

If I should guess, I think this is some kind of configuration problem of your host. I would ask him again to fix that - if his database server is not working correctly, then MediaWiki will not work correctly either.

Anthonyhobday (talkcontribs)

I tried this out, but it turns out I don't have shell access on my hosting account, so I can't connect directly to MariaDB.

However my host have told me that the database server is working fine and I can see the databases when I connect to MySQL admin in the cPanel for the hosting.

Ciencia Al Poder (talkcontribs)

It's strange that it only displays a Cannot access the database error message.

You can try setting $wgShowExceptionDetails to true and see if it gives a more specific reason (connection refused, can't access socket, whatever) (talkcontribs)

> I can see the databases when I connect to MySQL admin in the cPanel for the hosting.

And that at the same time, where MediaWiki says it cannot connect to the database?

Anthonyhobday (talkcontribs)

Yes - at the same time. I get the "cannot connect to database" error about 99% of the time, so it's not hard to check it at the same time that the error is up!

Ciencia: I added this line to LocalSettings.php:

$wgShowExceptionDetails = true;

I still see the same error, and nothing else, when accessing the wiki.

Anthonyhobday (talkcontribs)

I've added PHP error reporting to LocalSettings.php and now I see this when I visit the wiki:

Warning: mysqli::query(): MySQL server has gone away in /home/anthonyh/public_html/beforeiplay/includes/db/DatabaseMysqli.php on line 38

Warning: mysqli::query(): Error reading result set's header in /home/anthonyh/public_html/beforeiplay/includes/db/DatabaseMysqli.php on line 38

Not sure that gives any more help since it seems to just be PHP's way of saying, "Cannot access server".

Ciencia Al Poder (talkcontribs)

This happens usually because Mediawiki is sending a large query to mysql and the mysql server is configured to have very low limits for packet size. See other reasons for this error:

Anthonyhobday (talkcontribs)

Hmm - My Wiki database is 26mb, and I certainly wouldn't consider it a large wiki!

Anthonyhobday (talkcontribs)

I added this line to LocalSettings.php:

$wgShowSQLErrors = 1;

And now the error has changed slightly. Not sure if it helps:

(Cannot access the database: Connection refused (localhost))

Anthonyhobday (talkcontribs)

I emailed my host again and they've said that there was a minor update to MariaDB, and other users are reporting issues with Mediawiki databases (Other databases are unaffected).

My host says there's nothing we can do until the people at cPanel look into it (I suppose they're responsible for updating MariaDB?). (talkcontribs)

> the database server is working fine

> they've said that there was a minor update to MariaDB and other users are reporting issues with Mediawiki databases

So much to the host's claim the server would be working fine. They installed a -possibly faulty- update, obviously without testing it properly, and now it's no longer working. The host is responsible for his environment. It is poor behaviour to first make a mistake and to then blame others for it.

JamesPoulson (talkcontribs)

I started getting this today and the site is using MySQL.

First, the "Cannot access the database" message is displayed.

When I reload the page, it sometimes shows content.

However, the sidebar shows the standard links and not the customised ones. The standard Main Page is also displayed instead of the custom one that was set up.

So there's something odd happening here.

JamesPoulson (talkcontribs)

Ok, tried:

$wgShowSQLErrors = 1

And it says:

Too many connections

That looks like a good clue as to what is going on. (talkcontribs)

it may be useful for future interested: the answer might be in /var/log/mysql/error.log

Reply to ""Cannot access the database" error, intermittent"

Unable to continue login. Your session most likely timed out.

2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talkcontribs)

This is a strange one.

Background: We have a Mediawiki instance for internal (engineering-related) documentation. It's behind a VPN and uses the LDAP Authentication plugin. Mediawiki version 1.28.0, PHP version 5.6.29, MariaDB version 10.1.20-MariaDB-1~jessie. I assume that PHP is using 100% default settings because I did not write a php.ini and indeed cannot even find one.

Problem: Most of the time, when I try to log in, it fails, and I get an error message stating, "Unable to continue login. Your session most likely timed out." Attempting to log in again does not work and simply yields the same error. What's weird is that once in a while it works and I can log in. Further, I am the one who set up and manages this wiki and out of hundreds of users, I appear to be the only one with this problem or I would have definitely heard about it by now.

This happens under Chromium 55.0.2883.87. I have tried disabling all extensions. I have tried removing all cookies and local data for the wiki domain multiple times. It even happens in incognito mode. No issues with Firefox but that is not my daily browser and don't need to have yet another browser window open all the time. I have verified that the both server time and local time are correct.

I highly appreciate any and all suggestions.

Reply to "Unable to continue login. Your session most likely timed out."