Vitor A. Almeida wrote:
> *Hello everybody.
> I'm trying to import an ontology in owl dl format to my wiki, but after 
> I chose the statements to import I get a blank page with this message
> 
> Fatal error*: Class 'SMWURITypeHandler' not found in 
> */wiki_path/SemanticMediaWiki/includes/SMW_Datatype.php* on line *105
> 
> *wiki_path is used to short the file path.
> 
> Anybody seen this before? How do I fix it?
> Thnx in advice.

No, but I haven't tried ontology import.

Here's my guess at what might be happening.
Instead of loading the PHP code for every datatype on every request to 
MediaWiki, SMW does lazy-loading of the PHP file implementing each 
datatype as needed.  So SMW_Datatype.php tells itself (in 
announceTypeHandler() calls around line 286) that email,uri, url, and 
annouri datatypes are implemented by class SMWURITypeHandler in 
SMW_DT_URI.php , but doesn't actually include this file.

Somehow the lazy-loading is broken in your case.  Please update to 
latest SMW if possible, and file a bug including your version numbers 
from Special:Version.

A possible fix is to explicit put
        ## My temp Workaround for ontology import bug
        global $smwgIP;
        include_once($smwgIP . '/includes/SMW_DT_URI.php');

towards the top of SMW_Datatype.php, just after
        require_once('SMW_DT_Float.php');

to force the code to be loaded.

Good luck,
--
=S

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to