Bcbussche added a comment.

  Ah, thanks for the hint. There is a problem with the job queue on our, but it 
might take some days until the queued jobs are done. I did not notice, that had 
to take care of the runJobs.php on my own.
  
  Therefore I tried it with a fresh installation of containerized wikibase and 
after finishing the jobs queue, the page knew about the linked item. I've 
attached the code for populating the sites table with values, valid for the 
docker-compose.yml setup. It can be executed with the maintenance/eval.php 
script.
  
  This clears the sites table, before adding the local site.
  
    $sites = [];
    $langCode = 'en';
    $site = new MediaWikiSite();
    $site->setGlobalId( 'my_wiki' );
    $site->setGroup( 'wikipedia' );
    $site->setLanguageCode( $langCode );
    $site->addInterwikiId( $langCode );
    $site->addNavigationId( $langCode );
    $site->setPath( MediaWikiSite::PATH_PAGE, "http://localhost:8181/wiki/$1"; );
    $site->setPath( MediaWikiSite::PATH_FILE, "http://wikibase.svc/w/$1"; );
    $sites[] = $site;
    $sitesTable = MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
    $sitesTable->clear();
    $sitesTable->saveSites( $sites );

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

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

To: Bcbussche
Cc: Ladsgroup, Aklapper, Bcbussche, Liuxinyu970226, darthmon_wmde, Jelabra, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Asahiko, Wikidata-bugs, aude, Addshore, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to