• Resolved masqutti

    (@masqutti)


    Hello!

    So until now everything worked fine, But when we changed host(or possibly something else changed along the way like an updated plugin or so), suddenly our digital downloadable products started to consistently fail. We use the method above for serving the files and host them elsewhere. For some reason, when the file transfer hits exactly 500MB the download stops and the file corrupts. I asked our host support and they said to look into our script. Well. I use woocommerce’s core features for this so I though I’d ask here. Anyone knows about this issue? Files deliver succesfully if they’re below 500MB in size.

    Where to start looking?

    Thank you!
    Toni

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    Is there any kind of error when the downloads fail? And was the host able to find anything in the logs on their end? There should be some sort of trail that shows why these downloads are failing.

    Thread Starter masqutti

    (@masqutti)

    Hello!

    Thanks for the reply! Well host support seems a bit anemic, after I debugged the problem it turned out Xsendfile was not even available for me and and they failed to mention that the module wasn’t available in the first place. 🙂 So woocommerce fell back to force-download -method…

    I reproduced the issue with a basic php chunk by chunk readfile-function, and it happened also without woocommerce scripts so It’s not related to woocommerce or even wordpress. Must be some server-specific settings and I’m waiting an answer from the host’s support.

    The download didn’t give any errors at least on my end, it seems to finish but of course, the resulted zip/file is corrupted as it’s not complete.

    I’ll post an update once I get an answer from my host.. If there is anything related to wocommerce or wp.

    – Toni

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Wow – you’ve made some great progress. Thanks for sharing that, it’s incredibly valuable for the next person struggling with this.

    Best of luck sorting it out further!

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @masqutti

    I’ll post an update once I get an answer from my host.. If there is anything related to wocommerce or wp.

    Although I’m going to mark this thread as resolved as it is not directly WooCommerce related, you can update with more information for future readers.

    Thanks

    Thread Starter masqutti

    (@masqutti)

    Thanks!

    Yep it got solved. My host had an artificial limit on their shared hosting for PHP-calls to cut “infinite looking” scripts from running indefinetly. So the limit was set to 500MB.. They raised the limit higher so it’s better now, but it still cuts larger files and I’ll have to see if there’s anything to be done from my end to improve the situation..

    – Toni

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Glad to hear it – thanks for letting us know!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘X-accel/redirect-X download-method fails after 500MB’ is closed to new replies.