Unable to download digital product (file not found)
-
The woocommerce products have been set up with the digital download defined under “Variations” and pointing to a file which exists in the server directory. Physical variations have also been set up.
Direct access to the files in the server directory worked — I then added protection from direct access by .htaccess (deny from all) [I have tried this with both the .htaccess present and removed and get the same failure]
the checkout process:
go to shop/product list
select a product
select the “digital download” option
add to cart
view cart
complete checkoutAccording to woocommerce instructions, after checkout, the download link should access the file (since it is a ZIP, it should start a download). This is where the issue occurs, with the less than useful “File not found Go to shop” message.
Apache server — mod_xsendfile Apache module is present and enabled trhough htaccess: XSendFile On
php 7.4 (also tried with 8.0 and 8.1)
WordPress 5.9 with Divi Theme
WooCommerce 6.2.0
settings: X-Accel-Redirect/X-Sendfile is set for downloadable products (have tried with Force downloads as well)
Allow using redirect mode (insecure) as a last resort is checkedUsing redirect only (insecure) DOES complete the download, but this is not appropriate or useable for the product on the live site.
The searches I have done of this error indicated that XSendFile needs to be active (done). The other search results reported the same issue, but I could not find any resolution to thier issues in the report threads. Several times, a report thread was referenced as “having the answer” — but whatever that answer was appears to have been deleted, since the only content visible for that thread was the initial question.
The page I need help with: [log in to see the link]
The topic ‘Unable to download digital product (file not found)’ is closed to new replies.