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,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 242
  • Total: 243
  • @rjen

Wrong value type sent to the database. Integer expected.

Started by Norbesz, June 18, 2011, 10:40:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Norbesz

Hello everyone!
I created an article and I filled it in the introductory text part.  But if I click it it read this mistake in the future then I receive it

Wrong value type sent to the database. Integer expected. (page)

What may be the trouble?
Thanks...

SadisticSilence

I've noticed this happens only when you fill in the Query Title field.

If you leave that blank, your article will show up. At least until there's a fix

tamasir

Is this mistake at others?
Will he be repaired?
tamasir~

IchBin

It really helps if you guys post the info we put on the create topic page. I can't give any answers unless you provide that info. Thanks

tamasir

Quote from: IchBinâ,,¢ on June 18, 2011, 09:44:14 PM
It really helps if you guys post the info we put on the create topic page. I can't give any answers unless you provide that info. Thanks
SMF version: SMF2.0
TP version: TP 1.0RC2
Default Forum Language: Hungarian
Theme name and version: Fire Rock (convert:Tinyportal-eu)
Links url Smf-Tinyportal test Site
Thanks...IchBin

IchBin

I need the full error guys. The line number as well so I can see what you guys are seeing...

--edit--

Actually I found it.

Find this in TPortal.php
if(is_numeric($pag))
$request = $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE id = {int:page}',
array('page' => $pag)
);
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {int:page}',
array('page' => $pag)
);


Replace with:
if(is_numeric($pag))
$request = $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE id = {int:page}',
array('page' => $pag)
);
else
$request =  $smcFunc['db_query']('', '
SELECT id_theme FROM {db_prefix}tp_articles
WHERE shortname = {string:page}',
array('page' => $pag)
);

tamasir

IchBinâ,,¢
The mistake a message ceased. The article appeared.
Thanks, thanks..... O0
tamasir~ (TinyPortal.Eu Team)


This website is proudly hosted on Crocweb Cloud Website Hosting.