Page MenuHomePhabricator

generateSchemaChangeSql.php fails with "Class 'Seld\JsonLint\JsonParser' not found"
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Run php generateSchemaChangeSql.php

What happens?:
Fails with error:

[ddf2d6a19b0267965e1a1d4e] [no req]   Error: Class 'Seld\JsonLint\JsonParser' not found
Backtrace:
from ...\mediawiki\includes\db\AbstractSchemaValidator.php(86)
#0 ...\mediawiki\maintenance\includes\SchemaMaintenance.php(228): MediaWiki\DB\AbstractSchemaValidator->validate(string)
#1 ...\mediawiki\maintenance\includes\SchemaMaintenance.php(178): SchemaMaintenance->getSchema(string)
#2 ...\mediawiki\maintenance\includes\SchemaMaintenance.php(149): SchemaMaintenance->writeSchema(string, string, string, string)
#3 ...\mediawiki\maintenance\doMaintenance.php(115): SchemaMaintenance->execute()
#4 ...\mediawiki\maintenance\generateSchemaChangeSql.php(90): require_once(string)
#5 {main}

What should have happened instead?:
Succeed without errors.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

  • MediaWiki master and REL1_38 branch
  • PHP 7.4.3

Event Timeline

Have you run composer update?

We don't ship dev dependancies, and therefore to run maintenance scripts like this (which exist for development purposes), you need to run composer yourself...