[WooCommerce] Can't access some order info on front-end

I'm getting an "Invalid order" error when I try to access some of the orders on the front-end, but not for all. Can you help me debug that issue?