MV Cannot read property 'split' of undefined (Yanfly ItemCore error?)

I keep getting this error every time I click on the "Back" part of the item inventory in my game.

1612630877035.png


The problem in the game:

1612631275249.png


My plugin manager:

1612630954641.png


1612631015957.png


Any help would be great! Starting a new game still causes the error! My rpg maker has been updated to 1.6.2 and as far as I know all my plugins have been updated to their latest versions as well
your yanfly plugins are in the wrong order.

please rearrange them into exactly the order they are on yanfly's website, top to bottom.
then start a new playtest game (the reordering will make all older savefiles incompatible).

if that does not solve the problem, we'll need screenshots of the error and the plugin manager after that reordering.
Oddly enough, it's worse now - instead of just the Back button throwing up the error, clicking on "Item" in the submenu throws it up

The error:

1612652074850.png



The part that causes the error: (same menu as the previous one I posted, only it gets the error before I even reach the "Back" part)

1612652289935.png


All my plugins (including the ones that aren't Yanfly's just in case it's something in the others, too)

1612652329990.png


1612652368149.png


1612652531098.png


1612652574023.png


Just editing this to add that I turned off "Permanent States" in case that's the one not making things work, and it still has the same error
you are missing item data.

If this happens even with a new game playtest, then you have deleted items from the database that one of the plugins requires - so you need to either configure the plugin correctly or add the missing items to the database.
If this happens with continuing a savefile, then you need to delete that savefile because it contains references to items that have been deleted from the database.
you are missing item data.

If this happens even with a new game playtest, then you have deleted items from the database that one of the plugins requires - so you need to either configure the plugin correctly or add the missing items to the database.
If this happens with continuing a savefile, then you need to delete that savefile because it contains references to items that have been deleted from the database.

I haven't deleted any items, which is why I was stumped. At that point in the game there isn't any item that would be required to pass that stage, either.

Adding/buying any new item fixes the error, but then the old error comes back again - clicking on the Back button throws up the bug in the first post I made. I think that the system considers the Back button an item, which is why it thinks it is undefined.

I looked into the ItemCore js and added a condition not to show an item if the system considers it "undefined", since that's the main problem. This fix works so far - the Back button works as intended, and clicking on it is not causing the errors anymore - I am hoping this doesn't affect anything else moving forward, lol.

Here's the code I added. The errors are because of infoTextTop and infoTextBottom, so that's where I applied the conditions to - InfoTextTop and InfoTextBottom are ItemCore lunatic mode notetags (I didn't add this notetag in any part of my database so none of my items are calling for this) and I just basically nullified their use as I won't be needing them.

1612655983750.png

Thank you for helping me pin this down!! I spent all night worrying about this, haha
Moved to: Plugin Support

The error is saying that item.infoTextTop does not exist so it sounds like you're missing something in the notes of one of your items.

As a test, I'd remove the mod you made, then immediately after that line, output item.name or item.id to the console. Play with the console on and trigger the error. The last item output to the console will be the one that's caused the issue, and you can take a closer look.

While your mod may stop the error occurring, making mods to scripts without fully investigating the cause is risky. I'm sure Yanfly hit the 'back' button many times while testing this plugin before release 😉
So I just went through my items as you suggested and couldn't find the error from them - I really think it is the Back button that's screwing up things here. Not sure how this happened to me, but the system thinks that the Back button is an item, but since that's not in my item database it thinks I had deleted it, which is why it makes the error when it shows up on my item list.

Gonna keep testing anyway, I have a full backup of everything prior, so I can always revert if I hit something else. Thanks again
If you want to zip up your project and load it up somewhere and send me a download link, I can take a look at it for you. Remove any mods and make it super easy for me to get the error within 30 seconds of starting a new game (this might mean making a new map where the player begins and adding one event that will set up everything I need).

I really doubt the script things the back button is an item.
You're very kind, thank you! I'll send you a DM by early tomorrow!
I am going away for a few days tomorrow morning. I only have until about 6 hours from now that I can look at it for you. If it takes longer than that, I won't be able to download it until next weekend.
I almost wonder if it's a conflict with another plugin. Though I'm not using every plugin shown in the screenshot, I'm using Item Core myself and have no issues with it.
I haven't deleted any items, which is why I was stumped
I specifically wrote that there are two ways to get the error, and deleting items was only one way.

The other way is that the plugin is configured to require you to add some data, and you have neither added the data required by the plugin nor reconfigured the plugin to not need that data.

Several of Yanfly's items are notorious for setting defaults that are not expected by a new user, which is one of the many reasons why we always say that you have to configure all plugins that you use.

Have you gone through every setting of the plugin and checked if that setting is exactly what you want?
For example I can't count how many people have posted in this forum about equipment having the wrong values to add to the actors, because they forgot to disable the "random value" setting in exactly the item_core plugin that you have problems with.

You CANNOT ignore the plugin settings - if you don't know what a setting does then you need to check it and learn that before it breaks your game project.

So please follow Shaz advice above to learn which item is missing data and solve that problem instead of removing its error message. If your car has a lamp to report an oil problem, do you change the oil or do you paint black over the lamp to hide the warning until your engine breaks down?
LOLOLOLOL!!!!!

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-split-of-undefined-yanfly-itemcore-error.133108/