Open Rik44444 opened 4 years ago
I've got this issue also.
I can only do "php maintenance/importEntities.php --all-properties" this one. But others have the same issue as above.
This seems to be an actual compatibility issue.
The Item::getSiteLinks()
method was removed in wikibase/data-model 8.0 (2018-08-03), so WikibaseImport needs to be updated to use getSiteLinkList()
instead.
Oh, and there is already a PR that fixes it: https://github.com/filbertkm/WikibaseImport/pull/45
is there anything i can do to help in getting this fixed?
There is a working fork at https://github.com/Wikidata/WikibaseImport
ah brilliant! i will try that asap. many thanks @danmichaelo
Hi, thanks for developing and maintaining this extension, it will be really really useful for me once i get it to work!
So atm i'm getting an error. Steps to reproduce (i followed https://github.com/filbertkm/WikibaseImport):
~/mydomain/w/extensions/WikibaseImport $ phpmaintenance/importEntities.php --entity Q20716
Expected result:
Actual result:
[1c3bcba28243820e0d31340f] [no req] Error from line 155 of /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php: Call to undefined method Wikibase\DataModel\Entity\Item::getSiteLinks() Backtrace:
0 /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php(185): Wikibase\Import\EntityImporter->getBadgeItems(array)
1 /home/mydomain/w/extensions/WikibaseImport/src/EntityImporter.php(69): Wikibase\Import\EntityImporter->importBadgeItems(array)
2 /home/mydomain/w/extensions/WikibaseImport/maintenance/importEntities.php(78): Wikibase\Import\EntityImporter->importEntities(array)
3 /home/mydomain/w/maintenance/doMaintenance.php(99): Wikibase\Import\Maintenance\ImportEntities->execute()
4 /home/mydomain/w/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string)
5 {main}
I also have a bonus question: nowhere have i entered "wikidata.org", so how does the extension know that i want an item from WikiData? + How do i enter a different URL when i want to import items from a different Wiki repo?