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

You are in: Forum / Forum / v2.08 / v2.08 Support

2023-07-02 08:07:36
Hello
there is a bug on tt 2.08 and 3.0
I am attaching a prez which poses a problem can you test please.
in preview mode it's ok

The Transporter - L'intégrale 1 à 4 (2016) PAL VOSTFR 4DVDRip XviD AC3 AVI-Tetine.rar
Download
Last edited by SLy on 2023-07-02 09:06:20
2023-07-09 14:55:27
up
2023-07-13 12:55:06
Sly, where do you want to implement this code?

I suspect it's the torrent description, so we'll start there.

Check in your SQL database "torrents" - "descr" if you have limitations in the description itself.

For example:



PS
As I see You have to many characters in description


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-13 17:12:51
What you need to do is change torrents.descr from VARCHAR(255) to LONGTEXT.

VARCHAR has a char limit of 255. Your description (text file) is actually 13782 chars.

This will never work. You need to change the column type to LONGTEXT if you want long descriptions like these.

Use LONGTEXT instead of TEXT to futureproof your description content.
Last edited by STorrents2020 on 2023-07-13 17:21:12
2023-07-14 06:17:50
Good morning
Thank you both for responding.
But I changed to longtext and nothing changes .

2023-07-14 07:48:13
Hi Sly, I don't have that problem.
Everything is OK on my test tracker

https://prnt.sc/9IA_mrfaJ9NM

https://prnt.sc/JqSBhIJd5CyS

https://prnt.sc/avgn-441G4wf

https://prnt.sc/OSGPUG9sZwRe

etc ...
etc ...

check you SQL version (upgrade/downgrade if it needs)




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-14 07:57:05
Hi Botanicar,
I tested with v3

Mysql Version: 10.5.21-MariaDB
PHP-Version: 7.4.33

and v2.08

MySQL version: 5.5.62-0+deb8u1
PHP version: 5.6.40-0+deb8u12
Apache Version: Apache/2.4.10 (Debian)
2023-07-14 08:24:45
I would test first with a smaller text length and then increase it and see when the error comes.

We have almost identical versions of MySQL, PHP and other things so to me it's a bit "strange" that you have this deviant problem


Apache version: Apache/2.4.56
PHP version: 7.4.9
MySQL version: 10.4.30-MariaDB



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
Last edited by Botanicar on 2023-07-14 08:26:39
2023-07-14 09:06:26
Hi Botanicar, I just did as you said on both servers
it's the tag
and or
that causes the crash.
2023-07-14 09:23:28
I solved the problem in several center tags.
And without changing the sql "longtext"

Really weird!
2023-07-14 15:57:00
Hi @Sly,
There may be problems in bbcode.php and bbcode.js depending on which version of them you have.

In most cases it wouldn't be a problem, but you never know.

I'm glad you finally solved your problem


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-14 17:24:55
Sounds like a htmlentities issue. TTv3 never considered this, and it should of for security and preventing table corruption.

What you can do is get into torrents-upload.php and look for the INSERT statement, but focus on $body variable or whatever its called, and wrap it with htmlentities.

example:

$descr = htmlentities($_POST['descr'])

torrents-details:

html_entity_decode($row['descr'])

These do not account for sanitizing. Its just to deal with entities.

The reason is, internally in MySQL the engine performs read/write operations using backticks ` (actually called a grave accent).

So often what happens, is a foreign language will also contain the same ` in format. What this causes is a table crash.

Because now `a is now overriding the SELECT `blah` FROM table - and confusing the engine causing a failure.

Your MySQL log will probably tell you this right away. You should always review your database logs, dont rely on TTv3 - get into the real logs. Thats where the clarity will unfold toward resolution.
Last edited by STorrents2020 on 2023-07-14 17:26:12
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: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728