- Posts: 35
- Thank you received: 1
Dowloadable products not... downloadable
-- HikaShop version -- : 2.6.1
I'm trying to put up my 1st downloadable product (a 3.4GB video file). I thought I had everything setup correctly, but the customer gets no link to take him/her to a download area to actually get the item.
Please Log in or Create an account to join the conversation.
How do I get a link to the customer so they can get their item?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The file should be in the folder media/com_hikashop/upload/safe and in the file edition/add popup, you should enter only the path relative to that folder (so in your example, it should actually be only the file name if the file is in that upload/safe folder).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So what did you enter in the file path popup (could you do a screenshot) ?
And could you also do a screenshot of the media/com_hikashop/upload/safe folder with that file there in your FTP client ?
Please Log in or Create an account to join the conversation.
Would a file size limitation give me the file not found error?
Please Log in or Create an account to join the conversation.
Looking at the code I don't see why a file size, or memory size, or time limitation would give that error.
Normally, HikaShop has a system to read and send the file bits by bits to avoid the file size and memory limits. And regardless of which one of these would stop the sending of the file, it would result in either a Fatal error, or a 500 HTTP status based on how your server is configured.
A "file not found" error, is an error coming from HikaShop because it couldn't validate the download or the location of the file before the sending of the data happens.
Here are the potential reasons that error would be displayed looking at the code:
- The file path has ".." in it. It is forbidden for security purposes.
- There is a plugin of the group system or hikashop implementing the trigger onBeforeDownloadFile and cancelling the download. There is no such plugin by default in HikaShop. So if that's the case, it would be a plugin you developed or someone developed for you.
- There is a problem with the link which has a wrong order_id or file_id.
Could you provide a download link and the corresponding test user account so that we can try it and a backend access in order to check your settings and a FTP access in order to check the situation on your website ?
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I find the the root of your issue, as Nicolas told you your value in filename must match perfectly your name file, and unfortunately your filename see in your safe file is : BCHonorBand2016.m4v and in your product configuration : BCHonorband2016.m4v, and so the file no found error is normal.
Right now this point is corrected, but note that you must add mod_xsendfile Apache module in order to manage a so big file, so information about this here on our forum and a link to see how to add this Apache module.
Hope this will help you !
Regards,
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Unfortunately, yes php don't well adapted to this kind of process.
Regards,
Please Log in or Create an account to join the conversation.