http://www.icyphoenix.com/viewtopic.php?f=29&t=673&p=5511#p5511
-----------------------------------
liviobait
Mon 04 Dec, 2006 21:44

Is A Bug?
-----------------------------------
If i attach two post i have this debug error:

Could not delete topic reads

DEBUG MODE

SQL Error : 1196 Warning: Some non-transactional changed tables couldn't
be rolled back

DELETE FROM phpbb_upi2db_unread_posts WHERE topic_id IN ()

Line : 846
File : modcp.php

You have ideas?

This is the section of line 846 in modcp.php

//<!-- BEGIN Unread Post Information to Database Mod -->
								if($userdata['upi2db_access'])
								{
									$sql = "DELETE FROM " . UPI2DB_UNREAD_POSTS_TABLE . "
										WHERE topic_id IN ($topic_id_sql)";

									if ( !$db->sql_query($sql) )
									{
										message_die(GENERAL_ERROR, 'Could not delete topic reads', '', __LINE__, __FILE__, $sql);
									}

									$sql = "DELETE FROM " . UPI2DB_LAST_POSTS_TABLE . "
										WHERE topic_id IN ($topic_id_sql)";

									if ( !$db->sql_query($sql) )
									{
										message_die(GENERAL_ERROR, 'Could not delete topic reads', '', __LINE__, __FILE__, $sql);
									}
								}
//<!-- END Unread Post Information to Database Mod -->

P.S. phpbbxs 0.58a


