Page MenuHomePhabricator

Error when displaying a lexeme after installing WikibaseLexeme: "Class "WMDE\VueJsTemplating\Templating" not found"
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

When trying to display the lexeme, it gives an error like:

[becd8666a3aa1e63c1efdfdd] 2024-03-15 15:41:59: Fatal exception of type "Error"

After adding $wgShowExceptionDetails = true; in LocalSettings.php:

[1456d04f1f12a14bc825f32b] /wiki/Lexeme:L1 Error: Class "WMDE\VueJsTemplating\Templating" not found

What should have happened instead?:

Following the steps in the installation instructions should result in a working installation

Software version (skip for WMF-hosted wikis like Wikipedia):

MediaWiki 1.41 and the REL_1.41 branches of Wikibase and WikibaseLexeme

Other information (browser name/version, screenshots, etc.):

The last time I tried to install WikibaseLexeme with REL1_39 I had the same problem (I don't remember what I eventually did to get it to work, only that it was by far the most difficult out of all the extensions I installed).

Event Timeline

Aklapper renamed this task from Error when displaying a lexeme after installing WikibaseLexeme to Error when displaying a lexeme after installing WikibaseLexeme: "Class "WMDE\VueJsTemplating\Templating" not found".Apr 10 2024, 8:39 AM

This was resolved in another discussion – extensions/WikibaseLexeme/composer.json needs to be included in composer.local.json and then composer dependencies need to be re-installed. We should update the Wikibase README.md – currently it recommends putting specifically extensions/Wikibase/composer.json in that file, but since this MediaWiki core change, we should actually recommend extensions/*/composer.json, which covers Wikibase, WikibaseLexeme, and any other extensions.