TinyPortal

Development => Support => Topic started by: fugi on March 19, 2006, 10:25:03 AM

Title: Download manager -All files are empty!!! HELP
Post by: fugi on March 19, 2006, 10:25:03 AM
I am facing a serious problem.
All files that have been uploaded are empty!
Try this for example.

http://www.thmmy.gr/smf/index.php?action=tpmod;dl=item62

You can see it and downloaded but when you try to open it is empty.
Any ideas why?
Title: Re: Download manager -All files are empty!!! HELP
Post by: elpvn on March 19, 2006, 11:42:52 AM
I just enbter your link but I've got massege: "You are not allowed to access this section"Ã,  ;D

Try overwrite your existing files with this patch:Ã,  TP v.0.86 Update (http://www.tinyportal.net/smf/index.php?action=tpmod;dl=get111)

(this's only a upgrade version for TP v0.86 mean you must has been installed TP 0.86 full before enter to overwrite process)
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 20, 2006, 12:10:14 PM
I've already done that from the first update but I did now once again but  without a result.
Problem remains.

Where do you think such a problem stems form?
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 21, 2006, 10:46:51 AM
Any ideas?
Plz guys, I have a Download manager which I am not able to use
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 21, 2006, 10:59:35 AM
The download manager is a part of TinyPortal :)
Title: Re: Download manager -All files are empty!!! HELP
Post by: Crip on March 21, 2006, 11:22:18 AM
Sounds as if your zip file had nothing in it to begin with..packaged wrong?
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 21, 2006, 12:38:15 PM
I had a similar error before i changed host for my site, It had something to do with permission and i was not able to change it so the upload worked from my portal.
The file was there, but without any content, I had to go through FTP and ul the files i tryed to ul through the package manager to get them downloadable.

I had the same problem with the packagaemanager, my host didnt want to make the changes so i could chmod the folder.
So my guess is you have the same problem with permissions as i did.

You cvan ul the zipfiles without and let them show up, and then after, ul them through your FTP. They will be there for download, but the size of the file will show incorrect though
Title: Re: Download manager -All files are empty!!! HELP
Post by: bloc on March 21, 2006, 04:52:29 PM
I think G6 is on to it...it may be that uploads do not work properly. Did they at some pint work, or was it like this from the start?

On a sidenote..I will def. add a option to simply read the folder, meaning you could upload through ftp and then just assign them into the manager.
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 21, 2006, 06:27:42 PM
Quote from: G6 on March 21, 2006, 12:38:15 PM

You cvan ul the zipfiles without and let them show up, and then after, ul them through your FTP. They will be there for download, but the size of the file will show incorrect though

Thanks but just imagine doing that over about 800 files :( not to mention the ones which will be added afterwards..

@Bloc: It's like this since the beggining

@G6: Did you manage to solve the permission problem and uploading without FTPing? And if yes how?
Title: Re: Download manager -All files are empty!!! HELP
Post by: IchBin on March 21, 2006, 07:21:01 PM
I think G6 changed hosts. :)
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 21, 2006, 07:31:46 PM
Quote@G6: Did you manage to solve the permission problem and uploading without FTPing? And if yes how?

Yes, i had to change host because they didnt want to change the permissions for me in my database so nothing worked.
The new host is really good to :) Now i can run a testboard and try out everything on my own, and non of you can see all the errors i make  :uglystupid2:.
But i sugest you talk to your host about the permissions in the database and your server.
Most host are most helpful if you ask them to.
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 22, 2006, 10:58:49 AM
Do u think that being an sFTP (secure FTP) instead of normal FTP could cause such problems or the permissions ave nothing to do with that?

@G6: Which are these database permission I shouold request?
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 22, 2006, 11:09:06 AM
Quote@G6: Which are these database permission I shouold request?

The Apache name of the sql database. That was what caused my files to lock, and i couldent rename then.
You have to ask your host to let you be the owner to the Apache so you are the owner to all files in your WWW dir
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 23, 2006, 10:22:38 AM
I probably did not understand well,
in order to be able to upload you have to be an Appache owner?!!
So, what about the simple user?
Title: Re: Download manager -All files are empty!!! HELP
Post by: IchBin on March 23, 2006, 04:40:28 PM
No you don't have to be an apache user. Any user can use TP to upload stuff. Because TP/SMF use the apache user to do the uploading and stuff. But with TP you can restrict which groups you want to give permission to do so.
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 23, 2006, 08:44:22 PM
So which are these missins permissions that make every uploaded file to be empty?
I don't get it
I'm gonna commit a suicide!
Title: Re: Download manager -All files are empty!!! HELP (secureFTP is the problem?)
Post by: fugi on March 26, 2006, 01:13:11 PM
I'll ask it once again cos I think it's serious.

Do u think that being an sFTP (secure FTP) instead of normal FTP could cause such problems or the permissions ave nothing to do with that?
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 26, 2006, 01:58:09 PM
I thought so to, but it was the database settings from my host that caused the problem, and they didnt want to change them for their own security reasons as they told me. I know this isent what you want to hear, but if your host isent willing to change the settings and allowe you to manage the permissions to the files, change host.  :-\

Title: Re: Download manager -All files are empty!!! HELP
Post by: IchBin on March 26, 2006, 06:34:15 PM
I agree with G6. I would confront your host about this if you haven't already.
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 27, 2006, 11:52:31 AM
I've already did and they say that they don't see any problem from their side.
THey claim that I have the right permissions to work.
And they also say that sftp isn like FTP, the only difference is that it uses cryptography, I dunno..
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 27, 2006, 02:57:28 PM
Problem solved :) :)

Eventually i figured out that Merfy is right once again saying
the error is in the last place you would think to search.

The tp-downloads folder had no w permissions.
I didn't look at such a thing because I thought it should be rw from right from the installation odf the TP0.8.6, not to mention that I had chmod all files to 777 trying to fix the error. I don't know why this folder decided to deny accepting these permissions :P

Anyway thank you all for the help, which eventually resulted in the webmaster's giving me more permissions ;)
Title: Re: Download manager -All files are empty!!! HELP
Post by: G6Cad on March 27, 2006, 03:15:08 PM
I think i said that you should take a look at the permissions early in the thread, so i assumed you did just that then ;)

QuoteI had the same problem with the packagaemanager, my host didnt want to make the changes so i could chmod the folder.
So my guess is you have the same problem with permissions as i did.

But im glad you did solve the problem though :)
Title: Re: Download manager -All files are empty!!! HELP
Post by: fugi on March 27, 2006, 04:25:57 PM
Yes, and thank you, the feedback is also for Bloc to check if there's a bug in the Download Manager,
and it doesn't apply the correct permissions to the tp-downloads folder
Title: Re: Download manager -All files are empty!!! HELP
Post by: bloc on March 28, 2006, 08:24:47 PM
TP really doesn't do anything with permissions on created folders, it simply adhere to SMF functions just as any other mod. So it would really be a SMF package manager issue I think.

But normally it does work fine though, the tp-downloads folder is created with the correct permissions.