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

Hi team,

I've installed mediawiki from the official download link (https://releases.wikimedia.org/mediawiki/1.41/mediawiki-1.41.1.tar.gz). Environment is PHP.8.2.19 and MySQL 8.2

All seems great until I try to switch language to French or Canadian French then comes a message

[ace29be1f11173093572d0ca] /index.php?title=Sp%C3%A9cial:Pr%C3%A9f%C3%A9rences&useskin=vector&wprov=vctw1 MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 C:\www\mediawiki\includes\parser\Parser.php(882): Parser->lock()

#1 C:\www\mediawiki\includes\parser\Parser.php(4821): Parser->preprocess('Votre page d\xE2\x80\x99...', Object(MediaWiki\Title\Title), Object(ParserOptions)) ....


Backtrace:

from C:\www\mediawiki\includes\parser\Parser.php(6309)

#0 C:\www\mediawiki\includes\parser\Parser.php(882): Parser->lock()

#1 C:\www\mediawiki\includes\parser\Parser.php(4821): Parser->preprocess(string, MediaWiki\Title\Title, ParserOptions)

#2 C:\www\mediawiki\includes\language\MessageCache.php(1442): Parser->transformMsg(string, ParserOptions, MediaWiki\Title\Title)

#3 C:\www\mediawiki\includes\language\Message.php(1464): MessageCache->transform(string, boolean, Language, MediaWiki\Title\Title)

#4 C:\www\mediawiki\includes\language\Message.php(1011): Message->transformText(string)

#5 C:\www\mediawiki\includes\language\Message.php(1059): Message->format(string)

#6 C:\www\mediawiki\includes\linker\Linker.php(2207): Message->text()


Any idea ?

Reply to "Fatal error"

PHP Fatal error:  Cannot declare class ParserOutput

4
Loman87 (talkcontribs)

Hello, I am getting this fatal error on my wiki:

Product Version
MediaWiki 1.40.0
PHP 8.3.7 (apache2handler)
ICU 70.1
MariaDB 10.11.8-MariaDB-ubu2204
Lua 5.1.5
Pygments 2.11.2

The complete apache log is the following:

PHP Fatal error:  Cannot declare class ParserOutput, because the name is already in use in var/www/html/mediawiki/includes/parser/ParserOutput.php on line 45, referer: [some page and some action]

This error is almost always logged but only sometimes actually breaks something, e.g. some API, the Change content model script, or some other action called while editing.

Any ideas?

TheDJ (talkcontribs)

Did you recently update your install ? It sounds a bit like you took an install, copied new files of the new release, but did not remove files of the old release. As ParserOutput has moved directories, you would thus have two conflicting versions of it.

Loman87 (talkcontribs)

no, I didn't update, I have a new installation installed via a control panel on a VPS. I have just one ParserOutput.php file in includes/parser folder, that correspond to the one I find on the rel-1.40.0.

Bawolff (talkcontribs)

Does the error message have more than that? Please include full error message.

I agree with TheDj on most likely cause. Try installing using an official version.

Reply to "PHP Fatal error:  Cannot declare class ParserOutput"

remove personal identifiable information

6
Luciferindcok21 (talkcontribs)

How to remove personal identifiable information from a given user.Is there any extensions similar to Extension:RemovePII . How to get the RemovePII for mediawiki 1.39, the default download is compatible only with mediawiki 1.41.

  1. How to remove page history older than 2 months?@Osnard
Bawolff (talkcontribs)

See Suppression.


By default this feature isn't enabled but it is builtin, so you have to gove admins additional user rights

Luciferindcok21 (talkcontribs)

@Bawolff could you please explain how?

Osnard (talkcontribs)
  1. How to remove page history older than 2 months?

I don't think one can do that. But there is Manual:DeleteOldRevisions.php. Be very careful with this, as it will actually remove data. Make a backup before running anything like this.

Luciferindcok21 (talkcontribs)

@Osnard Is there any way to Switch all revision older than a specific date to a provided user (e.g. Anonymous) without actually merging the user?

example id user1 has made changes 10 years ago, history should be displaying name as anonymous user.

Osnard (talkcontribs)

I am not aware of any such function. There are extensions like Extension:BlueSpicePrivacy that implement some sort of "anonymization" or "pseudonymization", but I dnot sure if this will suit your needs.

Reply to "remove personal identifiable information"

Accidental Account Creation

2
ToxicDragonfruit (talkcontribs)

I meant to create an account on an internal MediaWiki page, and thus used my first initial and last name. I'm aware that accounts on MediaWiki cannot be deleted, but could I be granted a "courtesy vanish", where my username is scrambled? Thanks.

Bawolff (talkcontribs)
Reply to "Accidental Account Creation"

Where to find help with testers for Extension

2
Lost Student (talkcontribs)
Lost Student (talkcontribs)

Addendum: I just noticed that somebody else had already linked to my code improvements from the Extension:Simple Breadcrumb page; does that mean that they did some testing as well?

Reply to "Where to find help with testers for Extension"

Irreversible error in editing templates

2
Montydave (talkcontribs)

Hello everyone,

I am writing here to ask for support on editing a template previously uploaded to my wiki.

I manually entered the code, creating a new template. It saves successfully and I am able to use it on the other pages.

However, the problem starts to occur when I try to edit the template (for example: changing a link, or changing the color of the block border).

The message I get is as follows:[ec4a1a1c43c870ca8b4d5e53] 2024-06-03 10:33:24: Fatal error of type “Error”

How can I solve it?

Thank you very much

Ciencia Al Poder (talkcontribs)
Reply to "Irreversible error in editing templates"

File(/gitinfo/info.json) is not within the allowed path(s)

4
Cavila (talkcontribs)

On MW 1.39, when I go to Special:Version, I get numerous warnings like :

Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info.json) is not within the allowed path(s): (/var/www/vhosts/[...]/:/tmp/) in [...]/includes/GitInfo.php on line 173

I don't have access to php.ini and setting $wgGitBin to false has no effect. Any idea how I could go about solving this?

Edit: I'm seeing this with ini_set( 'display_errors', 1 ) so maybe it's only natural that this warning is showing. Close this report if it is.

Bawolff (talkcontribs)

Something is wrong with a path configuration somewhere. It should not be trying to read that out of the root directory.

InfoSharer (talkcontribs)

Any idea what configuration needs to be changed to fix this? I'm having the same problem in MW 1.41: Special:Version page has numerous warnings overwriting the top of the page.

Most look like:

Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info.json) is not within the allowed path(s): (/var/services/web:/tmp:/var/services/tmp) in /volume1/web/mediawiki/includes/utils/GitInfo.php on line 177

Poem added this one:

Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info-extensions-Poem.json) is not within the allowed path(s): (/var/services/web:/tmp:/var/services/tmp) in /volume1/web/mediawiki/includes/utils/GitInfo.php on line 177

Bawolff (talkcontribs)

Please post LocalSettings.php (minus any passwords)

Reply to "File(/gitinfo/info.json) is not within the allowed path(s)"

I need to delete a page

2
228coffee (talkcontribs)

the page about my son needs to be deleted. It is false information and is causing a lot of problems in the family

Leaderboard (talkcontribs)
Reply to "I need to delete a page"
IAmChaos (talkcontribs)

Is there a way to wikilink to a specific log_id number?

Bawolff (talkcontribs)
Reply to "Linking to Log"

{{!}} Doesn't work

5
Guillaume Taillefer (talkcontribs)

I was trying to use what is mentioned above in place of pipes to try and be able to insert tables into the description section of an image through UploadWizard, however the ! doesn't even work. I tried putting it outside of the description section outside of any template and it still didn't work. I read that the template for it wasn't being used anymore and that it was incorporated into the core of MediaWiki (of which mine is 1.41). Please help

Guillaume Taillefer (talkcontribs)

To clarify, I was trying to insert templates which were in the form of tables inside the description section which is part of another table

Novem Linguae (talkcontribs)

Diff? Screenshot? Steps to reproduce? You are right that {{!}} is a magic word, so some things that come to mind might be 1) maybe there is another character that needs escaping such as =, 2) a bug in the UploadWizard extension, 3) other? Can tell you more with more information supplied.

Guillaume Taillefer (talkcontribs)
Novem Linguae (talkcontribs)

Guillaume Taillefer. What are the exact steps to reproduce please? If you give me something very specific like "step 1 visit this page", "step 2 click X", "step 3 paste exactly this code Y into Z box", myself or someone else can follow those steps exactly and see what is going wrong.

Reply to "{{!}} Doesn't work"