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's the location of actuall common.css?

2
DannyMiggo (talkcontribs)

Since I can't access the MediaWiki:Common.css for some reason, not sure why, I figured I can just edit the real one, but which file is that exactly, like where is it?

Bawolff (talkcontribs)

I think you have the wrong conceptual model. There is no "real" one.


If you want to edit it from commandline, use edit.php

Reply to "Where's the location of actuall common.css?"

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

2
Abobakr515 (talkcontribs)

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

Clump (talkcontribs)
Reply to "لقد وجدت ثغرة اختراق"

I can't do php update.php or php run.php update

7
Christbirego (talkcontribs)

Hello I am a beginner contributor on mediawiki and I have errors on the installation of extensions my mediawiki I installed with compose. now I can not do: php update.php

Bawolff (talkcontribs)

Please include what errors you have. Please explain what you mean by not being able to do update.php (i.e. what is stopping you).

Christbirego (talkcontribs)
error update.php

When I update, the process does not run to completion

Bawolff (talkcontribs)

Are you running this script on the same host as your mediawiki is on?

Christbirego (talkcontribs)

I've installed everything with composer, but I don't know if I need to change port to update.

Bawolff (talkcontribs)

That wasn't the question I asked...

Reply to "I can't do php update.php or php run.php update"

problem to use 'syntaxhighlight'

1
JanTappenbeck (talkcontribs)

hi!

i want to highlight code and in the statusbar i offen get following message: "Seiten mit Syntaxhervorhebungsfehlern" (Page with Syntaxhighlighterror)

i look to description https://de.wikipedia.org/wiki/Hilfe:Syntaxhighlight but did not see any error.

here my full page-text

Allgmeines

Sollen Punkte für Google, Apple, OSM oder andere Karten verwendet werden, dann ist eine Transformation erforderlich als das die Funktion Point.ToWKT zur Verfügung stellt.

Beispiel aus Template:Siehe

In args.Point ist der abgegriffene Punkt enthalten.

Dim Point As New Mum.Geo.Geometry.Point

If Not args.Canceled Then
  Point = args.Point

  'Wenn Sie Koordinaten via den Map.GetXXX Funktioen holen
  'erzeugen sie zuerst mit Clone eine Kopie der Geometry, weil mit der Transformation ansonsten Point nicht mehr die GK-Koordinaten enthält.
  Dim geom As Mum.Geo.Geometry.Point = Point.Clone

  'Transformieren der Koordinaten
  'Aktuellens Koordinaten System der Karte holen
  Dim sourceEpsg As String = Me.Application.Project.Map.SRS

  'Ziel System angeben
  Dim targetEpsg As String = "EPSG:4326"
  Mum.Geo.Application.CoordinateTransformation.Transform(sourceEpsg, targetEpsg, geom)

Else
  _EBLog.LogAndMsgBox("Es wurde kein Punkt gewählt!")
End If

Anwendung

could someone help to me to find the mistake?

regards Jan

Reply to "problem to use 'syntaxhighlight'"

My MediaWiki shows error when first access.

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

Bawolff (talkcontribs)

Please include the contents of LocalSettings.php (minus any passwords or secret keys)

318cyz (talkcontribs)

<?php

# This file was automatically generated by the MediaWiki 1.41.1

# installer. If you make manual changes, please keep track in case you

# need to recreate them later.

#

# See includes/MainConfigSchema.php for all configurable settings

# and their default values, but don't forget to make changes in _this_

# file, not there.

#

# Further documentation for configuration settings may be found at:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

   exit;

}

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "TestProject";

## The URL base path to the directory containing the wiki;

## defaults for all runtime URL paths are based off of this.

## For more information on customizing the URLs

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "/wiki";

$wgScriptExtension  = ".php";

$wgArticlePath = "${wgScriptPath}/$1";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://www.vividcycle.org:32648";

## The URL path to static resources (images, scripts, etc.)

$wgResourceBasePath = $wgScriptPath;

## The URL paths to the logo.  Make sure you change this from the default,

## or else you'll overwrite your logo when you upgrade!

$wgLogos = [

   '1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",

   'icon' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",

];

## UPO means: this is also a user preference option

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "318cyz@vividcycle.org";

$wgPasswordSender = "318cyz@vividcycle.org"; # The email is a false one

$wgEnotifUserTalk = true; # UPO

$wgEnotifWatchlist = true; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "my_wiki";

$wgDBuser = "wikiuser";

$wgDBpassword = [REDACTED];

# MySQL specific settings

$wgDBprefix = "";

$wgDBssl = false;

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Shared database table

# This has no effect unless $wgSharedDB is also set.

$wgSharedTables[] = "actor";

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = [];

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = false;

#$wgUseImageMagick = true;

#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from https://commons.wikimedia.org

$wgUseInstantCommons = false;

# Periodically send a pingback to https://www.mediawiki.org/ with basic data

# about this MediaWiki instance. The Wikimedia Foundation shares this data

# with MediaWiki developers to help guide future development efforts.

$wgPingback = true;

# Site language code, should be one of the list in ./includes/languages/data/Names.php

$wgLanguageCode = "zh-cn";

# Time zone

$wgLocaltimezone = "UTC";

## Set $wgCacheDirectory to a writable directory on the web server

## to make your wiki go slightly faster. The directory should not

## be publicly accessible from the web.

#$wgCacheDirectory = "$IP/cache";

$wgSecretKey = [REDACTED];

# Changing this will log out all existing sessions.

$wgAuthenticationTokenVersion = "1";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = [REDACTED];

## For attaching licensing metadata to pages, and displaying an

## appropriate copyright notice / icon. GNU Free Documentation

## License and Creative Commons licenses are supported so far.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "";

# The following permissions were set based on your choice in the installer

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['edit'] = false;

## Default skin: you can change the default skin. Use the internal symbolic

## names, e.g. 'vector' or 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'MinervaNeue' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Timeless' );

wfLoadSkin( 'Vector' );

# Enabled extensions. Most of the extensions are enabled by adding

# wfLoadExtension( 'ExtensionName' );

# to LocalSettings.php. Check specific extension documentation for more details.

# The following extensions were automatically enabled:

wfLoadExtension( 'AbuseFilter' );

wfLoadExtension( 'CategoryTree' );

wfLoadExtension( 'Cite' );

wfLoadExtension( 'CiteThisPage' );

wfLoadExtension( 'CodeEditor' );

wfLoadExtension( 'ConfirmEdit' );

wfLoadExtension( 'DiscussionTools' );

wfLoadExtension( 'Echo' );

wfLoadExtension( 'Gadgets' );

wfLoadExtension( 'ImageMap' );

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'Interwiki' );

wfLoadExtension( 'Linter' );

wfLoadExtension( 'LoginNotify' );

wfLoadExtension( 'Math' );

wfLoadExtension( 'MultimediaViewer' );

wfLoadExtension( 'Nuke' );

wfLoadExtension( 'OATHAuth' );

wfLoadExtension( 'PageImages' );

wfLoadExtension( 'ParserFunctions' );

wfLoadExtension( 'PdfHandler' );

wfLoadExtension( 'Poem' );

wfLoadExtension( 'ReplaceText' );

wfLoadExtension( 'Scribunto' );

wfLoadExtension( 'SecureLinkFixer' );

wfLoadExtension( 'SpamBlacklist' );

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'TemplateData' );

wfLoadExtension( 'TextExtracts' );

wfLoadExtension( 'Thanks' );

wfLoadExtension( 'TitleBlacklist' );

wfLoadExtension( 'VisualEditor' );

wfLoadExtension( 'WikiEditor' );

# End of automatically generated settings.

# Add more configuration options below.

Bawolff (talkcontribs)

Huh. LocalSettings.php looks normal.

318cyz (talkcontribs)

If you want to see the site go to the URL included in this file: $wgServer = "http://www.vividcycle.org:32648";

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

Everytime I try setting a default skin (to vector-2022), I get this

1
38.96.234.21 (talkcontribs)

Exception caught inside exception handler: [f50174ea9643bba6b783fb21] /wiki/index.php/Main_Page Error: Class "ResourceLoaderSkinModule" not found

Backtrace:

from C:\Program Files\xampp\htdocs\wiki\includes\ResourceLoader\ResourceLoader.php(417)

#0 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(627): MediaWiki\ResourceLoader\ResourceLoader->getModule(string)

#1 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(651): MediaWiki\Output\OutputPage->filterModules(array, NULL, string)

#2 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(672): MediaWiki\Output\OutputPage->getModules(boolean, NULL, string, string)

#3 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3477): MediaWiki\Output\OutputPage->getModuleStyles(boolean)

#4 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3558): MediaWiki\Output\OutputPage->getRlClient()

#5 C:\Program Files\xampp\htdocs\wiki\includes\skins\SkinMustache.php(98): MediaWiki\Output\OutputPage->headElement(MediaWiki\Skins\Vector\SkinVector22)

#6 C:\Program Files\xampp\htdocs\wiki\includes\skins\SkinTemplate.php(177): SkinMustache->generateHTML()

#7 C:\Program Files\xampp\htdocs\wiki\includes\Output\OutputPage.php(3017): SkinTemplate->outputPage()

#8 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(187): MediaWiki\Output\OutputPage->output()

#9 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(106): MWExceptionRenderer::reportHTML(Error)

#10 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(135): MWExceptionRenderer::output(Error, integer)

#11 C:\Program Files\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(239): MWExceptionHandler::report(Error)

#12 C:\Program Files\xampp\htdocs\wiki\includes\MediaWikiEntryPoint.php(222): MWExceptionHandler::handleException(Error, string)

#13 C:\Program Files\xampp\htdocs\wiki\includes\actions\ActionEntryPoint.php(82): MediaWiki\MediaWikiEntryPoint->handleTopLevelError(Error)

#14 C:\Program Files\xampp\htdocs\wiki\includes\MediaWikiEntryPoint.php(206): MediaWiki\Actions\ActionEntryPoint->handleTopLevelError(Error)

#15 C:\Program Files\xampp\htdocs\wiki\index.php(58): MediaWiki\MediaWikiEntryPoint->run()

#16 {main}

Reply to "Everytime I try setting a default skin (to vector-2022), I get this"
2409:4063:4280:31CF:0:0:11DE:28AD (talkcontribs)
Bawolff (talkcontribs)
Reply to "Page Statistics"

Editing late husband's information

3
Titpup (talkcontribs)

I am the husband of the late Steve Hurley. I've attempted to make correction on his page but none of my corrections are saved. DOB 5/16/1957 DOD 4/16/2022 Place of Birth Ypsilanti, Michigan, USA.

P858snake (talkcontribs)

@Titpup We have no such page on this wiki, as this wiki is about the MediaWiki software package, You would need to seek assistance on the wiki you are trying to edit.

Bawolff (talkcontribs)
Reply to "Editing late husband's information"

svg transclusion in templates

4
Aloist (talkcontribs)

We have a template which places .gif images like this

https://www.astro.com/im/sym/s_su.18.gif

In the html page rendering, it appears as

<img src="https://www.astro.com/im/sym/s_su.18.gif" alt="s_su.18.gif">

I would like to replace the .gif image with a .svg image like this

https://www.astro.com/im/sym/s_su.18.svg

but that is rendered into

<a class="external free" href="https://www.astro.com/im/sym/s_su.18.svg">https://www.astro.com/im/sym/s_su.18.svg</a>


How can I have it rendered the same way as a gif image?

TheDJ (talkcontribs)

It's because core doesn't know svg as an image format for external images. It is not listed in EXT_IMAGE_REGEX of the Parser, only: gif,png,jpg,jpeg. This regex probably could use an update, please file a ticket in Phabricator to ask for this functionality.

(obligatory note about potential dangers of allowing your editors to include images from the internet)

Aloist (talkcontribs)

Thank you so much. I patched EXT_IMAGE_REGEX in ./parser/Parser.php

I do not know how to file a ticket.

Our wiki is not open to random editors, only a small trusted group can edit.

Pppery (talkcontribs)
Reply to "svg transclusion in templates"

How to remove discussion tab (timeless skin)

2
AlexMeneghin (talkcontribs)

What I need to do remove or hide the discussion tab ?

thanks

Samwilson (talkcontribs)
Reply to "How to remove discussion tab (timeless skin)"