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

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"

remove personal identifiable information

5
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.

Reply to "remove personal identifiable information"
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"

PluggableAuth 7.1.0 alnog LDAPAuthentication2 on MediaWiki 1.41.1

1
Mohammad Safe (talkcontribs)
Reply to "PluggableAuth 7.1.0 alnog LDAPAuthentication2 on MediaWiki 1.41.1"

Instance of User getting string instead

2
Timmysworld (talkcontribs)

Hi, I am creating a video permissions extension for my wiki. I keep getting this error and not sure how to go about fixing it. [81e16b69894234cb8a025ff0] /wiki/Special:Upload TypeError: Argument 2 passed to VideoPermissionsHooks::onUploadVerifyUpload() must be an instance of User, string given, called in /var/www/html/w/includes/HookContainer/HookContainer.php on line 338

TheDJ (talkcontribs)

What does the method signature of your onUploadVerifyUpload look like ?

Reply to "Instance of User getting string instead"

Wiki "not found" after migrating server

2
155.190.60.27 (talkcontribs)

After migrating the server running the wiki to a different location, the apache homepage is visible but I get the following message when going into the domain that should lead to the wiki:

The requested URL /wiki/index.php/Main_Page was not found on this server.

Any ideas why this is? None of the settings or configurations have been changed, just the VM running it has been moved.

TheDJ (talkcontribs)

Well what have you checked so far ? is the webserver running ? Is php running ?

When asking questions please provide sufficient information to help you. If you were to post "my car is broken", it is hopefully very clear to you that a mechanic would have a very low chance to help you fix your car over the internet. But this isn't far from that in terms of the amount of information that you have given people to work with.

Reply to "Wiki "not found" after migrating server"