Hi,
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