Topic on Extension talk:Widgets

HarryArends (talkcontribs)

I just installed Widgets at my wiki (1.30) and created a widget as described in the manual. so far so good.

But when i save the widget i get a error like this:

Fatal error: Call to undefined method Smarty::addPluginsDir() in /home/ on line 30

As I am not a programmer this error says nothing to me so whats going wrong??

Harry & Mareike

Deku-shrub (talkcontribs)

I'm having this problem too. @Jomegat reported the same issue at Topic:U4k1icff0yfhpayl but I wasn't able to reproduce his ' I installed using the git method' workaround so far.

Deku-shrub (talkcontribs)

@Jomegatconfirmed that he got things to work via the Git install method. I got this working too when remembered to not only git clone, but git submodule init and git submodule update as well.

I compared the files installed via Git release from seem are different both in the Widget code and even more so with the latest Smarty release. I'm not sure where to raise this issue, but adding a warning to the zip download pointing here is the best I think I can do for future generations

Gyohza (talkcontribs)

I was able to successfully solve this issue by not installing the version tagged as Smarty's latest release (v2.6.31 as of 2018-03-08). Instead, I installed one earlier version (Release 3.1.31, dated from 2016-12-14, when there weren't complaints of such error), though I haven't figured out why the heck v2 is tagged as being "later" than v3 yet (maybe they're parallel versions and support for v2 is still going on...).

Anyways, just in order to avoid any further issues like this, I will edit @Deku-shrub's warning on Extension:Widgets. I am not going to fully edit the tutorial because they might fix this in the future, so they might as well just remove the warning.

Sturmey99 (talkcontribs)

The install instructions do not mention that I need to install Smarty separately. When I look at the apache error log, I see calls to ~/extensions/Widgets/smarty/libs/Smarty.class.php

I do not have a folder in extensions/Widgets for 'smarty' I followed the instructions, cloned with git, I should have the latest and best code, but it appears to be missing a large chunk of what it needs.

Does someone have correct instructions for this extension?

Reply to "addPluginsDir()"