jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: guest35517 on 04.04.2018 14:12:05

Title: External download from ftp takes forever & error message[Solved-not a jD bug]
Post by: guest35517 on 04.04.2018 14:12:05
Hi there!
Using jDownloads with http was no problem. We changed some Downloads to external file links to keep the latest version up to date. When you click the download link now, nothing happens for almost exactly a minute (while waiting for server.com) and then the file starts downloading (although not properly in firefox, but that's probably a different issue). It also shows these error messages:

Notice: Undefined variable: user_random_id in /data/www/server.com/components/com_jdownloads/helpers/jdownloadshelper.php on line 3473

Warning: get_headers(): FTP server error 0: in /data/www/server.com/components/com_jdownloads/helpers/jdownloadshelper.php on line 2134

Warning: array_change_key_case() expects parameter 1 to be array, boolean given in /data/www/server.com/components/com_jdownloads/helpers/jdownloadshelper.php on line 2134


So even though the download works at some point, it takes a long time to start and shows these errors, did anyone else encounter problems like this?

Ah yes,  we're using Joomla! 3.8.6 Stable with jDownloads Version 3.2.56

Best regards,
M
Title: Re: External download from ftp takes forever & error message
Post by: ColinM on 05.04.2018 13:47:20
Hi
There seems to be two things here.
First the Warnings.  What level of error reporting have you set in Joomla!.  Please note you will get a variety of warning messages at the highest level.  They do not indicate a fault. The PHP people provide these to aid very tight standards.

Secondly using an 'external site' for holding files to be downloaded.  Here jD is really not actually in charge of the downloading but is at the mercy of the remote site.  I have no problems when using such services. I am presuming you are using the External file link. Is that correct?

Colin
Title: Re: External download from ftp takes forever & error message
Post by: guest35517 on 05.04.2018 13:50:41
Hi Colin,
yes we're using external file link to a FTP with files around 500-600 MB in size.

Best regards,
Matthias
Title: Re: External download from ftp takes forever & error message
Post by: ColinM on 07.04.2018 19:06:32
Hi
Could you explain
Quoteexternal file link to a FTP
Are you trying to activate an ftp transfer?
Colin
Title: Re: External download from ftp takes forever & error message
Post by: guest35517 on 07.04.2018 19:28:19
Hey Colin,
yes you could say that. It's something similar to a download like this: ftp://ftp.uni-erlangen.de/mirrors/ubuntu-releases/17.10/ubuntu-17.10.1-server-amd64.iso - Although I tried with this link and it worked immediately (except the two warnings, they were there aswell), so at least the latency might be something system-specific. Any idea what I could do to remove those warnings?

Best regards,
M
Title: Re: External download from ftp takes forever & error message
Post by: ColinM on 08.04.2018 18:17:46
Hi
I checked out with a regular external 530Mb file using jD and then with Filezilla.  In both cases the time to download was about an hour. Did not have any warnings. I was using Firefox.  Like yourself there was an initial delay in both cases so I think that is where the systems are interchnging info.

In Joomla! Global Config - Server tab -Error Reporting is it set to System Default.  If you set it higher you may get warnings. Please confirm

Thanks
Colin
Title: Re: External download from ftp takes forever & error message
Post by: guest35517 on 08.04.2018 22:12:17
There we go, another problem solved! It was set to maximum, thus the error messages. Thanks for your help, appreciate it!

Best regards, M