TinyPortal

Development => Support => Topic started by: Danzka on February 26, 2008, 01:56:59 AM

Title: Download Issue
Post by: Danzka on February 26, 2008, 01:56:59 AM
hey there first i want to thank you all for this great work on tinyportal it's really super well i started to notice that my members have some issues downloading some files from my website i use the default download manager the file size is completely okai i even can download and extract it from ftp but when i want to download it from the website i got 0kb file with archive not found error and the question is wht's goin on here i tried everythin' the permissions is okai and the linking is just perfect can anyone help, Thanks in Advance !!
Title: Re: Download Issue
Post by: Lesmond on February 26, 2008, 02:27:08 AM
try looking here http://www.tinyportal.net/index.php?action=search2 lots of answers
Title: Re: Download Issue
Post by: Danzka on February 26, 2008, 02:51:46 AM
how nice of you to redirect me to search page, do you think iam n00b or somethin' iam searching for the past 4 and .5 hours here that's why iam posting DUH no one ever answered this question and the only one that did u ignored him !!
Title: Re: Download Issue
Post by: IchBin on February 26, 2008, 05:22:44 AM
No where in your first post did you indicate that you had searched. Not to mention, I know you didn't read the posting guidelines at the top of this very board either. Before you decide you would like to go off on a TP Team member maybe you should make sure you are following all the rules? Had you had said you search perhaps he wouldn't have said it?

Now, what are your download settings set to? A link to your PHP info page is probably needed as well. Also, what are your folder permissions, and who owns the files? By owner, I mean owner/group.
Title: Re: Download Issue
Post by: Danzka on February 26, 2008, 11:20:25 AM
well first of all iam a first class programmer iam online since 2002 and i know wht iam doing so don't ask me for permissions nor settings they are all perfect and by the way i can download files but some downloads are just 0 kb and when i download them from ftp they are just full size without problems where the problem on your script just mention the page and i'll fix it okai
Title: Re: Download Issue
Post by: Zetan on February 26, 2008, 11:48:03 AM
I often wonder how programing is a first language..

Did you actually bother to read IchBins reply.. or are you still moaning?

It would seem to be server, rather than code problems.

From a post in the Team boards:

Quote from: Thurnok on March 15, 2007, 05:54:10 PM
Ok, I'm assuming you asked IchBin or someone to change all the owner/group on your site again to famjegod.  This is the reason it is not working.

SMF runs as the "nobody" user.  Unless the "nobody" user is either the owner, or the group, AND owner or group (whichever is the nobody user) has write access, or you give write access to the WORLD category, SMF will not be able to write a file.  This means that when someone uploads, TP will put the info in the database (so you see it in the download manager and "think" it is there) but SMF will be unable to write the file to the server.  Therefore the file will actually not exist.  So when you go to download, you have a 0k file.

You have to do 1 of 2 things:
1) make either the owner or the group the nobody user and give it write access
2) give write access to world

I set the tp-downloads folder group to nobody and all files in it.  You can now upload / download without issue.  The rest of your site is still set as famjegod:famjegod as owner:group but as I suggested before and had done so before but it was changed (not by myself) it should be set as group nobody if you want SMF to be able to do things via the ACP like install packages and themes, etc.
Title: Re: Download Issue
Post by: Danzka on February 26, 2008, 12:02:01 PM
yes i did saw it and i already tried wht mentioned there and it's not working  and the question here can u even read i told you i can download some files and all of my files have the same permission so wht's goin' on it's not max_download_size issue either cuz i can download bigger files too, did i came to wrong place askin' for support, did u guys really wrote this portal !!
Title: Re: Download Issue
Post by: Dragooon on February 26, 2008, 01:58:21 PM
Yes they did, And you came to the right place, the only problem is you not answering them properly.

Did you moved the files from the server? Anything in the Forum Error Log?
Title: Re: Download Issue
Post by: Danzka on February 26, 2008, 02:16:31 PM
no errors at all !!
Title: Re: Download Issue
Post by: Zetan on February 26, 2008, 02:24:03 PM
There won't be errors. This is likely to be a File Permissions/Ownership problem.

Do you have full ownership of the files? IE; CHMOD the folder/file to 777 or 755, and it reverts back when you check the permissions again?
Title: Re: Download Issue
Post by: IchBin on February 26, 2008, 02:31:24 PM
Quote from: IchBinâ,,¢ on February 26, 2008, 05:22:44 AM

Now, what are your download settings set to? A link to your PHP info page is probably needed as well. Also, what are your folder permissions, and who owns the files? By owner, I mean owner/group.

You have two tasks to complete Danzk or this topic isn't going any further. Follow the posting guidelines so we have the info we need, and also answer my post in the quote here. I'm assuming since you're a first class programmer that I don't have to tell you what a PHP info page is.