hoo added a comment.

I looked into this a bit:

The langlinks table is empty:

mysql:wikiadmin@db1078 [gomwiki]> SELECT * FROM langlinks WHERE ll_from = 7451;
Empty set (0.00 sec)

The language links of the ParserOutput are also empty:

hoo@terbium:~$ mwscript eval.php --wiki gomwiki 
> $wikiPage = new WikiPage( Title::newFromID(7451) );

> $popts = ContentHandler::getForTitle( Title::newFromID(7451) )->makeParserOptions( 'canonical' );    

> var_dump( $wikiPage->getParserOutput( $popts ) );
…
  ["mLanguageLinks"]=>
  array(0) {
  }
…

Wikibase is enabled for the NS in question:

hoo@terbium:~$ mwscript eval.php --wiki gomwiki
> var_dump( Wikibase\Client\WikibaseClient::getDefaultInstance()->getNamespaceChecker()->isWikibaseEnabled( Title::newFromID(7451)->getNamespace() ) );
bool(true)

useRepoLinks is true:

hoo@terbium:~$ mwscript eval.php --wiki gomwiki
> $popts = ContentHandler::getForTitle( Title::newFromID(7451) )->makeParserOptions( 'canonical' );

> $wikiPage = new WikiPage( Title::newFromID(7451) );

> $out = $wikiPage->getParserOutput( $popts );

> var_dump( Wikibase\Client\WikibaseClient::getDefaultInstance()->getLangLinkHandler()->useRepoLinks( Title::newFromID(7451), $out ) );
bool(true)

TASK DETAIL
https://phabricator.wikimedia.org/T160274

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hoo
Cc: Cosine02, hoo, aude, Catrope, Liuxinyu970226, The_Discoverer, Aklapper, anant-k-agrawal, GoranSMilovanovic, 45Jayjay1969, QZanden, EnricoCNC, Trizek-WMF, Izno, SBisson, Fuzheado, Cwek, Wikidata-bugs, Gryllida, jeblad, zhuyifei1999, Shizhao, TTO, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to