This is a bit odd. Using trunk from today, Feb 10th, 2009, even if this bug was showing up with previous trunks, also.
I post a message as plain registered user, that I get this message just after posting:
Error Error Ha hagut un error en una petició de la base de dades! Context: File tiki-view_forum_thread.php Url tiki-view_forum_thread.php?comments_parentId=3&forumId=1 Query: select tc1.`threadId`, tc1.`object`, tc1.`objectType`, tc1.`parentId`, tc1.`userName`, tc1.`commentDate`, tc1.`hits`, tc1.`type`, tc1.`points`, tc1.`votes`, tc1.`average`, tc1.`title`, tc1.`data`, tc1.`hash`, tc1.`user_ip`, tc1.`summary`, tc1.`smiley`, tc1.`message_id`, tc1.`in_reply_to`, tc1.`comment_rating` from `tiki_comments` as tc1 left outer join `tiki_comments` as tc2 on tc1.`in_reply_to` = tc2.`message_id` and tc1.`parentId` = ? and tc2.`parentId` = ? where tc1.`objectType` = ? and tc1.`object`=? and tc1.`parentId`=? and tc1.`average`>=? and `approved`=? and (tc1.`in_reply_to` = ? or (tc2.`in_reply_to` = "" or tc2.`in_reply_to` is null or tc2.message_id is null or tc2.parentid = 0)) order by tc1.`commentDate` asc,tc1.`threadId` Values: 0 3 1 3 2 forum 3 1 4 3 5 0 6 y 7 prova-0-21fe72956f@moviments.net Message: Column 'approved' in where clause is ambiguous Built query was probably: select tc1.`threadId`, tc1.`object`, tc1.`objectType`, tc1.`parentId`, tc1.`userName`, tc1.`commentDate`, tc1.`hits`, tc1.`type`, tc1.`points`, tc1.`votes`, tc1.`average`, tc1.`title`, tc1.`data`, tc1.`hash`, tc1.`user_ip`, tc1.`summary`, tc1.`smiley`, tc1.`message_id`, tc1.`in_reply_to`, tc1.`comment_rating` from `tiki_comments` as tc1 left outer join `tiki_comments` as tc2 on tc1.`in_reply_to` = tc2.`message_id` and tc1.`parentId` = '3' and tc2.`parentId` = '3' where tc1.`objectType` = 'forum' and tc1.`object`='1' and tc1.`parentId`='3' and tc1.`average`>='0' and `approved`='y' and (tc1.`in_reply_to` = 'prova-0-21fe72956f@moviments.net' or (tc2.`in_reply_to` = "" or tc2.`in_reply_to` is null or tc2.message_id is null or tc2.parentid = 0)) order by tc1.`commentDate` asc,tc1.`threadId`
As admin user, I can see that post, and any other.
Fixed by sylvie with:
--- lib/commentslib.php (revision 16643) +++ lib/commentslib.php (working copy) @@ -1615,13 +1615,13 @@ $bindvars = array_merge(array($object[0], $object[1], (float) $threshold), $bind_time); if ( $tiki_p_admin_comments != 'y' ) { - $queue_cond = 'and `approved`=?'; + $queue_cond = 'and tc1.`approved`=?'; $bindvars[] = $approved; } else { $queue_cond = ''; } - $query = "select count(*) from `tiki_comments` where + $query = "select count(*) from `tiki_comments` as tc1 where `objectType`=? and `object`=? and `average` < ? $time_cond $queue_cond"; $below = $this->getOne($query, $bindvars);
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |