Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error Invalid callback Wikibase\Import\Hooks #42

Open
thomas-topway-it opened this issue Dec 28, 2019 · 2 comments
Open

error Invalid callback Wikibase\Import\Hooks #42

thomas-topway-it opened this issue Dec 28, 2019 · 2 comments

Comments

@thomas-topway-it
Copy link

hello, after installing the extension on mediawiki/wikibase 1.32 and running
php maintenance/update.php
we get the following error

MWException from line 164 of /var/www/html/mediawiki/includes/Hooks.php: Invalid callback Wikibase\Import\Hooks::onLoadExtensionSchemaUpdates in hooks for LoadExtensionSchemaUpdates

also, executing
php maintenance/importEntities.php --all-properties

raises the error
/importEntities.php: Class 'Wikibase\Import\LoggerFactory' not found
(on the last commit)

thanks
(Thomas)

@ross-spencer
Copy link

ross-spencer commented Sep 8, 2021

Did this resolve itself? I'm running the latest docker images wmde/wikibase-release-pipeline@911cb27 and I am seeing this error:

ubuntu@wikibase:~/git/wikibase-release-pipeline/example$ sudo docker exec -it example_wikibase_1 php /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php --all-properties --entity Q2882604
[7db99fa0cb22cb1d7a14affb] [no req]   Error from line 47 of /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php: Class 'Wikibase\Import\LoggerFactory' not found
Backtrace:
#0 /var/www/html/maintenance/doMaintenance.php(107): Wikibase\Import\Maintenance\ImportEntities->execute()
#1 /var/www/html/extensions/WikibaseImport/maintenance/importEntities.php(133): require_once(string)
#2 {main}

With WikibaseImport mounted as a volume: ./extensions/WikibaseImport/:/var/www/html/extensions/WikibaseImport

I haven't enough PHP to figure out what's happening. Will keep looking and update folks if I get out of this dead-end.

@ross-spencer
Copy link

ross-spencer commented Sep 10, 2021

As a newcomer to the platform I had to go back through the installation instructions again. From the environment I have docker-compose installed and running the Wikibase image I was able to run composer update from the extensions/WikidataImport folder and once I did that, the php update (sudo docker exec -it example_wikibase_1 php /var/www/html/maintenance/update.php) command and it looks like it all works as anticipated which is great. So, for me it was a case of this error manifesting itself because I didn't follow the steps properly. Perhaps if anyone else comes across this ticket this'll help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants