TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: m771401 on February 27, 2007, 03:22:58 PM

Title: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 27, 2007, 03:22:58 PM
My error log is very clean except for this error that I get a few times a week.

Any ideas on the cause?

QuoteGuest             February 23, 2007, 03:16:09 PM
"IP address"
http://.../forum/index.php?action=tpmod;dl=stats
2: usort() [<a href='function.usort'>function.usort</a>]: The argument should be an array
File: /home/.../public_html/.../forum/Sources/TPdlmanager.php
Line: 756


Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: G6Cad on February 27, 2007, 03:45:44 PM
Search is your friend

http://www.tinyportal.net/index.php?topic=12831.0
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 27, 2007, 03:52:37 PM
Quote from: G6â„¢ on February 27, 2007, 03:45:44 PM
Search is your friend

http://www.tinyportal.net/index.php?topic=12831.0

I'm not privy to that topic.. Permission denied.
Which explains why my initial search didn't return anything.

Can you please post the contents and or fix for this error?
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: G6Cad on February 27, 2007, 04:26:46 PM
HM, Alpha board, sorry about that, seems like that is quite an old error and should be fixed From TP V.095.

Please check so you have updated all the files correct for TP.
To be sure you can simply download the manual install package and extract and replace the old files with the new files.

The error is generated when visitors (or bots) are trying to view the download stats page when they are not permitted to do so. But as i said, it's an old error thats been fixed some time ago
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 27, 2007, 04:28:08 PM
OK, Will do thanks.
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 28, 2007, 03:47:38 AM
I just copied over all the files from the manual install over the ones in my test forum and the error still gets logged.
Just to make sure, I did delete the old ones first.
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: G6Cad on February 28, 2007, 07:20:44 AM
Also the code you meed to manually add to some of the SMF files ?
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 28, 2007, 02:45:15 PM
It's slightly frustrating knowing there is a thread that references this very error yet I'm not privy to it and it's suggested that I do a manual install.

That's fine, I'll run thru the manual mod instructions, I just have one question though.
The mod instructions that accompany the tp971 manual install say "TinyPortal v0.9.5 mod instructions for SMF 1.1 RC2 - 1.1 RC3". Is this file/intructions up to date?

This is also the only error I get in the log right now.
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: G6Cad on February 28, 2007, 03:00:05 PM
Dont be annoyed, the thread that i linked to have the exact same answers as i gave you in my reply.

QuoteThe error is generated when visitors (or bots) are trying to view the download stats page when they are not permitted to do so.

And to fix it should be to use updated files for TP.
And as i understand you have done this part with the replacing of files ?

And yes, the modinstructions are the very same as 1.1rc3.
If you feel uncomfort, you can use the premade files in the sticky post in this board. They have all codes in them and are up to date.
The thing with doing that step is that if you have other mods installed, they will be lost and they need to be reinstalled again.
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: m771401 on February 28, 2007, 03:50:11 PM
I just went thru and compared all my files to the mod instructions and everything was as it should be. So as far as my installation goes it's correct and complete.

I'm also on 1.1.1 and .97 if that makes a difference.
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: elliel on March 04, 2007, 03:48:15 PM
I am getting this error too now. It's only been since I upgraded to smf 1.1.2 and tinyportal 0.9.7.1 

I dont have any old files though
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: madron on November 07, 2007, 04:20:46 PM
I realize this is an old error, but my forum is up to date with both TP and SMF files.  I have just started to notice this exact error again..same line, same exact everything.

Anyone else getting this again?

SMF 1.1.4
TP 9.8 last upgrade

Thanks for your help
Title: Re: [Error] 2: usort() - TPdlmanager.php
Post by: IchBin on November 07, 2007, 04:42:46 PM
You should probably upload the files again for TP. This error was corrected in TP 0.9.8