From: <jie...@bi...> - 2010-09-16 19:40:30
|
Hi, All I am using MediaWiki:1.15.1, SemanticMediaWiki: 1.5g-SVN, and SemanticInternalObject:0.4. I have two exact same installations. In one of installation(php 5.2.10, mysql 5.1.41), the Semantic internal object is not saved when the page is first created. Once the page is created, SIO can be deleted/inserted/modified. I traced the code to deleteSemanticData method in SMW_SQLStore2.php line 1912:$id = $this->getSMWPageID($subject->getDBkey(),$subject->getNamespace(),$subject->getInterwiki(),false); line 1913:if ($id == 0) return; // not (directly) used anywhere yet, maybe a redirect but we do not care here I add log to the code. The id is indeed is 0 and the execution returns in line 1913. So the smwDeleteSemanticData at the end of this method is never invoked and SIO update is not called. In another installation(php 5.1.6, mysql 5.0.7), everything works fine. Updating the whole software is not an optional right now for me. Can anyone give me some guidance here so that I can modify the current code I have to make it work. thanks -jason |