Difference between revisions of "Talk:WikiDB/Bugs"

From TestWiki
Jump to: navigation, search
(Moved to main bugs page)
m (Replace moved content with just link to new location, to remove duplication.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I noticed a bug:<br>
+
== Error in Normalise ==
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:
+
  
<pre>
+
Moved to [[WikiDB/Bugs#Error in Normalise]].
if(!is_array($Data) || count($Data) == 0)
+
{
+
    return $FormattedData;
+
}
+
</pre>
+
  
-[[User:Jacob|Jacob]] 23:22, 8 April 2007 (BST)
+
== Error message while trying to create an SMW Property ==
  
: Moved to [[WikiDB/Bugs]]. Check there for resolution. --[[User:HappyDog|HappyDog]] 00:59, 13 July 2007 (BST)
+
Moved to [[WikiDB/Bugs#Error message while trying to create an SMW Property]].

Latest revision as of 23:29, 2 November 2014

Error in Normalise[edit]

Moved to WikiDB/Bugs#Error in Normalise.

Error message while trying to create an SMW Property[edit]

Moved to WikiDB/Bugs#Error message while trying to create an SMW Property.