Thread:Semantic-mediawiki.org:Community portal/Problems uploading and deleting files

Hello,

i have enable file upload with $wgEnableUploads=true; in the LocalSettingsp.php, but i am having some problems.

Each time i try to download a file, i will get a screen which says:

Fatal error: Call to a member function mapDataItemToElement on a non-object in /home/u480878357/public_html/mediawiki/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php on line 594

That line stands for this peace of code:

static public function getDataItemExpElement( SMWDataItem $dataItem ) { return self::$dataItemToElementEncoder->mapDataItemToElement( $dataItem ); }

Anyway, even if i get that error, file gets uploaded to the repository.

Afterwards, when i go to repository and i try to delete that file i get:

Fatal error: Call to a member function mapDataItemToElement on a non-object in /home/u480878357/public_html/mediawiki/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php on line 594

Exactly the same error, but this time the file will not be deleted.

What is causing this and how could i solve it?

Atm i am installing the semantic media wiki on a free host (hostinger), which uses linux's Centos 5.5 distribution i believe, do not know if that has an influence.