RPG Maker MZ projects eventually give me an error

For some reason my projects in MZ eventually give me this error, I want to know why, and what is causing it.

Why.png


This is what the console says.

Why2.png
The only thing I can find is that "expParams" is linked to the classes level up calculation... that 2nd screenshot isn't helpful though, you need to click on the Console tab and post a pic of that for the juicy bits of the error
This is what is says. I want to know how to fix it. I don't understand why I am getting the error. It happens even with no plugins active.
Error1.png
ErrPart2.png
Are your project's core scripts fully up to date?
As far as I know. I checked it, and it seems to be.
What kind of settings do you have for your classes, because its triggering when its trying to setup the EXP information
1598383975603.png


mainly wonderinf if something is wrong with the EXP Curve in the "General Settings" section
These are the settings.
Classes.png
OK... that looks fine, umm, what are you dong at the moment the crash occurs? is it when a character gains a level, on game startup, after a single battle when the EXP is given?
It happens right at the start of the game before the title, but the weird thing is it works fine at first.
I replicated it:

your character, or one of them is trying to use a class that you have erased from the database it would seem

I made a new class, set actor 1 to that class, and then removed it by changing the max classes -erasing it from the database

as soon as I started the game it crashed...

SO, in order to fix it check all your characters and make sure they have a properly assigned class and then try testing, even if it says they have a class, click on the class tab in each characters setup page to make sure its not bugging out
1598385130615.png


in that pics instance, mine is bugged cause of the class I was using being removed
Once the error happens, does the project ever start working again? Have you checked the project's data/Classes.json file (e.g. in Notepad) to see if it's been erased? If it has, check that nothing is trying to back up or sync your project while you're working on it.
That could be a possibility too. I don't use any kind of cloud backup or anything that would/could sync my files, so I never think of that kind of thing, lol
@Ahuramazda Thank you! I was unaware I made that silly mistake like that.
@caethyril I'll make sure of that. Thank you.
Glad to assist! 😀

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-projects-eventually-give-me-an-error.126073/