https://bugzilla.wikimedia.org/show_bug.cgi?id=31182
Web browser: --- Bug #: 31182 Summary: [RDFIO] error when original URI is not given Product: MediaWiki extensions Version: any Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: Semantic MediaWiki AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: egon.willigha...@gmail.com CC: jeroen_ded...@yahoo.com, mar...@semantic-mediawiki.org Classification: Unclassified Samuel, while trying to debug the SPARQL issue, I noticed this error: [Tue Sep 27 10:55:20 2011] [error] [client 127.0.0.1] PHP Notice: Undefined offset: 0 in /usr/local/share/mediawiki/RDFIO/classes/RDFStore.php on line 56, referer: http://127.0.0.1/mediawiki/index.php/Special:SPARQLEndpoint which refers to this code: function getOrigURIForUri( $uri ) { $origuri = ''; $store = $this->m_arcstore; $origuriuri = $this->getOrigURIURI(); $q = "SELECT ?origuri WHERE { <$uri> <$origuriuri> ?origuri }"; $rs = $store->query( $q ); if ( !$store->getErrors() ) { $rows = $rs['result']['rows']; $row = $rows[0]; $origuri = $row['origuri']; } else { die( "Error in ARC Store: " . print_r( $store->getErrors(), true ) ); } return $origuri; } Line 56 is the "$row = $rows[0];" line. Not all resources have original URIs. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l