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

Did you forget to run your application's database schema updater after up

12 (talkcontribs)


I am trying to update my mediawiki to 1.33.0 but i get stuck at the error bello, ca someone help me get past this please ?

[51100210b20d6e90dd271609] [no req]   Wikimedia\Rdbms\DBQueryError from line 1587 of /home/student/public_html/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  ar_id,ar_comment  FROM `archive`    WHERE ar_comment_id = '0' AND (1=1)  ORDER BY ar_id LIMIT 100

Function: MigrateComments::migrate

Error: 1054 Unknown column 'ar_comment_id' in 'where clause' (localhost)


#0 /home/student/public_html/includes/libs/rdbms/database/Database.php(1556): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/student/public_html/includes/libs/rdbms/database/Database.php(1274): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/student/public_html/includes/libs/rdbms/database/Database.php(1784): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/student/public_html/maintenance/migrateComments.php(159): Wikimedia\Rdbms\Database->select(string, array, array, string, array)

#4 /home/student/public_html/maintenance/migrateComments.php(53): MigrateComments->migrate(string, array, string)

#5 /home/student/public_html/maintenance/Maintenance.php(1719): MigrateComments->doDBUpdates()

#6 /home/student/public_html/includes/installer/DatabaseUpdater.php(1279): LoggedUpdateMaintenance->execute()

#7 /home/student/public_html/includes/installer/DatabaseUpdater.php(489): DatabaseUpdater->migrateComments()

#8 /home/student/public_html/includes/installer/DatabaseUpdater.php(453): DatabaseUpdater->runUpdates(array, boolean)

#9 /home/student/public_html/maintenance/update.php(203): DatabaseUpdater->doUpdates(array)

#10 /home/student/public_html/maintenance/doMaintenance.php(96): UpdateMediaWiki->execute()

#11 /home/student/public_html/maintenance/update.php(266): require_once(string)

#12 {main}
Wargo (talkcontribs) (talkcontribs)

yes, i did "phph update.php" from the SSH command line.

Wargo (talkcontribs)
Ciencia Al Poder (talkcontribs) (talkcontribs)

go to the ext. dir. and see the folder sql, go to phpmyadmin and manually create the table from sql. terminal .

Lea Schmidt93 (talkcontribs)

Hi, stupid question: I have the same error and every site keeps telling me tu "run" update.php. But how exactly do I do that?

Thanks in advance

Ciencia Al Poder (talkcontribs)
Lea Schmidt93 (talkcontribs)

I added wfLoadExtension( 'ApprovedRevs' ); to my Localsettings after I copied the file of ApprovedRevs in my extensions folder. What I get now is still the error from above. Following the instructions of Manual:Upgrading#Web updater , after step 2 I cant select any language because the error is still shown.

Lea Schmidt93 (talkcontribs)

My Error:

Warning: require_once(/home/www/mediawiki/Maintenance.php): failed to open stream: No such file or directory in /home/www/mediawiki/LocalSettings.php on line 141

Fatal error: require_once(): Failed opening required '/home/www/mediawiki/Maintenance.php' (include_path='/home/www/mediawiki/vendor/pear/console_getopt:/home/www/mediawiki/vendor/pear/mail:/home/www/mediawiki/vendor/pear/mail_mime:/home/www/mediawiki/vendor/pear/net_smtp:/home/www/mediawiki/vendor/pear/net_socket:/home/www/mediawiki/vendor/pear/pear-core-minimal/src:/home/www/mediawiki/vendor/pear/pear_exception:.:/usr/share/php') in /home/www/mediawiki/LocalSettings.php on line 141

Ciencia Al Poder (talkcontribs)

Why do you seem to have a require_once('Maintenance.php') in LocalSettings.php on line 141?

2601:285:303:DE60:E898:C696:E2EB:BBCB (talkcontribs)

Is there any update to this?

Reply to "Did you forget to run your application's database schema updater after up"

Redirect loop, behind proxies

1 (talkcontribs)

Using the official dockerhub container: mediawiki:1.37.2

DB is official mariadb container (latest, as of today)

$wgServer              = "";
$wgCanonicalServer     = "";
$wgScriptPath          = "/wiki";

Sitting behind: haproxy > varnish > nginx > container haproxy terminates ssl and redirects http to https

varnish just caches and passes to backend, in this case nginx.

nginx config:

       location /wiki/ {
           proxy_set_header Host;
           proxy_set_header X-Forwarded-Proto https;
           proxy_set_header Access-Control-Allow-Origin:;

container listening on 32583 (that's correct).

Site working perfect on 1.31, as soon as I try to go latest (1.37.2), I see these redirect loops.

So, it just throws 301 after 301 in a loop. Sending the requested url "" to the exact same location...

Logs from the container just show exactly that, with no real reason as to why.

Reply to "Redirect loop, behind proxies"

Possible bug in template page information

Summary by Larrydberg

After another check, it was decided to report this issue as a bug in Phabricator. It's here.

Larrydberg (talkcontribs)

Hi. I have a potential bug. It may no longer be relevant so I'm asking for guidance here.

Page information on a template has a section "Page properties" with (on my wiki) a subsection "Pages transcluded on", a bulleted list of page titles. But the titles are all empty: You see only the bullet plus an "(edit)" link for an empty title. Example here.

When requesting this page info two warnings are logged for each list member: $page_title and $page_namespace are undefined. The offending code is includes/Title.php line 3158 where these two properties are referenced in a routine that seems to be invoked only when getting page info on a template.

The same page on other wikis, e.g., doesn't have the "Pages transcluded on" subsection and everything looks fine. This is no doubt because my version is older. But the same code appears in 1.39.0-wmf.12 so possibly there's latent buggy code even though its results aren't displayed. Send to Phabricator?, MediaWiki 1.37.2, PHP 7.4.29 (litespeed), MySQL 5.6.51-cll-lve

Bawolff (talkcontribs)
Larrydberg (talkcontribs)

Same behavior with all extensions disabled. I'll file a bug. Thanks.

I forgot my user name & password

2601:483:C480:710:65B8:630B:93CC:593 (talkcontribs)

I forgot my username & password & I need assistance. Can someone help me please?

Bawolff (talkcontribs)

Create a new account.

2601:483:C480:710:65B8:630B:93CC:593 (talkcontribs)

I don't want to.

Malyacko (talkcontribs)

If you don't know the username and address then nobody can help with a key to access that address...

Jonathan3 (talkcontribs) (talkcontribs)


Reply to "I forgot my user name & password"
Japanczyk (talkcontribs)

Hey, beginner's question here

I'm planinning on adding restriction of the articles to particular user groups and I'd like to add the checkboxes for groups selection from the Edit page

I'm lost though how exactly to add or modify the functionality of Edit form

Reply to "Edit page modification"

mw_config redirects to Mw_config even though I have renamed .htaccess

Cassolotl (talkcontribs)

I am trying to update my wiki ( from 1.32.0 to 1.37.1.

I have renamed the .htaccess file in the new wiki folder, in accordance with this instruction:

It might happen that the web-updater does not seem to work: Instead of seeing the initial language selection screen, you might see an empty wiki page, possibly with some error message. In this case it is most likely that your web server uses Rewrite Rules (most likely for short URLs), which do not show you the updater at mw-config/, but a wiki page at Mw-config/, with capital "M". In this case, rename the .htaccess file for the time of the update. Then you should be able to access the web-updater.

It didn't work, and I don't know what to try next. Am I supposed to rename some other .htaccess file? Are there other causes for this issue?

Thank you in advance. This has been causing me a lot of stress for a long time, and I really, really need to update my wiki because it's covered in error messages all the time and now for unknown reasons I am unable to upload media.

Edit: Here's my version info:

Product Version
MediaWiki 1.32.0
PHP 8.0.17 (litespeed)
MySQL 5.7.23-23
ICU 69.1
Bawolff (talkcontribs)

It could be something in your apache httpd.conf. you should disable all rewrite rules temporarily.

Alternatively, just use the cli update.php

Reply to "mw_config redirects to Mw_config even though I have renamed .htaccess"

<code>common.js</code> files are not executing

8 (talkcontribs)
  1. I installed Mediawiki brand-new.
  2. I set $wgAllowUserJs = true; at the bottom of LocalSettings.php.
  3. I created a Special:Mypage/common.js file and saved it with contents such as alert(1).
  4. When I bypass the cache, the JavaScript does not execute. Why not? I'm using Mediawiki 1.37.2 and PHP 7.4.29 with MariaDB. (talk) 04:51, 17 May 2022 (UTC)

Bawolff (talkcontribs)

If you open the developer console in your web browser, are there any errors? (talkcontribs)
Bawolff (talkcontribs)

Are you sure? The script will be named load.php (talkcontribs)
Bawolff (talkcontribs)

If you have a link to your wiki, it would be helpful so we could look closer. (talkcontribs)

Sorry, I'm running it on localhost, so I don't have a link. ~~~~ (talkcontribs)

Call to undefined method Wikibase\Repo\WikibaseRepo::getDefaultInstance()

No39188 (talkcontribs)

Hi, I need some advice, I have an own standalone mediawiki instance with wikibase extension.

In the past, I've imported Qitems and properties using the WikibaseImport extension. This now fails with this exception backtrace,

# php maintenance/importEntities.php --query P31:Q5

[5de1fd28e98e57b7da508039] [no req]   Error: Call to undefined method Wikibase\Repo\WikibaseRepo::getDefaultInstance()


from /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(112)

#0 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(51): Wikibase\Import\Maintenance\ImportEntities->newEntityIdListBuilderFactory()

#1 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/maintenance/doMaintenance.php(108): Wikibase\Import\Maintenance\ImportEntities->execute()

#2 /crypt/htdocs/geneawiki/mediawiki-1.37.1/w/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string)

#3 {main}

According to , it appears the getDefaultInstance() method was removed around April - May 2021,

the WikibaseImport code ( ) looks untouched since May 7, 2016,

is this code maintained at all ?

Reply to "Call to undefined method Wikibase\Repo\WikibaseRepo::getDefaultInstance()"
NemesisAT (talkcontribs)

Hi all, following feedback from users on my wiki I'd like to create a map that allows all articles to be viewed as points, using the coordinates input with the GeoData extension. Is this currently possible? Thanks

Tanbirzx (talkcontribs)

Welcome to MediaWiki. Please see "post a new question" in the sidebar.

Jonathan3 (talkcontribs)

You could use the Cargo extension.

Reply to "Create map using GeoData"
Sockerz (talkcontribs)

I want to change the title of a single page, but the "copy" function is not working, because I just want to change the title of the page from uppercase to lowercase - as the page still exists as a "delete-log" it still keeps the same writing :( what can I do?

thank you

Tanbirzx (talkcontribs)

Which copy function you meant? You can change the page title by moving it (source edit).

Reply to "change title of a page"