Errors when saving

Hello everyone.

Ive been playtesting my game, but have run into an issue. When I attempt to save, I get the error:
this._states.contains is not a function.
When I try to open the console after this error, nothing pops up.

After some reading around, I decided to play through my game from the start (i had gotten the error after jumping ahead through the story and attempting to save there). When I got to where I was and tried to save, I got a different error:
Cannot read property '1' of undefined.

I was using YEP_save core for my save files, and when I turned it off, I still got the same error. How do I resolve this so I can continue playtesting?

(images attached below)
View attachment 353910View attachment 353911
If you google that error I think it's because your game is referencing a database object that you've deleted, or you have some plugin configuration problem or a plugin tries referencing something that doesn't exist.
The two error messages are two completely different situations.

"is not a function" is a problem in code that means one plugin is missing a prerequisite, is on the wrong order or the prerequisite was not yet installed when the current game was started.
That is because a lot of plugins need to store their data and sometimes even part of their code into the savefile, and adding or removing a plugin can always make older savefiles incompatible.

So that problem might (or might not) have been solved by starting a new game.

However skipping ahead by cheat item is something commonly done and will not cause problems as long as you using only event commands for that process - for example make a gate to a cheat map near the starting position (remove that event before deployment), and on the cheat map have a shop, an unlimited gold chest, an EXP chest and transfer to all main maps stored)

"of undefined" on the other hand is a data problem - the engine tried to access a data object that does not exist. It may be caused by an incompatible savefile (see above), but most likely it is either a wrong plugin configuration or a missing database entry (or both if the plugin requires an item that has not yet been added to the database).

unfortunately the images are not found for me, so I can't give more detailed analysis of the causes - the important image for this would be the console error trace, not only the main line of the regular error screen.
EDIT: and screenshots of your entire plugin manager would be helpful as well, to check if for example your yanfly plugins are in the correct order.

Original thread: https://forums.rpgmakerweb.com/threads/errors-when-saving.181230/