AttributeError: module '' has no attribute 'get_data'

I keep getting this error when trying to login. Did anyone else face similar issues or have a solution for this?

This happened after restoring and I solved this by simply updating to the latest version and removing all customization I had done to the core. I hope this helps someone.