TinyPortal

Development => Support => Topic started by: Hammer2K on November 18, 2006, 04:52:05 AM

Title: Need Help.
Post by: Hammer2K on November 18, 2006, 04:52:05 AM
I deleted all the category's in the download manager and now I get this error...

An Error Has Occurred!
2: Invalid argument supplied for foreach()
File: /home/content/H/a/m/Hammer2K8/html/cawdepot/Sources/TPdlmanager.php
Line: 1732

http://hmg-hg.net/cawdepot/index.php?action=tpmod;dl=admin

Anyway I can reverse the delete or fix the error?
Title: Re: Need Help.
Post by: anunlike on November 18, 2006, 06:24:10 AM
Can you create a new category?
Title: Re: Need Help.
Post by: Hammer2K on November 18, 2006, 07:22:09 AM
No, It won't let me even go to the download manager at all. When I click it, it gives me the error.
Title: Re: Need Help.
Post by: Hammer2K on November 18, 2006, 09:11:14 AM
Ok, I fixed it. I dropped just the download manager in sql, unintalled tinyportal and reinstalled and it put the General Category back in.
Title: Re: Need Help.
Post by: Techdomain on November 18, 2006, 11:23:51 AM
Glad you got it sorted out.
Title: Re: Need Help.
Post by: Hammer2K on November 18, 2006, 10:46:12 PM
Have another problem.

When I try to make a submission with no file uploaded, I get this error...

An Error Has Occurred!
2: filesize(): Stat failed for /home/content/H/a/m/Hammer2K8/html/cawdepot/tp-downloads/- empty item - (errno=2 - No such file or directory)
File: /home/content/H/a/m/Hammer2K8/html/cawdepot/Sources/TPdlmanager.php
Line: 1581

The submission works but I get that error.

Also what do I have to edit in the tpdlmanager.php file to remove the download button for submissions with no upload?