Cannot read property 'expParams' of undefined

Hello,

I've been working with Items today and, whilst I don't think I've done anything particularly radical, my game has suddenly started throwing up this error:
1743338292066.png


I haven't been messing around with the scripts or anything like that, just setting up items & skills in the native database and setting notetags for Yanfly's Skill Learn system.

Has anyone encountered this before?
Did you start a new save file or did you try and load a save after installing a new plugin? Are your plugins in the right order?
has nothing to do with saves - this error almost always means that you have deleted a class (which is the only thing using EXPParam) that is still in use on an actor.

that actor will now have an empty class setting, find that actor and assign a valid class to it
To clarify: it can be related to saves, e.g. if you have reduced the maximum classes since making the save. Or plugins, since those can change pretty much anything. But it is more usually because you reduced the maximum number of classes, leaving some actors with a reference to a class that no longer exists.

There are many threads on this site about the "expparams" error. Here are some search results:
E.g. this thread is for MZ but I think all the general advice also applies to MV:
Hi - thanks everyone for replying. I've done some checks and followed Caethyril's advice. Turns out I'd detached some Actors from Classes when I changed the maximum and the engine had a freakout. It's now fixed.

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-expparams-of-undefined.176638/