Talk:WikiDB/Bugs

From TestWiki
< Talk:WikiDB
Revision as of 09:19, 4 November 2013 by 82.80.126.182 (Talk) (Error message while trying to create an SMW Property: new section)

Jump to: navigation, search

I noticed a bug:
If the criteria attribute results in zero rows being returned from PerformQuery, the call to NormaliseData is resulting in 1 row for each column in the table. After a bit of investigation, it turns out that Normaise is creating an empty array, but with the column names as tags inside the array, causing the loop to loop through the tags, rather than the rows (as would be expected). This is pretty easily fixed. I placed the following at the beginning of NormaliseData, and it fixed the issue for me:

if(!is_array($Data) || count($Data) == 0)
{
    return $FormattedData;
}

-Jacob 23:22, 8 April 2007 (BST)

Moved to WikiDB/Bugs. Check there for resolution. --HappyDog 00:59, 13 July 2007 (BST)

Error message while trying to create an SMW Property

Hi,

I'm getting the following error when trying to create an SMW (Semantic Mediawiki) property of any type (String/Text/Number):

Fatal error: Unexpected object type passed to WikiDB::pSetupPageObjects(): smwpropertypage in C:\wamp\www\wiki\extensions\WikiDB\includes\classWikiDB.php on line 101.

The property is eventually created, but I wonder whether it cause any damage...

WikiDB version: r816 SMW version: 1.7.0.2


--82.80.126.182 09:19, 4 November 2013 (UTC)