Error when deleting attachment in forum posts
Hi,
when deleting an attachment of a forum post, I always get an error page after confirming. Nevertheless the attachment is removed afterwards.
Ideas whats going wrong?
Best regards,
Sebastian
ps: We're using Tiki 1.8.5 on Win2K/Apache2/PHP5.0.3/MySQL4.1.10-nt
Here's the output:
Copy to clipboard
An error occured in a database query! Context: File /tiki/tiki-view_forum_thread.php Url /tiki/tiki-view_forum_thread.php?topics_offset=&topics_sort_mode=&topics_find=&topics_threshold=&comments_offset=&comments_sort_mode=&comments_threshold=&comments_find=&forumId=2&comments_maxComments=20&comments_parentId=11&remove_attachment=7 Query: select * from `tiki_comments` where `objectType` = ? and `object`=? and `parentId`=? and `average`>=? order by ,`threadId` Values: 0 forum 1 2 2 11 3 0 array(3) { [0]=> array(6) { ["file"]=> string(41) "C:\Inetpub\wwwroot\tiki\lib\tikidblib.php" ["line"]=> int(84) ["function"]=> string(9) "sql_error" ["class"]=> string(8) "Comments" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> &string(125) "select * from `tiki_comments` where `objectType` = ? and `object`=? and `parentId`=? and `average`>=? order by ,`threadId`" [1]=> &array(4) { [0]=> string(5) "forum" [1]=> string(1) "2" [2]=> int(11) [3]=> int(0) } [2]=> &bool(false) } } [1]=> array(6) { ["file"]=> string(43) "C:\Inetpub\wwwroot\tiki\lib\commentslib.php" ["line"]=> int(1224) ["function"]=> string(5) "query" ["class"]=> string(8) "Comments" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> &string(125) "select * from `tiki_comments` where `objectType` = ? and `object`=? and `parentId`=? and `average`>=? order by ,`threadId`" [1]=> &array(4) { [0]=> string(5) "forum" [1]=> string(1) "2" [2]=> int(11) [3]=> int(0) } [2]=> &string(2) "20" [3]=> &string(0) "" } } [2]=> array(6) { ["file"]=> string(50) "C:\Inetpub\wwwroot\tiki\tiki-view_forum_thread.php" ["line"]=> int(708) ["function"]=> string(12) "get_comments" ["class"]=> string(8) "Comments" ["type"]=> string(2) "->" ["args"]=> array(7) { [0]=> &string(7) "forum:2" [1]=> &string(2) "11" [2]=> &string(0) "" [3]=> &string(2) "20" [4]=> &string(0) "" [5]=> &string(0) "" [6]=> &string(0) "" } } }