Jump to content

[SOLVED] Virtual Product Wont Download - File not found (Newbie)


Ausgirl

Recommended Posts

Hello,

 

(Prestashop 1.7 Latest download)

 

Ive search for an answer and couldn't find one anywhere except for one person whom had the exact same problem and fixed it by uploading a zip file to the downloads folder instead of a PDF. (Mine is a zip folder)

 

My server allows 128M

 

Creating a virtual:

 

Does this product have an associated file? Yes

Click browse, choose zip file which is just under 8M

Click save and it does not save.

 

I upload the zip file to the download file then go back to the add product page and enter the file name myzip.zip

Click save and it saves.

 

I pop over to the website, do a test order, all good, I get the email with the download link, click it and get file not found :unsure:

I go into my account, click the link from there and its the same - File not found :unsure:

 

Is there somewhere in the backend that I'm suppose to turn on such as...Enable downloads?

 

In my php.ini file I have:

 

upload_max_filesize 128M

post_max_size 32M

 

In Admin I have:

 

Upload quota

Maximum size for attached files: 8 megabytes

Maximum size for a downloadable product: 32 megabytes

Maximum size for a product's image: 2 megabytes

 

I have even tried renaming the htaccess file in the download folder and still nothing works.

 

Download File Permission is 755

myzip.zip File Permission is 644

 

I tried changing it to 755 but it made no difference so I set it back to 644

 

Why does the download link not talk to the zip file and how can I fix this?

Why does it not accept the browse upload of the zip from the add product page?

 

I'm a newbie so if you can advise in really simple terms, that would be great.

 

Thank you kindly :)

Edited by Ausgirl (see edit history)
Link to comment
Share on other sites

It is very hard to help you as you are the one that has to do the hard work and until now you have done only a part of it:

 - what if you upload a mini zip file of 1 KB?

 - is there an error message in your server log?

 - is there a javascript error?

 - when you upload a file can you find it in the download directory of your shop? It will have a scrambled name but you see that there is one extra file there from a familiar size and with a familiar file date.

 - is there an entry added in the ps_product_download database table?

Link to comment
Share on other sites

It is very hard to help you as you are the one that has to do the hard work and until now you have done only a part of it:

 - what if you upload a mini zip file of 1 KB?

 

Thank you kindly for your reply :)

 

Its the size. I tried a smaller zip of 983 bytes and it worked all from the back end, no problem at all.

How can I get it to accept a bigger file of at least 10M (I wont have any larger than that)

 

 - is there an error message in your server log?

 

There were no errors.

 

 - is there a javascript error?

 

 

 - when you upload a file can you find it in the download directory of your shop? It will have a scrambled name but you see that there is one extra file there from a familiar size and with a familiar file date.

 

With the larger file, I had to upload to download file. Nothing was scrambled when I FTP to the download file

 

 - is there an entry added in the ps_product_download database table?

 

Yes, it was showing in the database (when uploaded manually with the larger file)

 

Now that we know its a size problem, is there a way to fix this or do I need to contact my host?

 

These are my host settings:

 

upload_max_filesize 128M

post_max_size 32M

 

This is what I have in Advanced Perimeters -> Admin ->

 

Upload quota

Maximum size for attached files:  8 megabytes

Maximum size for a downloadable product:  20 megabytes

Maximum size for a product's image:  2 megabytes

 

Thank you :)

 

PS: I just tried a larger file: 4.97 MB and it worked.

Edited by Ausgirl (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...