TypeError Issue

A TypeError (image four and five) is occurring about half the time I play a certain battle. The battle is troop 48 (image six), and begins when the top enemy is attacked, triggering troop 48's battle event (image six) and summoning troop 14 (image seven). Does anyone know why this is happening? This event has always worked perfectly up until last week, and even now it sometimes works.

fjk6ZIi.png

xIFh68c.png

9DU9WwV.png

b425rtl.png
8OjepBO.png

7baN2jO.png

sWO133H.png
Please play to get the error, then hit F8 and go to the Console tab. Take a screenshot of that and post it here. That gives the full error. Your first screenshot isn't really helpful.

Also post screenshots of your plugin manager, so we can see all the plugins you're using.

Complete guess ... any chance you had an extra enemy in that troop at some stage, then deleted them from the Enemies tab? To check, you can go to your Troops tab and hit Clear, then add the enemies back again.
Please play to get the error, then hit F8 and go to the Console tab. Take a screenshot of that and post it here. That gives the full error. Your first screenshot isn't really helpful.

Also post screenshots of your plugin manager, so we can see all the plugins you're using.

Complete guess ... any chance you had an extra enemy in that troop at some stage, then deleted them from the Enemies tab? To check, you can go to your Troops tab and hit Clear, then add the enemies back again.

Alright, I've uploaded those images too. Just tried clearing the enemies and replacing them, but that didn't work unfortunately.
Your YEP plugins seem to be all over the place. Are they all in the correct order?
@JoelMarler your Yanfly plugins are definately in the wrong order. I spotted several cases of wrong order, so you need to go to yanfly's website and compare your order with the list he has there - they HAVE to be in exactly that order, you can only mix other plugins between them but not change their order.

After you change the order, you need to start a new game - changing the plugin order will make your old savefiles incompatible because some of the plugin data gets stored into your savedgames when playing.
Ok, I'll try that. Thank you @Shaz and @Andar.

I've moved this thread to Plug-In Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/typeerror-issue.109598/