* @version 0.20 * * Changelog * ========= * * 0.10 - Initial build with FlowPlayer 1.x * 0.20 - Release using FlowPlayer 2.0.1 */ // Extension credits that show up on Special:Version $wgExtensionCredits['parserhook'][] = array( 'name' => 'FlowPlayerExtension', 'author' => 'Avidan Ross', 'url' => 'http://www.mediawiki.org/wiki/Extension:FlowPlayerExtension', 'description' => 'Allows the display of flv movies within a wiki using the FlowPlayer movie player.' ); $wgExtensionFunctions[] = "FlowPlayerExtension"; function FlowPlayerExtension() { global $wgParser; $wgParser->disableCache(); $wgParser->setHook( "flowplayer", "renderFlowPlayer" ); } function renderFlowPlayer( $input, $args ) { //if width and height are not set, give defaults if(is_null($args["width"])) $args["width"] = 320; if(is_null($args["height"])) $args["height"] = 240; if($args["advanced"] != "") { $flowPlayerVariables =array( "videoFile","baseURL","usePlayOverlay", "splashImageFile","initialScale","videoHeight","useNativeFullScreen", "fullScreenScriptURL","bufferLength","startingBufferLength","useSmoothing", "videoLink","emailPostUrl","emailVideoLink","emailDefaultMessage","url","name","live", "start","end","protected","type","linkUrl","linkWindow","overlay","overlayId","duration","controlEnabled", "allowResize","showOnLoadBegin","maxPlayCount"); } else { $flowPlayerVariables =array( "videoFile","baseURL","usePlayOverlay", "splashImageFile","initialScale","videoHeight","useNativeFullScreen", "fullScreenScriptURL","bufferLength","startingBufferLength","useSmoothing", "videoLink","emailPostUrl","emailVideoLink","emailDefaultMessage"); } $flashvars = "{config: { "; //if no "videofile" is set, use the local wiki file if (is_null($args["videofile"])) $flashvars .= " videoFile:" . "'" . getViewPath($input) ."'". ","; foreach ($flowPlayerVariables as $configVariableName) { //for some reason, mediawiki passes all arguments in lower case if (isset($args[strtolower($configVariableName)])) { if($args[strtolower($configVariableName)] == "true" | $args[strtolower($configVariableName)] == "false") { $flashvars .= " $configVariableName:" . $args[strtolower($configVariableName)]. ","; } else { $flashvars .= " $configVariableName:" . "'" . $args[strtolower($configVariableName)] . "'" . ","; } } } //remove the last , set "autoPlay" and "autoBuffering" to false $flashvars = rtrim($flashvars,","); $flashvars .= ",autoPlay:false,autoBuffering:false}})"; $flowplayerpath = $wgScriptPath . "/extensions/flowplayer/FlowPlayer.swf"; $returnString = "\n"; $returnString .= "
\n"; $returnString .= "\n"; return $returnString; } function getViewPath($file) { $title = Title::makeTitleSafe("Image",$file); $img = new Image($title); $path = $img->getViewURL(false); return $path; }MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred
Query: DELETE FROM `objectcache` WHERE exptime < '20181121083534'
Function: MediaWikiBagOStuff::_doquery
Error: 1146 Table 'wikidb.objectcache' doesn't exist (localhost)
' in /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php:606
Stack trace:
#0 /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php(561): Database->reportQueryError('Table 'wikidb.o...', 1146, 'DELETE FROM `ob...', 'MediaWikiBagOSt...', false)
#1 /var/www/vhosts/coburgwiki.de/httpdocs/includes/BagOStuff.php(454): Database->query('DELETE FROM `ob...', 'MediaWikiBagOSt...')
#2 /var/www/vhosts/coburgwiki.de/httpdocs/includes/BagOStuff.php(324): MediaWikiBagOStuff->_doquery('DELETE FROM `ob...')
#3 /var/www/vhosts/coburgwiki.de/httpdocs/includes/BagOStuff.php(382): SqlBagOStuff->_query('DELETE FROM $0 ...')
#4 /var/www/vhosts/coburgwiki.de/httpdocs/includes/BagOStuff.php(370): SqlBagOStuff->expireall()
#5 /var/www/vhosts/coburgwiki.de/httpdocs/includes/BagOStuff.php(237): SqlBagOStuff->garbageCollect()
#6 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(246): SqlBagOStuff->get('wikidb:messages...')
#7 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(606): MessageCache->load('de')
#8 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(543): MessageCache->getMsgFromNamespace('Mainpage', 'de')
#9 [internal function]: MessageCache->get('mainpage', true, true)
#10 /var/www/vhosts/coburgwiki.de/httpdocs/includes/StubObject.php(58): call_user_func_array(Array, Array)
#11 /var/www/vhosts/coburgwiki.de/httpdocs/includes/StubObject.php(76): StubObject->_call('get', Array)
#12 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(467): StubObject->__call('get', Array)
#13 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(467): StubObject->get('mainpage', true, true)
#14 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(432): wfMsgGetKey('mainpage', true, true, true)
#15 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(380): wfMsgReal('mainpage', Array, true, true)
#16 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Title.php(293): wfMsgForContent('mainpage')
#17 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Wiki.php(105): Title::newMainPage()
#18 /var/www/vhosts/coburgwiki.de/httpdocs/index.php(60): MediaWiki->checkInitialQueries(NULL, 'view')
#19 {main}

Exception caught inside exception handler: exception 'DBQueryError' with message 'A database error has occurred
Query: SELECT page_title FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title not like '%%/%%') AND (page_len > 10000)
Function: MessageCache::loadFromDB
Error: 1146 Table 'wikidb.page' doesn't exist (localhost)
' in /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php:606
Stack trace:
#0 /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php(561): Database->reportQueryError('Table 'wikidb.p...', 1146, 'SELECT page_ti...', 'MessageCache::l...', false)
#1 /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php(969): Database->query('SELECT page_ti...', 'MessageCache::l...')
#2 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(329): Database->select('page', 'page_title', Array, 'MessageCache::l...')
#3 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(264): MessageCache->loadFromDB('de')
#4 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(606): MessageCache->load('de')
#5 /var/www/vhosts/coburgwiki.de/httpdocs/includes/MessageCache.php(543): MessageCache->getMsgFromNamespace('Databaseerror', 'de')
#6 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(467): MessageCache->get('databaseerror', true, false)
#7 /var/www/vhosts/coburgwiki.de/httpdocs/includes/GlobalFunctions.php(432): wfMsgGetKey('databaseerror', true, false, true)
#8 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(70): wfMsgReal('databaseerror', Array)
#9 /var/www/vhosts/coburgwiki.de/httpdocs/includes/db/Database.php(2565): MWException->msg('databaseerror', 'Database error')
#10 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(192): DBQueryError->getPageTitle()
#11 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(155): MWException->htmlHeader()
#12 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(174): MWException->reportHTML()
#13 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(260): MWException->report()
#14 /var/www/vhosts/coburgwiki.de/httpdocs/includes/Exception.php(303): wfReportException(Object(DBQueryError))
#15 [internal function]: wfExceptionHandler(Object(DBQueryError))
#16 {main}