Topic on Project:Support desk

Class 'Wikimedia\CSS\Parser\Parser' not found

6
Summary by AhmadF.Cheema

For Extension:TemplateStyles, even when using the .tar package, need to run composer install --no-dev. See T215713.

Wertwijn (talkcontribs)

I get this error when trying to import the Infobox template: Class 'Wikimedia\CSS\Parser\Parser' not found

The MediaWiki instruction I found is this: "The error may come up on attempting to save a Wiki CSS page or on changing pages to "Sanitized CSS" content model. This may be caused due to some bugs which require composer install --no-dev to be run even when the extension is not installed from git".

I have NO idea how to run this "composer install --no-dev". I cannot find any instructions on mediawiki that I can understand.

I run my Mediawiki here: wiki.informatiebeveiliging.design The package is provided through my hosting provider. These are my installation details:

Product Versie
MediaWiki 1.34.1
PHP 7.3.15 (litespeed)
MariaDB 10.1.44-MariaDB-cll-lve
ICU 63.1
Lua 5.1.5

I use Dreamweaver to upload extensions. Other than that, I have no idea how to 'run commands'.

Please help me, I cannot import templates!

Malyacko (talkcontribs)
Wertwijn (talkcontribs)

Yes, these topics describe the problem.

I have no problem with installing the MediaWiki extensions. The Parser-extension is also there.

My problem is that I do not understand the instruction given in these topics Topic:Uvxu6mr38dlvbcdh, Topic:Ukv6pdo96a8qfur2, Topic:Uwmi9j36mttx5730. They also say to run something called "composer install --no-dev". I have no idea what this means or what to do. I can upload files to my Mediawiki installation, but I have no idea how to "run" a command on that installation.

AhmadF.Cheema (talkcontribs)

First check with your host if they provide SSH access or not?

Wertwijn (talkcontribs)

Thank you for the suggestion. It turns out that my provider does offer SSH access and also a great tutorial on how to use SSH and composer. So I got the composer command to run, and all is well now.

TheDJ (talkcontribs)

good to hear !