Last modified: 2010-05-15 15:59:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T20650, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18650 - $wgStylePath does not default to "/wiki/skins/ "
$wgStylePath does not default to "/wiki/skins/ "
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.11.x
PC Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-02 09:53 UTC by Bud Maddock
Modified: 2010-05-15 15:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bud Maddock 2009-05-02 09:53:48 UTC
The default path to $wgLogo appears to be broken at $wgStylePath, referencing "includes/DefaultSettings.php" documentation.
Explicitly adding $wgStylePath = "/wiki/skins/" near the end of LocalSettings.php corrects the problem.

Detailed workaround:
Change LocalSettings.php 
$wgStylePath = "/wiki/skins/";
$wgLogo="{$wgStylePath}/common/images/wikidog.png";
Place image in /var/lib/mediawiki/skins/common/images/wikidog.png

According to the documentation the $wgStylePath line is not necessary but the code will not work without it.  It would be helpful to know where $wgStylePath points when customizing LocalSetting.php
Comment 1 Karun 2009-05-13 04:30:12 UTC
Hello,
I am currently having a look at the bug now.
The default value from http://www.mediawiki.org/wiki/Manual:$wgStylePath is "{$wgScriptPath}/skins".
What do you have defined for $wgScriptPath and has this been changing at all within the configuration?

Regards
Comment 2 Karun 2009-05-13 04:53:17 UTC
Hello,
This problem occurs when $wgScriptPath is changed in the configuration files, as $wgStylePath utilises this as part of the default path being $wgScriptPath/skins. A lot of the paths that are set use $wgScriptPath as the base, and when this is changed the other paths will need to be redefined.

The installation script that comes with MediaWiki will set $wgScriptPath for you when it is installed.

Most of the information about the default values is available in the Manual at http://www.mediawiki.org/wiki/Manual:$wgStylePath

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links