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

refreshLinks always marked as "abandoned" in job queue

2
Zorua Fox (talkcontribs)

Recently I noticed when I used showJobs.php to check jobs, it always showed that 2 refreshLinks were marked as "abandoned", such problem didn't resolve after php manageJobs.php --type refreshLinks --action repush-abandoned.

I'm wondering if this kind of problem affects the whole site.

Zorua Fox (talkcontribs)

Some related output:

Terminal
Reply to "refreshLinks always marked as "abandoned" in job queue"
Antlurt.blep (talkcontribs)

where is the burgers wiki (very important)

Reply to "burgers"
79.139.200.96 (talkcontribs)

I was trying to get the template to call itself so that it would pull out specific information and paste it as text. The template stores information about recipes, but even though it is not an infinite recursion, it throws an error. Is there a way to make the template call itself?

Steff-X (talkcontribs)

I don't think recursions are allowed in templates. You would need to have a look at Scribunto and its modules in Lua.

Reply to "Recursions"

Problem with internal links

3
132.166.177.50 (talkcontribs)

I create a "News" namespace and when I try to make a link or transclude a "News" page the wiki create a external link.

<nowiki>[[News:example]]</nowiki>

I'm precise that the problem is related to the word "News" because when I write <nowiki>[[New:example]]</nowiki> that create a internal link.

Bawolff (talkcontribs)

Try adding

$wgUrlProtocols = array_diff( $wgUrlProtocols, ["news:"] );

In LocalSettings.php

See manual:$wgUrlProtocols for details

132.166.177.50 (talkcontribs)

I tried this : $wgUrlProtocols = array_diff($wgUrlProtocols, array('news:')); and got the same result.

Reply to "Problem with internal links"
Mfrizzera (talkcontribs)

Tengo el siguiente error al hacer una instalacion limpia de wiki 1.41.0 con apache 3.4, php 8.1 y mariadb 10.6.

Error interno

[f7d22212565b9474d1fb5105] 2024-06-07 13:16:01: Excepción grave de tipo "Error"

Realize una instalacion nueva y siguo teniendo el mismo error.

Malyacko (talkcontribs)
Reply to "Error Interno"

Internal Server Error after upgrading to 1.41

4
140.182.101.237 (talkcontribs)

I followed the directions to upgrade (Manual:Upgrading) from my (functioning) mediawiki-1.36.1 to mediawiki-1.41.1, but now all I get is "Internal Server Error"

I tried setting all these debug options: Manual:How to debug ...in my LocalSettings.php, but still just get the Internal Server Error.

This is running on a university server that I do not have admin access to, but again - worked fine immediately before trying to upgrade. Any suggestions about what I might try? I saw a suggestion for looking at the server logs, but I don't seem to have access to them (or at least I don't know where to look for them - I don't have access to /var/log/apache2 for example)

Bawolff (talkcontribs)

You really need the server error log.

OOS1859 (talkcontribs)

I'm not sure what was wrong, but it is now working this morning. I suspect some temporary hiccup on my University's server, but I can't be sure it wasn't something I did.

In case it helps anyone else: I did find a note about getting this Internal Server Error if some of the lines in LocalSettings.php accidentally lack a necessary trailing ";" at the end of each line (because of some editing mistake). I had in fact edited my LocalSettings.php, but didn't see any errors of this kind, so I don't think this was causing my issue this time.

Bawolff (talkcontribs)

Typically (Although not always) a typo in LocalSettings.php makes a blank page. Usually (not always) an "Internal server error" message means something wrong more on the web server layer.

Reply to "Internal Server Error after upgrading to 1.41"

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"

Problem with URLs of thumbnails

2
Wbean43 (talkcontribs)

My site is version 1.40.1 and is in /var/www/html/site. Mediawiki and the images file is in /var/www/html/mediawiki-1.40.1. I have a symbolic link wiki->/var/www/html/mediawiki-1.40.1 in /var/www/html. My site httpd conf file includes the statement "Alias "/wiki" "/var/www/html/wiki"

When I upload an image the thumbnails are created properly under the images directory. When I try to display a thumbnail, using

File:Mass 6 12 2020.jpg
Massachusetts Covid-19 as of 6/12

the url for the image is given with the full file path: "https://site.org/var/www/html/wiki/images/thumb/4/45/Mass_6_12_2020.jpg/200px-Mass_6_12_2020.jpg"

I do not see why "/var/www/html" appears in this link? Without it I get the correct thumbnail. Any suggestions?

Bawolff (talkcontribs)

Please post your LocalSettings.php (excluding any passwords).

Most commonly this is due to setting $wgUploadPath incorrectly.

Reply to "Problem with URLs of thumbnails"

Custom extension not load css

1
Mkepler (talkcontribs)

I "create" custom tag extension....

... extension not load css.

What am I messing up?


extension.json

 ...
  "AutoloadClasses": {
                "MKCalendar": "includes/MKCalendar.php"
  },

  "Hooks": {
    "BeforePageDisplay": "MKCalendar::onBeforePageDisplay",
    "ParserFirstCallInit": "MKCalendar::efMKCalendarParserInit"
  },

  "ResourceFileModulePaths": {
    "localBasePath": "modules",
    "remoteExtPath": "MKCalendar/modules"
  },

  "ResourceModules": {
    "ext.MKCalendar.styles": {
      "styles": [
        "mkcalendar.css"
      ]
    }
  }
  ...

MKCalendar.php

//...
  public function onBeforePageDisplay( $out, $skin ): void {
      $moduleStyles[] = 'ext.MKCalendar.styles';
      $out->addModuleStyles( $moduleStyles );
  }
//...


Browser Console:

mw.loader.getState("ext.MKCalendar.styles");
'registered'
Reply to "Custom extension not load css"

لقد وجدت ثغرة اختراق

2
Abobakr515 (talkcontribs)

لقد وجدت ثغرة اختراق في موقعكم واريد التواصل معكم ل اخباركم عنها معلومات خاصة

Clump (talkcontribs)