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
Error sql
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2023-07-23 08:17:59
@spiritblue i have to admit that even this announce.php you attached works now, with no problems at all

You can see my client table settings here






www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-07-23 15:49:30
Hello Botanicar, thank you for reassuring, but since my return from the new server, it's shitty on the scripted, I even have errors on upload, impossible to upload, I'll put a backup and if it still doesn't work I start from scratch the bdd, for the moment, it would be the v3 misqli which is up to date that I should put
2023-07-23 18:34:44
I had similar problems with moving my tracker last year and finally discovered that it was the PHP version modules that caused huge problems.

Hope you solve your problems soon

We are always here to help each other

Salute


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-07-23 20:57:43
You are cool Botanicar, thank you for your support! 👍

It would be good if tt could add this to the installation info of the tt database  😎
2023-07-24 09:36:04
@Spiritblue try this announce,
announce.php
Download
2023-07-24 12:30:02
Thank you dj live but I had to start from scratch but leave the file here if needed, it will be there!

when I wanted to put my sql database last night it was corrupted, probably the sql database was defective, hence all the mess
2023-07-24 14:08:49
it is your announce just modified , at least tried to do that line what your sql error was
2023-07-24 21:03:39
Maybe this will work better? Just taking a guess
    $ret = SQL_Query_exec("INSERT INTO peers (connectable, torrent, peer_id, ip, passkey, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, client) VALUES ('$connectable', $torrentid, '" . sqlesc($peer_id) . "', '" . sqlesc($ip) . "', '" . sqlesc($passkey) . "', $port, $uploaded, $downloaded, $left, '".get_date_time()."', '".get_date_time()."', '$seeder', '$userid', '" . sqlesc($agent) . "')");


function sqlesc($x) {
   return mysqli_real_escape_string($GLOBALS["DBconnector"], $x);
}

just wrapping the query with the quotes at the time of sql excute. I havent checked to see if this would affect anything else tho that uses the sqlesc() function, just wondering. Also wondering why the data would be too long for the table, thats confusing. I guess you could try truncating it down to 25 chars before you insert it since it seems the client is what is causing your problem, I dunno, odd. Like something like
$maxlength = 25;
if (strlen($agent) > $maxlength) {
   $agent = substr($agent, 0, $maxlength);
}

all of this is just experimental. I havent tested any of this
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 2023-07-24 21:23:33
2023-07-25 15:41:38
Are you using my v4 or TTxx announce file?
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