Everything I've read says I have to create a page in the widget namespace, but NOTHING says how I'm supposed to do this. I'm new to using MediaWiki, so I don't know how this is supposed to work, there doesn't seem to be any information about the basics.
Jump to navigation Jump to search
Since you're installing from git, did you run
Reply to "How do I create a page in the "widget" namespace?"
Reply to "addPluginsDir()"
Reply to "No internal comments?"
Reply to "Widget:Iframe issue - nothing is displayed"
Reply to "Trying to get property of non-object"
About this board
Old messages are archived.
How do I create a page in the "widget" namespace?
Let us say your wiki is called WikiWidgets.org. Then you would go to the url http://WikiWidgets.org/Widget:WIDGET_YOU_WANT_TO_CREATE on your wiki to create the page. The part of the url that says "Widget:" is the part that tells MediaWiki to use the widget namespace.
I made this more obvious form the docu. Hope this helps.
Kghbln, thanks that helps.
Do you know if I still have to manually install 'smarty' if I used git to install? It doesn't look like it's there, but the git install instructions don't mention manually installing smarty.
No if you follow the instructions: Extension:Widgets#Installing using Git
well I followed those instructions to the letter, and it doesn't include the smarty folder but it does include calls to it. After installing smarty manually to the Widgets folder, the errors in /var/log/apache2/error.log changed, so it's obvious that the smarty folder is needed.
I don't think this extension is ready for production.
Since you're installing from git, did you run
composer update --no-dev inside the widgets folder?
well, I tried it again, and got a different result. looks like it did managed to update something, but I'm still not able to get the Iframe widget to function. At least it's not crashing when I call the widget now.
further testing shows it working with a youtube widget, but since it's the Iframe I need, not sure what I need to do yet.
ok, so I fought with it some more, and it seems to be working.
I can't recommend this extension. The installation and config is not well documented and it is far more difficult than the other extensions that only require the folder to be added and a line inserted into LocalSettings.php
Realistically I understand why so many organizations I've worked with are dropping mediawiki for other products. while extensions are great, the lack of a click and go installation is beyond what most people are willing to do to install.
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/harry-arends.nl/public_html/mat54/extensions/Widgets/WidgetRenderer.php on line 30
As I am not a programmer this error says nothing to me so whats going wrong??
Harry & Mareike
@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 gerrit.wikimedia.org 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
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.
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?
Widget Catalog dead?
Access was granted. The wiki is active.
It seems really weird that the Widget catalog requires users to be manually verified, but I put in a request a while back and haven't heard anything. In the worst case, is there a web archives backup or mirror of the widgets on the site?
@Kghbln Is the site still being moderated?
Your request has been approved.
@Kghbln: Am I allowed to moderate these requests as well? How are you notified about them?
Yes the site is still being moderated. However, I only confirm requests with a confirmed e-mail which in your case was done on February 11, 2019.
Apart from that I suggest to actually take the time and read why this wiki requesting verification. It's on main page, the font size is 150% and in red and orange. I am absolutely clueless as for what I can do that people read this.
> Am I allowed to moderate these requests as well?
Currently not. If you would like to ...
> How are you notified about them?
I only get notifications when the e-mail was confirmed.
> Currently not. If you would like to ...
I am able to, that's why I'm asking, if there are any rules when I could react to requests like this one.
Actually you are able to confirm accounts. I already promoted you to being a crat. :)
mediawikiwidgets.org is a dead link.
archive.org only gives the pagenotice of "Regrettably this website was switched to allow only logged-in users to see the widget examples as well as the respective code due to privacy concerns." so all code examples seem to be gone, despite the website being listed as under a Creative Commons Attribution-Share Alike 3.0 Unported License. It would be a lot better to host the widget examples here on
mediawiki.org or on another publicly-accessible copylefted site like
github.com so that it is easier for users to copy and modify widgets for their wikis. Nicole Sharp (talk) 22:29, 8 June 2019 (UTC)
Thanks for reporting the website being down. There is indeed an issue with the server. I am working on it. I am sorry for the inconvenience.
In the future, I'd appreciate I you could open a new thread instead of reopening an unrelated one. Thanks a bunch.
The site is back on-line again. The filesystem was read-only and created some intense pain to bring to bring it back. The site being done for a day or two does not mean that it is dead. Anyways I will add some monitoring that will help me detect issues early on.
Widget not working after upgrade from MW 1.19 to 1.31
After moving my MediaWiki to a new server and, in the process, upgrading from 1.19LTS to 1.31LTS, I find that all my widgets have stopped working. I'm using Widgets 1.3.0 (72d1e24). The compiled_templates directory exists, the full path to the directory is correct, the directory is writable by user, group, and other. I have also checked the selinux bool variables: httpd_unified is on, httpd_sys_script_anon_write is on, httpd_anon_write is on. Apache is able to write other files with no problem, only Widgets reports errors writing files. There are no PHP errors in the Apache error_log and no selinux errors logged. Everything else on my MediaWiki site including all other extensions seems fine. There's plenty of free disk space. I'm at a loss for what else to check. Any ideas? Is there some special step required when upgrading to get Widgets working again? Is there some way to get a more specific error from the Widgets extension (like WHY is it unable to write the files)?
The errors are in this format and appear only in the web page where the widget is used, not in the apache error log:
Error in widget xzy: unable to write file /var/www/mysite.com/html/extensions/Widgets/compiled_templates/wrt5c4c002b44f900_48401898
Update: found it! Not permissions but file context error. Once I did a restorecon -R Widgets, all my widgets started working again.
Twitter widget not working anymore since new Twitter method to share feed
Widget code updated on MediaWikiWidgets.
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
I reported this as T207716.
Here is how mine works now, `id` is the Twitter user at:
Widget code has been updated on MediaWikiWidgets.
The account was just created.
How long does it typically take for account approval for https://www.mediawikiwidgets.org/?
I'd like to deploy this extension on my wiki.
Hopefully, pinging @Kghbln here will help you get the account approved.
Just got an account creation message. Not sure if coincidence or divine intervention. Thanks either way! :)
@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. :(
No internal comments?
Looks like this is not possible using widgets.
Widget:Iframe issue - nothing is displayed
Hi, I'd appreciate a pointer before I go nuts.
Installed the widget fine. It works perfectly with the example url, ie: https://www.semantic-mediawiki.org/w/images/8/80/20171004_Beginners_tutorial_to_Semantic_MediaWiki.pdf
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="https://littlesis.org/maps/3039-revolving-doors-from-the-uk-government-to-the-energy-industry/embedded/v2"></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?
I may very well be that littlesis.org does not allow its content being embedded elsewhere via iframe.
YouTube widget stops working under https
Update the widget's code to the recent version
I've recently switched my wiki to https, see e.g. https://bjohas.de/wiki/Google_Docs_Helper_bookmarklet. 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?
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.
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
I'm seeing this PHP Notices recently:
Undefined index: size in ../extensions/Widgets/compiled_templates/ba811dbfd89414d874993a209b5e2eb71ad14d2d.wiki.Google Presentation.php on line 30
Trying to get property of non-object in ./extensions/Widgets/compiled_templates/ba811dbfd89414d874993a209b5e2eb71ad14d2d.wiki.Google Presentation.php on line 30
How can I clean these up?