Open main menu

Extension talk:Widgets

About this board

Old messages are archived.

Twitter widget not working anymore since new Twitter method to share feed

Summary by DSquirrelGM

Widget code updated on MediaWikiWidgets.

Albert Ke (talkcontribs)

Hi all,

I just want to make people aware that the twitter feed widget is not working anymore since September 10th. I have marked them as such in the list (crossed text through). They don't work anymore as twitter changed there method of how you can tab into your twitter feed and removed the old option to link to your twitter feed

MGChecker (talkcontribs)
Kelson (talkcontribs)

Here is how mine works now, `id` is the Twitter user at:



DSquirrelGM (talkcontribs)
Summary by Kghbln

The account was just created.

Meefs (talkcontribs)
MarkAHershberger (talkcontribs)

Hopefully, pinging @Kghbln here will help you get the account approved.

Meefs (talkcontribs)

Just got an account creation message. Not sure if coincidence or divine intervention. Thanks either way! :)

Kghbln (talkcontribs)

@Meefs: Usually I do this within a day provided that the e-mail was confirmed. I just saw that you confirmed yours in the meantime so I created the account for you. Sorry for the delay but I must have overlooked the request status. Sadly there are currently 17 requests pending, mostly from Gmail users. :(

Cavila (talkcontribs)
Reply to "No internal comments?"

Widget:Iframe issue - nothing is displayed

GrayanOne (talkcontribs)

Hi, I'd appreciate a pointer before I go nuts.

Installed the widget fine. It works perfectly with the example url, ie:

But utterly and completely fails with the url I'd like to  use.  The complete embed code is:

<iframe height="600" width="700" scrolling="no" style="border: 0px; overflow: hidden;" src=""></iframe>

which I dutifully recomposed into:


If I remove the "v2" from the end of the url, I get a cute LittleSis logo in the bottom right of the iframe area - but that's it. No frame, no border, and most defo no map.

What am I doing / not doing?

Kghbln (talkcontribs)

I may very well be that does not allow its content being embedded elsewhere via iframe.

Reply to "Widget:Iframe issue - nothing is displayed"

YouTube widget stops working under https

Summary by Kghbln

Update the widget's code to the recent version

Bjohas (talkcontribs)


I've recently switched my wiki to https, see e.g. However, the YouTube widget no longer works. Definitely sure it's to do with https, because if I switch https off, it works again. Of course, it may well not be to do with the widget, but with my overall wiki configuration.

To configure the wiki, I switched the .htaccess file to require https, but didn't change LocalSettings.php. Maybe there's something I missed?

Kghbln (talkcontribs)

Did you update the widget's code page, too. I assume that you are still calling http. Basically do this for every widget you are using.

Bjohas (talkcontribs)

Thank you so much for pointing that out. I must have had some older Widget code, that explicitly used http. The current widget code doesn't do that! Many thanks!

Trying to get property of non-object

Wmat (talkcontribs)

I'm seeing this PHP Notices recently:

Undefined index: size in ../extensions/Widgets/compiled_templates/ Presentation.php on line 30

Trying to get property of non-object in ./extensions/Widgets/compiled_templates/ Presentation.php on line 30

How can I clean these up?

This post was hidden by (history)
Reply to "Trying to get property of non-object"
Kitsguru (talkcontribs)

I have recently install MediaWiki with the widgets extension (1.3.0). I can't get any widgets to work.

Product Version
MediaWiki 1.29.0
PHP 5.6.31 (litespeed)
MariaDB 10.0.32-MariaDB
ICU 57.1

There is nothing in the error logs or compiled_templates (777) folder.

I have looked through this discussion and google groups but found no solution. I am at a complete lose as to what is happening. Any help is appreciated.

Kitsguru (talkcontribs)


Zoglun (talkcontribs)

You should post how you solve it. So that others can benefit from your help.

Kristiandelay (talkcontribs)

I am hitting this exact issue what was the fix?

Kristiandelay (talkcontribs)
Zoglun (talkcontribs)

Thank you!

Reply to "widgets not working"
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.

Reply to "addPluginsDir()"

How to add data inbetween several quotes

Fokebox (talkcontribs)

Hello all So at my java code there is a line with information which has quotes and should look like this:

data: [
['Value_name', 12.81], ['Value_name2', 11.55], ['Value_name3', 13.50]

And at widget page I do it so:

    data: [

and I put the values at wiki pages like this:

|data = ['Value_name', 12.81], ['Value_name2', 11.55], ['Value_name3', 13.50]

And result in HTML look like this:

data: [
[\'Value_name\', 12.81], [\'Value_name2\', 11.55], [\'Value_name3\', 13.50]

How to escape the sign "\", because widget doesn't work in this case?

Cavila (talkcontribs)

I can confirm that dumb quotation marks are not handled correctly, or as you would like to, in Smarty. The output shows the escaped \' rather than '. I haven't tested this myself, but Smarty offers a replace function. This link looks relevant:

Another possible workaround is to use the widget inside a template and make sure that the template replaces each instance with its html equivalent &#39;.

Cavila (talkcontribs)

Belated update (better late than never): the answer is that you should use 'single quotes' not 'quotes'. I made the same mistake about a year ago, based on some old documentation, but then visited the Smarty website and found that the syntax was simply incorrect.

Fokebox (talkcontribs)

I did‘t get what you mean, could you five an example with provided above widget?

Cavila (talkcontribs)

Don't use {$data|escape:'quotes'} but {$data|escape:'single quotes'}. That's all.

Fokebox (talkcontribs)

Thank you, I try

Reply to "How to add data inbetween several quotes"

Utime failed: Permission denied in smarty_internal_template.php on line 182

Summary by Kghbln
Zoglun (talkcontribs)

PHP Warning:  touch(): Utime failed: Permission denied in /wiki/extensions/Widgets/smarty/libs/sysplugins/smarty_internal_template.php on line 182

How to fix this?

Kghbln (talkcontribs)

Yeah, I have this all the time, too. I added the respective task to the summary section.

Reply to "Utime failed: Permission denied in smarty_internal_template.php on line 182"
Return to "Widgets" page.