Unusable database slots

I encountered a strange issue today that I can't figure out. In my game's database, certain slots seem to just not work. In particular, I encountered the issue with my Weapons database where weapons in ID slots 18, 19, and 20 just don't work properly. If I try to give items in those slots, they don't actually get added to the inventory. There's probably more broken slots but I haven't bothered to test further than 30. Any ideas what could be causing this behavior, or am I going to have to start disabling plugins until I figure out what's wrong?

I've tried to clear the data from these slots, I've copy-pasted working items into them, I've even tried manually editing the json to make sure there wasn't like a missing block of code or something. VisuStella's Debugger plugin can see these slots and displays the name/icon correctly, but if I press +1 to add it to my inventory it just doesn't and the count stays at 0.
database-issues.png
I doubt that this has anything to do with the database, more likely with some plugins.

To test that, please make a new project without any plugins, create weapons in those slots and add them by event command, then check again.
Yeah, that's sort of what I assumed too. And so begins the dreaded process of elimination. The database itself seems fine so it's gotta be a plugin.

Edit: Found the culprit. A plugin I had for currencies was scanning the databases for items, weapons, and armor instead of just items and was ignoring it's own <currency> notetag so it was incorrectly thinking my weapons without a currency tag were my currency. Found a workaround by changing the item IDs for my currency items to a number way down the list so I don't have to worry about it anymore.
Have you tried adding the weapons via the Console tab of the dev tools window (F8 or F12 during playtest), while on the pause menu (not the inventory screen)? E.g.
JavaScript:
$gameParty.gainItem($dataWeapons[18], 5);
Then go to the inventory to check how many you have.

If you just add them on the inventory screen, the displayed count may not update immediately. And if you only test via map events, it is possible a forgotten Parallel event is repeating in the background, removing those weapons every frame.

Original thread: https://forums.rpgmakerweb.com/threads/unusable-database-slots.171754/