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: 174
  • Total: 174

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

Started by moto~man, January 02, 2012, 08:37:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lesmond

Iceman I have removed your other topic, glad this one worked for you :)

clothahump

Getting this error now and the fix is no good as the lines have already been changed in latest TP version.

IchBin

Sounds like if you are getting all these same errors in the last couple of topics that I've seen from you, that you should upload all the files again for TP and replace the current ones. These fixes are already in the code.

iceman11a

Well I thought about updating to 1.105. How ever I need to update every thing too. So last time I tried to do an update like that I had to do a new install. Just didn't work.

Zero_Killz

Quote from: F0L on January 04, 2012, 01:24:41 PM
Quote from: IchBinâ,,¢ on January 03, 2012, 05:21:26 AM
Hmm... I wonder if this has something to do with the year change.... I don't know what, but that's the only thing I can think of right now since the DL manager was working before. Any of you able to do the var_dump()?

Temporary fix for this could be to find this:

$week = date("W",$now);
$year = date("Y",$now);


Replace with this:

$week = (int) date("W",$now);
$year = (int) date("Y",$now);


Thankyou, this fixed the issue 100%.

There are about 4 or 5 instances, you need to change.
Once done Downloads were all working, no more week error, :).

What file do I edit with the above code?

IchBin

Quote from: Zero_Killz on January 13, 2012, 06:49:48 PM
What file do I edit with the above code?

The file posted about in the error. (in bold below).

Quote from: moto~man on January 02, 2012, 08:37:45 PM
QuoteApply Filter: Only show the error messages of this URL
http://www.othg-gamers.com/forum/index.php?action=tpmod;dl
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (week)
Function: TPortalDLManager
Apply Filter: Only show the errors from this file
File: /home2/othggame/public_html/othggamers/forum/Sources/TPdlmanager.php
Line: 610


This website is proudly hosted on Crocweb Cloud Website Hosting.