Topic on Extension talk:StructuredDiscussions

Flow on User talk: Pages don't exist

7
Subfader (talkcontribs)

I enabled Flow on the user talk ns and the "discussion" pages don't exist for the system.

The flow board loads, but:

  • The discussion tab is .new
  • The subline asks to "view or restor X edits"

I have to hack the system now to make these act as normal pages?

It appears topics also don't exist: Topic:Sn2g1yop0frbj7y7

Mattflaschen-WMF (talkcontribs)

First, in order to troubleshoot any possible bugs, please let us know what versions/commits of both MediaWiki core and Flow you're using.

If I understand correctly, it sounds like we might be talking about a few different things:

1. When you first go to a new board (you're about to create it for the first time) in a Flow-enabled namespace, it's normal for the board not to exist, and the tab to be red. See for example https://ca.wikipedia.org/wiki/Viquip%C3%A8dia_Discussi%C3%B3:This_doesn't_exist_yet?useskin=monobook (using Monobook skin to illustrate the tab is red).

2. If you previously deleted any content there, it will also be listed in the subline as you said. I have not heard of any previous bug reports where it would wrongly claim there was deleted content when it's a totally fresh location.

3. You said, "It appears topics also don't exist: Topic:Sn2g1yop0frbj7y7". There were bugs about this (topics being red), but they should be fixed in latest Flow.

Steff-X (talkcontribs)

I agree. This is a very poor user experience to have the "Talk" page displayed as "red link", not only in the interface but also in the journals - ~~~

Mattflaschen-WMF (talkcontribs)

Please clarify exactly when it shows as red, and what versions/commits of both MediaWiki core and Flow you're using.

I'm assuming by journals you mean logs, such as the history page/RC. Please clarify, though.

Steff-X (talkcontribs)

For the versions, I use Flow REL1_25-576f705 with Mediawiki 1.25.1

About the red links, the Talk tab is red even when it points to an existing Flow discussion. About the Logs, subjects in a Flow discussion (linking to index.php/Topic:xxxxxxxxx) are properly displayed in blue but links to talk pages (index.php/Talk:xxxxxx) are red even though the page exists.

Subfader (talkcontribs)

It seems that nobody cares since Wikimedia found a solution for their own use.

Steff-X (talkcontribs)

This is a modification to the extension to properly display active links in the tabs and in the journals.

  • In file Flow.php, find the line "$wgHooks['ArticleDelete'][] = 'FlowHooks::onArticleDelete';". In a new line after that one, insert the following:
$wgHooks['TitleIsAlwaysKnown'][] = 'FlowHooks::onTitleIsAlwaysKnown';
  • In file Hooks.php, after the line "protected static $abuseFilter;", insert the following 6 lines
public static function onTitleIsAlwaysKnown( $title, &$result ) {
$myOccupationController = self::getOccupationController();
if ($myOccupationController->isTalkpageOccupied( $title )) {
$result = true;
}
}

Now links handled by Flow should appear correctly. Other links should be untouched. Note that I am in no way skilled in PHP, so use at your own risks.

Warning: this modification makes the assumption that any talk page handled by Flow (virtually) exists, even if there are actually no data attached to the talk page. Distinguishing between talk pages with or without data would probably require an explicit access to the database (to the table Workflow, to be precise).

Reply to "Flow on User talk: Pages don't exist"