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

Recent

Welcome to TinyPortal. Please login or sign up.

July 20, 2024, 04:36:03 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,333
  • Total Topics: 21,233
  • Online today: 133
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 77
  • Total: 77

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