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,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 245
  • Total: 245

Wrong value type sent to the database. Integer expected. (artid) Function: TPmod

Started by pheasant_plucker, January 15, 2012, 09:01:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pheasant_plucker

I'm getting this error after upgrading to TP1.0 RC3
Wrong value type sent to the database. Integer expected. (artid)
Function: TPmodules

File: Sources/TPmodules.php Line: 999

elseif(substr($what, 0, 16) == 'tp_article_intro')


                                        $val = substr($what, 16);
$smcFunc['db_query']('', '
                                                UPDATE {db_prefix}tp_articles
SET intro = {string:intro}
WHERE shortname = {string:artid}',
array('intro' => $value, 'artid' => $val)
);


Any help would be really appreciated.

Gerry

IchBin

Looks to me like your file didn't get updated. If you are running RC3 and getting that error I'd suggest you upload the TP files again. This error was already corrected in the RC3 release.

This website is proudly hosted on Crocweb Cloud Website Hosting.