Project:Support desk

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

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".

TypeError: Argument 2 passed to SpecialVersion::getCreditsForExtension() must be of the type array, bool given

2
37.142.88.252 (talkcontribs)

I access Special:Version infrequently, so can't tell when the error started happening.

Backtrace:

from /var/www/html/includes/specials/SpecialVersion.php(762)
#0 /var/www/html/includes/specials/SpecialVersion.php(727): SpecialVersion->getCreditsForExtension(string, boolean)
#1 /var/www/html/includes/specials/SpecialVersion.php(491): SpecialVersion->getExtensionCategory(string, string, array)
#2 /var/www/html/includes/specials/SpecialVersion.php(187): SpecialVersion->getExtensionCredits(array)
#3 /var/www/html/includes/specialpage/SpecialPage.php(646): SpecialVersion->execute(NULL)
#4 /var/www/html/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run(NULL)
#5 /var/www/html/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#6 /var/www/html/includes/MediaWiki.php(918): MediaWiki->performRequest()
#7 /var/www/html/includes/MediaWiki.php(551): MediaWiki->main()
#8 /var/www/html/index.php(53): MediaWiki->run()
#9 /var/www/html/index.php(46): wfIndexMain()
#10 {main}
wfLoadExtension( 'CategoryTree' );
wfLoadExtension( 'CodeEditor' );
wfLoadExtension( 'DataTable2' );
wfLoadExtension( 'DynamicPageList' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'IFrameTag' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'MobileFrontend' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Scribunto' );
require_once "$IP/extensions/SubPageList/SubPageList.php";
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'TemplateData' );
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'Widgets' );
wfLoadExtension( 'WikiEditor' );
37.142.88.252 (talkcontribs)

Even if I comment out all extensions the error persists.

Reply to "TypeError: Argument 2 passed to SpecialVersion::getCreditsForExtension() must be of the type array, bool given"

Is it considered acceptable to mirror wikipedia?

13
AlgorithmGG (talkcontribs)

Hi,

I've been playing with mediawiki for a while now and I am considering mirroring wikipedia in English is this still an option. And also what sort of issues would I run into. perhaps there is a good thread you could recommend?


Regards

Bawolff (talkcontribs)

Yes of course. Please follow the license requirements (basically make sure to maintain credit, dont mislead people into thinking your site is the real wikipedia).

Mirroring english wikipedia is high effort due to the sheer size of it.

A good starting place is meta:Data dumps. The actual dumps are at https://dumps.wikimedia.org/backup-index.html

AlgorithmGG (talkcontribs)

Thanks Bawolff, long time no speak. I didn't realise it is over 25tb I've got space but not that much. is having specific extensions going to be an issue if the wiki is running ok prior to the dump?

Bawolff (talkcontribs)

The bigger issue than space is cpu time. The default importDump.php parses pages to figure out categories, whatlinkshere, etc. This is quite slow at wikipedia scale might give incorrect results if the wrong extensions are installed.

There used to be scripts that imported without parsing (e.g. mwdumper) which were much faster, but i dont think they work anymore with most recent mediawiki. They used the .sql files for auxillary data you can download instead of parsing themselves.

AlgorithmGG (talkcontribs)

Cheers Bawolff, It is tempting although I haven't needed to upgrade from 1.34. I was hoping to use mwdumper! if I am to upgrade what wiki version do you recommended?

Bawolff (talkcontribs)

I mean, i generally reccomend the latest unless you have a reason to use an earlier version (mwdumper might be a very good reason to use an earlier version, unless someone fixed it)

AlgorithmGG (talkcontribs)

Thanks again, I am currently getting an error connecting to Elasticsearch on line 90 of the elastic search connection page:

public_html/extensions/Elastica/includes/ElasticaConnection.php.

line 90 error note ( client not found)

$this->client = new \Elastica\Client( [ 'servers' => $servers ],

/**

* Callback for \Elastica\Client on request failures.

* @param \Elastica\Connection $connection The current connection to elasticasearch



Do you recall this issue is it something that can be updated manually?

Bawolff (talkcontribs)

You should update extensions when you update mediawiki, so that the versions match.

Beyond that, what's the error message?

AlgorithmGG (talkcontribs)

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.34. in /home/public_html/extensions/Elastica/vendor/composer/platform_check.php on line 24

AlgorithmGG (talkcontribs)

Its not running yet but has installed ok with a PHP update. cheers.

AlgorithmGG (talkcontribs)

Hi,


i attempted to activate and bootstrap CirrusSearch but i get the following error when attempting to search:

An error has occurred while searching: We could not complete your search due to a temporary problem. Please try again later.


i also got this message in the terminal:

Elastica\Exception\Connection\HttpException from line 189 of public_html/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php: Couldn't resolve host


Do you recognise this issue at all?

Bawolff (talkcontribs)

Presumably what you have configured as the host name for your elastic search backend is incorrect

AlgorithmGG (talkcontribs)

Do you have any idea where this is configured?

Reply to "Is it considered acceptable to mirror wikipedia?"

Unable to load sub-wikis when multiple wikis enabled

4
188.176.161.203 (talkcontribs)

Trying to setup multiple wikis on the format wiki.domain.com, wiki2.domain.com etc.


Successfully been using wiki.domain.com for months. Unable to get wiki2, wiki3 etc up and running.


When trying to add extra wikis, I try to follow this guide: Manual:Wiki family#Separate settings files


I've setup separate DBnames and DBusers for each sub-wiki, and I've created separate LocalSettings_SUBWIKINAME.php files.

I think DB setup is correct: If I copy LocalSettings_SUBWIKINAME.php to LocalSettings.php the corresponding sub-wiki loads just fine. I can add users and content etc., no DB errors are shown.


If I follow the guide and use the suggested script in LocalSettings.php, only my initial wiki.domain.com will load, everything else gives DB errors.


I suspect the LocalSettings_SUBWIKINAME.php configs are not being loaded.

188.176.161.203 (talkcontribs)

Sample error-log (sub-wiki name changed to "wiki2" in paste)


MediaWiki internal error.

Original exception: [4dcd5f89d3e4153ceb8216c6] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = '0' AND page_title = 'Main_Page' LIMIT 1

Function: WikiPage::pageData

Error: 1146 Table 'wiki2.page' doesn't exist (localhost)

Backtrace:

#0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException()

#1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError()

#2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query()

#3 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1730): Wikimedia\Rdbms\Database->select()

#4 /usr/share/mediawiki/includes/page/WikiPage.php(380): Wikimedia\Rdbms\Database->selectRow()

#5 /usr/share/mediawiki/includes/page/WikiPage.php(398): WikiPage->pageData()

#6 /usr/share/mediawiki/includes/page/WikiPage.php(438): WikiPage->pageDataFromTitle()

#7 /usr/share/mediawiki/includes/page/WikiPage.php(522): WikiPage->loadPageData()

#8 /usr/share/mediawiki/includes/page/WikiPage.php(563): WikiPage->exists()

#9 /usr/share/mediawiki/includes/page/WikiPage.php(229): WikiPage->getContentModel()

#10 /usr/share/mediawiki/includes/page/WikiPage.php(216): WikiPage->getContentHandler()

#11 /usr/share/mediawiki/includes/actions/Action.php(96): WikiPage->getActionOverrides()

#12 /usr/share/mediawiki/includes/actions/Action.php(154): Action::factory()

#13 /usr/share/mediawiki/includes/MediaWiki.php(156): Action::getActionName()

#14 /usr/share/mediawiki/includes/MediaWiki.php(778): MediaWiki->getAction()

#15 /usr/share/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()

#16 /usr/share/mediawiki/index.php(42): MediaWiki->run()

#17 {main}

Exception caught inside exception handler: [4dcd5f89d3e4153ceb8216c6] /mediawiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT page_title,page_latest FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)

Function: MessageCache::loadFromDB(en)-big

Error: 1146 Table 'wiki2.page' doesn't exist (localhost)

Backtrace:

#0 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException()

#1 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError()

#2 /usr/share/mediawiki/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query()

#3 /usr/share/mediawiki/includes/cache/MessageCache.php(504): Wikimedia\Rdbms\Database->select()

#4 /usr/share/mediawiki/includes/cache/MessageCache.php(418): MessageCache->loadFromDB()

#5 /usr/share/mediawiki/includes/cache/MessageCache.php(342): MessageCache->loadFromDBWithLock()

#6 /usr/share/mediawiki/includes/cache/MessageCache.php(971): MessageCache->load()

#7 /usr/share/mediawiki/includes/cache/MessageCache.php(899): MessageCache->getMsgFromNamespace()

#8 /usr/share/mediawiki/includes/cache/MessageCache.php(868): MessageCache->getMessageForLang()

#9 /usr/share/mediawiki/includes/cache/MessageCache.php(808): MessageCache->getMessageFromFallbackChain()

#10 /usr/share/mediawiki/includes/Message.php(1290): MessageCache->get()

#11 /usr/share/mediawiki/includes/Message.php(842): Message->fetchMessage()

#12 /usr/share/mediawiki/includes/Message.php(934): Message->toString()

#13 /usr/share/mediawiki/includes/OutputPage.php(902): Message->text()

#14 /usr/share/mediawiki/includes/OutputPage.php(949): OutputPage->setHTMLTitle()

#15 /usr/share/mediawiki/includes/OutputPage.php(2424): OutputPage->setPageTitle()

#16 /usr/share/mediawiki/includes/exception/MWExceptionRenderer.php(126): OutputPage->prepareErrorPage()

#17 /usr/share/mediawiki/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML()

#18 /usr/share/mediawiki/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output()

#19 /usr/share/mediawiki/includes/exception/MWExceptionHandler.php(149): MWExceptionHandler::report()

#20 /usr/share/mediawiki/includes/MediaWiki.php(551): MWExceptionHandler::handleException()

#21 /usr/share/mediawiki/index.php(42): MediaWiki->run()

#22 {main}

188.176.161.203 (talkcontribs)

Current Content of LocalSettings.php (subdomains and wiki-names redacted):


<?php

$wikis = [

   'wiki.domain.com' => 'wikidb',

   'name-of-subdomain2.domain.com' => 'subdomainwiki',

   'subdomain3.domain.com' => 'subdomain3wiki',

];

if ( defined( 'MW_DB' ) ) {

   // Automatically set from --wiki option to maintenance scripts

   $wikiID = MW_DB;

} else {

   // Use MW_DB environment variable or map the domain name

   $wikiID = $_SERVER['MW_DB'] ?? $wikis[ $_SERVER['SERVER_NAME'] ?? '' ] ?? null;

}

if ( $wikiID ) {

   require_once "LocalSettings_$wikiID.php";

} else {

   die( 'Unknown wiki.' );

}

// Add any settings that should apply to all wikis below this line

// -------

Bawolff (talkcontribs)

If your sub LocalSettings.php weren't loaded you would get a different error message based on what you posted.


The error message is basically saying your db name is incorrect (or it correct, but the tables were never created for the subdomain wikis) . Without knowing the rest of your config, the real error, and what the actual correct db name is, all i can say is double check your db name is correct and that you correctly setup the new dbs for your subdomain wikis.

Reply to "Unable to load sub-wikis when multiple wikis enabled"

Increase speed of parsoid in integrated mode

1
Sajangohil11 (talkcontribs)

I am using parsoid via cli `php parsoid/bin/parse.php --integrated --wt2html --addHTMLTemplateParameters --inputfile` I am using multiprocessing to make it parallel as I have lot of files (whole enwiki). Is there a better way to do this? Can I remove some things from parsoid which might not be necessary for wikitext to html conversion? I am using templaes and modules and for that i have added those pages to the database. I am using bitnami mediawiki AMI on aws, if that helps.

Thank you

Reply to "Increase speed of parsoid in integrated mode"

Question regarding setting of new Vector skin

3
Summary by Fokebox

resolved

Fokebox (talkcontribs)

Hi,

Could you please let me know how:

  • Set the logo image instead of website name text
  • How to make predictive popup window in the search bar
Fokebox (talkcontribs)

Hi, can anybody help please> How to remove text based logo at 1.37 and insert png logo?

Fokebox (talkcontribs)

Resolved!

105.105.220.155 (talkcontribs)

When I shutdown the computer, does the wiki work?

Ciencia Al Poder (talkcontribs)

If the wiki is hosted on the computer being shut down, then no, it won't work.

To avoid this, you should install the wiki on a server on the internet that's online 24h. This usually costs money.

See also Hosting services, for some hosting services that facilitate MediaWiki hosting.

154.121.52.181 (talkcontribs)

Thanks.

Reply to "Shutdown computer"

Password reset without email address

3
अभय नातू (talkcontribs)

Hello,

One of my bots (User:सांगकाम्या) is now blocked from using AWB because I cannot clear a spam message someone posted to it, which is a result of my not remembering the password of this account after using it for many years on auto-fill.

When I go to reset password for सांगकाम्या, I'm not getting any emails, likely because I did not attach an email address. Now, in order to add an email address, I need to log in, which I cannot do because I do not have an attached email address :-(

This bot is operated by me and my primary account is User:अभय नातू. I am an admin and a 'crat on w:mr.

Can you please guide me in resetting my bot account password? Thanks!

Bawolff (talkcontribs)

Email [email protected]


Be warned you need to have very solid proof that you really do own the account.

अभय नातू (talkcontribs)

Thank you. I will email and provide proof.


~~~~

Reply to "Password reset without email address"

VTE, collapse same line as title in nav bars.

1
84.211.61.21 (talkcontribs)
Reply to "VTE, collapse same line as title in nav bars."
2001:B07:ADD:AA57:BC02:2408:B120:FE9E (talkcontribs)

Salve, non riesco più ad accedere ai contenuti, come devo procedere?

ELLEBI77 (talkcontribs)

Ora ho creato nuovamente un account, ma continuo a non vedere nulla!

Reply to "Accesso alle pagine"
Vikipolimer (talkcontribs)

Hi, I'm getting this error ""JavaScript parse error (scripts need to be valid ECMAScript 5): Parse error: Missing ) in parenthetical in file 'MediaWiki:Gadget-AfDHelper.js' on line 748" for the below line, can you help me?

api.get(params).done(data => {
//
})
Reply to "ECMAScript 5 error"