500 error from wrong php code

Hey there,

I installed something for mediawiki but because of the extension i get an error 500 and this is in my error report.

wiki/index.php|PHP Fatal error:  Call to a member function addMessages() on a non-object in /var/www/hidorma/wiki/extensions/owa/mw_plugin.php on line 577

So when i read that i think there is something wrong in the mw_plugin.php file on line 577. but i cannot see what is wrong:( Can somewone help me?
Here is the part of the php file.
[php]
function loadMessages() {
static $messagesLoaded = false;
global $wgMessageCache;

	if ( $messagesLoaded ) return;
	
	$messagesLoaded = true;
	
	// this should be the only msg defined by mediawiki
	$allMessages = array(
		 'en' => array( 
			 'owa' => 'Open Web Analytics'
			 )
		);


	// load msgs in to mediawiki cache
	foreach ( $allMessages as $lang => $langMessages ) {

line 577: $wgMessageCache->addMessages($langMessages, $lang);
}

	return true;
}    

}

?>
[/php]

The part where line 577 is standing is not part of the code. it just stands there so you guys know it is line 577.
thank you for reading

Sponsor our Newsletter | Privacy Policy | Terms of Service