[Mediawiki-l] CentralNotice only working on pages without short URLs

3 views
Skip to first unread message

Forest ForTrees

unread,
Mar 22, 2012, 7:04:08 PM3/22/12
to media...@lists.wikimedia.org
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  (v. 1.18. CentralNotice was installed from 1.18 version today)
_______________________________________________
MediaWiki-l mailing list
Media...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Platonides

unread,
Mar 25, 2012, 11:57:29 AM3/25/12
to media...@lists.wikimedia.org
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:BannerLoader&banner=TestBanner&campaign=TYDS&userlang=en&db=ptpn_wiki&sitename=The+TMS+Wiki

instead of
> http://www.tmswiki.org/w/index.php?title=Special:BannerLoader&banner=TestBanner&campaign=TYDS&userlang=en&db=ptpn_wiki&sitename=The+TMS+Wiki

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

Forest ForTrees

unread,
Mar 31, 2012, 8:39:23 PM3/31/12
to MediaWiki announcements and site admin list
> 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 <Plato...@gmail.com>
>To: media...@lists.wikimedia.org
>Sent: Sunday, March 25, 2012 11:57 AM
>Subject: Re: [Mediawiki-l] CentralNotice only working on pages without short URLs

Reply all
Reply to author
Forward
0 new messages