• Resolved Allen Freeman

    (@allenfreeman)


    (NOTE: a similar support request from yesterday [https://www.ads-software.com/support/topic/file-not-found-when-using-product-download-link/] was mistakenly marked as “Solved”, as no solution is provided.)

    Orders for downloadable products present links to customers, but when those links are clicked the resulting page says “File Not Found”.

    All was working fine until yesterday afternoon.

    I tried the process suggested by @maykato in the prior ticket (turned off all plugins except woocommerce, changed the theme to storefront) but that did not resolve the ‘file not found’ error.

    Our downloadable products have always used the delivery setting of ‘X-Accel-Redirect/X-sendfile’ so the one suggestion in the previous ticket is not a solution.

    Any other ideas? Thank you!

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Allen Freeman

    (@allenfreeman)

    I’m concerned this issue is not a theme or plugin conflict, but something inherent in woocommerce. I deactivated all other plugins besides woo and used a default theme (storefront) in testing, and the link error still existed even then.

    I also tried using “Force Downloads” under File Download Method, but that did not work either.

    My hosting company also reviewed extensively and could not determine a cause of the error after several debugs and different ideas.

    I am posting the server config and woo-related plugins list below, if that is of any help in determining the cause of these non-working product download links:

    Site is running PHP: 7.4
    WordPress Version: 5.7.2
    woocommerce active 5.5.0

    Woocommerce related plugins and their current versions
    woo-order-export-lite active 3.1.9
    affiliatemgr-woo-product-specific-commission active 1.0.2
    autocomplete-woocommerce-orders active 1.3.6
    woocommerce-checkout-manager active 5.4.0
    minmax-quantity-for-woocommerce active 1.3.1.2
    woo-cart-abandonment-recovery active 1.2.13
    continue-shopping-for-woocommerce active 1.4.3
    woocommerce-coupon-codes-renamed-master active 1
    woocommerce-paypal-pro-payment-gateway active 2.9.6
    woo-custom-and-sequential-order-number active 2.6.0
    wpai-woocommerce-add-on active 3.2.6
    woo-custom-related-products active 1.3.2

    Thank you!

    Thread Starter Allen Freeman

    (@allenfreeman)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://shop.standardlegal.com
    Site address (URL): https://shop.standardlegal.com
    WC Version: 5.5.0
    REST API Version: ? 5.5.0
    WC Blocks Version: ? 5.3.2
    Action Scheduler Version: ? 3.2.1
    WC Admin Version: ? 2.4.1
    Log Directory Writable: ?
    WP Version: 5.7.2
    WP Multisite: –
    WP Memory Limit: 64 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.21
    PHP Post Max Size: 64 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 1000
    cURL Version: 7.77.0
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.34
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.5.0
    WC Database Prefix: wpwm_
    Total Database Size: 51.50MB
    Database Data Size: 35.01MB
    Database Index Size: 16.49MB
    wpwm_woocommerce_sessions: Data: 0.34MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_downloadable_product_permissions: Data: 0.32MB + Index: 0.32MB + Engine MyISAM
    wpwm_woocommerce_order_items: Data: 0.26MB + Index: 0.14MB + Engine MyISAM
    wpwm_woocommerce_order_itemmeta: Data: 2.62MB + Index: 0.98MB + Engine MyISAM
    wpwm_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_actionscheduler_actions: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    wpwm_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_actionscheduler_logs: Data: 0.04MB + Index: 0.03MB + Engine MyISAM
    wpwm_bounced_email_logs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpwm_cartflows_ca_cart_abandonment: Data: 0.31MB + Index: 0.03MB + Engine MyISAM
    wpwm_cartflows_ca_email_history: Data: 0.06MB + Index: 0.05MB + Engine MyISAM
    wpwm_cartflows_ca_email_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cartflows_ca_email_templates_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cleantalk_ac_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cleantalk_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cleantalk_sfw: Data: 0.14MB + Index: 0.25MB + Engine MyISAM
    wpwm_cleantalk_sfw_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cleantalk_spamscan_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_cleantalk_ua_bl: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_comments: Data: 0.56MB + Index: 0.22MB + Engine MyISAM
    wpwm_fusion_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_fusion_form_entries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_fusion_form_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_fusion_form_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_loginizer_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_dynamic_segment_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_feature_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_mapping_to_external_entities: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_newsletters: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_newsletter_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_mailpoet_newsletter_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_newsletter_option_fields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_mailpoet_newsletter_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_newsletter_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_newsletter_templates: Data: 1.07MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_scheduled_tasks: Data: 0.06MB + Index: 0.02MB + Engine MyISAM
    wpwm_mailpoet_scheduled_task_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_segments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_mailpoet_sending_queues: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_settings: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_statistics_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_statistics_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_statistics_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_statistics_opens: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_mailpoet_statistics_unsubscribes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_statistics_woocommerce_purchases: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_mailpoet_stats_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_subscribers: Data: 0.29MB + Index: 0.32MB + Engine MyISAM
    wpwm_mailpoet_subscriber_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_mailpoet_subscriber_segment: Data: 0.14MB + Index: 0.14MB + Engine MyISAM
    wpwm_mailpoet_user_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_ms_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_odb_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_options: Data: 1.32MB + Index: 0.09MB + Engine MyISAM
    wpwm_pmxi_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_pmxi_hash: Data: 0.08MB + Index: 0.08MB + Engine MyISAM
    wpwm_pmxi_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_pmxi_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_pmxi_imports: Data: 0.15MB + Index: 0.00MB + Engine MyISAM
    wpwm_pmxi_posts: Data: 0.89MB + Index: 0.29MB + Engine MyISAM
    wpwm_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wpwm_postmeta: Data: 13.00MB + Index: 7.74MB + Engine MyISAM
    wpwm_posts: Data: 5.47MB + Index: 1.67MB + Engine MyISAM
    wpwm_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_snippets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_termmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wpwm_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_term_taxonomy: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpwm_usermeta: Data: 4.02MB + Index: 2.51MB + Engine MyISAM
    wpwm_users: Data: 0.23MB + Index: 0.18MB + Engine MyISAM
    wpwm_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpwm_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wc_customer_lookup: Data: 0.18MB + Index: 0.11MB + Engine MyISAM
    wpwm_wc_download_log: Data: 0.14MB + Index: 0.12MB + Engine MyISAM
    wpwm_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.05MB + Engine MyISAM
    wpwm_wc_order_product_lookup: Data: 0.18MB + Index: 0.15MB + Engine MyISAM
    wpwm_wc_order_stats: Data: 0.11MB + Index: 0.09MB + Engine MyISAM
    wpwm_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_affiliates: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_affiliates_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_creatives: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_impressions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_messages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_paypal_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_tracking_tokens: Data: 1.30MB + Index: 0.18MB + Engine MyISAM
    wpwm_wpam_tracking_tokens_purchase_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpam_transactions: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wpwm_wpmm_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_affiliates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_commissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_commission_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_payments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_payment_commission: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yith_wcaf_payment_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yoast_indexable: Data: 1.39MB + Index: 0.45MB + Engine MyISAM
    wpwm_yoast_indexable_hierarchy: Data: 0.01MB + Index: 0.04MB + Engine MyISAM
    wpwm_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpwm_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpwm_yoast_seo_links: Data: 0.07MB + Index: 0.02MB + Engine MyISAM
    wpwm_yoast_seo_meta: Data: 0.04MB + Index: 0.04MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 102
    br_minmax_limitation: 6
    custom_css: 1
    fusion_tb_layout: 1
    fusion_tb_section: 2
    mailpoet_page: 1
    nav_menu_item: 34
    oembed_cache: 1540
    page: 12
    post: 1
    product: 40
    revision: 2
    shop_coupon: 21223
    shop_order: 1922
    shop_order_refund: 42
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (35) ###
    
    Affiliates Manager WooCommerce Product Specific Commission: by wp.insider
    affmngr – 1.0.2
    
    Affiliates Manager MailPoet Integration: by wp.insider – 1.0.1
    WP Affiliate Manager: by wp.insider
    wpaffiliatemgr – 2.8.4
    
    Autocomplete WooCommerce Orders: by QuadLayers – 1.3.6
    Autoptimize: by Frank Goossens (futtta) – 2.8.4
    Better Search Replace: by Delicious Brains – 1.3.4
    Bounce Handler Mailpoet: by Tikweb – 1.3.21
    Classic Editor: by WordPress Contributors – 1.6
    Anti-Spam by CleanTalk: by СleanTalk  – 5.159.8
    Code Snippets: by Code Snippets Pro – 2.14.1
    WooCommerce Continue Shopping: by HappyKite – 1.4.3
    Database Collation Fix: by Dave Jesch – 1.2.7
    Google Tag Manager for WordPress: by Thomas Geiger – 1.13.1
    GP Premium: by Tom Usborne – 2.0.2
    Login Logo Editor: by Scott DeLuzio – 1.3.2
    Loginizer: by Softaculous – 1.6.7
    MailPoet 3 (New): by MailPoet – 3.65.0
    Min and Max Quantity for WooCommerce: by BeRocket – 1.3.1.2
    Optimize Database after Deleting Revisions: by CAGE Web Design | Rolf van Gelder
    Eindhoven
    The Netherlands – 5.0.4
    
    Safe SVG: by Daryll Doyle – 1.9.9
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.13
    Woo Custom and Sequential Order Number: by VJInfotech – 2.6.0
    WPC Custom Related Products for WooCommerce: by WPCodelibrary – 1.3.2
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.9
    Checkout Fields Manager for WooCommerce: by QuadLayers – 5.4.0
    WooCommerce Coupon Codes Renamed: by Grahame Thomson – 1
    WooCommerce PayPal Pro: by wp.insider – 2.9.6
    WooCommerce: by Automattic – 5.5.0
    Yoast SEO: by Team Yoast – 16.7
    WP All Import Pro: by Soflyy – 4.6.8
    Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.8.0
    WP Featherlight: by Cipher – 1.3.4
    WP Maintenance Mode: by Designmodo – 2.4.0
    WP Super Cache: by Automattic – 1.7.4
    WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.2.6
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #480 - /all-products/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: #3 - /terms-privacy/
    
    ### Theme ###
    
    Name: GeneratePress
    Version: 3.0.4
    Author URL: https://tomusborne.com
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 223
    Oldest: 2021-06-13 17:48:54 -0400
    Newest: 2021-07-14 15:43:26 -0400
    
    Failed: 1
    Oldest: 2020-02-01 12:28:39 -0500
    Newest: 2020-02-01 12:28:39 -0500
    
    ### Status report information ###
    
    Generated at: 2021-07-14 16:21:28 -04:00
    
    Mirko P.

    (@rainfallnixfig)

    Hi @allenfreeman,

    Is the direct link to the file working correctly? You can access the link under Product data > General > Downloadable files > File URL.

    Also, if you go to the Edit Order page can you see the product under “Downloadable product permissions”?

    Thanks.

    Thread Starter Allen Freeman

    (@allenfreeman)

    Yes, the direct links are working.

    Yes, I can see the product under Downloadable product permissions in each order.

    This is an issue with every downloadable product in the store for every customer, not just one…

    The permanent solution to this error is to ensure that you have mod_xsendfile Apache module installed.

    The temporary solution would be to change product download option (This option comes with its own drawbacks).

    The two solution have been explained in detail in this article.

    Thread Starter Allen Freeman

    (@allenfreeman)

    Thanks @elvis89. I just had my hosting company add to the site/server the mod_xsendfile Apache module and htaccess code from the article instructions, but doing so did not resolve the issue.

    Thread Starter Allen Freeman

    (@allenfreeman)

    Perhaps another person experiencing this download link issue can try @elvis89 suggestion and report back if it worked for them? One test is not a conclusion.

    But it does seems odd that this download link functionality worked perfectly for years without the suggested apache module installed on our server…

    Plugin Author Barry

    (@barryhughes-1)

    There are quite a few voices in this thread and it’s not absolutely clear that everyone is facing the exact same problem, but let me share some notes that may be useful to at least some of you.

    Currently, WooCommerce supports three different file download methods:

    • Force Downloads
    • X-Accel-Redirect/X-Sendfile
    • Redirect Only

    However, each of those can fail for different reasons. Up until recently one of the ways in which we handled failures was via a set of fallbacks:

    • If the file cannot be served by X-Accel, fallback on Force Download
    • If the file cannot be served by Force Download, fallback on Redirect
    • If the file cannot be served by Redirect, display an error message

    However, in the 5.5.0 release, the fallback on the Redirect method was removed.

    But it does seems odd that this download link functionality worked perfectly for years without the suggested apache module installed on our server…

    Based on this, it is quite likely that you were (perhaps inadvertently) relying on the set of fallbacks I described above. However, the change I described (which was released in 5.5.0) prevented that from happening. What you would likely need to do, to restore things, is either:

    • Explicitly enable the Redirect Only download method (very fast and easy to do, but please read the rest of this note first of all)
    • Or, configure things so that you can successfully use one of the other methods (potentially more complex, depending on your hosting setup, but provides optimal protection for your digital products)

    More advice on digital product handling can be found here:

    docs.woocommerce.com/document/digital-downloadable-product-handling

    As you’ll see mentioned there, an issue to be aware of with the Redirect method is this:

    When users download a file, their link redirects to the file. Using this method means your files will be unprotected and whoever has the upload link will be able to access the file, even when they are not logged in.

    That is why the fallback was removed—we did not want merchants who had selected a method that avoids exposing the source URL of the asset (such as Force Download) to inadvertently have that URL exposed via the Redirect method.

    Thread Starter Allen Freeman

    (@allenfreeman)

    After reading all of the above, exchanging with Barry on github, and working with our hosting company, we found that installing the apache xsendfile mod to the server (as suggested from the article linked to by @elvis89) and putting the download files directly into the woo media folders (instead of serving them from a subdomain), that the X-Accel/Sendfile download method is now working for us.

    Thanks Elvis and Barry!

    Plugin Author Barry

    (@barryhughes-1)

    You’re welcome, and our apologies (to everyone) for the disruption.

    Just as a re-cap for others: it is quite possible your digital products were being served via a redirect (even if you had selected Force Download or X-Accel/X-Sendfile in the settings screen). So, changing that setting to Redirect Only is a probable quick fix in most cases and it sounds like a number of you have already discovered that.

    Of course, you may prefer to stick with one of the other options…but if they are not working then some configuration work may be needed. For that, please take a look at (and if you are talking to your hosting provider, refer them to) this article:

    docs.woocommerce.com/document/digital-downloadable-product-handling

    In the meantime we are exploring some further adjustments in response to this issue.

    @barryhughes-1 I have been using the force download option (until now) and I don’t think you’re right about products being served via redirect anyway, as previously when using forced download setting, the file would download straight to a downloads folder, whereas using the redirect option, it opens the file in a browser window (which also exposes the file URL – where the other method does not).
    I would prefer the files to download, rather than open, especially as I’m serving some audio files and these now open in a browser window using the redirect setting – and I know some less-than-tech-savvy people don’t always know how to download these.

    Plugin Author Barry

    (@barryhughes-1)

    Thanks for the note, @musikapublishing.

    There are at least a few possibilities here. The first is that the problem you are facing is, at core, of a different nature to that faced by the OP (even if there are similar symptoms).

    The second is that some of the force downloads were working as expected, and others were not (it may depend on individual file permissions, or it could be that files are stored in a range of different places—some local to your server and some not).

    The third is that the problem is exactly what I outlined, but the difference is explained by the fact that when the preferred option is Force Downloads, an initial attempt is made to serve the file that way and, as part of that attempt, a range of headers (think of these as hints or instructions, if you like) are sent to the browser first of all. Those are mostly incompatible with a redirect (which takes the form of a location header) so it would certainly be unusual but, depending on both the browser being used and actually the server-side setup, it’s just possible that would result in the redirect acting like a force download.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m closing this topic and archiving all of the “I have this problem too” replies.

    If you need support then per the forum guidelines please start your own topic.

    https://www.ads-software.com/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    You can do so here.

    https://www.ads-software.com/support/plugin/woocommerce/

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘‘File Not Found’ error for downloadable product orders’ is closed to new replies.