Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   Announce issue (http://www.bvlist.com/showthread.php?t=6801)

KustomizeR 25th July 2011 21:58

[ 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"]
when I am trying to seed.
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");

http://img21.imageshack.us/img21/849...1561210118.png http://img684.imageshack.us/img684/1...3000334129.png

Bigjoos 25th July 2011 23:43

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.

KustomizeR 26th July 2011 03:12

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!

Bigjoos 20th October 2011 17:44

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.

Tones 29th November 2011 03:37

external torrents
 
this source works for external torrents? i mean upload external torrents?

sory for bad english.

Bigjoos 18th December 2011 11:47

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.


All times are GMT +2. The time now is 04:07.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.