Whiteknight / mediawiki-embedvideo

Flash video embedding extension for MediaWiki
http://whiteknight.github.com
Other
23 stars 52 forks source link

Errors when embedding a video #14

Open iordonez opened 13 years ago

iordonez commented 13 years ago

The following PHP errors display when trying to use EmbedVideo running:

[Tue Oct 19 21:33:27 2010] [error] [client 66.249.71.68] PHP Warning: call_user_func_array() [function.call-user-func-array]: Unable to call EmbedVideo::parserFunction_ev() in /web/wiki/includes/parser/Parser.php on line 2920

PHP 5.1.6 mysql 5.0.77 Apache 2.2.3 MediaWiki 1.16.0

Whiteknight commented 13 years ago

I'm trying to get a dev environment set up to do some testing. I'll see if I can reproduce this error then.

iordonez commented 13 years ago

I was able to find this fix here that seemed to work for now:

http://www.mediawiki.org/wiki/Extension_talk:EmbedVideo#Problem_with_PHP_5.1.6

tedmasterweb commented 13 years ago

I too got it to work using the code found on the link in iordonez' comment.

Note that I also had to do the includes at the very end of the LocalSettings.php file, after all custom namespace declarations.

Whiteknight commented 13 years ago

I haven't been able to reproduce this error myself. If somebody can submit a patch or pull request that fixes it, I will be happy to test and apply it.

tedmasterweb commented 13 years ago

I'm kinda busy but I can confirm that with wikipedia 1.6, PHP 5.2.n or higher the link above fixes the problem... Sorry can't provide more details at this time.