Page MenuHomePhabricator

Setting $wgCommentStreamsAllowedNamespaces = -1; should work
Closed, ResolvedPublic

Description

Setup

  • MediaWiki 1.43.3 (2373e95)
  • PHP 8.1.33 (apache2handler)
  • ICU 76.1
  • MariaDB 10.5.27-MariaDB-log
  • CommentStreams 9.0.0 (6e568ea)

Issue
When setting $wgCommentStreamsAllowedNamespaces = -1;, nothing happens if you add <comment-streams /> to a page. The expected behaviour is that you can start commenting on that page.

Event Timeline

Kghbln renamed this task from Setting `$wgCommentStreamsAllowedNamespaces = -1;` should work to Setting $wgCommentStreamsAllowedNamespaces = -1; should work.Sep 9 2025, 4:47 PM
Kghbln updated the task description. (Show Details)
Kghbln updated the task description. (Show Details)
Kghbln updated the task description. (Show Details)

Change #1191406 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):

[mediawiki/extensions/CommentStreams@master] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191406

Change #1191419 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):

[mediawiki/extensions/CommentStreams@REL1_44] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191419

Change #1191420 had a related patch set uploaded (by SomeRandomDeveloper; author: SomeRandomDeveloper):

[mediawiki/extensions/CommentStreams@REL1_43] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191420

For me, I get no CommentStreams functionality... even without the configuration that is the subject of this issue. I originally did have $wgCommentStreamsAllowedNamespaces = -1;, but when I remove that configuration, I still get nothing. (using the REL1_43 branch)

The only way I get CommentStreams functionality is with this patch that returns the title instead of null; or switching to the master branch.

My setup

Product	Version
MediaWiki	1.43.3 (80d0436)
2025-09-23T15:35:01
PHP	8.1.33 (fpm-fcgi)
ICU	74.2
MariaDB	10.3.39-MariaDB-log
Elasticsearch	7.10.2
Lua	5.1.5
Pygments	2.19.2

This patch worked for me as well.

MediaWiki	1.43.3 (80d0436) 15:35, 23 September 2025
PHP		8.1.33 (fpm-fcgi)
ICU		74.2
MariaDB		10.3.39-MariaDB-log
Elasticsearch	7.10.2
Lua		5.1.5
Pygments	2.19.2

Change #1191406 merged by Paladox:

[mediawiki/extensions/CommentStreams@master] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191406

Change #1191419 merged by jenkins-bot:

[mediawiki/extensions/CommentStreams@REL1_44] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191419

Change #1191420 merged by jenkins-bot:

[mediawiki/extensions/CommentStreams@REL1_43] Fix the parser tag not enabling comments

https://gerrit.wikimedia.org/r/1191420

The fix for this has been merged to master, REL1_43 and REL1_44