Hello,
I do IT for a nonprofit that runs a specialized MediaWiki wiki for people with chronic pain. It's our main project, and we'd like to use CentralNotice on it because of several features that make it superior to SiteNotice for our use.
I've installed it and set up a test banner and a campaign. Interestingly, the test notice doesn't appear when you access a page via the short URL, but does appear when you access it through the long URL.
For example, the SiteNotice currently is set to display the phrase, "For testing purposes only: CentralNotice is working." You will only see that phrase if you navigate to the first of the following two links: http://www.tmswiki.org/w/index.php?title=The_Tension_Myositis_Syndrome_Wiki http://www.tmswiki.org/ppd/The_Tension_Myositis_Syndrome_Wiki Theoretically, the above two URLs refer to the same resource.
We used the "Recommended how-to guide (setup used on Wikipedia)" method for setting up Short URLs. The key line, in httpd.conf, is Alias /ppd /home/ptpn/public_html/w/index.php
Many thanks for any help you can offer. We're very eager to get this set up.
Forest
Resources: http://www.tmswiki.org/ppd/Special:CentralNotice http://www.tmswiki.org/ppd/Special:Version%C2%A0 (v. 1.18. CentralNotice was installed from 1.18 version today)
It's related to the way it is configured. It's trying to load the central notice from:
http://www.tmswiki.org/ppd/The_Tension_Myositis_Syndrome_Wiki?title=Special:...
instead of
http://www.tmswiki.org/w/index.php?title=Special:BannerLoader&banner=Tes...
You seem to have $wgCentralPagePath with its default value.
I suspect that setting
$wgCentralPagePath = "http://www.tmswiki.org/w/index.php";
will fix it.
I've also submitted a change to https://gerrit.wikimedia.org/r/3717 which should provide a better default.
Best regards
I suspect that setting
$wgCentralPagePath = "http://www.tmswiki.org/w/index.php";
will fix it.
Many thanks, Platonides, that was exactly it.
Best,
Forest
From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Sunday, March 25, 2012 11:57 AM Subject: Re: [Mediawiki-l] CentralNotice only working on pages without short URLs
It's related to the way it is configured. It's trying to load the central notice from:
http://www.tmswiki.org/ppd/The_Tension_Myositis_Syndrome_Wiki?title=Special:...
instead of
http://www.tmswiki.org/w/index.php?title=Special:BannerLoader&banner=Tes...
You seem to have $wgCentralPagePath with its default value.
I suspect that setting
$wgCentralPagePath = "http://www.tmswiki.org/w/index.php";
will fix it.
I've also submitted a change to https://gerrit.wikimedia.org/r/3717 which should provide a better default.
Best regards
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org