Khas advanced lighting

Hi everyone. I have a problem with the Khas scripts. I have read that it is no longer possible to contact him so I ask here. So, if I set the ambient lighting, the game works perfectly, but if I put the comment "[light torch]" on the torch event, I get the following errors when starting the game.

Spoiler: ERROR
Error.PNG

I have already proceeded, as I read in another thread, to set the render in webgl in the "community_basic" plugin
"of undefined" always means that the engine tries to use a data object that does not exist.

it can be an configuration error, a compatibility error or a few other problems.

does this happen when you select "new game" or "continue game" or in both cases?
what is the version number at the title line of your project's rpg_core.js file? Please open with a text editor to read, do not doubleclick it, it's in the project/js folder.
@Andar it happens both when I start a new game and when I continue one. the project version is 1.6.2

Closing at OP's request.

Original thread: https://forums.rpgmakerweb.com/threads/khas-advanced-lighting.143733/