Last modified: 2011-01-27 20:28:42 UTC
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?
It does work. Please do not use bugzilla as a support method, instead use the mailing list or IRC. Thanks.
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. Copy wiki.png to mywikilogo.png # 2. Verify path to mywikilogo.png as being # C:\wamp\www\mywikipedia\skins\common\images\mywikilogo.png # 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"; # 6. Test removing $wgLogo line completely: Does work if new logo is renamed to wiki.png
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.
My applogies for not including the link: [1] http://www.wikitest.co.uk/1_11/Main_Page
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.
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.
See also http://bugzilla.wikimedia.org/show_bug.cgi?id=11780
*** 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.