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

I loaded the Visual Editor extension. But when I select edit, I get the following error. I am using MediaWiki 1.37.1. According to the documentation (Extension:VisualEditor), it appears that once you load the VisualEditor extension, no further configuration is needed unless I am missing something. Any thoughts?

Error Message

Error contacting the Parasoid/Restbase server: http-bad status.

Malyacko (talkcontribs)
Wolfcu69 (talkcontribs)

Unfortunately parse.php --help fails with the following error so the debugging tools are not helpful.


D:\VyGuideWiki\vendor\wikimedia\parsoid>php bin/parse.php --help

PHP Warning:  require_once(D:\VyGuideWiki\vendor\wikimedia\parsoid\tools/../vendor/autoload.php): failed to open stream: No such file or directory in D:\VyGuideWiki\vendor\wikimedia\parsoid\tools\Maintenance.php on line 117

PHP Fatal error:  require_once(): Failed opening required 'D:\VyGuideWiki\vendor\wikimedia\parsoid\tools/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\VyGuideWiki\vendor\wikimedia\parsoid\tools\Maintenance.php on line 117

Toastronaut (talkcontribs)

I'm facing a similar issue with 1.37.1. The specific error message I get is Parsoid/RESTBase timeout was reached. I am running this through the official docker image with a private wiki setup. I've also tried the parse.php script and got the same error as @Wolfcu69.

I tried the php bin/parse.php --integrated line from the same page and got an error that Parsoid wasn't loaded. I tried loading the Parsoid extension explicitly in LocalSettings.php, but that didn't work. That makes me think the original error that Parsoid wasn't loaded is an issue with the parse.php script.

I found a number of issues with 1.35 that mention the same error, but they all recommend changing the $wgVirtualRestConfig['modules']['parsoid'] value. As far as I understand, that shouldn't be necessary with 1.37.1. (I tried the changes anyway and got nowhere).

Nicolas senechal (talkcontribs)

Hello, I have the same with mysql database and the wikimedia 1.37.1, I have a "Parsoid/RESTBase server (HTTP 500)" error , I don't have any other specification.

177.200.199.84 (talkcontribs)

Same here.

>Private wiki

-Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

Not a single solution provided worked.

Nicolas senechal (talkcontribs)

I resolved it, look to your php should be PHP 7.3 or later (now I have a PHP 8.1.2 and it works well) But I have an error to load with templates (probably me with a bad template)

177.200.199.84 (talkcontribs)
Nicolas senechal (talkcontribs)

I work on XAMPP so I can’t help you if it’s still there…

Toastronaut (talkcontribs)

@Nicolas senechal, It looks like the docker image (1.37.1) is using PHP 7.4.27, so I'm guessing that's not the problem/solution for 177.200.199.84 and I. I'm going to try to get something going with the link that 177.200.199.84 linked. I don't like the idea of modifying/extending the base image in order to solve this, this feels like something that should work with only modifications to LocalSettings.php.

143.0.87.122 (talkcontribs)

Ok 177.200.199.84 again here. Good news, have tried again today.

I used nginx to give the new container a subdomain like: mediawikitest.mydomain.com

and changed the $wgServer to "mediawikitest.mydomain.com " and now its runing.

just a simple thing and i have lost days at the start of the year, lol.

Reply to "Visual Editor"

MediaWiki internal error, GroupPermissionsLookup::getGroupPermissions() must be of the type array, null returned

2
109.43.51.139 (talkcontribs)

Dear support team,

i created a new user account and after login i got this kind of error log:


Original exception: [Yo9ML669KSz_XHwmMx9EPwAABGA] /index.php?title=Hauptseite TypeError: Return value of MediaWiki\Permissions\GroupPermissionsLookup::getGroupPermissions() must be of the type array, null returned

Backtrace:

from /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/GroupPermissionsLookup.php(103)

#0 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1523): MediaWiki\Permissions\GroupPermissionsLookup->getGroupPermissions()

#1 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1423): MediaWiki\Permissions\PermissionManager->getGroupPermissions()

#2 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(1372): MediaWiki\Permissions\PermissionManager->getUserPermissions()

#3 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(584): MediaWiki\Permissions\PermissionManager->userHasRight()

#4 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(464): MediaWiki\Permissions\PermissionManager->checkReadPermissions()

#5 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/PermissionManager.php(311): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal()

#6 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/UserAuthority.php(259): MediaWiki\Permissions\PermissionManager->getPermissionErrors()

#7 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/Permissions/UserAuthority.php(205): MediaWiki\Permissions\UserAuthority->internalCan()

#8 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/user/User.php(4319): MediaWiki\Permissions\UserAuthority->authorizeRead()

#9 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(225): User->authorizeRead()

#10 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(930): MediaWiki->performRequest()

#11 /mnt/web412/c0/90/5210590/htdocs/wiki/includes/MediaWiki.php(564): MediaWiki->main()

#12 /mnt/web412/c0/90/5210590/htdocs/wiki/index.php(53): MediaWiki->run()

#13 /mnt/web412/c0/90/5210590/htdocs/wiki/index.php(46): wfIndexMain()

#14 {main}


Any ideas?

217.91.157.155 (talkcontribs)

I forgot: MediaWiki 1.37, PHP 7.4

Reply to "MediaWiki internal error, GroupPermissionsLookup::getGroupPermissions() must be of the type array, null returned"

I need to change a title on wikipedia because it has a spelling mistake how do I change it?

7
90.64.124.210 (talkcontribs)
157.97.163.205 (talkcontribs)

just go to title and make change

Malyacko (talkcontribs)
90.64.124.210 (talkcontribs)

it wont let me change the title, I changed all of the other spelling mistakes which are waiting for approval so they wont be visible to you yet but I cannot change the page title

90.64.124.210 (talkcontribs)

I am not the admin of the page to be clear.

Malyacko (talkcontribs)
Bawolff (talkcontribs)

You generally need to be logged in with an account that has existed for a while to rename pages.

See help:Moving a page for more information.

Reply to "I need to change a title on wikipedia because it has a spelling mistake how do I change it?"

color of sitename in vector skin

1
31.17.255.177 (talkcontribs)

how can I change sitename link in the upper left corner. I changed my logo, but sitename is created from mediawiki. Can I change the color of this sitename? see at https://antibiotika-fibel.de the sitename antibiotika is blue. I think cause is it a link. On the mediawiki site it is a picture. But I do not know how to change it (like "mediawiki" right of the logo)?

Reply to "color of sitename in vector skin"

Can I set different pages as main page for separate skins?

1
Teetrition (talkcontribs)

For example, set Project:Main page as main page for skin Vector and set Main page (in main namespace) as main page for skin Timeless. Is it possible?

Reply to "Can I set different pages as main page for separate skins?"

How to start a new numbered (ordered list), but still continue the numbering?

5
Summary by Arlo Barnes

# list starts # list continues == break in list == # <li value="3">foo</li> # this list item is now numbered '4' instead of '2' as it otherwise would be

192.71.175.30 (talkcontribs)

Hi,

I have a numbered list and have to include images in each step. So I want to continure the numbering in the list. How can i do this?

Star Warden (talkcontribs)

If they're in a sequence, you can use the # sign at the beginning of each paragraph.

  1. Item
  2. Item 2
TheDJ (talkcontribs)

There is no direct support for this with wikisyntax, but it can be done using basic html. There are some examples listed on the English Wikipedia on how to do it.

125.17.76.43 (talkcontribs)

Thanks I used <ol start> each time to restart th

numbering

Arlo Barnes (talkcontribs)

This SO question has the answer of using "<li value="42"></li>" on the first item after the break in the list, after the # to start the line and around the desired markup to display on that line. It works for me at whatever version of MW that Wikidata is currently using.

Action URLs in format example.com/wiki/edit/Pagename

3
Summary by Jonathan3

$wgActionPaths

Jonathan3 (talkcontribs)
Seelentau (talkcontribs)
Jonathan3 (talkcontribs)

Thank you. Why had I never seen this before? :-)

Export a specific MediaWiki webpage as markdown to create a checklist

3
182.232.193.39 (talkcontribs)

In my MediaWiki 1.34.2 website I have a webpage which is comprised of various two-columned tables used as checklists (one column for a check and one for a checkmark/xmark).

I want to export that webpage into a markdown (.md) file, which I could edit with a markdown text editor such as Typora and then, after editing it, send it to a customer.

  • In my browser (Chrome), if I go to "print" I can save the webpage as PDF but not as Markdown
  • I found an explanation at rubberduckdev DOT com / mediawiki-to-md which mentions exporting MediaWiki webpages from Special > All pages but I didn't find any export functionality there.
  • There is a CLI tool to do that on GitHub philipashlock/mediawiki-to-markdown but I prefer a GUI way, if possible, without creating anything from scratch


How would you handle that problem?

182.232.136.217 (talkcontribs)

Bumping after one week.

In great plea, share your suggestion for a solution.

209.211.149.135 (talkcontribs)

I'd love a revival of this topic. I also explored that GitHub solution to no avail. Please let me know if anything new has come out that helpsw convert MediaWiki to Gitlab Markdown.

Reply to "Export a specific MediaWiki webpage as markdown to create a checklist"

Templates act weird after MediaWiki update

3
Seelentau (talkcontribs)

Hi, I have a problem with the portable infoboxes in my wiki, after finally updating it to the current version.

These p-tags appeared and I don't know where they come from

https://degwiki.com/wiki/The_Insulated_World_(2018)

and also, the whole infobox has more empty space

this is my commons.css: https://degwiki.com/wiki/MediaWiki:Common.css

and this is the template for the infobox: https://degwiki.com/wiki/Template:Release

here you can see what it looked like pre-update: https://web.archive.org/web/20210618215104/https://degwiki.com/wiki/The_Insulated_World_(2018)

please, how can I fix this? :/

Jonathan3 (talkcontribs)
Seelentau (talkcontribs)

Everything is up to date. In the meantime, I found out that MediaWiki adds those paragraph tags everywhere. Just compare old vs new code:

pre-update:

<h2 class="pi-item pi-item-spacing pi-title" data-source="title">鬼葬</h2>

post-update:

<h2 class="pi-item pi-item-spacing pi-title" data-source="title"><p>鬼葬</p></h2>

Reply to "Templates act weird after MediaWiki update"

use #ask to query the current single pagek

6
2408:8410:6031:339D:6C19:B057:8687:A42C (talkcontribs)

I want to use #ask in one template, and how can it only query the current single page that uses this template? I try to use magic words PAGENAME like {{#ask: [[PAGENAME]]|?ExpertID}} but it doean't work. Thank you!

Malyacko (talkcontribs)

Hi, what is #ask? Please also see "Post a new question" in the sidebar. Thanks.

Bawolff (talkcontribs)

 #ask is a semantic mediawiki thing.


For starters the syntax is {{PAGENAME}}

2408:8410:6031:339D:146B:110F:FB60:15ED (talkcontribs)

thx but I have tried {{PAGENAME}} and some other similar syntaxs too, and they all didn't work

Bawolff (talkcontribs)

To be clear, what i was saying was [[{{PAGENAME}}]]

42.3.19.69 (talkcontribs)

it works, thank you very much!

Reply to "use #ask to query the current single pagek"