Page MenuHomePhabricator

Re-add default $wgLogo and other useful path customisation lines to LocalSettings.php
Closed, ResolvedPublic

Description

Author: s.vanslyck

Description:
I just downloaded 1.11. DefaultSettings.php has this line:

$wgLogo = false; /// defaults to "{$wgStylePath}/common/images/wiki.png"

Nothing I've tried to enter in LocalSettings.php affects the logo in anyway other than to make it disappear. The only way I've been able to change the logo is to rename my log file to wiki.png.

Even using $wgLogo = "$wgScriptPath/skins/common/images/mywikilogo.png";
has not worked.

Any idea?


Version: 1.11.x
Severity: enhancement

Details

Reference
bz11779

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:00 PM
bzimport set Reference to bz11779.
bzimport added a subscriber: Unknown Object (MLST).

robert wrote:

It does work. Please do not use bugzilla as a support method, instead use the mailing list or IRC. Thanks.

s.vanslyck wrote:

I am not attempting to use bugzilla as a support method! The recommended way of customizing the logo does not work on my installation of 1.11 and I have just confirmed this again with the following tests in LocalSettings.php. See also http://bugzilla.wikimedia.org/show_bug.cgi?id=11553. Others have experienced the same problem. See http://www.gossamer-threads.com/lists/wiki/mediawiki/105970?do=post_view_threaded

  1. 1. Copy wiki.png to mywikilogo.png
  2. 2. Verify path to mywikilogo.png as being
  3. C:\wamp\www\mywikipedia\skins\common\images\mywikilogo.png
  4. 3. Uncomment each test line until finding one that works

4. Test recommended code per documentation: Does not work

#$wgLogo = "$wgStylePath/common/images/mywikilogo.png";

5. Test recommended code per http://bugzilla.wikimedia.org/show_bug.cgi?id=11553: Does not work

#$wgLogo = "$wgScriptPath/skins/common/images/logo.png";

  1. 6. Test removing $wgLogo line completely: Does work if new logo is renamed to wiki.png

robert wrote:

As you can see on [1] I can set my $wgLogo fine (MediaWiki 1.11.0). Maybe if you used the proper support mechanisms we could help you. This is clearly not a bug with MediaWiki.

robert wrote:

My applogies for not including the link:

[1] http://www.wikitest.co.uk/1_11/Main_Page

s.vanslyck wrote:

Apparently it is not a but in the code, but it *is* a problem with the documentation.

I was recommended a fix, which works, as follows:

(1) Do not use $wgStylePath (apparrently it is undefined and DefaultSettings.php's statement that $wgLogo defaults to {$wgStylePath}/common/images/wiki.png is now inaccurate or misleading)

(2) Use $wgScriptPath

Since $wgLogo no longer appears in LocalSettings.php, it isn't clear where the line should be placed. It must be placed at a point below the line which defines $wgScriptPath.

robchur wrote:

It strikes me as absurd that certain lines containing useful lines, e.g. the $wgLogo line, despite having the same effect as the default settings, have been removed from the generated LocalSettings.php file.

It's not clear why this was done, but I strongly suggest reverting it; it's not at all helpful to new users poking about for things to change in LocalSettings.php.

  • Bug 11553 has been marked as a duplicate of this bug. ***

Since this is in the 1.17 LocalSettings.php file, I don't think this bug should remain open.