windowskin not working

I made my own windowskin and copied it in the system img folder, replacing the default one and I can't test run my game anymore. It gives me this error:

TypeError
Cannot read property 'expParams' of undefined

Putting back the default windowskin or trying to import it didnt help. How do i get my windowskin to work?
On the Actors tab in the database, check that each actor has a valid class.

(expParams are values that determine the experience curve of a class: the error means that the game has tried to look up EXP data for a non-existent class.)
as said above, just to be more clear:
your error has absolutely nothing to do with the windowskin, which is why changing that back didn't help.

most likely you deleted several classes in the database that were in use by the current default actors.

Original thread: https://forums.rpgmakerweb.com/threads/windowskin-not-working.145488/