Cannot read property "setObject" of undefined

I got a big thing of errors after adding a new equipment type (I haven't added one in since the creation of the game until now)
When i selected the new equipment the game instantly had this error pop up, I'm not sure if its a RPG Maker MV thing or a plugin thing, I have a multitude of the yanfly's complete set activated, only about 20-30 or so though.
Any time you see something about undefined in your error, it means the game is trying to use a thing that doesn't exist.

That most commonly comes from you deleting something in the database but leaving references to it in your game. It can also result from plugin conflicts, although nothing in the error stack there is referencing any plugin files.

Did you start a new game after changing your equipment types? If you have that many Yanfly plugins, you should double check they're all in the order listed on the YEP library page.
Hi ZCSully! +1 to all that ATT_Turan said. Do you also mind walking through your processing of adding the new equipment type? This can be tricky and after taking a quick glance at the source code, this process can be ripe for potential errors.
Hi, thanks for responding so quick guys, so basically all I did was go to the system database and changed the maximum equipment type to 6 and named it Blessings, I loaded in my current save and it crashed, I didn’t think to try a brand new save and when I clicked Blessings this time it did not crash so I think it was just a matter of it not recognizing the type because it’s a pre existing save file.
Yes, when you change anything in your database or plugins it will never work with an existing save.

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