第 1 頁 (共 1 頁)
[問題]我的私人訊息再讀取時發生的錯誤
發表於 : 2004-09-29 23:00
由 mars0916
我的私人訊息再讀取時發生的錯誤
一般錯誤
Could not update private message new/read status (2) for user
DEBUG MODE
SQL Error : 1016 Can't open file: 'phpbb_privmsgs.MYI'. (errno: 145)
UPDATE phpbb_privmsgs SET privmsgs_type = 5 WHERE privmsgs_type = 1 AND privmsgs_to_userid = 6
Line : 1825
File : C:\wwwroot\phpBB2\privmsg.php
救救我吧
發表於 : 2004-09-30 09:13
由 Mac
代碼: 選擇全部
REPAIR TABLE 'phpbb_privmsgs;
~Mac
發表於 : 2004-10-01 02:04
由 mars0916
MAC大大,您的回覆我不懂耶..
是我哪個檔案有問題阿..我曾把我的備份覆蓋回去..但是還是依樣..
換了ip後就這樣嚕..
發表於 : 2004-10-01 02:56
由 吉川拓也
mars0916 寫:MAC大大,您的回覆我不懂耶..
是我哪個檔案有問題阿..我曾把我的備份覆蓋回去..但是還是依樣..
換了ip後就這樣嚕..
請進入
phpmyadmin 裡面點選資料表作
修復 動作 !!
發表於 : 2004-10-04 22:32
由 mars0916
我的資料庫有問題耶..感謝mac大大給我方向..
發表於 : 2007-03-20 17:34
由 過山雲
我也遇上了... ^^
發表於 : 2007-03-20 17:40
由 kkt
同樣進入資料庫, 找到 phpbb_privmsgs 這欄位, 下方選取
修復資料表
Mac 大的 SQL 語法執行一樣
代碼: 選擇全部
REPAIR TABLE 'phpbb_privmsgs;
發表於 : 2007-03-20 17:53
由 過山雲
修復資料表無用。
B(不特定人士)發私人訊息給A,A去開啟私人訊息,就出現如下的SQL錯誤。
而特別的是,只有特定幾位會員才發生。
大多數會員操作良好。
orz
代碼: 選擇全部
Could not update private message new/read status for user
DEBUG MODE
SQL Error : 1264 Out of range value adjusted for column 'user_unread_privmsg' at row 1
UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg + user_new_privmsg, user_new_privmsg = 0, user_last_privmsg = 1174384349 WHERE user_id = 363
Line : 1862
File : privmsg.php
發表於 : 2007-03-20 17:57
由 kkt
過山雲大, 你有否裝有 大量群組互發訊息 外掛呢?
發表於 : 2007-03-20 18:06
由 過山雲
以前有裝過。
更新PHPBB版本時,採用全新安裝,資料庫套用,此功能外掛沒重新掛上。
發表於 : 2007-03-20 18:11
由 ~倉木麻衣~
你的MySQL版本是5.x ?
發表於 : 2007-03-20 18:14
由 過山雲
MySQL - 5.0.22-community-nt
phpMyAdmin - 2.8.1
發表於 : 2007-03-20 18:16
由 ~倉木麻衣~
那我建議你先用「Out of range value adjusted for column」做關鍵字上google查詢
底下是google查到的一篇內文(簡體)
环境是MYSQL5
在执行 INSERT INTO `xinwen` VALUES ( '', '19', '4', '1', 'qwe', 'qwe', '1141226844', 'qwe', '0', '', '') 出现了这个错误,很是郁闷。。。
不过上网找了一下资料,发现是MYSQL对类型转换更加严格的问题了,因为第一个字段一般是AUTO_INCREMENT INT,然后这样的程序在执行时要把''转换成INT,所以出错了。。
發表於 : 2007-03-20 18:34
由 過山雲
謝謝。
使用Google搜尋一下。
希望可以儘快解決。
發表於 : 2007-03-20 19:00
由 心靈捕手
過山雲 寫:修復資料表無用。
B(不特定人士)發私人訊息給A,A去開啟私人訊息,就出現如下的SQL錯誤。
而特別的是,只有特定幾位會員才發生。
大多數會員操作良好。
orz
代碼: 選擇全部
Could not update private message new/read status for user
DEBUG MODE
SQL Error : 1264 Out of range value adjusted for column 'user_unread_privmsg' at row 1
UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg + user_new_privmsg, user_new_privmsg = 0, user_last_privmsg = 1174384349 WHERE user_id = 363
Line : 1862
File : privmsg.php
建議您:
進入 phpMyAdmin, 找到論壇資料庫, 指向資料表 phpbb_users,
搜尋, 檢視會員 A 的 'user_unread_privmsg' 值為何?