Project:Support desk

Jump to navigation Jump to 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, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) 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". (talkcontribs)

I have faced problems to load my mediawiki with mysql server , so i have removed mysql server and installed new mysql server. And i have lost my data and i don't have any backup files. Now my mediawiki showing blank page. Can you please let me know how to solve my problem.

AhmadF.Cheema (talkcontribs)

Are you saying that you deleted your Wiki's MySQL database?

If your Wiki is public on the internet, can you provide a link to it? (talkcontribs)

The below errors are been displaced when i have run my wiki:

[b0613efb8b238ef5680cd55a] /mediawiki/mediawiki-1.31.0/ InvalidArgumentException from line 536 of /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'


#0 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/database/Database.php(482): Wikimedia\Rdbms\Database::getClass(string, NULL)

#1 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1013): Wikimedia\Rdbms\Database::attributesFromType(string, NULL)

#2 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/rdbms/loadbalancer/LoadBalancer.php(697): Wikimedia\Rdbms\LoadBalancer->getServerAttributes(integer)

#3 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(184): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean, integer)

#4 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(267): SqlBagOStuff->getDB(integer)

#5 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(245): SqlBagOStuff->getMulti(array)

#6 /var/lib/mediawiki/mediawiki-1.31.0/includes/objectcache/SqlBagOStuff.php(241): SqlBagOStuff->getWithToken(string, NULL, integer)

#7 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/CachedBagOStuff.php(56): SqlBagOStuff->doGet(string, integer)

#8 /var/lib/mediawiki/mediawiki-1.31.0/includes/libs/objectcache/BagOStuff.php(185): CachedBagOStuff->doGet(string, integer)

#9 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(939): BagOStuff->get(string)

#10 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionInfo.php(150): MediaWiki\Session\SessionManager->generateSessionId()

#11 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionProvider.php(172): MediaWiki\Session\SessionInfo->__construct(integer, array)

#12 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(270): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)

#13 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(244): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)

#14 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(194): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)

#15 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebRequest.php(736): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#16 /var/lib/mediawiki/mediawiki-1.31.0/includes/session/SessionManager.php(130): WebRequest->getSession()

#17 /var/lib/mediawiki/mediawiki-1.31.0/includes/Setup.php(847): MediaWiki\Session\SessionManager::getGlobalSession()

#18 /var/lib/mediawiki/mediawiki-1.31.0/includes/WebStart.php(88): require_once(string)

#19 /var/lib/mediawiki/mediawiki-1.31.0/index.php(39): require(string)

#20 {main}

please help me out how to fix this problem

Seb35 (talkcontribs)

If you deleted and purged the data files of the MySQL server, I’m afraid it is lost, except if you find some backup.

Given the error, I guess you upgraded the wiki recently, and either you are on a very old server either you have a very customised configuration parameter $wgServers. (talkcontribs)

Hello Seb35,

Thank you for your response.

Can you let me know what steps to be taken for solving this issue.

Seb35 (talkcontribs)

Do you really have the database with data inside? You said previously you deleted the database. What did you exactly when you "delete" the database?

How re-installed you the database?

What are the following configuration parameters in LocalSettings.php:

  • $wgDBtype,
  • $wgDBserver,
  • $wgDBservers ?

What are the version of your MySQL server and PHP ? (talkcontribs)

I don‘t have mysql data in my system. But i have all the files of mediawiki that i have installed in /var/www/html/mediawiki.

In Localsettings.php i have the following below:

$wgDBtype : "mysql“ $wgDBserver : "localhost“

Currently i am using the version of Mysql - 5.7 and php - 7.2 (talkcontribs)

Hello AhmadF.Cheema,

Thank you for your response. I am sorry my wikii is not available on the internet. It is of local community one. (talkcontribs)

i have resolved the errors that i have posted above.

But now when i open my mediawiki it is showing

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot access the database)

You can try searching via Google in the meantime.

Note that their indexes of our content may be out of date.

can you help me out in this.

This post was hidden by (history)
2001:16B8:10D9:9A00:ADE0:7A87:F23F:D332 (talkcontribs)

> Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'

This sounds like MySQL is not installed properly. At least I guess that the system currently cannot use it.

Apart from that: If you do not have a backup of the database, then I don't see a way of how to restore the wiki.

Maybe you can create a dump of the database from inside the old MySQL server. You could then restore this dump into the new server. (talkcontribs)

Thank you for your response.

Can you please let me know how can i create a dump of this database from inside the old mysql server and restore this in to the new server.

Malyacko (talkcontribs)
Reply to "Mediawiki blank page"

EDGE Browser comes up with manipulated page title

Alzi24 (talkcontribs)

Hello altogether! In our small wiki, we have pages like this:

In Firefox, opera, Chrome the page title shows: Portal "Intrawelt" (Zyklus)

Likewise does the EDGE browser, if I am _not_ logged in. With EDGE & being logged in, suddenly the title appears as: Portal "Intrawelt" #Zyklus#

Huh? When analyzing the source code, I can see the server sends (Zyklus) and I don't have any clue where and how the parenthesis are changed to hashes.

Server: Ubuntu 14.04.5, Apache 2.4.7, MySQL 5.5.61, Mediawiki 1.27.4 including several extensions Client: Windows 10, Microsoft Edge 42.17134.1.0

Does anyone have any ideas how and why this can happen? Sincerely, A.

Reply to "EDGE Browser comes up with manipulated page title" (talkcontribs)

How do I delete the File/Image:Foo.jpg?

AhmadF.Cheema (talkcontribs)

Where is this File/Image? (talkcontribs)

I was playing around with the Proofread Page. It's not listed under uploads, files or images.

Trying to delete it manually via results in the message "The page or file "File:foo.jpg" could not be deleted. It may have already been deleted by someone else."

Maybe it comes from $wgUseInstantCommons=true or $wgForeignFileRepos in LocalSettings.php?

AhmadF.Cheema (talkcontribs)

This Wiki appears to be powered by "Atlassian Confluence 4.3.7, the Enterprise Wiki". Your question appears to be unrelated to MediaWiki.

Reply to "File:Foo.jpg"
Ehtech2000 (talkcontribs)

I have a wiki I've been building on localhost (in Windows 10). The wiki has both private (personal financial info) and public (regular wiki articles on all kinds of topics) pages, categories, etc.

Now I want to split the wiki into a private one that I will keep on my computer (to help manage household finances and bookkeeping duties) AND then publish the public pages to the web as a separate wiki.

I've considered several options, but none of them seem very good.

First, I thought about duplicating my local wiki folder, then migrating the second half to local, and deleting pages through the normal MediaWiki deletions process. But, I read that the pages aren't actually deleted, which won't work for me because I don't want my private credit card and other financial details online for some smart hacker to take a crack at, even if it is supposedly "secure".

I looked up options on how to permanently delete pages, but all I found was conversations where people were inquiring how, but with no solution.

Finally, I thought maybe there is a way to install MediaWiki fresh and import the pages from local that I want to be public on the web. The challenge there is what if I miss something? When I try to import my pages, will that handle all dependencies automatically as well? It took me forever to import all the wiki templates and subtemplates to configure a musical artist infobox to look like on WikiPedia. I don't want to have to suffer through that kind of start and stop again if I don't have to.

So, what is the OPTIMAL way to split a wiki in two, remove parts from the copy, and post the copy with all the removed parts PERMANENTLY REMOVED?

Any help is appreciated.

2001:16B8:10D9:9A00:ADE0:7A87:F23F:D332 (talkcontribs)

MediaWiki has a few maintenance scripts, which can do that.

Some scripts can work on a batch of pages, e.g. deleteBatch.php, but this one only does a normal deletion. Data will still be inside the database afterwards.

E.g. nukePage.php will permanently delete a page and all revision texts associated to it. You can e.g. create a list of the pages to be removed and then use Notepad++ to easily turn this list into a nukePage.php call for each one of them.

Reply to "Remove sensitive pages permanently" (talkcontribs)

how can I have mediawiki display a lowercase username as a lowercase username without capitalizing the first letter?

who implemented this "I know you wrote the username all lowercase, but of course you wanted the first letter to be capitalized"? and could you please remove that since whoever did that omitted to provide a button that says "I know what I am doing"? thank you, much appreciated.

-- I do not know myself and God forbid that I should

AhmadF.Cheema (talkcontribs)
Reply to "lowercase username"
Biccat (talkcontribs)

Our current version of media wiki requires users visit a page after an edit in order to receive new updates that the page has been edited.

Are there any extensions or settings that disable this feature?

If not, is there a way to modify the php code (\includes\mail\EmailNotification.php) to remove this feature?

Gerdesj (talkcontribs)

Which version is that?

Biccat (talkcontribs)

I'm using version 1.28.1.

Per Help:Watchlist, this is present in the current version (this is what I want to disable, I want users to get all changes):

"After receiving an email notification for a page, you have to visit the page while logged in if you want to be notified of further changes to the same page"

Reply to "Notify users of all updates"
Stefano Uberti (talkcontribs)

Buongiorno, come posso cancellare una foto che ho appena caricato?

Mi sono accorto dopo che c'era il watemark

AhmadF.Cheema (talkcontribs)
Reply to "Cancellazione foto"
Msnhinet8 (talkcontribs)

Hi, i want to use monaco skin, but my free hosting is not use, it only give vps host use, how can i do?

Ciencia Al Poder (talkcontribs)
Msnhinet8 (talkcontribs)

so free host is not install monaco skin?

Msnhinet8 (talkcontribs)

beacuse i use free host is not vps.

AhmadF.Cheema (talkcontribs)

If your free host allows uploading of files to the server, you should be able to install the skin.

Msnhinet8 (talkcontribs)

but i once it not uploading of files by free host, can you help me?

AhmadF.Cheema (talkcontribs)

Sorry, what?

Msnhinet8 (talkcontribs)

i from to taiwan, so i can little english.

Added by PlavorSeol: Fixed some grammar for better English - I'm from Taiwan and I can speak little English.

Msnhinet8 (talkcontribs)

i once install monaco skin in my free host extensions, but not success.

can you help me?

AhmadF.Cheema (talkcontribs)

What is your free host?

How did you install MediaWiki on your free host?

Msnhinet8 (talkcontribs)
Msnhinet8 (talkcontribs)

you once have install monaco free host success?

Msnhinet8 (talkcontribs)

at home?

AhmadF.Cheema (talkcontribs)

With your free hosting, you should have also gotten access to cPanel? Is there an icon for a file manager in cPanel?

Msnhinet8 (talkcontribs)

yes, it have.

Msnhinet8 (talkcontribs)

you know monaco skin author is who?

Malyacko (talkcontribs)
Msnhinet8 (talkcontribs)


AhmadF.Cheema (talkcontribs)

From the file manager of your cPanel, go to your Wiki directory, then inside the skins directory, upload the Skin:Monaco files there.

Msnhinet8 (talkcontribs)



PlavorSeol (talkcontribs)

Maybe we aren't understanding each other well because of language?

Msnhinet8 (talkcontribs)

no, but you are know monaco skin author?

Added by PlavorSeol: Better (fixed) English - No, but do you know who is author of Monaco skin?

PlavorSeol (talkcontribs)
Msnhinet8 (talkcontribs)



Reply to "monaco skin"
PlavorSeol (talkcontribs)

Is there an extension for preventing users from editing other users' user pages (including subpages), except users have specific rights?

Lorentz21 (talkcontribs)

Use the Extension:AbuseFilter. You can make any rule you want. For example, article_namespace === 2 & !(article_text contains user_name) & !(user_groups contains "sysop") will detect user page edits made by the other users that is not sysop.

AhmadF.Cheema (talkcontribs)
PlavorSeol (talkcontribs)

But it allows users whose username is part of other users to edit those people's userpages.

Reply to "Prevent editing other users' user pages"
PlavorSeol (talkcontribs)

Is it able to set up cache with PHP opcache extension?

Seb35 (talkcontribs)
PlavorSeol (talkcontribs)

How about object caching?

Seb35 (talkcontribs)