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 日本語 中文

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

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.

Reply to "Parsoid: "Unexpected token" {","time""
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"

Cant access my wiki anymore, i get an internal error.

9
Dark gundam (talkcontribs)

im new to mediawiki, so i dont know much about it but i was recommended it because is write alot and now have a huge clutter of disconnected storys. i installed it a week ago and i ran fun, until today. now i get this error and i cant fix it , please help.

im using mediawiki 1.33.1. im also running it of my external hard drive and with xampp, with the apache and mysql servers.

this is the error get when i try to access my wiki, and yes i know i spelled custom wrong.

and this is the error i get when i try to update it

please help, i was finaly getting used to it.

ps. i do have a local backup, cause i didnt know you can use mysql to make backups but now i do. so if im basicly screwed and have to start a new one, please tell me how i can transfer the files from the old backup and not still get the error, cause i already tried.

Dark gundam (talkcontribs)

ok idk why it lined it up like that and it wont let me line it up how it actualy is but i hope you still get it.

MarkAHershberger (talkcontribs)

Since it looks like you are using WAMP, you should be able to use phpmyadmin to back up the database. It would also be helpful to see what tables exist in the my_custem_storys database since it looks like some are missing.

Dark gundam (talkcontribs)

welp now i have a new problem. i tried to reinstall the wiki then pasting the original over it, hoping maybe something was missing, didnt work. i didnt diffrent versions of this in diffrent orders and nothing worked. so i uninstalled xampp and then reinstalled it and then reinstalled wiki and pasting the old wiki over that. now its the defualt wiki, when you first installed it, but the odd this is, all of the original files are in the folder so i dont know why its loading the defualt rather than my edited one. so i fixed the accessing problem but now i have a new one. so is there a way to make it load them or some trick or do i have to go into the fiels and paste them into a new location. if the last one then i dont know were page data is stored within the folder.

AhmadF.Cheema (talkcontribs)

Aside from the MediaWiki files. have you restored the database too?

How did you make a backup of your database? Was it through phpMyAdmin?

Dark gundam (talkcontribs)

i dont think i did, idk how to check. its a local backup with winrar, i didnt known phpmyadmin could do auto backs unill resently cause i just started using mediawiki barely aweek ago. like i said is pasted the original files, after a made a new wiki with the same project name, and i can see the files, like the images but i dont know were page data is stored, but the pages, templates and images are not being loaded dispite being in there original place.

AhmadF.Cheema (talkcontribs)

The problem is that aside from files in the MediaWiki folder, you also need to restore the database. Except for images and LocalSettings.php, almost all the content added to a Wiki is only present in the database.

See the answers to this question to see if you can still restore the database.

Dark gundam (talkcontribs)

thats one of the problems, when i go into the localhost admin page and try to mess arround with it, it kept giving me an error saying some table is missing, i dont remember which one. i was forced to reinstall xampp because mysql wouldnt launch either. when i looked it up poeple said i had to delete some files in the data page to get it to work again but nothing in the folders just the files in the root data folder. i still have a backup of that folder to just in case. does this mean im screwed and have to start all over again.

AhmadF.Cheema (talkcontribs)

As the above linked SO question mentions, the database is in the directory: C:\xampp\mysql\data

If your backup includes that too, then maybe the database backup exists, not sure how it can be restored though.

Reply to "Cant access my wiki anymore, i get an internal error."

Is there a simple way to get images returned in search results?

2
Summary by 197.218.95.146
Blinkingline (talkcontribs)
Product Version
MediaWiki 1.33.0
PHP 7.2.24-0ubuntu0.18.04.1 (fpm-fcgi)
MySQL 5.7.27-0ubuntu0.18.04.1

On my wiki, several of my articles have a single image. The articles are broken into various categories based on attributes they have in the game. What I would like to do is change the way my search results appear such that they include the image for that article. I have installed the PageImage extension and I'm currently using CirrusSearch. The search results that I am getting look great and are perfect for what I need, but I would prefer it if the results would include the Page Image as well, preferaby in a gallery-style format. I've looked at DynamicPageList, and while it comes close, it doesn't quite match up to what I'm looking for.

Any ideas on how I might go about accomplishing this?

197.218.95.146 (talkcontribs)

Your choices seem to be either using Extension:QuickSearchLookup , making a feature request for that extension, creating an extension to do that or waiting indefinitely for it to be provided in mediawiki itself.

Reply to "Is there a simple way to get images returned in search results?"