|
#1
|
|||
|
|||
[ FIXED] U-232 Announce issue
Hello!
I' using the not-memcached version of U-232 and I am receiving the error Code:
Tracker: [Failure reason "torrent not registered with this tracker CODE 2"] I did no modifications to the original file. I c have compared the database info_hash with the hash from the client and they have different lenghts: database: 20 chars client: 32 chars Any Ideas? Should i chnge the varchar of the db column from 20 to 32? This is the announce part with the error: Code:
$res = mysql_query("SELECT torrents.id, torrents.banned, torrents.free, torrents.seeders + torrents.leechers AS numpeers, torrents.added AS ts, freeslots.free AS freeslot, freeslots.double AS doubleslot FROM torrents LEFT JOIN freeslots ON (torrents.id=freeslots.tid AND freeslots.uid=".sqlesc($user['id']).") WHERE info_hash = ".sqlesc($info_hash));//" . hash_where("info_hash", $info_hash)); $torrent = mysql_fetch_assoc($res); if (!$torrent) err("torrent not registered with this tracker CODE 2"); Last edited by KustomizeR; 26th July 2011 at 03:14. |
#2
|
||||
|
||||
No why would you have to adjust that, go to your server and configure it correctly and turn magic quotes gpc off so the info_hash doesnt have malformed/escaped characters simple as that, if you cant edit the php.ini do it via .htaccess in root.
|
#3
|
|||
|
|||
Fixed!
I've set the varchar of info_hash to 40 (that's the actual lenght of the info_hash) and it works like a charm! |
#4
|
||||
|
||||
You fixed nothing, you altered a setting that should have been left alone its 32 char for a reason that reason being thats the exact max length of the info_hash, all you done was allow the escaped extra characters to be inserted to db so they match and that is way wrong, i told you exactly what to do to stop info_hash errors and you disregard my instruction, do you think i just guess this up after being a coder all these years lol anyway do as you please, incredible so it is.
|
#5
|
|||
|
|||
external torrents
this source works for external torrents? i mean upload external torrents?
sory for bad english. |
#6
|
||||
|
||||
Its set up as a private tracker just like Tbdev seeing its built on TBdev 09 source, If you wish to use externals then you either have to modify this or look elsewhere, im not interested in the kind of stuff presently im only interested in memcache and making V3 super effiecient code.
|
The Following User Says Thank You to Bigjoos For This Useful Post: | ||
papad (30th August 2014)
|
Tags |
announce , issue |
Thread Tools | |
|
|