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

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

2025-04-07 09:59:19
Hi, do you know where the problem could be? sqlerr show errors line 155: Unknown column

https://ibb.co/LdQsZGRC

https://ibb.co/RGsxKq9k

error.png
error.png
error1.png
error1.png
Last edited by elipso on 2025-04-07 10:00:41
2025-04-07 13:00:24
Apparently your problem lies in
$parent_check = AND categories.parent

because it doesn't fit in this part
$res = SQL_Query_exec("SELECT COUNT(*)....

and you have the same formulation in line 178

try something like this

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.freeleech, torrents.seeders, torrents.leechers, categories.name AS cat_name, categories.parent_cat AS parent_category FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");


or whole query from functions.php

 SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id"); 



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
2025-04-07 14:00:18
It seems my problem is more with a busy server. Everything is working fine today, i haven't even started making any changes.  😐 Sometimes it happens that I have LA 10 ... Running on low cost machine  🤓
2025-04-07 23:54:20
are you using TTv3? I see a few mysql_ in the code you posted. If you are using php 7.4, those lines should be mysqli_
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)
2025-04-08 07:35:41
No, I'm a lazy pig. I use 2.08 with php 5.6  😀
2025-04-08 11:05:13
@elipso
Try using one of the original TT v 2.0.8 index files (rename it to index-old.php) and see if the error still remains there... point it to www.yourwebadres.com/index-old.php


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
2025-04-09 09:19:29
Yes using old version of torrents.php and is working
2025-04-10 21:24:39
You should update it. Php 5.6 is when dinosaurs were flying and no one is using that or working in it now only torrentpier belo is holding it.
2025-04-11 11:43:43
You know, if it works, don't touch it.  😐

At least running on Debian 12 with kernel 6.1.0  😀
Last edited by elipso on 2025-04-11 11:44:05
2025-04-11 13:35:10
@elipso sometimes you have to realize that certain things have taken their toll and that they are depraved (lots of loopholes in the system itself) then it's time to move step by step to something better, of course it takes time and is painful but... life isn't fair anyway


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
2025-04-11 13:53:09
@Botanicar As I said, I have no reason to upgrade PHP when it works. If there is anyone who wants to help with php upgrade, they can. Since no one has managed to take down the website yet, I don't see a reason. If someone succeeds, I will restore the backup and then upgrade php...
2025-04-12 17:23:11
Hi, I have/get no error messages on this file.... from my side it works correctly


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
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728