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
User Posts

Go to Profile

MicroMonkey avais donné la réponse le 2023-04-21
[14:59]
Link:`https://torrenttrader.uk/post/10585
et j'ai testé et c'est bien çà !

l'erreur etait  $sort = (int)$_POST["sort"];   supprime-le (int) s'est lui qui donnée erreur
=====================

MicroMonkey gave the answer on 2023-04-21
[14:59]
Lien : https://torrenttrader.uk/post/10585
and i tested it and that's it !

the error was $sort = (int)$_POST["sort"]; delete it (int) it gave him an error


* (Merci à Gollum de son aide et à vous tous)

Hello  😊

I just changed servers and did a fresh install.

But I got an error when editing the poll and I made no changes.

SQL Error has Edit:
Database Error in admincp.php on line 1793: Data truncated for column 'sort' at row 1. Query was: INSERT INTO polls VALUES(0, '2023-07-29 12:54:10', 'Do You Like This Site', 'Excellent', 'Its ok', 'Its my first visit', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0).


Thank you for your support as always!  👍
Captcha TTv3 — 2023-07-26 16:28:25 in v3 Mods in Progress
HELLO MicroMonkey

I just tested and it is more visible and the site database is the latest version V3 MYSQLI and has no changes

@+ my friend!
Thank you djlive, I'll test it when the site is rebuilt  👍
Error sql — 2023-07-24 12:30:02 in v3 Support
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
Error sql — 2023-07-23 20:57:43 in v3 Support
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  😎
Error sql — 2023-07-23 15:49:30 in v3 Support
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
Error sql — 2023-07-23 04:39:08 in v3 Support
I handed over announcement of MicroMonkey With modification to STorrents2020
I deleted the customer table and put them back to the original table

torrent en partage, mais j'ai une erreur sql
Database Error in announce.php on line 391: Data too long for column 'client' at row 1. Query was: INSERT INTO peers (connectable, torrent, peer_id, ip, passkey, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, client) VALUES ('no', 18837, '-lt0D60-������k� \n�', '212.32.243.206', 'aa9e435f906c460eb6059cd50215ddc5', 20024, 8427244272, 8710703856, 0, '2023-07-23 04:34:01', '2023-07-23 04:34:01', 'yes', '2887', 'rtorrent/0.9.6/0.13.6').


It repeats, but not from the same torrent id

*thanks for your help everyone!
Error sql — 2023-07-22 22:21:50 in v3 Support
I had to come back with the file that gives this error on all torrents  😂

Database Error in announce.php on line 341: Unknown column 'agent' in 'field list'. Query was: INSERT INTO peers (connectable, torrent, peer_id, ip, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, agent, passkey) VALUES ('no', 18428, '-lt0D80-3B����n\"��', '5.9.77.169', 45001, 0, 0, 0, 1690064319, 1690064319, 'yes', 166, 'rtorrent/0.9.8/0.13.8','40147e4d6a706dceda92206685eda7b9').


Error sql — 2023-07-22 21:49:22 in v3 Support
it took a while but the torrents turned red and no longer in seed, so it's not good yet
Error sql — 2023-07-22 21:20:02 in v3 Support
houps ! It just gave an SQL error
Database Error in announce.php on line 341: BIGINT UNSIGNED value is out of range in '`no_name`.`users`.`uploaded` + 14254080'. Query was: UPDATE users SET uploaded = uploaded + 14254080 WHERE id=3351.
Error sql — 2023-07-22 21:17:05 in v3 Support
Yes!
Error sql — 2023-07-22 21:04:48 in v3 Support
yess! cool!!


...I still have the same error with your file
Database Error in announce.php on line 375: Data too long for column 'client' at row 1. Query was: UPDATE peers SET ip = 'x.xxx.xx.xxx', passkey = 'e678fa713ab983b9482125b66e812085', port = 4323, uploaded = 0, downloaded = 0, to_go = 0, last_action = '2023-07-22 21:02:10', client = 'rtorrent/0.9.8/0.13.8', seeder = 'yes' WHERE torrent = 18816 AND peer_id = '-lt0D80-)c2(6wQ3��'.


if I change SQL_Query_exec for mysqli_query I have no more error and it works #1

    mysqli_query("UPDATE peers SET ip = " . sqlesc($ip) . ", passkey = " . sqlesc($passkey) . ", port = $port, uploaded = $uploaded, downloaded = $downloaded, to_go = $left, last_action = '".get_date_time()."', client = " . sqlesc($agent) . ", seeder = '$seeder' WHERE $selfwhere");

   if (mysqli_affected_rows($GLOBALS["DBconnector"]) && $self["seeder"] != $seeder){
       if ($seeder == "yes"){
           $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
            $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
       } else {
           $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
           $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
       }
   }

} else {

   $ret = mysqli_query("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) . ")");

Error sql — 2023-07-22 13:11:45 in v3 Support
hello gang!

I made corrections to try to solve this damn problem with the announcement and after testing, I have no more error
I'm not perfect, so let me know if I forgot anything.
=================================

Allo gang !

J'ai fait des corrections pour tenter de résoudre ce maudit problème avec l'annonce et après testé, j'ai plus d'erreur
je ne suis pas parfait, donc faite le moi savoir si j'ai oublié de quoi.


Replace for:
////////////////// NOW WE DO THE TRACKER EVENT UPDATES ///////////////////

if ($event == "stopped") { // UPDATE "STOPPED" EVENT
       SQL_Query_exec("DELETE FROM peers WHERE $selfwhere");
       if (mysqli_affected_rows($GLOBALS["DBconnector"])){
           if ($self["seeder"] == "yes")
               $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
           else
                $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
       }
}

if ($event == "completed") { // UPDATE "COMPLETED" EVENT    
   $updateset[] = "times_completed = times_completed + 1";

if ( $MEMBERSONLY )
{
SQL_Query_exec("INSERT INTO completed (userid, torrentid, date) VALUES ($userid, $torrentid, '".get_date_time()."')");
//uncomment below if using snatched table
//SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `completed` = '1' WHERE `tid` = '$torrentid' AND `uid` = '$userid' AND `utime` = '" . gmtime() . "'");
}
}//END COMPLETED

if (isset($self)){// NO EVENT? THEN WE MUST BE A NEW PEER OR ARE NOW SEEDING A COMPLETED TORRENT
   
mysqli_query("UPDATE peers SET ip = " . sqlesc($ip) . ", passkey = " . sqlesc($passkey) . ", port = $port, uploaded = $uploaded, downloaded = $downloaded, to_go = $left, last_action = '".get_date_time()."', client = " . sqlesc($agent) . ", seeder = '$seeder' WHERE $selfwhere");

   if (mysqli_affected_rows($GLOBALS["DBconnector"]) && $self["seeder"] != $seeder){
       if ($seeder == "yes"){
           $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
            $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
       } else {
           $updateset[] = "seeders = (CASE WHEN (seeders < 1) THEN 0 ELSE (seeders - 1) END)";
           $updateset[] = "leechers = (CASE WHEN (leechers < 1) THEN 0 ELSE (leechers - 1) END)";
       }
   }

} else {

$ret = mysqli_query("INSERT INTO peers (connectable, torrent, peer_id, ip, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, agent, passkey) VALUES ('$connectable', $torrentid, " . sqlesc($peer_id) . ", " . sqlesc($ip) . ", $port, $uploaded, $downloaded, $left, ".time().", ".time().", '$seeder', {$user['id']}, " . sqlesc($agent) . "," . sqlesc($passkey) . ")");
   
   if ($ret){
       if ($seeder == "yes")
           $updateset[] = "seeders = seeders + 1";
       else
           $updateset[] = "leechers = leechers + 1";
   }
}

//////////////////    END TRACKER EVENT UPDATES ///////////////////


i have more sql errors and all my torrents are shared and working
================================
j'ai plus d'erreurs sql et tous mes torrents sont en partage et sont en fonction
solution pour cette erreur? >>
Database Error in themes/SB_SHAMAN/footer.php on line 14: Unknown column 'COUNT' in 'field list'. Query was: SELECT COUNT hnr FROM snatched WHERE uid = '1' AND hnr = 'yes'



ERROR SQL:
$jquery = SQL_Query_exec("SELECT COUNT `hnr` FROM `snatched` WHERE `uid` = '".$CURUSER["id"]."' AND `hnr` = 'yes'");

thanks!
Ok, thank's!   👍
Is there a problem with this word and I should know a security trick that I don't know?  😕
I just finished her style and everything is fine, a lot of file backups but I finally managed to get what I wanted.
Thanks again to all of you !
@Botanicar  👍
@STorrents2020  👍
@MicroMonkey 👍

no i have the last one you uploaded
Botanicar :
works well on test site
, but I don't adapt them to the theme

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