• Resolved kitka

    (@kitka)


    Hello, After recently updating WooCommerce to 6.2.0 and WordPress to 5.9, customers who have ordered downloadable virtual products now get this error when trying to access the links to their purchases:
    File Not Found Go to Shop

    To temporarily get around the problem I have changed the downloadable products setting to Redirect only but I would like a more permanent solution.

    Can you advise?

    Kitka

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Kitka!

    The issue you have could be happening due to a conflict between WooCommerce and your theme or a plugin you have installed.

    To be sure of this, please perform a conflict test by temporarily switching your theme back to Storefront, disabling all plugins except WooCommerce, go back to your downloadable product setup and then make a purchase test and check if the issue persists. If that solves it, then re-enable all plugins one-by-one, until you find the one creating the conflict.

    If you cannot perform a conflict test on your live site, we recommend creating a staging site using the WP Staging plugin.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Let us know how that goes for you!

    Thread Starter kitka

    (@kitka)

    Hi,

    I have tried disabling all unnecessary plugins and switching to Storefront but the problem persists unless I change the download method to redirect. Customers have bought access to the posts on an ongoing basis, so it needs to work for existing customer logins in the My Account area (not just new purchases). It was working in previous versions of WooCommerce / WordPress back to October 2019.

    Kitka

    @kitka

    Could you check this blog post for pointers?

    Thread Starter kitka

    (@kitka)

    Yes unfortunately the response from my hosting company about solution #2 is:

    Taking a look further into that specific fix. This is something that needs to be installed at root level which means that it effects everyone on the server. These changes usually come with inherent vulnerabilities which means that this change will likely get rejected however I have still reached out to our operations team with the request.
    
    Additionally when going through the comments of the article you have linked it becomes quite apparent that the fix outlined can regularly run into many kinds of issues, so it may be worth contacting woocommerce about another potential fix/workaround.

    Hello kitka

    We encountered this same error possibly after our client switched payment processors. All download links returned File Not Found

    In line 456 of
    wp-content/plugins/woocommerce/includes/class-wc-download-handler.php

    While attempting to debug the problem we added
    echo self::parse_file_path( $file_path );
    right before
    self::download_error( __( 'File not found', 'woocommerce' ) );

    And to our surprise that made the download link start the download of the product file.

    Mirko P.

    (@rainfallnixfig)

    Hi @kitka,

    This would be something your host needs to look at as they’d need to install mod_xsendfile Apache module for the “Force Download” method to work properly. You can also try the solution shared by geelexul though and see if it works for you.

    Alternatively, you may need to upgrade or change to a hosting provider that has already that module installed.

    Thanks.

    Thread Starter kitka

    (@kitka)

    I just tried that modification to the class-wc-download-handler.php file but instead of the link going to the protected post (the product), it just tried to download a file with the name of the URL suffix. I don’t know php enough to modify that code to just go to the link instead of attempt to download.

    The product is a post containing information, links and a video. The plugin ‘Pay For Post with WooCommerce’ is what I am using to sell posts.

    I hope there is a way to get it to work.

    Yeah sorry you are right. It doesn’t download the actual file.

    Thread Starter kitka

    (@kitka)

    Just sayin’ – I haven’t solved this issue yet.

    Hi @kitka

    Thanks for posting your comment.

    The plugin ‘Pay For Post with WooCommerce’ is what I am using to sell posts.

    For support regarding the Pay For Post with WooCommerce plugin, we recommend reaching out to the plugin’s dedicated forum where the experts can help you:
    https://www.ads-software.com/support/plugin/woocommerce-pay-per-post/

    While we’re experts on our own products, third-party plugins are best supported by their own developers.

    If you need further help with WooCommerce core, please create a new topic so that the issue/query gets all the attention it deserves, as this thread is closed.

    Cheers

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘File Not Found Go to Shop’ is closed to new replies.