Topic on Extension talk:Widgets

Error: Class 'Smarty' not found

4
94.223.127.19 (talkcontribs)

I got this error after updating my wiki recently. I tried to follow the steps under Installation from a .zip file, but I got a little confused by the wording.

So I installed the newest Widgest extension and then created a folder named 'smarty" (extensions/Widgets/smarty). Then I downloaded the newest Version of Smarty, unzipped it, and put the 'libs' folder in extensions/Widgets/smarty/libs.

But it didn't change anything, I still got the error message. What did I do wrong?

MGChecker (talkcontribs)

Please try installing the extension via Git, since the method via unzipping Smarty manually is outdated.

If you can not use git or composer directly on your server, you can run the respective command locally and afterwards upload the whole folder.

Gesslar (talkcontribs)

I am having the same error, but when I attempt to import from another wiki.


installed via git from github wikimedia/mediawiki-extensions-Widgets


I get the following:

[fae15bd5e378e271a99d65f5] /index.php?title=Special:Import&action=submit Error from line 24 of /frogdice/servers/com.thresholdrpg.wiki/extensions/mediawiki-extensions-Widgets/WidgetRenderer.php: Class 'Smarty' not found


@Gesslar

MGChecker (talkcontribs)

As stated in the documentation at Extension:Widgets#Download, you need to run Composer afterwards. This can also be done at your local machine before syncing with the server.

Reply to "Error: Class 'Smarty' not found"