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

> 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

This error can virtually not happen because each call in SMW is using `Exporter::getInstance->getDataItemExpElement` and there should be not one single caller that is executing `Exporter::getDataItemExpElement` directly therefore I cannot tell as to what happens on your installation. Furthermore, the upload is tested against SQLStore and SPARQLStore with a real upload process [0].

Having the complete stack trace would help in guessing where `Exporter::getDataItemExpElement` is called from.

[0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Integration/MediaWiki/Hooks/FileUploadIntegrationTest.php