News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

April 08, 2020, 03:28:25 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3777
  • Latest: Mike
Stats
  • Total Posts: 189583
  • Total Topics: 20808
  • Online Today: 65
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 46
Total: 47

Author Topic: Errors in log due to 'decimals' in pages  (Read 2903 times)

0 Members and 1 Guest are viewing this topic.

Online @rjen

  • Support Team
  • *
  • Posts: 2014
    • FJR-club Nederland
Errors in log due to 'decimals' in pages
« on: November 15, 2018, 11:17:52 AM »
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

Code: [Select]
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>';
« Last Edit: November 18, 2018, 11:08:18 PM by @rjen »
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info

Online @rjen

  • Support Team
  • *
  • Posts: 2014
    • FJR-club Nederland
Re: Errors in log due to 'decimals' in pages
« Reply #1 on: November 18, 2018, 11:09:04 PM »
Fixed in 1.6.1
Running TP1.6.4 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 RC2
Want to check what php version I am testing on? See: PHP Info