Having trouble with Yanfly CTB

Spoiler: error code
TypeError: Cannot read property 'visible' of undefined
at Window_CTBIcon.destinationY (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/YEP_X_BattleSysCTB.js:2458:35)
at Window_CTBIcon.updatePositionY (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/YEP_X_BattleSysCTB.js:2472:23)
at Window_CTBIcon.update (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/YEP_X_BattleSysCTB.js:2208:10)
at file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/rpg_scenes.js:112:19
at Array.forEach (native)
at Scene_Menu.Scene_Base.updateChildren (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/rpg_scenes.js:110:19)
at Scene_Menu.Scene_Base.update (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/rpg_scenes.js:42:10)
at Scene_Menu.Scene_Base.update (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/SRD_SuperToolsEngine.js:2568:23)
at Function.SceneManager.updateScene (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/rpg_managers.js:1829:25)
at Function.SceneManager.updateMainNoFpsSynch (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/YEP_FpsSynchOption.js:128:10)
at Function.SceneManager.updateMain (file:///C:/Users/Wil/MEGA/ODAF/ODAFMV/js/plugins/YEP_FpsSynchOption.js:121:12)

Has anyone else encountered this error? I only get it when using CTB and showing the turn order. If the option to show the turn order is off, I do not get the error.

Also this error only occurs when you try to open the menu.
can you tell us the exact versions of both the project's core files and the ctb-plugin?

Yanfly has discontinued support for that plugin a while ago, so most probably it will no longer work with newer core versions...
I can say, to all the plugins I'm using (which is a lot of Yanfly's) that the CTB does work with many current plugins. I don't know if it works with ALL of them, but certainly with a bunch.

Either way, to the OP, what are all your plugins? Can you screenshot all of them? The order often times can matter. Are they all up to date? Are you using MV 1.4?

Original thread: https://forums.rpgmakerweb.com/threads/having-trouble-with-yanfly-ctb.78384/