Re: cant make the widgets work

26 views
Skip to first unread message
Message has been deleted

Tom

unread,
Nov 6, 2008, 9:29:39 PM11/6/08
to MediaWiki Widgets


On Nov 5, 10:12 am, Herman Elgueta <hermanelgu...@gmail.com> wrote:
> hi, i installed the widgets extension (it appears in my
> special:version page)
> and i installed some widgets, (by coping the source)
> but when put the {{#widget}}parserfunctionfor "calling" a widget
> i just got the samefunctionas text, nothing happens, just the same
> text appears


Hi, I'm having the same problem here

http://wiki.stoa.usp.br/Acesso

Strangely Widger appears on Parser Hooks, but 'widget' doens't appear
on 'Parser function hooks'

http://wiki.stoa.usp.br/Especial:Version

differently from here

http://www.mediawikiwidgets.org/Special:Version

$IP/extensions/Widgets/compiled_templates/ directory is writable by
the server.

Any tips on what's happening and how to solve?

Thanks,

Tom

Sergey Chernyshev

unread,
Nov 9, 2008, 12:00:00 PM11/9/08
to mediawik...@googlegroups.com
It looks like you are running dramatically outdated versions of MediaWiki as parser functions don't even register with it - you can see it here:
I would strongly recommend upgrading MediaWiki for reasons different from non-working widgets, I believe these versions are not safe to run and there might be quite a few security whole in them.

           Sergey
--
Sergey Chernyshev
http://www.sergeychernyshev.com/

Tom

unread,
Nov 9, 2008, 12:06:21 PM11/9/08
to MediaWiki Widgets
Hi, Sergey!

On 9 nov, 15:00, "Sergey Chernyshev" <sergey.chernys...@gmail.com>
wrote:
> It looks like you are running dramatically outdated versions of MediaWiki as
> parser functions don't even register with it - you can see it here:

[...]

> I would strongly recommend upgrading MediaWiki for reasons different from
> non-working widgets, I believe these versions are not safe to run and there
> might be quite a few security whole in them.

I guessed just this! I was already trying to upgrade the MediaWiki
version *right now*. I´ll tell here if it worked after upgrade.

Thanks!

Tom

Tom

unread,
Nov 9, 2008, 2:48:00 PM11/9/08
to MediaWiki Widgets


On 9 nov, 15:06, Tom <everton...@gmail.com> wrote:

> I guessed just this! I was already trying to upgrade the MediaWiki
> version *right now*. I´ll tell here if it worked after upgrade.

I just upgraded, but 'widget' still doesn't appear on 'Parser function
hooks'

http://wiki.stoa.usp.br/Especial:Vers%C3%A3o

I'm trying to solver this soon, because I want to add google form to
make a petition. If someone has some tip, I'll be thankful.

See you,

Tom

Tom

unread,
Nov 10, 2008, 1:56:23 PM11/10/08
to MediaWiki Widgets
I'm guessing problem is arrising because of the conflict between
extensions versions.

At first, I noticed my ParserFunction was too out of date. I just
tried trunk and 1.13.x version I downloaded from here

http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ParserFunctions

but widget function still doesn't appear here:

http://wiki.stoa.usp.br/special:version

I was wondering if my MW version wasn't too up to date now, since I
upgraded for version 1.13, but I found a version using Widget
extension *and* MW version 1.13

http://cddu.cqu.edu.au/index.php/Special:Version

and widget function parser hook is appearing.

Versions I'm using:

MW: 1.13.2
Widget extension: 0.8 - last tar ball
ParserFunction extension: 1.13.x - last tar ball

Wich version are you all using?

Also, I noticed that when I use

{{#widget:Google Form
|key=po-s58YMwf85Q3UxRzdGOBw
|width=600
|height=750
}}

without the '#', the iframe is inserted, but otherwise, not. Look at
here, as an example

http://wiki.stoa.usp.br/Acesso

I hope I've detailed enough about my system for some light.

Thanks,

Tom


Alexandre

unread,
Nov 17, 2008, 10:51:56 AM11/17/08
to MediaWiki Widgets
Hi !

I have installed mediawiki 1.13.2 and 0.8.1 widgets.

First of all I needed to patch extensions/Widgets/Widgets.php,
I added :
if (!is_array($wgNamespacesWithSubpages))
{ $wgNamespacesWithSubpages=array(); }
before
$wgNamespacesWithSubpages = $wgNamespacesWithSubpages + array
(NS_WIDGET_TALK => true);

But it still not work. Now that I have created a template called
http://nw.elphel.com/index.php/Template:Widget:Google_Maps and

Inserting the following in the http://nw.elphel.com/index.php/Main_Page
still show the <script ... > in the page.

{{widget:Google Maps
|key=ABQIAAAAhLrKDpOSAeJIJE_4oBKAVRRDYzWBWO0LPshoNNfC-0a0f9-
muxT3xhs2B1Yl1VlDJlg47rxgkOOc9w
|width=600
|height=400
|lat=55.754796
|lng=37.621479
|zoom=12
|static=yes
|centermarker=yes
}}

Does somebody have an Idea? Could you confirm that the widget code
should be copied in the template and not a standard article ?

Best regards,
Alexandre

On Nov 10, 7:56 pm, Tom <everton...@gmail.com> wrote:
> I'm guessing problem is arrising because of the conflict between
> extensions versions.
>
> At first, I noticed my ParserFunction was too out of date. I just
> tried trunk and 1.13.x version I downloaded from here
>
> http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ParserFunc...

Sergey Chernyshev

unread,
Nov 17, 2008, 10:55:12 AM11/17/08
to mediawik...@googlegroups.com
No, the code should be copied into the standard article in Widget namespace!

Why did you get an idea of putting it into the template? I'm just wondering if I wrote some misleading wording! ;)

           Sergey

Sergey Chernyshev

unread,
Nov 17, 2008, 10:58:43 AM11/17/08
to mediawik...@googlegroups.com
Hmm. It's weird. I wonder if it has anything to do with the different language...

Can you give me exact configuration strings you added to LocalSettings.php?

          Sergey

Alexandre

unread,
Nov 17, 2008, 11:52:16 AM11/17/08
to MediaWiki Widgets
Hi,

Because without # it create a template.

Ok, so what does not work ? I have an article called
http://nw.elphel.com/index.php?title=Widget:Google_Maps

My LocalSettings.php contain:

require_once("/var/www/vhosts/nw.elphel.com/extensions/Widgets/
Widgets.php");

Alexandre

On Nov 17, 4:58 pm, "Sergey Chernyshev" <sergey.chernys...@gmail.com>
wrote:
> Hmm. It's weird. I wonder if it has anything to do with the different
> language...
>
> Can you give me exact configuration strings you added to LocalSettings.php?
>
>           Sergey
>
>
>
> On Mon, Nov 10, 2008 at 1:56 PM, Tom <everton...@gmail.com> wrote:
>
> > I'm guessing problem is arrising because of the conflict between
> > extensions versions.
>
> > At first, I noticed my ParserFunction was too out of date. I just
> > tried trunk and 1.13.x version I downloaded from here
>
> >http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ParserFunc...

Sergey Chernyshev

unread,
Nov 17, 2008, 11:23:36 PM11/17/08
to mediawik...@googlegroups.com
Strange. Can you enable full output for the Special:Version page? It looks like "widget" parser function (or maybe extenson too) is not registering with MediaWiki.

             Sergey

Alexandre

unread,
Nov 18, 2008, 5:41:57 AM11/18/08
to MediaWiki Widgets
Ok, I made a stupid error.. I did put require_once("/var/www/vhosts/
nw.elphel.com/extensions/Widgets/Widgets.php"); in the beginning of
the file. Just moved to the end and everything work.

Thanks. It work now.


On Nov 17, 5:52 pm, Alexandre <alexandre.polto...@gmail.com> wrote:
> Hi,
>
> Because without # it create a template.
>
> Ok, so what does not work ? I have  an article calledhttp://nw.elphel.com/index.php?title=Widget:Google_Maps

Sergey Chernyshev

unread,
Nov 18, 2008, 1:39:09 PM11/18/08
to mediawik...@googlegroups.com
No problem! Enjoy it!

Herman Elgueta

unread,
Nov 19, 2008, 7:18:40 AM11/19/08
to MediaWiki Widgets
Once I upgraded my MediaWiki version, everything worked fine.
Now the widgets are working perfectly. Its an awesome extension.
Thank you very much,

Herman Elgueta

On Nov 9, 5:00 pm, "Sergey Chernyshev" <sergey.chernys...@gmail.com>
wrote:
> It looks like you are running dramatically outdated versions of MediaWiki as
> parser functions don't even register with it - you can see it here:
>
>    -http://wiki.stoa.usp.br/Especial:Version
>    -http://www.good.group.shef.ac.uk/wiki/index.php/Special:Version

Sergey Chernyshev

unread,
Nov 21, 2008, 5:35:11 PM11/21/08
to mediawik...@googlegroups.com
Great! Please add your site here: http://www.mediawiki.org/wiki/Extension:Widgets#Sites_using_this_extension

              Sergey
Reply all
Reply to author
Forward
0 new messages