Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Announce (New) - BETA
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2022-11-20 20:18:11
Files attached. Instructions are provided. Leave your feedback in the comments.
New V3 Announce.zip
Download
Last edited by STorrents2020 on 2022-11-20 20:28:04
2022-11-21 20:58:43
error in qbittorrent v4.4.5. Unexpected end of file in bencoded string
also sql error
Database Error in announce.php on line 20: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'HOUR < CURRENT_TIMESTAMP' at line 1. Query was: DELETE FROM peers WHERE last_action + 1 HOUR < CURRENT_TIMESTAMP.
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2022-11-21 21:37:03
2022-11-21 21:51:08
Erreur client Utorrent 3.5.5

announce.php:


announce-compat:


Thanks! ;)
Last edited by spiritblue on 2022-11-21 22:04:34
2022-11-22 00:30:44
Thank you! I was having problems on the mysqli version too, and it needed extra fixes to insert a peer (I lost confidence in this file at this point).

So it looks like compat edition is the way to go. That's what I figured. And its more integrated.

So that error in last photo "Failed getting user", if we see here


$res = SQL_Query_exec("SELECT id, passkey, username, class, enabled, uploaded, downloaded, slots, gender FROM users WHERE passkey = '$passkey'");
$user_row = mysqli_fetch_assoc($res) or fail('Failed getting user');


We see it is failing to get a value from $passkey. Can anyone else confirm this?

Try this. Replace:

$passkey = !empty($data['passkey']) ? trim($data['passkey']) : fail('Missing passkey');

With this

$passkey = !empty($_GET['passkey']) ? trim($_GET['passkey']) : fail('Missing passkey');


Let's ignore the mysqli edition for now.
Last edited by STorrents2020 on 2022-11-22 00:45:13
2022-11-22 02:04:17
thank you, I have the torrents in red in source and still the same error

announce.rar
Download

2022-11-22 04:24:38
Did you run the SQL? It might not be seeing 'slots' column.
2022-11-23 22:40:40
yes!

Last edited by spiritblue on 2022-11-23 22:44:13
2022-11-24 16:48:09
@spiritblue

Try this (replace $passkey)


$passkey = (string) '-----';


Tell me what it says. I'll edit post after and remove the hash.

Last edited by STorrents2020 on 2022-11-28 17:17:14
2022-11-26 14:25:25
sama give that..

2022-11-26 17:54:14
I will try to set up a torrent on the local xampp install and see what the issue is.

This is literally the first step in the code, so close lol
2022-11-27 17:22:36
don't give up I'm your guinea pig if needed  👍
2022-11-28 16:29:56
I wish I was there lmao - its a local xampp install so its pretty rough. I tried putting the V3 files on the server but page just freezes (check.php works) (TTv3 is not PHP 8.1 ready, mass depreciations in class.mysql.php) - which I expect - nothing is prepared (to avoid SQL injection). I guess a lot of that was ignored in the official PHP 7 branch.

I hope to see to it today spiritblue!
2022-11-28 23:19:12
V3 was only upgraded to 7.4 never tested or upgraded to 8.1.  I did that conversion a few years ago, and then that was all I did with some improvements, but not 8.1
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2022-11-29 02:14:33
I am in 7.4 php for the moment
Last edited by spiritblue on 2022-11-29 02:15:50
2022-12-04 18:31:08
Losing a bit of interest on this, namely the unusual occurrences.

I’ll try to get a test torrent going today on the local install and see to getting this working properly. If it’s stuck at passkey, then something is not reading the GET requests for some reason.

Hopefully after passkey, we can go right through successfully. I know the code quite well so I am fully experienced as far as that goes.

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728