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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:23:26 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 152
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 171
  • Total: 172
  • tino

Errors in log due to 'decimals' in pages

Started by @rjen, November 15, 2018, 06:17:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

In my forum I just found a series of errors, most likely due to a bot or something...

The errors are: Wrong value type sent to the database. Integer expected. (start)

The URL that was being accessed is this
https://test.fjr-club.nl/index.php?cat=78;p=102121121121212.1

It seems that de error is caused by the 'decimal point' in the (non existing) page number ... p=102121121121212.1

Is it possible to somehow prevent these links from throwing errors into the log?

It is actually caused by line 74 in TPblocklayout.template.php


69: // TinyPortal integrated bars
70: if($context['TPortal']['leftpanel']==1)
71: {
72: echo '
73: <div id="tpleftbarContainer" style="width:' , ($context['TPortal']['leftbar_width']) , 'px; ' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '" >
==>74: <div id="tpleftbarHeader" style="' , in_array('tpleftbarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">
75: ' , $context['TPortal']['useroundframepanels']==1 ?
76: '<span class="upperframe"><span></span></span>
77: <div class="roundframe" style="overflow: auto;">' : ''
78: , TPortal_panel('left') ,
79: $context['TPortal']['useroundframepanels']==1 ?
80: '</div>
81: <span class="lowerframe"><span></span></span>' : '' , '
82: <p class="clearthefloat"></p></div>
83: </div>';
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

Running Latest TP on SMF2.1 at: www.fjr-club.nl