Extension talk:Widgets/archive

You can post your questions here and they'll be answered by those users who monitor this talk page. Alternatively, you can post your question to support group here: http://groups.google.com/group/mediawiki-widgets there is also archive you can search for the answers.

Blank Pages
I am getting blank pages... Sachein 11:35, 31 May 2009 (UTC)
 * Can you check the logs and see what's being reported there? BTW, it might be better to report this kind of problems to the Google group: http://groups.google.com/group/mediawiki-widgets - more people will be able to help you. --Sergey Chernyshev 15:46, 31 May 2009 (UTC)
 * Thank you very much, I have sorted the problem. I had to create a widget page for example Widget:YouTube and then I could put YouTube videos on any page. Sachein 16:19, 31 May 2009 (UTC)

Unable to read resource: "wiki:Feed"
I´m getting the following warning:

Warning: Smarty error: unable to read resource: "wiki:Feed" in /srv/www/htdocs/mediawiki/extensions/Widgets/smarty/Smarty.class.php on line 1095

while trying to view a page with the feed widget:

Can you help me, please?


 * Did you create a page called "Widget:Feed" on your site and copy contents of the Widget page? http://www.mediawikiwidgets.org/w/index.php?title=Widget:Feed&action=edit --Sergey Chernyshev 15:43, 4 December 2009 (UTC)

How Can I Prevent Widget Pages from Being Included in Random?
MediaWiki 1.16alpha

PHP 5.2.9 (cgi-fcgi)

MySQL 5.0.67-userstats-log

Widgets (Version 0.8.10)

URL: DishiWiki

Widget pages appear in Random pages, along with pages from Main namespace. Currently, the Widgets namespace ID is neither declared nor changed. To see if doing so would keep Widget pages from being included in Random, I added this to LocalSettings.php:

define('NS_WIDGET', 274);

It did not make a difference. Should I try a different namespace ID? I am a little thick about NS IDs, so what NS ID should I try? Any thoughts, anybody? Brian7632416 04:37, 17 December 2009 (UTC)


 * I'm not sure I understand the problem. Did you create Widget:Something pages before you included Widget.php into LocalSettings.php? when did the Widget:Something pages started to be treated as regular pages? can you provide more details? --Sergey Chernyshev 04:49, 17 December 2009 (UTC)


 * I had moved DishiWiki to a new hosting provider. The db was pseudo-corrupt (?), so I created a new db and Special:Exported/Imported all pages, including Widget:Pages, into a new db on the new hosting server instead of bringing the db itself over to the new host. So yes, there were Widget:Pages in the db before I got around to including Widget.php in LocalSettings.php. And the Widget:Pages indeed appeared on click-Random Page from the beginning. Are you thinking that that's what causes the exported/imported Widget:Pages to appear in Random? Are you saying that Widget:Pages created after adding Widgets.php to LocalSettings.php should not appear? I have not tested that theory. I imported a lot of Widget:Pages, so a lot of Widget:Pages appear. I could click-click-click Random Page and see if a brand-new (fake) Widget appears. If this is the case, then I guess I should delete the "pre-Widget.php" Widgets and recreate them with a new name? (Yuck.) Thanks for your insight and assistance. Brian7632416 07:14, 17 December 2009 (UTC)


 * Yes, basically when you imported pages that were called Widget:Something into wiki without having Widget extension included, wiki didn't know that custom namespace exists so they became "Widget:Something" pages in Main namespace instead of "Something" pages in Widget namespace with all the consequences that brings, including showing up in Special:Allpages for main namespace and Special:Random. I'd recommend to re-export/import pages this time with Widgets included. --Sergey Chernyshev 19:02, 17 December 2009 (UTC)


 * Aha, an excellent solution that I thank you for. I exported the offending pages. Then I imported them, thinking that they would nullify (?) their respective former versions, but they remained behind as pages in the main ns but with the offending Widget: prefix. Deleting them via wiki did not actually delete them, and they continued to appear in the main ns, but as "deleted" (and still appearing as random pages). So I deleted them from the db. Everything is now as it should be, thanks to your advice, and now I can sleep. Thank you and your partners for this and your other fine extensions. I look forward to switching to Semantic Wiki in the future. Thanks again. Brian7632416 07:25, 18 December 2009 (UTC)