Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

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".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文
Buman (talkcontribs)

MediaWiki 1.33.1

PHP 7.3.11 (cgi-fcgi)

MariaDB 10.3.17-MariaDB-1:10.3.17+maria~bionic

Wiki URL: http://www.seigmen.no/

Wiki Languate: Norwegian


Updating from 1.25.3 to 1.33.1 there have apparently been som encoding issuses, where pages having titles with non ASCII characters simply won't show. I've managed to locate pages being orphaned by this problem: http://www.seigmen.no/index.php?title=Spesial%3AForeldrel%C3%B8se_sider&limit=250&offset=0

Searching for a solution I came to the conlusion that the running of rebuildall.php / refreshLinks.php was needed. Unfortunately I can't get refreshLinks.php to work

> php refreshLinks.php

Refreshing redirects table.
Starting from page_id 1 of 915.
100
200
300
400
500
600
700
800
900
Refreshing links tables.
Starting from page_id 1 of 915.
[ad957bb037931af4f1c02f5b] [no req]   Error from line 3676 of ../httpd.www/includes/page/WikiPage.php: Call to a member function refreshCountsIfEmpty() on bool
Backtrace:
#0 ../httpd.www/includes/deferred/MWCallableUpdate.php(34): WikiPage->{closure}()
#1 ../httpd.www/includes/deferred/DeferredUpdates.php(274): MWCallableUpdate->doUpdate()
#2 ../httpd.www/includes/deferred/DeferredUpdates.php(231): DeferredUpdates::runUpdate(MWCallableUpdate, Wikimedia\Rdbms\LBFactorySimple, string, integer)
#3 ../httpd.www/includes/deferred/DeferredUpdates.php(143): DeferredUpdates::execute(array, string, integer)
#4 ../httpd.www/includes/deferred/DeferredUpdates.php(313): DeferredUpdates::doUpdates(string)
#5 ../httpd.www/includes/deferred/DeferredUpdates.php(104): DeferredUpdates::tryOpportunisticExecute(string)
#6 ../httpd.www/includes/Storage/DerivedPageDataUpdater.php(1601): DeferredUpdates::addUpdate(LinksUpdate, integer)
#7 ../httpd.www/includes/page/WikiPage.php(2134): MediaWiki\Storage\DerivedPageDataUpdater->doSecondaryDataUpdates(array)
#8 ../httpd.www/maintenance/refreshLinks.php(275): WikiPage->doSecondaryDataUpdates(array)
#9 ../httpd.www/maintenance/refreshLinks.php(198): RefreshLinks::fixLinksFromArticle(integer, boolean)
#10 ../httpd.www/maintenance/refreshLinks.php(83): RefreshLinks->doRefreshLinks(integer, boolean, string, boolean, boolean)
#11 ../httpd.www/maintenance/doMaintenance.php(96): RefreshLinks->execute()
#12 ../httpd.www/maintenance/refreshLinks.php(491): require_once(string)
#13 {main}

Any ideas?

Reply to "Error running refreshLinks.php"

Category page not refreshed

3
Summary by Guy6631

Queue job...

Guy6631 (talkcontribs)

Hello, category page is not automatically refreshed when I have create a new page using this category... This happens on lots of category pages... Thanks a lot for your help... ~~~~

Jonathan3 (talkcontribs)
Guy6631 (talkcontribs)

Many thanks... ~~~~

Parsoid: "Unexpected token" {","time"

8
Summary by Ciencia Al Poder

You're using an incompatible version of nodejs. Please see version requirements on the Parsoid page

69.165.253.165 (talkcontribs)

I followed the guide posted on the Parsoid installation for Ubuntu and upon launch, this is the error I get:


Killed

{"name":"parsoid","hostname":"<hostname>","pid":17215,"level":30,"levelPath":"info/service-runner","msg":"master(17215) initializing 2 workers","time":"2019-03-12T03:07:23.720Z","v":0}

{"name":"parsoid","hostname":"<hostname>","pid":17224,"level":60,"moduleName":"/usr/lib/parsoid/src/lib/index.js","levelPath":"fatal/service-runner/worker","msg":"Unexpected token {","time":"2019-03-12T03:07:24.104Z","v":0}

{"name":"parsoid","hostname":"<hostname>","pid":17215,"level":40,"message":"first worker died during startup, continue startup","worker_pid":17224,"exit_code":1,"startup_attempt":1,"levelPath":"warn/service-runner/master","msg":"first worker died during startup, continue startup","time":"2019-03-12T03:07:25.110Z","v":0}


My configuration is correct, using curl on the api.php file works but the service does not launch. Please help.

Ciencia Al Poder (talkcontribs)

Looks like there's something wrong in the configuration, as the message "Unexpected token {" indicates. Please review carefully the changes you made in configuration.

69.165.253.165 (talkcontribs)

Thanks for the reply Ciencia,

I tried the same configuration on a different machine and it works just fine, so I'm unsure why this is happening. I think it has something to do with my hostname being incorrect.

Ciencia Al Poder (talkcontribs)

I know there are parts of the configuration that use something like "{hostname}", which could be the problem. However, if this works with exactly the same configuration on other host, I'm out of ideas. Maybe the server where you have the problem using a different or older nodejs version that doesn't support such variables?

69.165.253.165 (talkcontribs)

I think this is grounds for giving up, this software gives no indication of what's wrong.

83.70.200.6 (talkcontribs)

I'm having the same issue, any tips on how to work out what this is :"Unexpected token {"

Alexander060101 (talkcontribs)

Hi all,

I have the same error on my installation.

Has anyone figured out how to fix this issue?

Thanks.

216.243.20.18 (talkcontribs)

I ran into the same problem today. I was running NodeJS 4.2 on Ubuntu 16. After upgrading to NodeJS 10 the problem went away. I found a StackOverflow comment that suggested the root cause was a NodeJS incompatibility. I want to give them credit but can't add a link in this comment.

[RESOLVED] Navigation buttons incorrectly displayed

2
Bozla (talkcontribs)

Hello,

I'm not sure how to describe the issue I've been having for quite some time. Please have a look at this screenshot I took:

http://imgur.com/KoE1o2E

As you can see, the first "Article" button has a weird space on the left. The same goes for the first button in the second group on the right - "Read" in English.

A couple of hours ago I successfully updated to MW 1.22, so I assume this means the skin (Vector) is in stock conditions - at any rate I have not applied any changes to the styles, nor is there anything of the sort in MediaWiki:Common.css as far as I can tell.

Could you please help me identify the cause for this? If you need to look at the page itself, the address is http://www.wisdom13.eu, though it is not open to the public for reading. Would that be enough?

Thank in advance!

P.S. Nevermind, I figured it out finally. You could deleted this.

88.130.110.25 (talkcontribs)

Hi!

I guess you still have some old CSS rules in a cache somewhere. Maybe in your browser cache or maybe in a cache on the server. Maybe even inbetween should one of the servers inbetween do caching.

2610S (talkcontribs)

I get this error when trying to change email, or confirm email.

What should I do ?

MarkAHershberger (talkcontribs)
2610S (talkcontribs)

@MarkAHershberger I get a long page with details that I don't know what to do about it.

I'am copying the page (XXX instead of private information)


[Xcub4krQOu4AATR58dUAAAAM] /index.php?title=XXX MWException from line 4237 of /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/user/User.php: CAS update failed on user_touched. The version of the user to be saved is older than the current version.

Backtrace:

#0 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/libs/rdbms/database/Database.php(3815): User->{closure}(Wikimedia\Rdbms\DatabaseSqlite, string)

#1 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/user/User.php(4250): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure)

#2 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/user/User.php(4692): User->saveSettings()

#3 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/user/User.php(3123): User->sendConfirmationMail(string)

#4 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specials/SpecialChangeEmail.php(176): User->setEmailWithConfirmation(string)

#5 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specials/SpecialChangeEmail.php(127): SpecialChangeEmail->attemptChange(User, string)

#6 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/htmlform/HTMLForm.php(665): SpecialChangeEmail->onSubmit(array, OOUIHTMLForm)

#7 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/htmlform/HTMLForm.php(557): HTMLForm->trySubmit()

#8 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/htmlform/HTMLForm.php(572): HTMLForm->tryAuthorizedSubmit()

#9 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specialpage/FormSpecialPage.php(184): HTMLForm->show()

#10 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specials/SpecialChangeEmail.php(61): FormSpecialPage->execute(NULL)

#11 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specialpage/SpecialPage.php(569): SpecialChangeEmail->execute(NULL)

#12 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#13 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#14 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/MediaWiki.php(860): MediaWiki->performRequest()

#15 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/MediaWiki.php(517): MediaWiki->main()

#16 /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/index.php(42): MediaWiki->run()

#17 {main}


Debug data:

  • IP: XXX.XX.XXX.XXX
  • Start request POST /index.php?title=XXXHTTP HEADERS:HOST: XXX.XXX.comCONTENT-LENGTH: 454CACHE-CONTROL: max-age=0ORIGIN: http://XXX.XXX.comUPGRADE-INSECURE-REQUESTS: 1CONTENT-TYPE: application/x-www-form-urlencodedUSER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.2804.97 Safari/537.36ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/png,image/apng,*/*;q=0.8,application/signed-exchange;v=b3REFERER: http://XXX.XXX.com/index.php?title=XXXACCEPT-ENCODING: gzip, deflateACCEPT-LANGUAGE: en-UK,en;q=0.9,en-US;q=0.8,en;q=0.7COOKIE: my_wiki_session=XXX; my_wikiUserID=1; my_wikiUserName=XXX; my_wikiToken=XXX
  • [caches] cluster: EmptyBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: SqlBagOStuff, session: SqlBagOStuff
  • [caches] LocalisationCache: using store LCStoreDB
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection.
  • [DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff.
  • [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info {"IPAddress": "XXX.XX.XXX.XXX","UserAgent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.2804.97 Safari\/537.36","ChronologyProtection": false,"ChronologyPositionIndex": 0,"ChronologyClientId": null}
  • [DBConnection] Wikimedia\Rdbms\LoadBalancer::openLocalConnection: connected to database 0 at 'localhost'.
  • User: cache miss for user 1
  • [ContentHandler] Created handler for wikitext: WikitextContentHandler
  • MediaWikiGadgetsDefinitionRepo::fetchStructuredList: MediaWiki:Gadgets-definition parsed, cache entry should be updated
  • User: loading options for user 1 from database.
  • [SQLBagOStuff] SqlBagOStuff: connecting to [unknown]
  • [SQLBagOStuff] Connection SQLite 3.28.0 will be used for SqlBagOStuff
  • User::getBlockedStatus: checking...
  • User: loading options for user 1 from override cache.
  • [MessageCache] MessageCache::load: Loading he... local cache is empty, global cache is expired/volatile, loading from database
  • Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->transform
  • Parser: using preprocessor: Preprocessor_DOM
  • Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
  • User::getBlockedStatus: checking...
  • [authentication] MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus: Checking ChangeEmail
  • [authentication] MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus: ChangeEmail is ok for 'XXX'
  • [objectcache] Rejected set() for my_wiki:messages-big:0169d77dc450e5d68ffdfade720dc0be:Changeemail-text due to pending writes.
  • [MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
  • [objectcache] Rejected set() for my_wiki:messages-big:f6c4f725a607bfe8fa0cf0c05ee4f470:Changeemail-text/en due to pending writes.
  • UserMailer::send: sending mail to =?UTF-8?Q?XXX?= <XX@XXXXX.COM>
  • Sending mail via internal mail() function
  • [DBQuery] startAtomic: entering level 0 (User::saveSettings)
  • [preferences] CAS update failed on user_touched for user ID '1' (replica read)
  • [DBQuery] cancelAtomic: canceling level 0 (User::saveSettings)
  • [exception] [Xcub4krQOu4AATR58dUAAAAM] /index.php?title=XXX MWException from line 4237 of /homepages/32/XXX/htdocs/XXX/mediawiki-1.32.2/includes/user/User.php: CAS update failed on user_touched. The version of the user to be saved is older than the current version.
  • User: loading options for user 1 from database.
  • User: loading options for user 1 from database.
  • User: loading options for user 1 from database.
Ciencia Al Poder (talkcontribs)

You can try to see the user_touched field of the user table and see if it has some weird value, like a date in the future, or is blank, since this can cause this issue.

2610S (talkcontribs)
Ciencia Al Poder (talkcontribs)

Create a new user, see what is its user_touched field, and update the user that's failing with that value.

2610S (talkcontribs)

@Ciencia Al Poder Where do I find these details, I do not find them not in schema.doc in the MediaWiki docs/ directory, and not in tables.sql in the MediaWiki maintenance/ directory

Where should I look for it ?

Ciencia Al Poder (talkcontribs)

You should look at the database of your wiki

2610S (talkcontribs)

@Ciencia Al Poder I have no file named 'user_touched field'.

In which file should I find these details ?

AhmadF.Cheema (talkcontribs)

This wouldn't be a file, it would be inside the database of your Wiki. A database is separate and something different from normal files and folders of your Wiki. You'll need to access the database through something like phpMyAdmin.

Reply to "MWException error"

Current website is on 1.24.2 Mediawiki. How to switch to 1.33.1 version? Is there any step-by-step procedure for that?

2
Tjqruweb (talkcontribs)

Hello,

Could you, please, help with the procedure on how to switch 1.24.2 version of MediaWiki to 1.33.1 version? There are more than 1500 pages of the website, and maybe there is some direct instructions about that?

I shall appreciate your assistance very much!

( MediaWiki1.24.2 PHP5.5.38-pl0-gentoo (apache2handler) MySQL5.6.43-84.3-log )

Malyacko (talkcontribs)
Reply to "Current website is on 1.24.2 Mediawiki. How to switch to 1.33.1 version? Is there any step-by-step procedure for that?"

Web-Upgrade of Mw 1.31.1 did not work

5
Wikinaut (talkcontribs)

Running MW 1.31.1 I wanted to use the web upgrade to upgrade to the latest version and I followed the instructions of Manual:Upgrading#Web browser


I went through all steps and at the end nothing was changed or upgraded. I expected to get 1.31.5 or the latest 1.33.1.


What's wrong? Please can you assisst?

AhmadF.Cheema (talkcontribs)
Wikinaut (talkcontribs)

Uh, no, I did not manually download a newer tarball, because I expected that this is done by the webinstaller (like, for example, Nextcloud upgrade works). So, using the MW Webinstaller has no advantage over using the commandline and then php update.php.

Going from 1.31.3 to 1.31.5 will be fine, I guess (this is my experience since many decades), but can I directly upgrade from 1.31.3 to 1.33.1 ? Formerly this was not recommended.

MarkAHershberger (talkcontribs)

The upgrade from 1.31.3 to 1.33.1 should work.

Wikinaut (talkcontribs)

Hi Mark, where we are talking about this... I would like to ask: Is there any initiative towards a better (semi-automatic) upgrade process for MediaWiki where we can get rid of the "backup the important subdirectories, unpack then restore..." process?

Reply to "Web-Upgrade of Mw 1.31.1 did not work"

{{msgnw::test}} read raw NS 0 page via Lua

1
Taylor 49 (talkcontribs)

My module is supposed to read raw wikitext of a page located in namespace 0.

Syntax "{{msgnw::test}}" works somewhat from wikitext. How can I do this from a module?

Function "expandTemplate" fulfills its name and expands a template or even a page in NS 0. How can I seize raw wikitext instead?

Reply to "{{msgnw::test}} read raw NS 0 page via Lua"

Shared users unable to log into other wikis

8
Veryarcanepotatoe (talkcontribs)

Does anyone here know how to set up a shared user database?

I have one database acting as the master, and both wikis are creating users in there that work to log into themselves, but the users created in one of the wikis can not log into the other.

I'm using the same dbuser to access the database from both wikis.

if the password is correct, I get an error saying automatic user creation fails. If it is wrong, it tells me I have a bad username/password.

Both wikis list all users but only the ones created in that wiki can log onto it.

I'm so stumped.

MarkAHershberger (talkcontribs)

What do you have in your LocalSettings.php to set up shared users? What version of MediaWiki are you using?

Veryarcanepotatoe (talkcontribs)

I'm using a shared database belonging to one of the wiki's.

Mediawiki 1.33 running on mariaDB 10.4

The users are created in the right place both wiki A and wiki B create users in the user table of wiki A

Displayed on the special:allusers page on either wiki will be all of the users regardless of where they were created, listed as users on both wiki.

The user table for wiki B has only the initial user in it (this user is common between both and has the same password set initially. it is the only one that works on both wikis)

The user table for wiki A contains all users created in either wiki: https://pasteboard.co/IG8OUXm.png

When a user created in wiki A tries to log into wiki B, they get one of two errors: https://pasteboard.co/IG8N4R5.png

MarkAHershberger (talkcontribs)

What do you have in your LocalSettings.php to set up shared users?

This may be a bug, but it is hard to tell if you do not provide that information.

When did this problem occur? Is this a new installation or have you recently upgraded?

Veryarcanepotatoe (talkcontribs)

the local settings for the two wiki are here: https://pasteboard.co/IGgtKVr.png

I also have

$wgGroupPermissions['*']['autocreateaccount'] = true;


These are two brand new installations of media wiki specially for this new purpose. They are empty except for the users that have been created.

All users are created in the appropriate table but not accessible the a wiki other than the one that created them.

MarkAHershberger (talkcontribs)

The default value for $wgSharedTables is [ 'user', 'user_properties' ], but you've set it to [ 'user', 'user_groups' ]. Is there a reason you removed user_properties? What happens if you add it back?

Veryarcanepotatoe (talkcontribs)

Im going to try this immediately!


Edit-- It doesnt seem to have helped. Now the whole wiki is really incredibly slow too. Im thinking I might want to just scrap it and start over. Maybe i screwed something up in the process of the set up.

Veryarcanepotatoe (talkcontribs)

This problem happens if a user tries to log on to a wiki other than one that created the user in the first place. It happens immediately. It has happened since i first set it all up. I have never gotten it right :/

Reply to "Shared users unable to log into other wikis"
Bird7301 (talkcontribs)

This error occurs when I call the template.

MediaWiki无法使用模板问题
Bird7301 (talkcontribs)

template:Pp-vandalism

Bird7301 (talkcontribs)
MediaWiki 模板错误
AhmadF.Cheema (talkcontribs)
This post was hidden by Bird7301 (history)
Bird7301 (talkcontribs)

Now it show this error when I call Template:

MediaWiki无法使用模板问题
AhmadF.Cheema (talkcontribs)
Bird7301 (talkcontribs)

Now it show this error:

脚本错误:没有“NoteTA”这个模块。 脚本错误:没有“Hatnote”这个模块。 脚本错误:没有“Hatnote”这个模块。 脚本错误:没有“Infobox”这个模块。

Bird7301 (talkcontribs)
AhmadF.Cheema (talkcontribs)

I'm assuming this is an imported template. In which case, it has not been imported with the other modules that it needs to run.

Go to Special:Export, insert the template name that you want to import into your Wiki, check the "Include templates" checkbox. After this, import the .XML file into your Wiki.

Bird7301 (talkcontribs)

I used your method, but the problem still exists.

Reply to "MediaWiki cannot use templates"