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

remove personal identifiable information

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

Reply to "remove personal identifiable information"

strange section indentation Help:Contents

1
Wladek92 (talkcontribs)

i activate numbering of paragraphs in my user preferences. Then when displaying the page itself numbering is:

Sommaire
1 2 Welcome to MediaWiki.org help pages
2.1Reading
2.2Editing
2.3Advanced editing
2.4Collaboration
2.5Personal customization
2.6Wiki administration

Strange: There is nothing between level 1 and level 2 on first line and all is under level 2.

Then making modify source + preview with a forced TOC, all is under level 1:

Sommaire
1Welcome to MediaWiki.org help pages
1.1Reading
1.2Editing
1.3Advanced editing
1.4Collaboration
1.5Personal customization
1.6Wiki administration

Can someone analyse and correct the display ? Thanks. --Christian 🇫🇷 FR (talk) 09:04, 18 May 2024 (UTC)

Reply to "strange section indentation Help:Contents"

My MediaWiki shows error when first access.

1
318cyz (talkcontribs)

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 99

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 99

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 100

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 100

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 101

PHP Notice: Trying to access array offset on value of type null in C:\inetpub\wwwroot\mediawiki\includes\profiler\SectionProfiler.php on line 101


Refresh can load it correctly.

When I post changes the connection will reset, even on localhost.

Reply to "My MediaWiki shows error when first access."

How to insert Note references through VisualEditor

1
Guillaume Taillefer (talkcontribs)

Hello, I was trying to find out if it was possible to insert notes instead of citations in VisualEditor instead of having to just do hidden comments from readers. I would like to have it like Wikipedia where you are given the option to easily use templates such as Template:Refn without having to manually do it each time within the wiki editor.

Thanks

Reply to "How to insert Note references through VisualEditor"

The Translation tool has too many problems

3
Filipe46 (talkcontribs)

I already complained about that, made the ticket and everything. Yet, no solutions were presented.

The tool keeps flagging every single stretch of the text as having 100% to 96% unmodified text, thus blocking the publication of the article. Almost every translation keeps giving me the false-positive of it being an earlier version of the article, thus also impeding the publication of the same.

The tool never saves the infobox, thus forcing me to remake it every time I open the translation. It keeps losing entire paragraphs already translated, thus wasting my time in re-translating the same thing 3 or 4 times.

It also clashes auto translation with my translations, usually on links.

Malyacko (talkcontribs)
Filipe46 (talkcontribs)

No, and nothing was done to correct it.

Reply to "The Translation tool has too many problems"
CrickCity (talkcontribs)

I can't log in with either my BoxRec Account or my Media Wiki account. I am trying ti upload an image to BoxRec.

Reply to "Log-in issues"

Add Sitelinks to my local wikibase instance

1
Antoine7812 (talkcontribs)

Hello,

Mediawiki version: 1.40.1

I am currently trying to add sitelinks to my wikibase. I succeeded by adding wikipedia (I have the box Wikipedia), so I can add for example the sitelinks "enwiki" with the page "Earth" (that is autosuggested by the input) but I encounter this error:

    "errors": [

        {

            "code": "no-external-page",

            "data": {

                "messages": [

                    {

                        "name": "wikibase-api-no-external-page",

                        "parameters": [

                            "enwiki",

                            "Password"

                        ],

                        "html": {

                            "*": "The external client site \"enwiki\" did not provide page information for page \"Earth\"."

                        }

                    }

                ]

            },

            "module": "main",

            "*": "The external client site \"enwiki\" did not provide page information for page \"Earth\"."

        }

    ],

I don't understand the error because I have the autosuggested propositions on the input where I can add the sitelinks. My sites table was filled with the populateSitesTable script.

Thank you in advance for your help,

Best regards,

Antoine

Reply to "Add Sitelinks to my local wikibase instance"

Assistance Needed with Calculating Totals in a Wiki

1
Anuragvani (talkcontribs)

Hello,

I hope this message finds you well.

I am reaching out for some assistance with formulating codes. I have a list of speakers from a book(attached a link for the same) and need a way to automatically calculate the totals in a column within a wiki. Is there any existing functionality in wiki tools that can help with this?

https://vanipedia.org/wiki/User:Anurag/Vanifun

Thank you in advance for your help!

Best regards,

Anurag

Reply to "Assistance Needed with Calculating Totals in a Wiki"

Force thumbnail generation with PdfHandler?

6
Kjecl (talkcontribs)

I recently performed an reinstall and database restore of a Wiki to fix a different problem. An unexpected positive side effect was that thumbnails are now generated for new PDF files uploaded to the Wiki. Cool!

Is there a way to force the generation of thumbnails for previously uploaded PDFs? I have tried:

php refreshImageMetadata.php -f

followed by:

php rebuildImages.php

without effect.

Thanks for any suggestions.

Bawolff (talkcontribs)

What do the old images look like? Is there an error message instead of a thumbnail or is it just missing. Does mediawiki show the correct dimensions for the files in question (as in, does it say it is 0x0 pixels or does it give a real number)?

Kjecl (talkcontribs)

Thank you for your interest in my problem.

The thumbnails for older files are a red stylized 'A' on a white background. Nope, no error message.

If I go to the Special:ListFiles page, and click on a red A icon, it shows dimensions of 0 x 0.

I wonder if I could use importImages.php to reload all of the older files. An experiment is in order for one of those files, I think.

Kjecl (talkcontribs)

Yes, I can use importImages.php to reload an older file. No, it does not help.

Bawolff (talkcontribs)

So the 0x0 usually means that Extension:PdfHandler had problems running the pdfinfo command, which would prevent the creating of thumbnails.

However if new files are working, then that means that it should be able to run the pdfinfo command.

In general, running refreshImageMetadata.php -f should fix that. Does the script actually say it refreshed the file in question? If it still isn't working, i could see two possible problems:

  • some sort of cache issue. You could try adding ?action=purge (or &action=purge ) to the end of the File: page (the page in the wiki, not the actual file) to see if that does anything to help
  • the older files aren't readable by the webserver. This could potentially happen if when you transfered webservers the image files had the wrong permissions or some other sandboxing system prevented access.

Both of those feel kind of a long shot though.

Of course its always possible the file being tested is just a broken pdf.

Kjecl (talkcontribs)

I used:

ls -lR | grep -v -e <string>

at the top level of the image upload folder, where string was either the owner or the permissions, to check that. I did not find any files with the wrong permissions or ownership.

refreshImageMetadata.php -f

does not say that it refreshed the files (~80 of them) in question. pdfinfo is able to run against all of the files in question sufficiently to report the PDF version. PDF versions for these files range from 1.3 to 1.7.

FILES=$(find $PREFIX -name "*.pdf" -type f | grep -v "/temp" | grep -v "/deleted" | grep -v "/archive" )

for F in $FILES; do

   echo $(pdfinfo $F | grep "PDF version")    $F

done

So, there are about 80 of these files with the 'red A' thumbnails. Apart from the likelihood of error, we could re-upload all of them to get the new thumbnails. We would prefer not to need to take that approach. Also, there is the concern that this symptom betides some problem that will bite us later.

Thanks again for your help.

Reply to "Force thumbnail generation with PdfHandler?"

Images not shown - "you don't have permission to access this resource"

8
FipsStel (talkcontribs)

I am not seeing the images I am uploading into my wiki.

I am getting the following message when clicking on an image.

"you don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"

So, it's about permissions, but where can I change them?


I am using MediaWiki 1.39.1.

Bawolff (talkcontribs)

So it sounds like the permissions of a .htaccess file. You should be able to change it from the command line with chmod (e.g. chmod a+r /var/www/html/w/images/.htaccess assuming your wiki is installed in /var/www/html/w/ ).

FipsStel (talkcontribs)

This needs to be inputed into the .htacess?

Bawolff (talkcontribs)

No. The permissions on the .htaccess file need to be changed.

77.0.27.3 (talkcontribs)

Dear Community,

I have exactly the same problem. I can upload images to wikimedia, but when I try to access them, it says "You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"

The permissions for htaccess are set correctly though(either 664 or 775 doesn't work). Can anyone help me further with this`?


kind regards,

Stefan

DAChristiansen (talkcontribs)

Has anyone figured this issue out? I am able to upload images - but get the same error above - Am also able to change permissions on the .htaccess file but no combination seems to work.

Thanks in advance,

Dean

Bawolff (talkcontribs)

If its not file permissions, it could be some other access control technique, like selinux or ACLs. Also be sure you are changing permissions on the correct .htaccess file as well as the .htaccess in all parent directories if they exist.

DAChristiansen (talkcontribs)

I deleted the image directory .htaccess file; and my image directory permission is set to 755 - my images now seem to be showing normally.

thanks,

Dean

Reply to "Images not shown - "you don't have permission to access this resource""