Please take a screenshot of your console tab (F8 when you get the error, find the Console tab) as it contains a bit more information.
Did you save a game, add a plugin, then resume your saved game? Did you make any changes to your database then resume a saved game? Are you doing a play test or a battle test?
Did you check to see if any of your plugins have prerequisite plugins, and do you have all of those? Did you make any changes to any of your plugins?
Looks to me like one of your actors belongs to a class that no longer exists. Check to make sure the class box is populated on all of your actors. This can happen if an actor belonged to a class that was removed from the database.
Yes, the error is saying that currentClass() is undefined for whatever actor it's checking.
Thanks to all your kind and helpful answers, but I had decided to move all of my project's data to a new one, leaving behind many things that I didn't need and were there because I was too lazy to erase them at the right moment. They piled up and made everything more confusing and prone to bugs. This solved the problem I had and now the project is still going. I'm sorry for not bringing a more specific answer.
Well, thanks again everyone! I hope you're doing well.