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

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

2021-03-30 21:55:02
Hello
I have for some time this [sql error] and I do not come to solve this problem which keeps coming back


Announce.php:
// NOW WE UPDATE THE TORRENT AS PER ABOVE
if (count($updateset))
   SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id=$torrentid") or err("Erreur du tracker: impossible de mettre a jour le torrent") or die(mysqli_error($GLOBALS["DBconnector"]));
   #SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id=$torrentid");+



Error:
 	Database Error in announce.php on line 369: BIGINT UNSIGNED value is out of range in '`NAME-BDD`.`torrents`.`leechers` - 1'. Query was: UPDATE torrents SET leechers = leechers - 1,seeders = seeders + 1,visible = 'yes',last_action = '2021-03-30 12:27:01' WHERE id=9231.


Thanks for your help  :D
Last edited by spiritblue on 2021-03-30 21:56:20
2021-03-30 23:13:25
dunno. see if this helps https://stackoverflow.com/questions/11698613/bigint-unsigned-value-is-out-of-range-my-sql
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)
2021-04-02 14:07:44
i will watch  :)
2021-04-03 20:11:43
also this https://torrenttrader.uk/topic?topicid=10042
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)
2021-04-30 18:50:48
Hello, I have come to find the line where the problem comes from, thank you for the Help.

Fonctions.php:
Quote:
$GLOBALS["DBconnector"] = mysqli_connect($mysql_host, $mysql_user, $mysql_pass) or die('DATABASE: mysqli_connect: ' . mysqli_error($GLOBALS["DBconnector"]));


2021-04-30 22:13:08
hi spirit, I hope you are having a great day :) , that line wouldnt cause your error, but it would display the error with mysqli_error. I believe your error is still somewhere else. Make sure all your database tables in announce are UNSIGNED attribute, and perhaps only use INT instead of BIGINT. Unless I am misunderstanding https://ibb.co/DgDNtLV unsigned and signed do not mix well from my understanding
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 2021-05-01 00:43:53
2021-05-01 13:44:17
thank you MicroMonkey for your information, i will invest my time to check what you recommend me, i have installed 2.07 and 2.08 mysql modes, so there may be tables and their attributes are not good.

I'll get back to you with more info if needed, another big thank you for your support.
2021-05-01 19:30:54
allo MicroMonkey

I checked all my tables and the "Attributes" column and for the TYPE column I found some BIGINT that I changed to INT in know tables:
- bonus
- queues
- icon
- message
- peers
- sessions
- snatched
- staffnavigate
- torrents
and users for download and upload, but there is only upload which does not want to change this.
https://zupimages.net/up/21/17/lf4x.png
https://zupimages.net/up/21/17/8ycn.png
#1212#.PNG
File missing

Last edited by spiritblue on 2021-05-01 19:32:52
2021-05-02 12:01:33
I was referring to the announce table, not the users table. That is a odd issue. it seems its a negative number. I think subtraction from a negative causes the problem. Maybe you have added something that is causing 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 2021-05-02 12:04:51
2021-05-02 12:26:46
other than adding the default 50GB number to the registration there was no change!

I had to change the 50 GB at the registration
So I changed the number bytes to gigabytes and it worked.

https://zupimages.net/up/21/17/9gfp.png

but ca modify the ratio of the same members, do you have a solution for which is not a problem?
Last edited by spiritblue on 2021-05-02 18:37:35
2021-05-16 14:29:32
problem solved here
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