Type Error Cannot read property 'isOnMessage' of null when battle testing.

Hello, I was trying to battle test my game on RMMZ version 1.7.0 and I received the Type Error Cannot read property 'isOnMessage' of null and I am not sure how to fix it or really where to check to see what's wrong. I didn't really make much changes to things so I'm not sure what went wrong. I tried turning off all of my plugins I had on and that didn't work. Does anyone know how to fix this or know at least where to check to find out why this error keeps showing up when battle testing?

Thanks.
First, Battletest is NOT a safe testing as soon as you use even one battle plugin.
ALWAYS start a playtest and test a battle in a new game to check for errors.

That is because the database battletest speeds up launching the battle by skipping most of the regular game initialisation, and a lot of plugins cease to function when doing that.

Second, the key to your error message is the "of null", which basically means the engine tried to access data that does not exist - either because a plugin had a wrong configuration, because you loaded an incompatible old savefile (not in battletest obviously) or because the computer needed a database object that had been deleted. For example if your actor is equipped with a weapon that had been deleted from the database or so on.
Does it show up in a battle in a playtest? Or just the battle test?

Press F8 and go to the Console tab, post a screenshot of the full error trace.
when I playtest, the battle is fine (so far, I only tested with 2 of the 4 characters). It only shows up when doing the battle test in the settings and as I said before, I turned off all of my plugins when I battle tested and it still won't work and yet when I playtest, everything is normal so I'm not sure what the issue is. I may just fore go battle testing and just playtest and create a battle anyways.

Does it show up in a battle in a playtest? Or just the battle test?

Press F8 and go to the Console tab, post a screenshot of the full error trace.
I just tried the F8 method and found it's one of my plugins that needs an update. This is the full message:
CGMZ_Core.js:185 Warning! Out of date CGMZ Plugin(s) found:
(anonymous) @ CGMZ_Core.js:185
CGMZ_Core.js:192 CGMZ Core had a local version of 1.7.1 but a server version of 1.13.0
You can download an update from https://www.caspergaming.com/plugins/cgmz/core/
(anonymous) @ CGMZ_Core.js:192
CGMZ_Core.js:185 Warning! Out of date CGMZ Plugin(s) found:
(anonymous) @ CGMZ_Core.js:185
CGMZ_Core.js:192 CGMZ Core had a local version of 1.7.1 but a server version of 1.13.0
You can download an update from https://www.caspergaming.com/plugins/cgmz/core/
(anonymous) @ CGMZ_Core.js:192
rmmz_managers.js:2036 TypeError: Cannot read property 'isOnMessage' of null
at Window_Message.hasNoMessageToShow (EliMZ_Book.js:2731)
at Window_Message.terminateMessage (EliMZ_Book.js:2725)
at Window_Message.updateInput (rmmz_windows.js:4940)
at Window_Message.update (rmmz_windows.js:4840)
at WindowLayer.update (rmmz_core.js:4287)
at Scene_Battle.Scene_Base.updateChildren (rmmz_scenes.js:129)
at Scene_Battle.Scene_Base.update (rmmz_scenes.js:52)
at Scene_Battle.update (rmmz_scenes.js:2984)
at Function.SceneManager.updateScene (rmmz_managers.js:2103)
at Function.SceneManager.updateMain (rmmz_managers.js:2063)
SceneManager.catchNormalError @ rmmz_managers.js:2036
DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi.js.map: System error: net::ERR_FILE_NOT_FOUND

so I figured out what it was: my CGMZ Core was out of date (plugin) so I downloaded the latest one and I deleted the EliMZ book and core plugins and now it works fine -_-. Thank you for helping me figure this out even though it was as simple as using the console (I legit forgot the button to press to bring it up).
Then you did not, in fact, turn off all your plugins before 😛

Or you didn't save your project after doing so.

It's impossible for a plugin to be loaded and produce anything in the console if it's turned off in the plugin manager.

Glad you got it figured out.
rpg bug.png

Hi everyone. Turns out i have a similar problem. But i don't know which plugin i'm supposed to update and where. A little help please?
@Uber_Gouber Your problem is not similar. It's an entirely different error message than the OP has - that's what's known as thread hijacking.

You should start your own thread if you need more help; but the error message doesn't say anything about a plugin. It says there's something in your game that's referencing Map 25, but there isn't actually a Map 25.
@Uber_Gouber Please do not post disruptively. This includes, but is not limited to: thread hijacking (posting in another person's thread with your own questions/resources that leads the focus away from the original topic and onto you). You may review the rules here and we do highly welcome you to open another thread as your issue may be more unique from this one than you think!
Hello again. Sorry if it seemed off topic. I haven't use RPG Maker since months so i'm a bit lost. However, i really thought it was similar since we got the same message : "DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi.js.map: System error: net::ERR_FILE_NOT_FOUND"

Sorry for the confusion, i'll start my own topic.
i really thought it was similar since we got the same message : "DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi.js.map:
I understand - every RPG Maker game has that. It's just a warning - see the warning exclamation mark, and it's highlighted yellow. That doesn't interfere with your game running.

The red X and red highlighted text with the word error is the error that's causing a crash.
we got the same message
actually you will always get the sourcemap warning, and it will never have anything to do with your game.
The sourcemap files are needed for a special bughunting tool, and that tool is not supported by the default RM - which is why those files are never created.
But there is no need for them either because you are not supposed to use that tool for bughunting, the RM use the console for a trace output instead.
Which is also why it is a yellow warning and not a red error message.

Original thread: https://forums.rpgmakerweb.com/threads/type-error-cannot-read-property-isonmessage-of-null-when-battle-testing.162229/