Music conditional not working on one map

I have music playing in localized areas on some of my maps, and for some reason one of them doesn't work. I'm calling a common event to fade out the current background music and then start the new one. First I check that the music isn't playing, so it doesn't repeatedly fade out every time the player takes a step. Here is the common event:
MusicConditional.png

This has all worked perfectly fine every time I've used it, but on one map it doesn't for some reason. When I call the common event I get this error:
Error.png

I can't find anything unusual or different about the map I'm using it on that could possibly cause this error--it doesn't help that I don't really understand what the error is saying. Does anyone have any ideas?
Should it be ._name?
Hello!

This is correct:
AudioManager._currentBgm.name
But if no music is playing the name object will not exist.

Try this:
AudioManager.isCurrentBgm({name:"elven-forest"})

Return bolean (True/False) or "null"

Example:
Code:
◆If:Script:!AudioManager.isCurrentBgm({name:"elven-forest"})
  ◆
:End

The exclamation point is equivalent to "Not equal".
When I try this, the game doesn't crash, but for some reason it's restarting the song every time the player walks on the designated tile, even when that music is already playing. It works properly on other maps, though. Honestly, I have no idea what could be causing this, because there already is background music on the problematic map. There's no difference.
The "IF" I showed is just to check which song is playing, problem, that was your request, so I didn't detail it.

If you don't use "Else" you'll probably get this one.

Events in Parallel Process are always looping, at this point I can't recreate your system to understand exactly what you need, but in the middle of the week I check.

Good luck
The reason I have it in parallel process is so the player will be able to keep moving as the music transitions. But then the switch turns off right away so it doesn't continually run. When the player moves to a new tile, it should then run the process again, check that the new music is playing and--if it is--simply turn off the switch without fading out again. This works properly on all my maps except for one. And I can't find any noticeable difference that would cause this.
Anyone able to help with this?
You should post a screenshot of the complete event from a map where this is working, and the complete event that isn't working, and describe again what is currently wrong (you've had a few different things wrong, let us know the current state of affairs).

Original thread: https://forums.rpgmakerweb.com/threads/music-conditional-not-working-on-one-map.139902/