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
Need quick help, please
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2022-07-26 17:50:54
I have some error message when I moved my script to another server:

Quote:
Database Error in torrents-upload.php on line 221: Data truncated for column 'vip' at row 1. Query was: INSERT INTO torrents (filename, owner, name, descr, vip, image1, image2, category, tube, added, info_hash, size, numfiles, save_as, announce, external, url, nfo, torrentlang, torrentgenres, anon, last_action) VALUES


How to solve it (V2)?
I gona be crazy soon


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
2022-07-26 19:30:57
Moi ca dit que dans le fichier torrents-upload.php a la ligne #221 il te manquerait la colonne sql vip dans user ou torrents,  me souviens plus du sql du mode VIP et  il fait lโ€™appel mais il a pas la colonne  sql vip dans ton phpMyAdmin
==============================================
I'm told that in the torrents-upload.php file on line #221 you're missing the sql vip column in user or torrents, don't remember the VIP mode sql and it makes the call but it doesn't have the sql column vip in your phpMyAdmin

2022-07-26 20:13:45
Hi @spiritblue
thanks for your suggestion but everything is the same as on my old server and all "vip" mods is correct.
If I have unchecked "radio button" that error comes up but if I check it I don't have that error


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
2022-07-26 21:14:53
change the varchar of that column. I dunno what you need, but it cant fit all the data in the column, so expand it, like maybe varchar 255 as an example, or that column is supposed to be enum '0','1' since you mentioned a radio button, but I cant know for sure.
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 2022-07-26 21:27:32
2022-07-27 03:36:08
MicroMonkey is right,
I already had problems with enum '0','1' and I had to change it to yes and no instead use a number but don't forget to change the line on the corresponding file
2022-07-27 07:06:21
Thanks guys,

`vip` enum('yes','no') NOT NULL DEFAULT 'no',


    // vip
$vip = $_POST["vip"];

$descr = $_POST["descr"];


// vip only
if (get_user_class($CURUSER) >= 3)
print ("<tr><td align='left' class='css'> VIP: </td><td align='left' class='css'><input type='checkbox' name='vip' " .
(($row["vip"] == "yes") ? " checked='checked' " : "" ) . " value='yes'> <font color='#00ff00'>".T_("VIP_TORR")."</font> </td></tr>");


sorry guys my bad it's not "radio button" it was "checkbox"
and when I "remove" vip from line 221 it works after that I make some changes in torrent-edit.php and make torrent as VIP then it works

strange thing is that the whole script worked on my old server and now that I've moved on a few things have stopped working




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
2022-07-27 13:54:07
Good !  ๐Ÿ‘

I changed server about 2 months ago and I had a bunch of errors, and I'm starting to quit lol
I understand that!  ๐Ÿ˜Š
Last edited by spiritblue on 2022-07-27 13:55:53
2022-07-27 14:14:18
Radios/checkboxes are annoying to deal with and validate without JS. A link with a parameter is often better, although not as visually pleasing.
2022-08-01 06:40:50
STorrents2020:
Radios/checkboxes are annoying to deal with and validate without JS. A link with a parameter is often better, although not as visually pleasing.  


Did solve my problem, unfortunately not at all anyone with other suggestions to help please

Regards guys


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
2022-08-01 17:12:23
on torrent-upload.php
add var_dump($vip); die();
below $vip = $_POST["vip"];

try with box ticked and not - see if we can see what's happening
2022-08-01 19:46:32
Thanks M-jay and other guys

this piece of shit make all my torrent and tracker back on track:
in my.cnf
sql_mode = ""


Regards to all of you guys


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