Thank you to Dave! I have installed Dave's updated version of the InfoPanel Professions addon and it is working perfectly without any Lua errors.
Thank you to Xrystal! I have installed the XMage Portal InforPanel addon and that too is now working without Lua errors.
Thank you both for your efforts.