Using Wikilog with Semantic MediaWiki breaks talk pages, because WikilogCommentsPage::createInstance sets $article to false and not null, if comments are disabled. SMW expects $article to be either null or to implement Page and throws an fatal error for false.
Using Wikilog with Semantic MediaWiki breaks talk pages, because
WikilogCommentsPage::createInstance
sets$article
tofalse
and notnull
, if comments are disabled. SMW expects$article
to be eithernull
or to implementPage
and throws an fatal error forfalse
.A quick fix is to replace line 337 in Wikilog.php with
but I think it would be more appropriate to make
WikilogCommentsPage::createInstance
returnnull
instead offalse
.I tested this locally on MediaWiki 1.26.0, PHP 5.6.10 (MAMP 3.4), MySQL 5.5.42.