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

i haven't updated any part of this wiki for at least two years. Any suggestions?


MediaWiki internal error.

Original exception: [YA4P2hqluUbuv96omr44FQAAAUM] 2021-01-25 00:24:59: Fatal exception of type "UnexpectedValueException"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.



Notice: Undefined index: hideroot in /home/gunsywtx/public_html/LocalSettings.php on line 288

Warning: Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE' (this will throw an Error in a future version of PHP) in /home/gunsywtx/public_html/extensions/ApprovedRevs/includes/ApprovedRevs_body.php on line 49

MediaWiki internal error.

Original exception: [YA4qJ--S@vJPOyAaBZI-1AAAAdA] /index.php/Main_Page UnexpectedValueException from line 462 of /home/gunsywtx/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Invalid server index index #DB_SLAVE


#0 /home/gunsywtx/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(896): Wikimedia\Rdbms\LoadBalancer->getConnectionIndex(string, array, string)

#1 /home/gunsywtx/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(string, array, string, integer)

#2 /home/gunsywtx/public_html/includes/GlobalFunctions.php(2556): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(string, array, string)

#3 /home/gunsywtx/public_html/extensions/ApprovedRevs/includes/ApprovedRevs_body.php(49): wfGetDB(string)

#4 /home/gunsywtx/public_html/extensions/ApprovedRevs/includes/ApprovedRevs.hooks.php(192): ApprovedRevs::getApprovedRevID(Title)

#5 /home/gunsywtx/public_html/includes/Hooks.php(174): ApprovedRevsHooks::showApprovedRevision(Title, NULL, RequestContext)

#6 /home/gunsywtx/public_html/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#7 /home/gunsywtx/public_html/includes/page/Article.php(167): Hooks::run(string, array)

#8 /home/gunsywtx/public_html/includes/page/Article.php(193): Article::newFromTitle(Title, RequestContext)

#9 /home/gunsywtx/public_html/includes/MediaWiki.php(411): Article::newFromWikiPage(WikiPage, RequestContext)

#10 /home/gunsywtx/public_html/includes/MediaWiki.php(300): MediaWiki->initializeArticle()

#11 /home/gunsywtx/public_html/includes/MediaWiki.php(854): MediaWiki->performRequest()

#12 /home/gunsywtx/public_html/includes/MediaWiki.php(527): MediaWiki->main()

#13 /home/gunsywtx/public_html/index.php(44): MediaWiki->run()

#14 {main}

Exception caught inside exception handler: [YA4qJ--S@vJPOyAaBZI-1AAAAdA] /index.php/Main_Page MWException from line 183 of /home/gunsywtx/public_html/includes/MagicWord.php: Error: invalid magic word 'lst'


#0 /home/gunsywtx/public_html/includes/MagicWordFactory.php(222): MagicWord->load(string)

#1 /home/gunsywtx/public_html/includes/parser/Parser.php(5288): MagicWordFactory->get(string)

#2 /home/gunsywtx/public_html/extensions/LabeledSectionTransclusion/LabeledSectionTransclusion.class.php(13): Parser->setFunctionHook(string, array, integer)

#3 /home/gunsywtx/public_html/includes/Hooks.php(174): LabeledSectionTransclusion::setup(Parser)

#4 /home/gunsywtx/public_html/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#5 /home/gunsywtx/public_html/includes/parser/Parser.php(476): Hooks::run(string, array)

#6 /home/gunsywtx/public_html/includes/cache/MessageCache.php(1189): Parser->firstCallInit()

#7 /home/gunsywtx/public_html/includes/cache/MessageCache.php(1165): MessageCache->getParser()

#8 /home/gunsywtx/public_html/includes/language/Message.php(1280): MessageCache->transform(string, boolean, LanguageEn, Title)

#9 /home/gunsywtx/public_html/includes/language/Message.php(884): Message->transformText(string)

#10 /home/gunsywtx/public_html/includes/language/Message.php(944): Message->toString(string)

#11 /home/gunsywtx/public_html/includes/OutputPage.php(888): Message->text()

#12 /home/gunsywtx/public_html/includes/OutputPage.php(937): OutputPage->setHTMLTitle(Message)

#13 /home/gunsywtx/public_html/includes/OutputPage.php(2610): OutputPage->setPageTitle(string)

#14 /home/gunsywtx/public_html/includes/exception/MWExceptionRenderer.php(125): OutputPage->prepareErrorPage(string)

#15 /home/gunsywtx/public_html/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(UnexpectedValueException)

#16 /home/gunsywtx/public_html/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(UnexpectedValueException, integer)

#17 /home/gunsywtx/public_html/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(UnexpectedValueException)

#18 /home/gunsywtx/public_html/includes/MediaWiki.php(558): MWExceptionHandler::handleException(UnexpectedValueException)

#19 /home/gunsywtx/public_html/index.php(44): MediaWiki->run()

#20 {main}

Charitwo (talkcontribs)

Your version of ApprovedRevs needs updating, it's not recognizing DB_SLAVE when it should be DB_REPLICA.

Reply to "Wiki Won't Load"

NAS-based private Wiki search function not working

7 (talkcontribs)


Just installed MediaWiki on my QNAP NAS so I could build a private Wiki for some research I am doing. One of my primary needs is to search all the documents at once for specific keywords.

My trouble is that plain text search does not seem to be working (i.e. page contains the word "Panama", search for "Panama" yields 0 results and suggests I create a page by that title).

The only searches that return any results are those that reference a specific page name. (i.e. page name is "Main Page", search for "Main Page" yields 0 results but offers hyperlink to the Main Page).

I have done no configuration beyond the initial install. Is there something specific I need to do to make it work? I would have expected the feature to be ready right out of the box, so to speak.

Thanks for any help you can provide.

Bawolff (talkcontribs)

Why 1.27? That's years out of date. Also isnt a version number we use.

In theory those features should work out of the box.

It could be an issue with the job queue. You could try setting $wgRunJobsAsync to false in LocalSettings.php (this is default 1.27.2 and later) and try running runJobs.php

You can rebuild the search index with Manual:rebuildtextindex.php (talkcontribs)

v. is what QNAP offered in their App Store to install.

I will try those later today and see if either helps.

Bawolff (talkcontribs)

We have no association with QNAP and have never heard of it. Its possible they changed mediawiki in arbitrary ways and caused the search to be broken. We can really only offer effective help for the official versions of MediaWiki. (talkcontribs)

Thank you for the help.

Perhaps I'll investigate things further with them. Maybe someone else has had similar trouble. (talkcontribs)

Ok. Here's what I found. I have no clue what I'm doing. I'm technically minded, but this stuff is way above my experience. Why couldn't there just be a "Rebuild Text" link in the Special Pages section or something like that?

First, I have no memory of ever using Terminal services before. So, I thought I'd try the Maintenance Shell extension... except I can't get it to accept me as an Administrator to allow me access to it. I even told it to give access as a User... no dice.

Second, I don't know how I'm supposed to access the mediawiki through a terminal connecting to my NAS. Windows Terminal was no help, so I tried Putty. That got me as far as logging in, but once I got logged in, I was presented with a menu system. After getting out of it, I'm just at a "#" prompt. I tried maneuvering the directory structure to follow the instructions on the Maintenance Scripts page and got nowhere fast. None of the stuff I found looked familiar at all.

I'm not giving up, but you should understand that you'll need to talk down to me so I can understand what needs to be done to fix it.

Makes me wish I could get ScrewWiki on my NAS... that thing works for me on my webspace (this project is different, it needs to be private). (talkcontribs)

Correction: Screwturn Wiki.

Reply to "NAS-based private Wiki search function not working"

What is the purpose of “<div class="references-small">”?

2 (talkcontribs)

I saw this as a tag below the source code editor of, but I can not figure out its purpose.

Bawolff (talkcontribs)

I imagine its to make the reference section small (IF the wiki has appropriate CSS installed)

Reply to "What is the purpose of “<div class="references-small">”?"

Why am I blocked from publishing the Charles Masala page and updates?

Eleanor1884 (talkcontribs)

Why am I blocked from publishing the Charles Masala page and updates?

Clump (talkcontribs)
Reply to "Why am I blocked from publishing the Charles Masala page and updates?" (talkcontribs)

I can neither log in to my account, or create a new one. Every single user name that I enter gets a message saying that the name is already in use. I find that impossible to believe. When I try loging in to my account, my user name isn't recognized. When I try to create a new account using the name it won't recognize, it says the name is already in use. Please assist.

Charitwo (talkcontribs)

Where are you trying to login to?

2601:483:300:ACF0:FC01:4B7:46E6:38C3 (talkcontribs)

I too an neither sign in or set a new account. It lets me change a password but not my name (which I've forgotten) - so new password, still can't get in. I try to set up new account but can't "that email account is already in use) - YES I KNOW THAT - except there is no one listening that I can scream it at. -


Reply to "Login/Sign Up"

Question about account recovery

2607:EA00:107:3C07:406B:CCBA:7BDE:6A2B (talkcontribs)

Hello–the email I had associated with my Wikimedia/Wikipedia account is no longer operational, and the password has escaped my memory. Does anyone have suggestions for how I can recover this account, or is the only way for me to move forward creating a new account? Thank you!

Bawolff (talkcontribs)

You need to be able to prove beyond a shadow of a doubt that you are the rightful owner. If you can, email . That is really hard to do, so you probably can't in which case you have to create a new account.

Reply to "Question about account recovery"

VisualEditor Error: Parsoid/RESTBase server (HTTP 500) when useing Ä,Ü,Ö in Page Title

Summary by

probably the fault of IIS -> switch to apache (talkcontribs)

I am using MediaWiki 1.35 specifically because I am new to all this, and Visual Editor is supposed to work out of the box.

But whenever I try to edit or create a page with an Umlaut (ä,ö,ü) in the title. I get Error 500 when saveing my Changes to the page.

its a fresh install on IIS and MySQL if that matters.

Is this a known problem, or can somebody help me out?

Thanks very much

Fokebox (talkcontribs)

I can just guess that the problem might be in DB and its coding. What Version of DB do you use?

Bawolff (talkcontribs)

i think its unlikely to be your database. You should check your iis logs and php error logs.

IIS used to be famous for poor support for non ascii characters when using rewrite rules, but presumably they have fixed it by this point. If you have the option i would reccomend using apache instead of IIS, even if using windows (mediawiki is better tested on apache) (talkcontribs)

Hello and thanks for the replies.

i just double checked, the Database and the IIS are both set to use UTF-8 encoding. And the sitename gets stored properly in the DB.

I just had to bite the bullet and switch to Apache. it works now

Arjanvdl (talkcontribs)
Reply to "VisualEditor Error: Parsoid/RESTBase server (HTTP 500) when useing Ä,Ü,Ö in Page Title"

Is there a default way for rate limiting?

5 (talkcontribs)

For my principally all-core, all-default MediaWiki website I use an about 24-characters root password and yet, by principle, I would still want to rate limit the number of times per x amount of time in which people can try to log in with my user name.

Is there a default, all-core way for rate limiting?

I don't want to set anything manually myself, just follow a rate limiting convention of the community, if there is one. (talkcontribs)

A simple, "turn on and keep going" approach for all sorts of rate limiting.

It is good for me because in my website there is, at least at this moment, only one registered user profile, which I myself operate and I wish to protect my profile from being hacked.

Of course, I protect as much as I can from DDoS, SQL injections, backdoors etc. but in the BFA/Rate limiting context I think that my website is still not fully covered and I seek a simple solution for that.

Ciencia Al Poder (talkcontribs) (talkcontribs)

Hello @Ciencia Al Poder

Because the webpage you mentioned, Manual:$wgPasswordAttemptThrottle is much smaller and simpler I would like to try to start to implement what it describes; the problem is that I found any sentence in it unclear.

Limit password attempts to count attempts per seconds per IP per username.

Does this mean that a built in password tries rate limiting mechanism is on by default in all 1.14.0 and above MediaWikis?

Bawolff (talkcontribs)

> Does this mean that a built in password tries rate limiting mechanism is on by default in all 1.14.0 and above MediaWikis?

Yes, although on some versions it may only be enabled if $wgMainCacheType is set to something like CACHE_MEMCACHED or CACHE_ACCEL (and the cache is functioning correctly). I dont remember what the current cache backend for password throttle so im not sure if its still neccesary.

Lots of people also use extension:ConfirmEdit to add captchas to the login page after X failed attempts.

Reply to "Is there a default way for rate limiting?"

how can contact user in wikipedia?

3 (talkcontribs)

Dear support team how can contact wiki user or send him personal message?

Malyacko (talkcontribs)

Go to her user page and either use his Talk/Discussion page, or check if they have enabled "Email this user" in the sidebar.

Bawolff (talkcontribs)

[You have to be logged in and enabled recieving emails in your preferences in order to see the sidebar item]

Reply to "how can contact user in wikipedia?"

Error when try to install mediawiki version 1.36-wmf.27

Sunny00217 (talkcontribs)

When I try to install 1.36-wmf.18, mw-config/index.php?css=1 throw error:(vendor copy from ver.1.35.1 .tar.gz)

[7fb50ba4fee236f45e644fc0] /core/mw-config/index.php?css=1 Wikimedia\Services\ServiceDisabledException: Service disabled: DBLoadBalancer
from $IP\vendor\wikimedia\services\src\ServiceContainer.php(412)
#0 $IP\includes\MediaWikiServices.php(710): Wikimedia\Services\ServiceContainer->getService(string)
#1 $IP\includes\GlobalFunctions.php(2481): MediaWiki\MediaWikiServices->getDBLoadBalancer()
#2 $IP\includes\GlobalFunctions.php(2467): wfGetLB(boolean)
#3 $IP\includes\resourceloader\MessageBlobStore.php(156): wfGetDB(integer)
#4 $IP\includes\resourceloader\MessageBlobStore.php(120): MessageBlobStore->recacheMessageBlob(string, ResourceLoaderSkinModule, string)
#5 $IP\includes\resourceloader\MessageBlobStore.php(85): MessageBlobStore->getBlobs(array, string)
#6 $IP\includes\resourceloader\ResourceLoaderModule.php(588): MessageBlobStore->getBlob(ResourceLoaderSkinModule, string)
#7 $IP\includes\resourceloader\ResourceLoaderLessVarFileModule.php(113): ResourceLoaderModule->getMessageBlob(ResourceLoaderContext)
#8 $IP\includes\resourceloader\ResourceLoaderSkinModule.php(529): ResourceLoaderLessVarFileModule->getLessVars(ResourceLoaderContext)
#9 $IP\includes\resourceloader\ResourceLoaderFileModule.php(1098): ResourceLoaderSkinModule->getLessVars(ResourceLoaderContext)
#10 $IP\includes\resourceloader\ResourceLoaderFileModule.php(990): ResourceLoaderFileModule->compileLessString(string, string, ResourceLoaderContext)
#11 $IP\includes\resourceloader\ResourceLoaderFileModule.php(966): ResourceLoaderFileModule->processStyle(string, string, ResourceLoaderFilePath, ResourceLoaderContext)
#12 $IP\includes\resourceloader\ResourceLoaderFileModule.php(943): ResourceLoaderFileModule->readStyleFile(ResourceLoaderFilePath, ResourceLoaderContext)
#13 $IP\includes\installer\WebInstallerOutput.php(160): ResourceLoaderFileModule->readStyleFiles(array, ResourceLoaderContext)
#14 $IP\includes\installer\WebInstaller.php(1225): WebInstallerOutput->getCSS()
#15 $IP\includes\installer\WebInstaller.php(178): WebInstaller->outputCss()
#16 $IP\mw-config\index.php(82): WebInstaller->execute(array)
#17 $IP\mw-config\index.php(40): wfInstallerMain()
#18 {main}

what happend?

Ammarpad (talkcontribs)
Reply to "Error when try to install mediawiki version 1.36-wmf.27"