Error on talk pages

From semantic-mediawiki.org

Our talk/discussion pages are getting a SMW-related error that I have no clue about:

Catchable fatal error: Argument 2 passed to SMW\MediaWiki\Hooks\ArticleFromTitle::__construct() must implement interface Page, boolean given, called in /home/services/xf/public_html/wiki/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php on line 446 and defined in /home/services/xf/public_html/wiki/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/ArticleFromTitle.php on line 39

We're on the following versions:

MW 1.25.1 SMW 2.2.2 Semantic Forms 3.4

Anyone have any helpful insights? As-is, our talk pages are completely unusable.

02:33, 17 November 2015

> Anyone have any helpful insights? As-is, our talk pages are completely unusable

Because we expect either a NULL or a page object and not a boolean (true, false) as value according to [0].

Please open an issue with [1] and in the meantime you could try removing the type check [2] (change from "Page &$article = null" to "&$article = null").

[0] https://github.com/wikimedia/mediawiki/blob/0a90e7ca653e1dae86887d8c454069015a725dd2/includes/page/Article.php#L121

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki

[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/fd777541ce0f455f6ae5c7774a66850fd1dcbcd9/src/MediaWiki/Hooks/ArticleFromTitle.php#L39

Cheers

02:46, 17 November 2015