Hello. I am setting up a site for my client, using MEC and Pay by Woocommerce. I had no issues before the recent Woocommerce versions.
It seems when someone tries to purchase an event ticket, after clicking the ‘Checkout’ link, they get a 502 bad gateway.
Looking at my PHP logs, I see this error:
The WC_Order::add_fee function is deprecated since version 3.0. Replace with a new WC_Order_Item_Fee object and add to order with WC_Order::add_item().