Update: Seems it may not have been the plugin that caused this issue. I restored the database and files to a date prior to installing the plugin and everything started to work again. So I reinstalled the plugin and everything seems fine again.
I think there was a browser issue as I also got the error on a website that did not have loginpress installed? Odd. But everything seems OK now so please close this thread.