The issue was actually related to the KnownBots plugin where the new version of the plugin only worked with XF2.3 but the creator didn't mention this. Downgrading the plugin fixed the issue.
Thanks for this, I had the same problem but it was with DBTech's (DragonByte Tech) eCommerce Platform.
Literally the same error. I fixed it in the same way and my forum is fixed now.