Dowloadable products not... downloadable

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #232959

-- url of the page with the problem -- : http://www,scrsonline.com
-- 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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #232960

To add to my original post, here's a copy of the Files setup section of the configuration page.

How do I get a link to the customer so they can get their item?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #232962

I've gotten it so that at least a link shows up in the email, but now I'm getting a File not Found error....

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 8 months ago #232996

Hi,

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.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #233011

Still getting a File Not Found error when I click on the link in the email. It's not letting me download the file.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 8 months ago #233017

Hi,

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.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #233031

Here are the screenshots you're asking for.

Would a file size limitation give me the file not found error?

Attachments:
Last edit: 8 years 8 months ago by beanman1.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 8 months ago #233052

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

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #233090

Information sent. Hope it's what you need.

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 8 months ago #233194

Hello,

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,

Last edit: 8 years 8 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #233234

Guess this is now a case for 1and 1. Hope they can get the mod added for me. Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 1
  • Hikashop Essential
8 years 8 months ago #233256

So until I get that mod installed, the download's going to give me this 500 Internal Server Error?

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
8 years 8 months ago #233259

Hello,

Unfortunately, yes php don't well adapted to this kind of process.

Regards,

Last edit: 8 years 8 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum