Page MenuHomePhabricator

WikiLambda documentation should explain how to get composer dependencies installed, lest users have missing ISchemaLoader fatals
Closed, ResolvedPublic

Description

When I run the update script on a new Wikilambda installation, I get the following error message:

Creating wikilambda_zobject_function_join table ...done.
...have wlzl_label_primary field in wikilambda_zobject_labels table.
PHP Fatal error:  Interface 'Opis\JsonSchema\ISchemaLoader' not found in /var/www/html/w/extensions/WikiLambda/function-schemata/php/includes/YumYumYamlLoader.php on line 16

Fatal error: Interface 'Opis\JsonSchema\ISchemaLoader' not found in /var/www/html/w/extensions/WikiLambda/function-schemata/php/includes/YumYumYamlLoader.php on line 16

Event Timeline

Hi Denni,

This is due to the above package still not being included in the list of dependencies. If you do this locally: docker-compose exec mediawiki composer require opis/json-schema:1.1.0 it will solve the issue (at least you get your machine back working), but I think this ticket should stay to add the dependencies.

I will call @gengh in as she is aware of this issue, so that she has a phabricator task to use when adding the dependencies (if it is something we do)

Change 732365 had a related patch set uploaded (by Jforrester; author: Cory Massaro):

[mediawiki/extensions/WikiLambda@master] README: Explain how to bring in our composer dependencies

https://gerrit.wikimedia.org/r/732365

Jdforrester-WMF renamed this task from Installing a new Wikilambda instance I get Fatal error ISchemaLoader not found to WikiLambda documentation should explain how to get composer dependencies installed, lest users have missing ISchemaLoader fatals.Oct 20 2021, 7:35 PM
Jdforrester-WMF added a project: Documentation.

Change 732365 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] README: Explain how to bring in our composer dependencies

https://gerrit.wikimedia.org/r/732365