Thank you for your help Zubair. I found the plugin causing the issue. It was updated recently and that seemed to trigger the error.
I’m having an issue with WooCommerce Analytics not sending the reports. It was working fine last week but now it doesn’t work at all. I’ve checked the WP Mail Logging and it’s not generating an email so it appears to be an issue with Analytics. Do you have any suggestions for a fix?
Thank you iClyde. I just added it into Pastebin. Just let me know if I can do anything else to help.