Jump to content

Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(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 version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. 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.
  4. To start a new thread, click the box with the text "Start a new topic".

Update img_size etc in Image table

4
Anrake (talkcontribs)

If Image sizes have been changed outside of Mediawiki is there anyway to update the dimensions in the image table (img_size, img_width, img_height)? I tried rebuild all and refreshimagemetadata with no luck.

The photos seem to work fine even with changed dimensions but the information reflected on the file page is incorrect. It gives the wrong image dimensions.

Anrake (talkcontribs)

using MW 1.39

Bawolff (talkcontribs)
TheDJ (talkcontribs)

With the —force option

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "Update img_size etc in Image table"

Make edit only possible for a custom user groups

3
Tang Empire (talkcontribs)

I want to make some pages protected so only a custom user group can edit them. How can I achieve this?

Bawolff (talkcontribs)
Tang Empire (talkcontribs)

Thank you so much, Bawolff.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "Make edit only possible for a custom user groups"

css style page turned into an article

1
VihirLak007 (talkcontribs)
By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "css style page turned into an article"

need help with installing SocialProfile extension

1
Tang Empire (talkcontribs)

I'm stuck on the part where you run the update script. I tried using PuTTy and entered

php maintenance/run.php update

but it responded with

Could not open input file: maintenance/run.php

can anyone tell me what I'm doing wrong? I'm not experienced in any of this kind of things, and I really want the SocialProfile extension on my MediaWiki website.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "need help with installing SocialProfile extension"

export mdiawiki article to xml without multilingual support (English only)

2
Kszwaba (talkcontribs)

I use archlinux MediaWiki engine, but without support for multi-language.

It's possible to export mediawiki article from mediawiki.org website without tags for multi-language support ?

Christopher

Bawolff (talkcontribs)

It depends on what exactly you mean, but try exporting the /en subpage.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "export mdiawiki article to xml without multilingual support (English only)"

List does not appear in the category page

2
Cyclorbit (talkcontribs)
Bawolff (talkcontribs)
By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "List does not appear in the category page"

Template Styles Fatal Error

10
FXWorks (talkcontribs)

My search-fu can't seem to find a solution.

I'm trying to upgrade my Mediawiki installation from 1.39.3 to 1.42.3. Probably shouldn't matter but I'm using the official container.

I've run the installer/upgrader and the database was updated and whatnot.

I've upgraded all the skins and templates to the appropriate versions for 1.42 but I can't seem to get around an issue with TemplateStyles.

I get a fatal error:

https://fxide.io/TemplateStyles_mediawiki_error.txt

Disabling the extension makes the site work correctly but with the <templatestyles blah blah> stuff inline as expected.

I thought it might be related to jumping too many versions?

Or is it something else?

I'm testing the upgrade on a VM so it's not a big deal to tear it all down and add an intermediate upgrade step but if I can I'd like to avoid that (time constrained).

Docs say LTS to LTS is ok or did I misread?

Did I miss a "new and exciting" configuration step?

Missing something obvious?

Anyone have any insights?


Thanks a bunch!

Samwilson (talkcontribs)

@FXWorks: Are you sure you've got the right extension versions? It looks like it might not be using the 1.42 compatible version of TemplateStyles.

Bawolff (talkcontribs)

You are the second person to report something like this, so it might be an issue in the extension.

Bawolff (talkcontribs)
Bawolff (talkcontribs)

As a work around, you can use composer to change the wikimedia/scoped-callback package in TemplateStyles extension to version 4.0.0 (Using a command like composer require wikimedia/scoped-callback:4.0.0 run inside the extension/TemplateStyles directory).

Hopefully a new version of the extension will be issued soon.

FXWorks (talkcontribs)

Thanks for the attention to this @Samwilson and @Bawolff

I did use the download version picker widget linked from the official web page for the template. The filename is

TemplateStyles-REL1_42-1a2e46c.tar.gz

Short on cycles at the moment, may try the composer work around later.


Thank you!

Fabioski01 (talkcontribs)

Having the same exact problem. I get extensionDependencyError: TemplateStyles is not compatible with the current MediaWiki core (version 1.42.3), it requires: >= 1.43.\n in

even if I downloaded the 1.42 stable.

Bawolff (talkcontribs)

@Fabioski01: - that is a different problem and likely unrelated. Are you sure you downloaded the right version? What is the filenane of your download.

Fabioski01 (talkcontribs)

TemplateStyles-REL1_42-1a2e46c

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "Template Styles Fatal Error"

1.39.1 to 1.39.8 Errors

2
Kimmywingz (talkcontribs)

We're attempting to upgrade to 1.39.8 using a hardened Canasta Image via Docker in a Kubernetes Container. We got it to finally go through in our staging environment, with three new errors presenting:

CommentStreams Internal Error When attempting to delete or edit the action cannot be completed and this internal error pops up:

TypeError at /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php
from /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php(36)
0 /var/www/mediawiki/w/includes/dao/DBAccessObjectUtils.php(53): DBAccessObjectUtils::hasFlags()
1 /var/www/mediawiki/w/includes/page/WikiPageFactory.php(133): DBAccessObjectUtils::getDBOptions()
2 /var/www/mediawiki/w/includes/api/ApiBase.php(1057): MediaWiki\Page\WikiPageFactory->newFromID()
3 /var/www/mediawiki/w/canasta-extensions/CommentStreams/includes/ApiCSCommentBase.php(57): ApiBase->getTitleOrPageId()
4 /var/www/mediawiki/w/includes/api/ApiMain.php(1904): MediaWiki\Extension\CommentStreams\ApiCSCommentBase->execute()
5 /var/www/mediawiki/w/includes/api/ApiMain.php(879): ApiMain->executeAction()
6 /var/www/mediawiki/w/includes/api/ApiMain.php(850): ApiMain->executeActionWithErrorHandling()
7 /var/www/mediawiki/w/api.php(90): ApiMain->execute()
8 /var/www/mediawiki/w/api.php(45): wfApiMain()
9 {main}

Semantic MediaWiki When enabled has an "upgrade key error." I used the online updater which seems to have worked (not for SMW but our database updated). I would like to run the setupStore maintenance script but unsure of how to do this via a Dockerfile.

Moving a Page Internal Error When attempting to move a page this internal error pops up:
/w/index.php?title=Special:MovePage&action=submit LogicException: This ParserOutput contains no text!
But it does work if you deselect the box 'Leave a redirect behind'

Bawolff (talkcontribs)

these seem likely related specificly to hardened canasta, and you might have better luck asking the hardened canasta people.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "1.39.1 to 1.39.8 Errors"

Create a custom landing page for different accounts

1
Qgj dev (talkcontribs)

Hi,

I'm running a restricted Wiki for multiple groups (students, teachers, parents). I'd like every group (or user) to have a different main page displayed. Is this possible? I tried Extension:PersonalisedHomepage, however this extension doesn't seem to fit my needs. I'd be grateful for any kind of support here.

Thanks!

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "Create a custom landing page for different accounts"

School Blocking Workaround

2
Visaa11 (talkcontribs)

So my school blocked Wikimedia Commons, is there a workaround?

Bawolff (talkcontribs)

If Wikipedia/upload.wikimedia.org is not blocked, all the images on commons are available on Wikipedia.

Otherwise standard anti-censorship stuff applies - archive.org, google cache, tor, etc.

By clicking "Reply", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 4.0 License and GFDL.
Reply to "School Blocking Workaround"
Load more
Retrieved from "https://www.mediawiki.org/wiki/Project:Support_desk"