Strange "not a function" error

Weird.PNG


Weird2.PNG


So after my party uses their normal attack, this error popsup


Spoiler: Plugins
l1.PNG


l2.PNG


l3.PNG


l4.PNG


l5.PNG
two possibilities come to mind: either your project core is an older version (please open the projects rpg_core.js in a text editor, the version is in the title line and should be either 1.5.2 or 1.6.2), or you have incompetible plugins (or yanfly plugins in the wrong order). please post screenshots of your plugin manager to check for the second case.
two possibilities come to mind: either your project core is an older version (please open the projects rpg_core.js in a text editor, the version is in the title line and should be either 1.5.2 or 1.6.2), or you have incompetible plugins (or yanfly plugins in the wrong order). please post screenshots of your plugin manager to check for the second case.

Added the plugins I'm using
The devtools error was corrected in a later version of several yanfly plugins. This is probably coming from an older version of YEP_BattleEngineCore, but actually doesn't indicate what the actual error is, as this error is thrown when other errors are encountered.

Looking at what i can see from the console you posted, it appears your error is that user.actorId() is not a function. Which given the half cut-off error above it in the console, appears to be being caused by an action sequence. You mentioned it happens after your party does their normal attack. Is the enemy also doing a normal attack? Is this check for an actorId on the normal attack sequence?

Enemies don't have an actorId, nor do they have a function to get one, so the error message you're getting is correct. An enemy using a skill that tries to check their actor Id will fail.

Whatever you're using it for, start by using user.isActor() and then check for their Id. This way if the user is an enemy it won't crash. You can also use user.isEnemy() in the same way.

Original thread: https://forums.rpgmakerweb.com/threads/strange-not-a-function-error.120667/