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
Random forum post missing
Controls ·  Search New posts · Mark unread

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

Unknown User
2020-03-10 17:09:13
Hi guys,

I have an old TT tracker that's been running for years and sometime in the past I noticed that there a some random posts that are not displaying in threads. It's totally random, atleast it appears to be random. What could be causing this? I checked the database in the message "post" table and all the posts are in the database, but just aren't showing in the forum thread. Any ideas?
2020-03-11 01:52:17
never heard of that before. What version TT are you running? If its really old Then maybe there were errors in the old forums.php .  You are welcome to look at my forums.php file. The last edits were done on it 2 years ago.  This is a non MYSQLI version
forums.rar
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)
Unknown User
2020-03-11 03:44:38
It's still running v 2.06. So many mods that they never updated it to 2.08. We're way out of date.

*Bleach Forums Improved and Optimized for TBDEV.NET by Alex2005
2020-03-11 16:02:43
Can you share a copy of forums.php so we can see the difference
Is it missing from recent topics and view forum
Unknown User
2020-03-12 02:09:26
I've attached my forum file. I tried other forum.php from backups and same issue. I'm thinking it might be database issue, Could charset  issues be the issue maybe with this table and how the forum.php reads it? I'm not a coder and I'm just trying to maintain the tracker and fix this little issues it has. 99% of the code works fine, it's just a few things that have gotten screwed up.
forums.zip
Download
Unknown User
2020-03-12 02:54:01
Found the issue. PHP version. I rolled back to PHP 5.3.29 and the random post appear.

Really need to upgrade the tracker to a newer version. But know really where to start without breaking the tracker. Don't want to lose 10 years of torrents and forum/comments.
2020-03-12 03:48:16
use the php 7 cheat sheet post I made. Im not perfect, but I gave some info to get people some help on the way to changing code to php 7 :)
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/php-7-database-connector-functions.4931/[/url]
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)
2020-03-12 05:47:01
Sounds to me like its a issue with auto incremented unique ids. Make a full db backup, and then run this against forums_posts and try to reproduce the symptoms on PHP 5.3.X

Query:
SET @reset = 0; UPDATE messages SET id = @reset:= @reset + 1;


This resets all mismatched IDs to regular order. Never run this against torrents, as you will lose media (screenshots, .torrents, etc).
2020-03-12 05:47:40
Sounds to me like its a issue with auto incremented unique ids. Make a full db backup, and then run this against forums_posts and try to reproduce the symptoms on PHP 5.3.X

Query:
SET @reset = 0; UPDATE forum_posts SET id = @reset:= @reset + 1;


This resets all mismatched IDs to regular order. Never run this against torrents, as you will lose media (screenshots, .torrents, etc).
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: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728