Thread: Error
View Single Post
  #2  
Old 13th July 2008, 18:17
Nafania Nafania is offline
TB Dev SZ Developer
 
Join Date: Feb 2008
Posts: 31
Default Re: Error
[hr:1i7h65u2]
http://tbdevsz.ru/viewtopic.php?f=16&t=97

Find folowing lines in announce.php (they meets 2 times):

Code:
if( !($result = $db->sql_query($sql)) ) {
   err('peer select error');
}
and replace with:

Code:
if( !($result = $db->sql_query($sql)) ) {
$error = $db->sql_error();
   err('peer select error ' . $error['message']);
}
Then run this queries in you database:

Code:
ALTER TABLE `peers` DROP INDEX `peer_id` ;
ALTER TABLE `peers` CHANGE `peer_id` `peer_id` BLOB NOT NULL ;
CREATE INDEX peer_id ON peers (`peer_id`(20));
Reply With Quote