Can WIKIFLV used in a Template?

If you are having problems with my MediaWiki Extensions, post here.

Can WIKIFLV used in a Template?

Postby i12114 » November 6th, 2009, 10:10 am

I tried using the standard XML syntax and it works wonderfully as long as the file name is actually supplied, not "derived" from a template variable.

I switched to using the #tag:wikiflv type syntax, and get the same error.

Here's the error message:

LocalFile constructor given bogus title.
Backtrace:
#0 /Users/michaeldamico/MAMP/classicscifi/w/includes/filerepo/Image.php(12): LocalFile->__construct(NULL, Object(LocalRepo))
#1 /Users/michaeldamico/MAMP/classicscifi/w/extensions/wikiFlvPlayer/wikiFlvPlayer.php(242): Image->__construct(NULL)
#2 /Users/michaeldamico/MAMP/classicscifi/w/extensions/wikiFlvPlayer/wikiFlvPlayer.php(162): MediaWikiFlvPlayer->getWikiPath('{{{trailer}}}')
#3 /Users/michaeldamico/MAMP/classicscifi/w/extensions/wikiFlvPlayer/wikiFlvPlayer.php(76): MediaWikiFlvPlayer->render()
#4 [internal function]: fnRenderFlvPlayer(' {{{trailer}}}?', Array, Object(Parser))
#5 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Parser.php(3243): call_user_func_array('fnRenderFlvPlay...', Array)
#6 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/CoreParserFunctions.php(617): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
#7 [internal function]: CoreParserFunctions::tagObj(Object(Parser), Object(PPFrame_DOM), Array)
#8 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Parser.php(2813): call_user_func_array(Array, Array)
#9 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Preprocessor_DOM.php(959): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#10 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Parser.php(2632): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#11 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Parser.php(875): Parser->replaceVariables(''''Title:''' ''...')
#12 /Users/michaeldamico/MAMP/classicscifi/w/includes/parser/Parser.php(327): Parser->internalParse(''''Title:''' ''...')
#13 /Users/michaeldamico/MAMP/classicscifi/w/includes/Article.php(2887): Parser->parse(''''Title:''' ''...', Object(Title), Object(ParserOptions), true, true, NULL)
#14 /Users/michaeldamico/MAMP/classicscifi/w/includes/Article.php(1597): Article->prepareTextForEdit(''''Title:''' ''...')
#15 /Users/michaeldamico/MAMP/classicscifi/w/includes/Article.php(1472): Article->doEdit(''''Title:''' ''...', '', 98)
#16 /Users/michaeldamico/MAMP/classicscifi/w/includes/EditPage.php(1027): Article->updateArticle(''''Title:''' ''...', '', false, false, false, '')
#17 /Users/michaeldamico/MAMP/classicscifi/w/includes/EditPage.php(2483): EditPage->internalAttemptSave(false, false)
#18 /Users/michaeldamico/MAMP/classicscifi/w/includes/EditPage.php(449): EditPage->attemptSave()
#19 /Users/michaeldamico/MAMP/classicscifi/w/includes/EditPage.php(340): EditPage->edit()
#20 /Users/michaeldamico/MAMP/classicscifi/w/includes/Wiki.php(510): EditPage->submit()
#21 /Users/michaeldamico/MAMP/classicscifi/w/includes/Wiki.php(63): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#22 /Users/michaeldamico/MAMP/classicscifi/w/index.php(116): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#23 {main}
User avatar
i12114
Rank 0
Rank 0
 
Posts: 2
Joined: November 6th, 2009, 9:56 am

Re: Can WIKIFLV used in a Template?

Postby Paul » November 7th, 2009, 2:20 am

What is the #tag:wikiflv?
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Can WIKIFLV used in a Template?

Postby i12114 » November 10th, 2009, 11:12 pm

An alternate syntax I read about for extensions that have problems with expanding template text.

Here's what I read:

When parameters do not expand
MediaWiki version: 1.6 (for parameters defaults)
Parameters do not get expanded when they are inside nowiki tags or XML-style extension tags. Thus, the following will not work within a template, because the parameter is not expanded:
<myextension xparam={{{tparam}}}> ... </myextension>

It's from this page:

http://meta.wikimedia.org/wiki/Help:Template

Can you get it to work? Just put your wikiflv extension in a template and pass the name of the FLV file to it.

I'm new to Mediawiki, but a seasoned programmer, so I must be doing something wrong.
User avatar
i12114
Rank 0
Rank 0
 
Posts: 2
Joined: November 6th, 2009, 9:56 am


Return to MediaWiki Extensions Troubleshooting and Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron