Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » General Help for 2.X » Duplicate Torrent Error Message
Duplicate Torrent Error Message [message #4692] Sun, 08 August 2010 00:04 Go to next message
watermolecule is currently offline watermolecule  United States
Messages: 109
Registered: July 2010
Super-Seeder
Hey there,

I just noticed that the error message for duplicate torrents is broken and displays a crazy message. Essentially the error message already associated with that event in the /language/emglish.php file is not really being loaded.

Very strange stuff... Take a look at the photo to see what I mean.

thanks...
Re: Duplicate Torrent Error Message [message #4693 is a reply to message #4692] Sun, 08 August 2010 03:50 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
that is a error generated by Mysql not pmbt most of the time it is because of a duplicate info hash.

http://a.imageshack.us/img831/5562/mybikes.png
Re: Duplicate Torrent Error Message [message #4694 is a reply to message #4693] Sun, 08 August 2010 03:55 Go to previous messageGo to next message
watermolecule is currently offline watermolecule  United States
Messages: 109
Registered: July 2010
Super-Seeder
Okay. So how can I get it to stop returning that unsightful error?
Re: Duplicate Torrent Error Message [message #4695 is a reply to message #4694] Sun, 08 August 2010 04:55 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
in take torrent find
#Checking against the SAME Torrent
if (isset($jump_check) AND $jump_check == 1) {
$sql = "SELECT id FROM ".$db_prefix."_torrents WHERE info_hash = '".addslashes($infohash)."';";
$res = $db->sql_query($sql) or btsqlerror($sql);
if ($db->sql_numrows($res) > 0) {
        list ($id) = $db->sql_fetchrow($res);
        bterror(str_replace("#id#",$id,_bttorrentpresent),_btuploaderror);
}
$db->sql_freeresult($res);
}

and change it to
#Checking against the SAME Torrent
$sql = "SELECT id FROM ".$db_prefix."_torrents WHERE info_hash = '".addslashes($infohash)."';";
$res = $db->sql_query($sql) or btsqlerror($sql);
if ($db->sql_numrows($res) > 0) {
        list ($id) = $db->sql_fetchrow($res);
        bterror(str_replace("#id#",$id,_bttorrentpresent),_btuploaderror);
}
$db->sql_freeresult($res);



http://a.imageshack.us/img831/5562/mybikes.png
Re: Duplicate Torrent Error Message [message #4696 is a reply to message #4695] Sun, 08 August 2010 05:33 Go to previous message
watermolecule is currently offline watermolecule  United States
Messages: 109
Registered: July 2010
Super-Seeder
That did it! As usual you never cease to amaze me Joe!
Previous Topic:installation error
Next Topic:Formatting the Help Popup window
Goto Forum:
  


Current Time: Wed Feb 08 11:33:54 GMT 2012

Total time taken to generate the page: 0.00726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software