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
Common Pool with FreeLeech (Pot commun)
Controls ·  Search New posts · Mark unread

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

2023-03-11 01:30:39
Thanks for your help MicroMonkey but I made the modification and also the new sql and still this damn error message which is now

Database Error in commonpot.php on line 65: Column count doesn't match value count at row 1. Query was: INSERT INTO commonpot (userid, points, added) VALUES('', 1, 10, '2023-03-11 01:21:15').

maybe i should disable the strict mode on mysql but i don't know how to do it ?

if there is a command to disable it with putty in ssh it's easier for me but I don't have the command to do it on ssh with putty ??

2023-03-11 02:07:49
Ahh, I was working under the assumption you had that disabled already. If you are using the latest check file from github, it will display your SQL mode. I added that check to it to make it convenient to see your status. This may help. Step 2 is best.  https://www.linode.com/community/questions/17070/how-can-i-disable-mysql-strict-mode
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-03-11 05:25:21
2023-03-11 12:23:57
Thank you and normally it is deactivated but can you give me the link to the latest version of TT v3

I will reinstall everything again with the latest version
2023-03-11 13:23:51
can you tell me if this is the recently updated one?

https://github.com/MicrosoulV3/TorrentTrader-v3
2024-02-18 14:44:41
I just tested and I have the same problem as niki, has there been a solution so far?

For now all the columns are there on my table:
Database Error in commonpot.php on line 39: Incorrect integer value: '' for column `TEST`.`commonpot`.`id` at row 1. Query was: INSERT INTO commonpot (id, userid, points, added) VALUES('', 1, 800, '2024-02-18 14:58:02').


Last edited by spiritblue on 2024-02-18 15:05:17
2024-04-21 15:49:31
remove id if you have mysql strict mode on. I was going through some code for fun to fix any strict mode errors, and found this one. I think this is the only fix needed for this mod. id is auto_increment, so its not needed here and will cause an error
SQL_Query_exec("INSERT INTO commonpot (userid, points, added) VALUES($CURUSER[id], $_POST[seedbonus], '" . get_date_time() . "')");
Here is my file if it helps
commonpot.zip
Download

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 2024-04-21 16:00:42
2025-03-24 20:34:54
#1 MicroMonkey, thanks!  👍
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