Page MenuHomePhabricator

MediaWiki:Sidebar and MediaWiki:Sitenotice only having effect intermittently
Closed, DeclinedPublic

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

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

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

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

Not a bug with the caching library. By default, this is going to be an issue with how the cache is used or invalidate by the caller. In this case, Skin.php.

@RhinosF1 It would help a lot if this could be reproduced on a fresh wiki. Perhaps you can try some of the options on https://patchdemo.wmflabs.org/ to narrow it down.

@Reception123: do we have a downstream task? There's not much info here.

Aklapper changed the task status from Open to Stalled.Jan 20 2022, 1:26 PM

@Reception123: Could you please answer the last comment? Thanks in advance!

Unfortunately closing this Phabricator task as no further information has been provided.

@Reception123: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!