Benjamin Lees wrote: > On Thu, Jun 11, 2009 at 1:34 PM, Martin Smith <[email protected]> wrote: > >> Benjamin Lees wrote: >>> On Thu, Jun 11, 2009 at 5:24 AM, Martin Smith <[email protected]> >> wrote: >>>> I have set up a test server and yesterday installed 1.15.0 and got it up >>>> and running, no problem there. >>>> However I have added a logo $wgLogo = "images/courgette.png" the logo is >>>> the right size, again no problem but on entering the site at the main >>>> page no logo is visible, however when I click on log in and go to the >>>> log in page the logo suddenly appears, after logging in it vanishes >>>> again. If I create a new page, the logo is visible when I edit the page, >>>> but vanishes after saving. >>>> I have tried this from a couple of different machines with a couple of >>>> different browsers and there is no change in the behaviour. >>>> If I comment out the logo statement the default change this logo appears >>>> on every page, I have also tried moving the statement to different >>>> places in LocalSettings.php but that (obviously) does not help. >>>> Any useful comment would be appreciated, thanks >>>> -- >>>> >>> Do you have short URLs set up? Sounds like you might have a bad rewrite >>> rule. >> It is a vanilla install, just for testing purposes, adding the logo is the >> most exotic thing I have done so far. >> I might just try to install it again in another directory and see what >> happens >> but I must admit I have never seen this before. >> >> > MediaWiki ships with sort-of-pretty URLs (index.php/Foo for regular page > views instead of index.php?title=Foo) if you're using PHP as an Apache > module. Since you're using a relative path for $wgLogo, your browser will > request http://example.com/images/courgette.png when you're on an ugly URL > (as when you're editing or logging in), but will request the nonexistent > http://example.com/index.php/images/courgette.png the rest of the time. > > Use $wgLogo = "{$wgUploadPath}/courgette.png";
well that did not work either, but I discovered that using "/wiki/images/courgette.png" does work. Discovered by right click on area where logo should be, (in firefox) select inspect element, with my original setting, logo visible and not visible: <a accesskey="z" title="Visit the main page [ctrl-z]" href="/wiki/index.php/Main_Page" style="background-image: url(images/courgette.png);"/> with what you suggested: <a accesskey="z" title="Visit the main page [ctrl-z]" href="/wiki/index.php/Main_Page" style="background-image: url(1/courgette.png);"/> and with the full path: <a accesskey="z" title="Visit the main page [ctrl-z]" href="/wiki/index.php/Main_Page" style="background-image: url(/wiki/images/courgette.png);"/> maybe I have missed something else, I am fairly new to this, and I should obviously spend more time with the documentation. -- Martin _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
