Dear All,
What would explain the following behavior when i inactivate "Send Downloads using the PHP Script" (Reason is shared on an other post, mentioning downloads issue on large files)
Let's say my website URL is : https://www.myurl.com
Let's say my web provider (infomaniak) internal server address is: /home/clients/dgssfgfg1231564645d1sfgsgvsf/web/
When i try to get a download from my website (jdownloads) using the direct link option (for example Test/debian2.iso) the link that is generated is :
https://www.myurl.com/home/clients/dgssfgfg1231564645d1sfgsgvsf/web/jdownloads/Test/debian2.iso
resulting of course with a page not found !
I must say the following :
- i did try the direct link in the past (last month), it was working well (test was on JD 4.1.4)
- for an unexplained reason, i got this issue (on JD 4.1.4)
- i tried to 4.1.6 update to check, result is the same
and on my side, no update was done either on JD or JOOMLA between the moment "working / not working".
I am checking as well with Infomaniak to see if something happened on their side, but any help or clue would be appreciated.
Thanks for your help :)
Pierre
jdownloads 4.1.6
joomla 5.4.7
Hi again,
From what i tried to analyse, on DownlaodController.php when buildiing the $filename_direct
I receive the following :
- $filename_direct as /home/clients/dgssfgfg1231564645d1sfgsgvsf/web/mmd/jdownloads/Test/debian2.iso
- $root as /home/clients/dgssfgfg1231564645d1sfgsgvsf/web
- $host as www.myurl.com
- $joomla_root as /home/clients/dgssfgfg1231564645d1sfgsgvsf/web/mmd/
- $joomla_host as https://www.myurl.com/mmd/
in this configuration it seems the code is building the following :
- str_replace($root, $host, $filename_direct) --> www.myurl.com/mmd/jdownloads/Test/debian2.iso
- as there is no http ... in the chain, build the $filename_direct as http://www.myurl.com/mmd/jdownloads/Test/debian2.iso
I am absolutely not a code expert so this may be wrong sorry about that ...
In that case, passing an http address is returning the error i am seeing :
- file not found
- and https://www.myurl.com/home/clients/dgssfgfg1231564645d1sfgsgvsf/web/jdownloads/Test/debian2.iso in my address bar
Regards,
Pierre