On 08/01/2011 01:19 PM, Markus Krötzsch wrote:
> On 31/07/11 04:30, Samuel Lampa wrote:
>> Hi,
>>
>> Debugging the RDF Import in RDFIO, I got this:
>>
>> Fatal error: Call to a member function setId() on a non-object in
>> /home/samuel/www/smw-trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
>>
>> on line 1975
>>
>> (Full stack trace here: http://pastebin.com/Z5JktQDZ )
>>
>> Row 1975 in SMW_SQLStore2.php goes:
>>
>> $this->m_idCache->setId( $title, $namespace, $iw, $subobjectName, 0 );
>>
>> ... and debugging it, I see that indeed $this->m_idCache is unitialized,
>> and that the constructor for SMW_SQLStore2 is indeed never run! (My
>> breakpoint on line 113 doesn't get caught).
>>
>> Any ideas how this could happen? Am I missing some LocalSettings-setting
>> for SMW_SQLStore2?
>
> Could you say which storage backend you use (setting of
> $smwgDefaultStore)? Maybe some derived implementation does not call its
> parent constructor.

Ah, thanks! Yes, should have thought of that ... RDFIO sets SMWARC2Store 
as default store, and indeed, SMWARC2Store does not call it's parent 
construcor ... Problem solved :)

(The debugging goes on...)

// Samuel

-- 
Samuel Lampa
---------------------------------------
  Bioinformatician @ Uppsala University
    Blog: http://saml.rilspace.org
---------------------------------------

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to