Error With Moghunter's Theatrhythm Plugin

I've set up all of my required notetags and image files right, but I still get this error. MogError.png

How do I fix it?
Looks like a conflict with Yep_BattleBGMControl. Mog_Theatrhythm works as a pseudo battle scene. You can edit the Yanfly plugin to only works inside battles.

Look for this line inside the BattleBGMControl:
Code:
 var troop = $dataTroops[$gameTroop._troopId];
  if (troop.specificBgm.name === undefined) {

And add it BEFORE it:
Code:
 if (!$gameParty.inBattle()) return;

Perharps that will work.
@lokirafael That fixed the errors (thanks!) but now there is no music during the minigame... How do I set music for it?
@lokirafael That fixed the errors (thanks!) but now there is no music during the minigame...

My bad. Try to change

Code:
 if (troop.specificBgm.name === undefined) {
to:
Code:
 if (troop.specificBgm.name === undefined) && (!$gameParty.inBattle())) {

And remove the last piece of code I gave.
@lokirafael Thank you- that changed fixed it perfectly!
Bug found! Fixed already in chat. Just a small change to Mog plugin.

Original thread: https://forums.rpgmakerweb.com/threads/error-with-moghunters-theatrhythm-plugin.93356/