第 1 頁 (共 1 頁)
[問題] 請問我的PHPBB2 出現這些字,這是什麼?要怎樣做?
發表於 : 2005-04-11 17:40
由 andyho8
請問我的PHPBB2 出現這些字,這是什麼?要怎樣做?
THANKS\r
phpBB : Critical Error
Could not obtain ban information
DEBUG MODE
SQL Error : 1271 Illegal mix of collations for operation ' IN '
SELECT ban_ip, ban_userid, ban_email FROM phpbb_banlist WHERE ban_ip IN ('c0a800a8', 'c0a800ff', 'c0a8ffff', 'c0ffffff') OR ban_userid = -1
Line : 131
File : c:\appserv\www\phpbb2\includes\sessions.php
●架設主機作業系統:WindowsXP PRO 中文
●快速架站程式:Appserv 2.43
●免費空間連結:
●您的上網方式:
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.013
●錯誤代碼:
發表於 : 2005-04-12 00:07
由 johnkk
請你把 sessions.php 中的 131 行 前後10行 post 上來看看
發表於 : 2005-04-12 11:09
由 andyho8
第131行開始
OR ban_userid = $user_id";
if ( $user_id != ANONYMOUS )
{
$sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $userdata['user_email']) . "'
OR ban_email LIKE '" . substr(str_replace("\'", "''", $userdata['user_email']), strpos(str_replace("\'", "''", $userdata['user_email']), "@")) . "'";
發表於 : 2005-04-12 15:49
由 johnkk
把131行的上10行打來看看
發表於 : 2005-04-12 20:13
由 andyho8
由120開始
//
// Initial ban check against user id, IP and email address
//
preg_match('/(..)(..)(..)(..)/', $user_ip, $user_ip_parts);
$sql = "SELECT ban_ip, ban_userid, ban_email
FROM " . BANLIST_TABLE . "
WHERE ban_ip IN ('" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "', '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff', '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff', '" . $user_ip_parts[1] . "ffffff')
OR ban_userid = $user_id";
if ( $user_id != ANONYMOUS )
{
$sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $userdata['user_email']) . "'
OR ban_email LIKE '" . substr(str_replace("\'", "''", $userdata['user_email']), strpos(str_replace("\'", "''", $userdata['user_email']), "@")) . "'";
}
Re: [問題] 請問我的PHPBB2 出現這些字,這是什麼?要怎樣做?
發表於 : 2006-08-19 02:10
由 Alexis
andyho8 寫:請問我的PHPBB2 出現這些字,這是什麼?要怎樣做?
THANKS\r
phpBB : Critical Error
Could not obtain ban information
DEBUG MODE
SQL Error : 1271 Illegal mix of collations for operation ' IN '
SELECT ban_ip, ban_userid, ban_email FROM phpbb_banlist WHERE ban_ip IN ('c0a800a8', 'c0a800ff', 'c0a8ffff', 'c0ffffff') OR ban_userid = -1
Line : 131
File : c:\appserv\www\phpbb2\includes\sessions.php
●架設主機作業系統:WindowsXP PRO 中文
●快速架站程式:Appserv 2.43
●免費空間連結:
●您的上網方式:
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:phpBB 2.013
●錯誤代碼:
進入 mysql 修改 phpbb 資料庫 的編碼對應 為 utf-8 ,如果你裝的PHPBB版本為 utf-8