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
Database Error. Please report this to an
Controls ·  Search New posts · Mark unread

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

2019-10-22 19:58:55
Hello, I added the module allocine function and it works correctly but there is a problem when uploading a torrent I have this error message, here is the error code in staff cp in sql error below, thank you for your help (y)



[TABLE]
[TR]
[TD]Database Error[/TD]
[TD][/TD]
[/TR]
[/TABLE]

[TABLE]
[TR]
[TD][/TD]
[TD]Database Error. Please report this to an administrator.[/TD]
[/TR]
[/TABLE]


Database Error in torrents-upload.php on line 213: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'last_action) VALUES ('Piranhas.2019.FRENCH.BDRip.XviD-EXTREME.avi.torrent', '1',' at line 1. Query was: INSERT INTO torrents ( allocine, filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon last_action) VALUES ('Piranhas.2019.FRENCH.BDRip.XviD-EXTREME.avi.torrent', '1', 'Piranhas.2019.FRENCH.BDRip.XviD-EXTREME.avi', 'http://www.allocine.fr/film/fichefilm_gen_cfilm=270824.html', '', '', '8', '2019-10-22 19:45:57', 'cba426f54392d0b529c028e3fd2aa09b77b2dcb2', '728158990', '1', 'Piranhas.2019.FRENCH.BDRip.XviD-EXTREME.avi.torrent', 'https://www.tigers-dl.net/announce.php', 'no', 'no', '2','no', '2019-10-22 19:45:57', '', '').
Unknown User
2019-10-24 00:20:31
You're missing a comma between anon and last_action should be

anon, last_action
2019-10-27 07:52:56
Hello and thank you for the follow-up for this error and it's always the same with the same error and we have this error with several functions to add, I explain...

when you add the function of the checkbox for vip member or the checkbox for free leech or when you add the allocine link you have this error message and you don't know how to add anything as a new function in the torrents-upload.php file because when you click on send torrent there is this error message and when you put the blank file back it works well.

can you look and see where the problem comes from because we can't add as a new function in torrents-upload.php without having this error message???

thank you in advance for the follow-up of the problem  :rolleyes:


I attach the file with the function vip and allocine which causes problems with the error message
torrents-upload.rar
Download
Unknown User
2019-10-27 10:44:03
He told you what's the problem. You are missing comma between annon and last_action.
2019-10-27 11:22:10
Hello and sorry but the comma has been added and it's the same error

    $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, vip, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, allocine, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$vip."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."', ".sqlesc($_POST['allocine']).")");
Unknown User
2019-10-27 12:00:09
Switch places of allocine, last_action to last_action, allocine
2019-10-27 12:53:52
Thank you I made the changes and it's always the same and it's always impossible to transmit a torrent


 $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action, allocine, vip) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$vip."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."', ".sqlesc($_POST['allocine']).")");
Unknown User
2019-10-27 13:28:53
Give the full sqlerr
2019-10-27 13:28:55
should be. The queries have to be in order
       $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr,  vip, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action, allocine) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$vip."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."', ".sqlesc($_POST['allocine']).")"); 

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)
2019-10-27 13:49:40
A big thank you MicroMonkey, everything is working fine now.  (y)(y)(y)??
Unknown User
2020-03-17 17:11:53
Hello Guys, in my case if the VIP isn't selected i receive the error.
My query is in order... Any tips about this?
2020-03-18 00:40:06
you will have to post the error then maybe someone can read it and give a clue
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)
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