jo12bar added a comment.

Hey @Lucie, could you maybe send me the exact config in LocalSettings.php that you use when testing? I've followed the instructions at https://www.mediawiki.org/wiki/Wikibase/Installation to the letter, and even implemented a change mentioned in this comment on this issue in the WikibaseImport repo, but I am still unable to succesfully import an entity and have ArticlePlaceholder see it. Here's some of the issues I'm having:

  • If the entity contains some value that has an unit (such as 'year' in the Canada entity), then the import script fails with Illeagal value: http://www.wikidata.org/entity/Q577. However, ArticlePlaceholder shows a page for the entity - just not the right one:F5366772: Capture.PNG
  • If the entity does not contain a value that has some sort of unit (for example, this unlabled entity) then WikibaseImport is able to import it without an issue, but ArticlePlaceholder complains that "This is not a valid item ID":F5366796: Capture.PNG

I am honestly at a loss about what is happening here. The logs don't seem to reveal anything, though I'm not that good at reading them. The only information I could find on this was the previously-mentioned issue from WikibaseImport's repo, but the fixes suggested in it do not seem to work.

Below is the relevant part of my LocalSettings.php file, where I set up Wikibase (client & repo), WikibaseImport, and ArticlePlaceholder:

## Wikibase (client)
# Repo
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
$wgEnableWikibaseRepo = true;
$wikibaseRepoConfig = array(
	'conceptBaseUri' => 'http://www.wikidata.org/entity/'
);
array_replace($wgWBRepoSettings, $wikibaseRepoConfig);

# WikibaseImport
require_once "$IP/extensions/WikibaseImport/WikibaseImport.php";

# Client
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
$wgEnableWikibaseClient = true;
$wikibaseClientConfig = array(
	'siteGlobalID' => 'enwiki',
);
array_replace($wgWBClientSettings, $wikibaseClientConfig);


## ArticlePlaceholder
wfLoadExtension('ArticlePlaceholder');
$wgArticlePlaceholderImageProperty = 'P18';

Just for reference, I've also uploaded the whole file:
F5366825: LocalSettings.php

Could you maybe take a look and see what you think? I'm pretty stuck right now...


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

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

To: jo12bar
Cc: jo12bar, Florian, Harjotsingh, Aklapper, TerraCodes, Lucie, SacredWKnight, JakeTheDeveloper, DatGuy, SamanthaNguyen, Abbe98, JGirault, D3r1ck01, MuhammadShuaib, Izno, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to