TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 423
  • Total: 423

Errors in articles and downloadmanager TP 1.0 beta 3

Started by limteam, February 26, 2009, 03:10:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

limteam

Hi, I had mistakes when I added articles

Incorrect integer value: '' for column 'category' at row 1
Файл: T:\home\localhost\1\Sources\TPmodules.php
line: 615


line 614,615
db_query("INSERT INTO {$tp_prefix}articles (date,body,intro,useintro,category,frontpage,subject,authorID,author,frame,approved,off,options,parse,comments,comments_var,views,rating,voters,ID_THEME,shortname,fileimport)
VALUES('$artd','$artbb','$arti','$artu','$artc','$artf','$arts','$nameb','$name','$artframe','$artpp','0','$artoptions',0,0,'',0,'','',0,'','$artimp')", __FILE__, __LINE__);


and in the download manager when i added files  from FTP in to dl_manager database

open file TPdlmanager.php
$body .= '<hr><b>СкаÃ'‡Ð°Ã'‚Ã'Å':</b><br>'.$scripturl.'?action=tpmod;dl=item'.$newitem;

replace

$body .= '[hr /][b]СкаÃ'‡Ð°Ã'‚Ã'Å':[/b][br /]'.$scripturl.'?action=tpmod;dl=item'.$newitem;




P.S How can i fix error in articles?

Renegd98

Hi Limteam, welcome to TP...

Please read the Posting Guidelines.html  This will help us to help you if we know the info we request.

limteam

sorry. ok

Link to my site: it's my testing site in my computer. i was translated in to russian language TP 1.0 b3
SMF version: 1.1.8
TP version: 1.0. b3
Theme name and version: Default
Mods installed: None
Related Error messages:

1.
Incorrect integer value: '' for column 'category' at row 1
Файл: T:\home\localhost\1\Sources\TPmodules.php
line: 615


2.Invalid argument supplied for foreach()
Файл: T:\home\localhost\1\Sources\TPSubs.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 458


3.usort() [<a href='http://www.php.su/functions/?function.usort'>function.usort</a>]: The argument should be an array
Файл: T:\home\localhost\1\Sources\TPSubs.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 457


4.Undefined offset: 0
Файл: T:\home\localhost\1\Sources\TPSubs.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 451


5.Undefined index: tp_article_shortname
Файл: T:\home\localhost\1\Sources\TPmodules.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 596


6.Undefined index: tp-imagesizes
Файл: T:\home\localhost\1\Themes\default\languages\TPShout.russian.php (main sub template - eval?)
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 891


7.Undefined variable: nshouts
Файл: T:\home\localhost\1\tp-files\tp-modules\TPShout\Sources\TPShout.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 496


8.imagedestroy(): supplied argument is not a valid Image resource
Файл: T:\home\localhost\1\Sources\TPcommon.php


9.imageconvolution() expects parameter 1 to be resource, boolean given
Файл: T:\home\localhost\1\Sources\TPcommon.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 126


10.Undefined variable: img
Файл: T:\home\localhost\1\Sources\TPcommon.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 125


11.imagecreatetruecolor() [<a href='http://www.php.su/functions/?function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions
Файл: T:\home\localhost\1\Sources\TPcommon.php
СÃ'‚Ã'â,¬ÃÂ¾ÃÂºÃÂ°: 106


12.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, 1, SUBSTRING('for notepad', 1, 255), SUBSTRING('<hr><b>Download' at line 4
Файл: T:\home\localhost\1\Sources\Subs-Post.php


G6Cad

If you use English as default, does these errors show up then to ?

Also, what image handler do you have installed to your local server, i think TP uses a server image handler to render the images, sizes etc.

bloc

It would seem that your language files are incomplete, that the "-no name-" text isn't translated. Thats causing the errors if you left out the title in a article, normally it would be then filled with a generic text.

I see why the HTML codes would show up, when creating a new topic through DL Manager, mine has "basic HTML" turned on lol. :P I'll change the code.

limteam

#6
"Undefined variable" - it meens that i have a trouble with translation.
some variables are not in english translation.
Link: /index.php?action=tpadmin;sa=artsettings   after Display print icon in articles? i have

80x40
400x200

You have forgotten to write value
$txt['tp-imagesizes'] = 'Image sizes';

in  TPortalAdmin.english


2 G6
Sorry but i don't know what image resizer i have installed at my server.as for me G2 module.
server's name STPServer. Where can i aee that information (about my image handler)?

bloc

Yes, I did. In fact, that whole image-size section isn't used :p..its now fixed for TP v1.0 beta4.

This website is proudly hosted on Crocweb Cloud Website Hosting.