I copied the site to the staging version and deactivated plugins until it worked. Sorry I didn’t do that before asking for assistance.
The plugin that is causing the problem is a custom plugin created by a previous manager of the site I think it is designed poorly and that the error has nothing to do with your plugin.
Thanks for your assistance but I think I just need to get rid that plaugin.