Page MenuHomePhabricator

MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently
Open, Needs TriagePublic

Description

For MediaWiki:Sitenotice when content is added to the page it does not consistently appear as it should on the wiki. Said sitenotice appears intermittently and sometimes it not shown even though it is defined in the MediaWiki:Sitenotice page.

Similarly, when content is defined on MediaWiki:Sidebar that's different from the default, the actual sidebar intermittently shows the content defined but also shows the default from time to time

MediaWiki version: 1.34.2
PHP: 7.3.19-1~deb10u1 (fpm-fcgi)

Errors:

root@mw4:~# php /srv/mediawiki/w/maintenance/eval.php --wiki metawiki
> $a = RequestContext::getMain();

> $a = RequestContext::getMain()->getSkin();

> var_dump( $a->getSiteNotice() );
string(22) "<!-- CentralNotice -->"

>
root@mw4:~# php /srv/mediawiki/w/maintenance/eval.php --wiki rswiki
> $a = RequestContext::getMain()->getSkin();

> var_dump( $a->getSiteNotice() );
Caught exception MWException: Empty $mTitle in OutputPage::parseInternal

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 3 2020, 4:49 PM
Restricted Application added a subscriber: RhinosF1. · View Herald TranscriptOct 3 2020, 4:50 PM
RhinosF1 moved this task from Radar to Miraheze-Linked on the User-RhinosF1 board.Oct 3 2020, 4:50 PM
Aklapper renamed this task from MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently to MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently: Empty $mTitle in OutputPage::parseInternal.Oct 3 2020, 5:47 PM

But either way, that wouldn't affect the MediaWiki:Sitenotice issue

Reedy added a comment.Oct 3 2020, 7:06 PM

But either way, that wouldn't affect the MediaWiki:Sitenotice issue

Sure. But you're also complaining about Sidebar issues, and the use of thatcache could explain for things not updating etc

Reedy renamed this task from MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently: Empty $mTitle in OutputPage::parseInternal to MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently.Oct 3 2020, 7:33 PM

Just copying from IRC for logging

[20:24:05] <Reedy> Also, I think "Caught exception MWException: Empty $mTitle in OutputPage::parseInternal" is possibly a red-herring
[20:24:28] <Reedy> Basically, that's going to be expected as effectively $wgTitle isn't being set (though, from the context)
[20:24:42] <Reception123> ah
[20:25:49] <Reedy> If it was coming up in your webserver logs, that'd be different obviously
[20:26:02] <Reception123> yeah, that makes sense
Krinkle added a subscriber: Krinkle.Oct 3 2020, 8:16 PM

Could you paste the contents of your LocalSettings.php file (taking care to leave out any database passwords, upgrade keys, or other sensitive strings). I suspect this might have to do with some cache or localisation configuration indeed.

Also, do you have any other MediaWiki:-namespace override pages on your wiki? Check Special:PrefixIndex?prefix=&namespace=8 to find out about this.

Could you paste the contents of your LocalSettings.php file (taking care to leave out any database passwords, upgrade keys, or other sensitive strings). I suspect this might have to do with some cache or localisation configuration indeed.

Also, do you have any other MediaWiki:-namespace override pages on your wiki? Check Special:PrefixIndex?prefix=&namespace=8 to find out about this.

https://github.com/miraheze/mw-config and https://rs.miraheze.org/wiki/Special:%E5%89%8D%E7%BC%80%E7%B4%A2%E5%BC%95?prefix=&namespace=8