'cannot read property height of undefined'

Hello all,

I'm running vanilla MV without any plugins. I got the programme off steam and it's up to date. I'm trying to get enemy troupes to pop up in a specified region of a map. So far so good, but whenever a troupe is encountered the message 'cannot read property height of undefined' shows up, and the game crashes.

Can anyone help me out? Many thanks.
"of undefined" means that you are missing an object in your data structure.
There are several ways to cause this, but most likely the troop contains an enemy that has been deleted from your database.

if you delete an enemy without checking if that enemy is used in a troop, the picture and name will vanish from the troop (because they no longer exist), but the reference to the enemy will not - the troop will now contain an unidentified reference.
To solve this, delete everything from the troop and then add the enemies again.

There are a few other possible causes, but if that is your own project and not yet using plugins, then deleting parts of the database that are still needed is the only way to get such an error.
Alright, I got it fixed. Thanks!
I think I ran into something like this before so I'm glad I ran into this post and got to learn something new!

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-height-of-undefined.134190/