MV Yanfly plugin issue (I think), can't target all enemies or all allies

As the title says, my project crashes when I use a skill that targets all allies or all enemies. It crashes whether I set it to all enemies/allies in the database or use the <Target: Target All Foes> note tags from the target core. Targeting single enemies is fine.

This occurs with the default skills that came with MV as well as new ones I've made.
Screenshots below are the console output for the crash as well as my plugin order since I know y'all will ask.
For the plugin load order, there are 2 plugins at the bottom of the list that aren't included in the screenshot, one's a snippet that lets me put target names in skill messages, the other is Mog's battle HUD.
From the error log it looks like there's a typo in code someplace. It could be in an actual plugin or in notetags that you've entered into your project.

You should double check all of your notetags and any plugin parameters that take formulae. If you don't find any mistakes, then turn off all your plugins and see if it works; then start turning them back on one at a time.

Every time you change anything, save your project and start a new game.

Edit: Is there a reason you have that MVCommons plugin? It doesn't look like it's been updated in 4 years, and may well not be compatible with 1.6.2 according to its own thread. It's also the source of your first errors in the log.
From the error log it looks like there's a typo in code someplace. It could be in an actual plugin or in notetags that you've entered into your project.

You should double check all of your notetags and any plugin parameters that take formulae. If you don't find any mistakes, then turn off all your plugins and see if it works; then start turning them back on one at a time.

Every time you change anything, save your project and start a new game.
I believe I've narrowed it down to the skill message snippet I was using, found here: https://forums.rpgmakerweb.com/inde...ase-show-target-name-in-the-battle-log.49472/

When I turn that off, the problem goes away. I've tried moving it up and down the plugin list and the only thing that makes a difference is turning it off completely. The user in another thread that was using this plugin reported a similar issue and doesn't look like a fix was ever forthcoming so I think I'll just go without it, it's not a dealbreaker. Maybe there's another plugin out there that does the same thing.

Edit: Is there a reason you have that MVCommons plugin? It doesn't look like it's been updated in 4 years, and may well not be compatible with 1.6.2 according to its own thread. It's also the source of your first errors in the log.
Ehh...it's there because it's always been there and as far as I know never caused any trouble. If it doesn't do anything I'll get rid of it.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-plugin-issue-i-think-cant-target-all-enemies-or-all-allies.146379/