[問題] 刪除最後一篇回覆文章所出現的錯誤

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
頭像
ansonku
版務實習幹部
版務實習幹部
文章: 61
註冊時間: 2003-06-06 11:22

[問題] 刪除最後一篇回覆文章所出現的錯誤

文章 ansonku »

●架設主機作業系統:Windows 2000 Pro
●快速架站程式:Appserv
●您的上網方式:學術網\r
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.0.4
●錯誤代碼:

代碼: 選擇全部

一般錯誤 
  
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE topic_id = 71' at line 3

UPDATE phpbb_topics SET topic_replies = topic_replies - 1, topic_last_post_id = WHERE topic_id = 71

Line : 477
File : e:\appserv\www\phpbb\includes\functions_post.php 
 


●錯誤狀態:我自己發了一些文章並連續回覆很多次\r
之後我刪除最後一次回覆的文章則會出現以上的錯誤

個人覺得可能是因為裝了虛擬貨幣所產生的
不知道有沒有人遇過的

另外我把funtions_post.php第477的上下幾行秀出來

代碼: 選擇全部

	if ( $topic_update_sql != '' )
	{
		$sql = "UPDATE " . TOPICS_TABLE . " SET 
			$topic_update_sql 
			WHERE topic_id = $topic_id";
		if ( !($result = $db->sql_query($sql)) )
		{
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
		}
	}

	if ( $mode != 'poll_delete' )
	{
		// Virtual_Money_MOD added $reward_sql
      $sql = "UPDATE " . USERS_TABLE . " 
         SET user_posts = user_posts $sign , user_money = user_money $money 
         WHERE user_id = $user_id"; 
		if ( !($result = $db->sql_query($sql, END_TRANSACTION)) )
		{
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
		}
	}
請有經驗或是有遇過此問題的大大幫忙一下唷!!謝啦 :-D
cony
星球公民
星球公民
文章: 58
註冊時間: 2003-03-06 14:40
來自: 千微資訊
聯繫:

文章 cony »

你有試過用phpmyadamin 的 修復錯誤功能嗎
千微資訊有限公司■ http://dollarhosts.com.tw ■業務電話:02-2508-4851
虛擬主機一年 NT$1020■免費安裝phpBB、OSC、XOOPS■免費個人網址 YourName.com
圖檔 統編 70591921
主題已鎖定

回到「phpBB 2 安裝與使用」