MV [Solved] Olivia_EquipSetBonuses error

So, I tried to update my equip sets to be per character rather than global. When this happened, this error popped up.

JavaScript:
Olivia_AntiPlayerStress.js:331 TypeError: Cannot read property '1' of undefined
    at Game_Actor.<computed> [as makeEquipSetBonusStateIDs] (Olivia_EquipSetBonuses.js:913)
    at Game_Actor.<computed>.<computed> [as refreshEquipSetBonuses] (Olivia_EquipSetBonuses.js:913)
    at Game_Actor.<computed>.<computed> [as releaseUnequippableItems] (Olivia_EquipSetBonuses.js:913)
    at Game_Actor.initEquips (YEP_EquipCore.js:407)
    at Game_Actor.setup (rpg_objects.js:3443)
    at Game_Actor.setup (YEP_BaseParamControl.js:1041)
    at Game_Actor.setup (YEP_ClassChangeCore.js:586)
    at Game_Actor.setup (YEP_ExtraParamFormula.js:768)
    at Game_Actor.setup (YEP_SpecialParamFormula.js:815)
    at Game_Actor.setup (Arty_HealOverTime.js:179)
SceneManager.catchException @ Olivia_AntiPlayerStress.js:331

Not really sure what this means, but I am sure I inputted everything correctly.

I did recently update some of the sets from one single word to two words. So, like "Beginner" to "Beginner Knight". Could this have anything to do with it? I'm going to check, just to be sure. Ill report back with results.

Nope, that didnt do anything.
Do any of your actors start with an equip thats part of a set?

If you reverted the changes back to what they were before the error message, it could be due to some other change in the database, a missing state or equip.

I'd also check all the Passive States for each piece bonus of each set.
Do any of your actors start with an equip thats part of a set?

They all do. Beginner Weapons.

I'd also check all the Passive States for each piece bonus of each set.

Thats 20 bonuses.

I have 33 sets.

that's 660 I need to check. I would rather not. Maybe as a last resort.

Plus, I tried to use a fresh plugin and it still throws the same error. So, it can't be that
Usually when the error contains "Cannot read property 'X' of undefined" the editor is trying to read an entry in the database that was deleted. If you change the maximum value of a section of the database, items, for example, and an item gets removed this way, but is still in use somewhere, it will return this kind of error.

Have you made any changes to any database limits? I am also thinking this same concept could apply to the sets themselves. Something is trying to access a set that no longer exists.
Usually when the error contains "Cannot read property 'X' of undefined" the editor is trying to read an entry in the database that was deleted. If you change the maximum value of a section of the database, items, for example, and an item gets removed this way, but is still in use somewhere, it will return this kind of error.

Have you made any changes to any database limits? I am also thinking this same concept could apply to the sets themselves. Something is trying to access a set that no longer exists.
Well, yes, for sets. What I did was copy sets and change the name and change them according to the person obtaining the set. I also moved them up or down the list itself.

So before, everyone would share a set. So, the Beginner weapons/armor for any character had the Beginner Set. But everyone uses different weapons/armor. So, Harold would have the Knight Set while Marsha would have the Mage Set instead of them both having the Beginner set.

Might this have anything to do with it? Will i need to repopulate the data, by hand rather than copy and paste?
Sounds like something is trying to reference some old piece of data.

I guessed the passive states because of the second line in the error code.
So I narrowed it down to Yanfly Core, Yanfly Item Core and Oliva's plugin. No idea whats happening since they played nicely before. Just having these three on causes the error.

Tried it on a new game and it works fine. Something is clashing. Not exactly sure what it is.
Just having these three on causes the error.
So keep going, see if there's a combination of just two that causes the error - does it work in your current project if you only have the Olivia plugin enabled?

It's unlikely that this particular error is from a plugin conflict. Especially since Olivia's page states her plugin was designed to be compatible with the Yanfly ones you list, so if you've put them in the proper order there ought to be about a 0% chance of that.

As you were told above, getting an error to "undefined" means your game is trying to interact with a database entry that doesn't exist (in this case, likely an item or a state). Are you using any of the notetags that change the actor's sprite or portrait when they have a set equipped? It might also throw that error if you're trying to turn them into a graphic that doesn't have that name in your image directory.

In your original post, you said you "tried to update my equip sets to be per character rather than global" - what does that even mean? I don't see anything in the plugin documentation that makes that statement make sense to me. There's nothing in there that makes sets only work for specific actors, if that's what you're saying.
I actually think i know where the conflict lies. I have weapons at the VERY bottom of my weapon list that reference the old equipment sets. I don't have time rn to fix it, test it and report back, but i will tomorrow.

I think i finally fixed it. Fingers crossed.

Sorry for being a pain in the ass, it's just frustrating because I keep going round and round and pisses me off when it's something super simple like this.

Will definitely update this post tomorrow with my progress on the issue.

Edit: Yep, that did it. Thank you @ThreeSixNine and @ATT_Turan for the help. Was my fault. I feel dumb. LMAO. Marking as solved and reporting to be closed.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/solved-olivia_equipsetbonuses-error.139465/