Downloading edit.php
-
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
- The topic ‘Downloading edit.php’ is closed to new replies.