The Downloadable File Doesn't Exist on Server/ Forbidden Access on File Download
-
Using WooCommerce 2.4.7 (latest update), when I go to attach a digital file (I’ve tried PDFs and ZIPs) to a product page, I get the following message:
The downloadable file /wp-content/uploads/woocommerce_uploads/2015/09/[file-name].zip cannot be used as it does not exist on the server.
First off, the file does exist on the server.
The message goes away if I hard code the File URL to be the full path name. I added “https://shop.[my-domain-name].com/” at the beginning of the prepared URL that the system automatically generated when using the media manager window. So if I hard code the URL of the desired product, no error messages occur causing me to think everything is OK.
When I generate a customer order, and click on the download link provided to the customer, I get a 403 Forbidden message in my browser window, but even worse, the relative URL for the attempted file download is displayed on the page like so:
Forbidden
You don’t have permission to access /wp-content/uploads/woocommerce_uploads/2015/09/[file-name].zip on this server.
Apache/2.4 Server at shop.trainingdoulas.com Port 80The full URL is displayed in the browser’s address bar as well, instead of the customer link generated by WooCommerce.
Also for reference sake, I have the File Download Method set to Force Download, because the other options didn’t work in my environment for reasons I don’t immediately recall(as this setting was set several months ago).
The final bit of info that I can provide is that files that were uploaded before last month seem to be behaving just fine. However, I went and attempted to update another one of my older products, thinking that this change needed to be made to all my file (making the digital product URL absolute), and it now is broken too. I can’t go back to the way it was.
I’ve searched for an answer on Google with no success. I’ve also found these two other posts that seemed related but without success. I went and located the file suggested in the second link but it had already been updated to the suggested change found here.
Thanks for your attention.
- The topic ‘The Downloadable File Doesn't Exist on Server/ Forbidden Access on File Download’ is closed to new replies.