TinyPortal

Development => Support => Topic started by: limteam on February 26, 2009, 03:10:27 AM

Title: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: limteam on February 26, 2009, 03:10:27 AM
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?
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: Renegd98 on February 26, 2009, 03:13:07 AM
Hi Limteam, welcome to TP...

Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)  This will help us to help you if we know the info we request.
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: limteam on February 26, 2009, 04:33:22 AM
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
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: limteam on March 03, 2009, 01:20:54 AM
?
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: G6Cad on March 03, 2009, 07:37:37 AM
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.
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: bloc on March 03, 2009, 07:55:25 AM
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.
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: limteam on March 03, 2009, 01:12:41 PM
"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)?
Title: Re: Errors in articles and downloadmanager TP 1.0 beta 3
Post by: bloc on March 03, 2009, 10:05:36 PM
Yes, I did. In fact, that whole image-size section isn't used :p..its now fixed for TP v1.0 beta4.