• Resolved maddoctor

    (@maddoctor)


    Hello.
    I’m having a very weird issue, when I go to Woocommerce -> Orders I get an edit.php file download (with 0 size) instead of opening the list of Orders.

    When I go to edit.php?post_type=shop_order it downloads the file. If I go to another page, like edit.php?post_type=shop_order&paged=2 it works fine. If I go to Posts (edit.php), Pages (edit.php?post_type=page) everything works fine as well. Only the main page of Woocommerce orders is giving the download instead of showing the orders.

    There are no errors anywhere in the debug.log, the server error.log or the javascript console. The download happens when I changed PHP versions, when I deleted and recreated the htaccess file (multiple times), when disabling all plugins (except woocommerce) and switching to a default theme. I tried everything I could think of but the problem is still there.

    Curiously, if I open the second page and use filters they work as well. Until I filter orders with the month of February, the current month, then it downloads the file instead of showing the orders of February. This leads me to believe that one (or more) recent orders are causing the problem, the question is how to identify which one.

    Problem started today when I opened wp-admin, and the website was working fine on Friday, which means I’m looking at orders from late Friday and the Weekend as possible culprits. There are 10 orders in that time frame, but other than deleting them (and losing them) is there another way to figure out which one is causing the problem?

    And secondly, if there is indeed a problem with an order, why am I getting a file download instead of an error? This behavior is puzzling

    • This topic was modified 2 years, 9 months ago by maddoctor.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Can you clear your browser cache and check Woocommerce > Orders again to see if that helps? https://wordpress.com/support/browser-issues/#clearing-your-browser-cache

    If the issue still persists, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Thread Starter maddoctor

    (@maddoctor)

    Hello!

    I tried both Chrome and Edge, in normal and incognito mode (it shouldn’t use browser cache when using incognito mode) and the problem was still there. I tried Firefox (fresh install) and the problem is gone there. Also, it works fine on another computer using Chrome or Edge so it’s a local issue and apparently not woocommerce related. That’s a relief.

    In the end I’ll reinstall Chrome and if that also fails do a quick reset to solve it.
    Thanks for your time!

    Hi @maddoctor

    Thanks for letting us know.

    It clearly seems to be a caching issue and I’m glad this could be detected.

    If you have any other questions, please feel free to create a new topic.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Downloading edit.php’ is closed to new replies.