News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

External download from ftp takes forever & error message[Solved-not a jD bug]

Started by guest35517, 04.04.2018 14:12:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guest35517

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
  •  

ColinM

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
Colin M
  •  

guest35517

Hi Colin,
yes we're using external file link to a FTP with files around 500-600 MB in size.

Best regards,
Matthias
  •  

ColinM

Hi
Could you explain
Quoteexternal file link to a FTP
Are you trying to activate an ftp transfer?
Colin
Colin M
  •  

guest35517

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
  •  

ColinM

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
Colin M
  •  

guest35517

There we go, another problem solved! It was set to maximum, thus the error messages. Thanks for your help, appreciate it!

Best regards, M
  •