From: brent.of.all.people <bre...@gm...> - 2007-11-14 20:11:03
|
I've found a work around. I went into SMW_Description.php and changed line 39 to: public function SMWPrintRequest($mode, $label, $title = NULL, $outputformat = '') { It used to be: public function SMWPrintRequest($mode, $label, Title $title = NULL, $outputformat = '') { In other words, the $title variable of the function no longer has an explicit object type defined for it. I have enough programming experience to realize that this is the kindy of kludgy work-around that can cause problems for me down the road (or not--that's the fun of programming). If anyone more familiar with the code can tell me what dangers I've just exposed my self to, I'd appreciate it. Otherwise, it's great to have a working Semantic MediaWiki! Brent brent.of.all.people wrote: > > Hi, > > I'm using SMW1.0-RC2, and I cannot run a semantic search or use inline > queries at all. All I get is the following error: > > "Fatal error: Argument 3 must not be null in > /path/to/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php > on line 39" > > I have NO problems browsing or doing a search by property. I also had this > problem with RC1, but upgrading to RC2 did not fix it. I've not had this > problem with wikis I serve locally on my Ubuntu box, but this wiki is on > my Siteground account. > > Other technical data: > * MediaWiki: 1.10.2 > * PHP: 5.0.5 (cgi) > * MySQL: 4.1.22-standard-log > > If anyone could help me I'd really appreciate it. > > Thanks, > Brent > -- View this message in context: http://www.nabble.com/Semantic-search-and-inline-queries-broken-via-SMW_Description.php-tf4793313.html#a13755359 Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |