Topic on Project:Support desk

Logical problems with: $wgLogo & DefaultSettings.php

4
120.19.237.215 (talkcontribs)

I have currently installed mediawiki, I did not find any administration panel and wanted to update the logo. I have found an article explaining how this is done: Manual:FAQ (Topic: How do I change the logo?) as pasted in below (Bottom).

The article says not to simply change the logo.png as it will be overwritten when the upgrade is committed, and to do the upgrade through the DefaultSettings.php file. Which is known now as LocalSettings.php as I have asumed due to the search keeps going to this article: DefaultSettings.php.

First thing you notice is a big warning on that page that says Warning: Don't edit this file with Notepad or other text editor that adds byte order marks to files, or you will break your wiki. Well, further to this I have found this page: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?view=markup which has a warning of below:

5 * NEVER EDIT THIS FILE
6 *
7 *
8 * To customize your installation, edit "LocalSettings.php". If you make
9 * changes here, they will be lost on next upgrade of MediaWiki!


So what is one to do? Just to update the logo...

Below was copied from: Manual:FAQ (Topic: How do I change the logo?)

How do I change the logo?

The logo that appears in the top left of each page is determined by the $wgLogo configuration line in the LocalSettings.php file.

There are two ways to change the logo:

Upload a picture to your wiki using the normal file uploading interface. This allows the logo to be replaced easily, so you may want to protect the page if you use this method.

Then add the $wgLogo line to LocalSettings.php, for example:

$wgLogo = 'http://www.example.com/wiki/images/6/62/photoname.jpg';

Or upload an image to your server by other means (such as FTP). Add the $wgLogo line to LocalSettings.php, for example:

$wgLogo = "{$wgScriptPath}/photoname.jpg";

In this example, the photo is in the same folder as the LocalSettings.php file.

Caution: Do not simply overwrite the default logo installed with MediaWiki (/skins/common/images/wiki.png); this file will be overwritten when you upgrade.

Tip: The logo image should be 135 x 135 pixels.


and I wanted to update the logo to my personal one, though in the documentation to configure the logo I have to update the DefaultSettings.php though it also

MaxSem (talkcontribs)

Never does this FAQ entry mention DefaultSettings. You must never edit this file, nor should you ever need to edit it. Change it in LocalSettings.php.

120.21.246.50 (talkcontribs)
Reach Out to the Truth (talkcontribs)
Reply to "Logical problems with: $wgLogo & DefaultSettings.php"