TypeError Cannot read property 'list'

I have a solid event space with the <Click Trigger> plugin and every now and then with one specific (seemingly in this instant) click on the corner of the event space/click in between event spaces shows the error of "TypeError Cannot read property 'list' of undefined"

My first theory was that the game was bugging out thinking I was pressing with some mouse 3 input and didn't know what to do but as I was testing it out sometimes it works and sometimes it doesn't? I'm using a laptop right now so I'm thinking that maybe the touchpad might be screwing up?

My second theory is that since the event starts off with a conditional branch it thinks the switch is off when it isn't? But that doesn't really make any sense, plus I'm using a save to test out that part of the game so for sure it knows the switch is on.

Any super cool game theories y'all got to help me out here?
You should provide a screenshot of the event for us to proofread your code, and a link to the plugin you say you're using.

Without some data to look at, any super cool theories we give you are just guesses 😉
first thing to know is that you focused on the wrong part of the error message.
the important part is the "of undefined", which basically tells you the engine tried to use a reference that does not exist - which is why it is undefined and why any data part of it causes errors.


what kind of data object is missing can only be determined with the full error trace (press F8 on the error message, then go to the console and give us a screenshot of that).

that said, this error either means a wrong plugin configuration, or your event tried to access something after it has been deleted or was never there.

again, a screenshot of the event would help here.
You should provide a screenshot of the event for us to proofread your code, and a link to the plugin you say you're using.
Your Turn to Die_ -Jackleg Partcicipants- - RPG Maker MV 10_20_2022 11_54_27 AM.png


here's the event (just ignore the 'hopefully unused' switch because the error was before I added that. and the plugin i'm using is the YEP_EventClickTrigger plugin.
here's the event
Okay - I don't see any script calls, so I agree with Andar. It's probably a plugin error or conflict.

Follow his instructions to post the full error trace and we'll go from there.
what kind of data object is missing can only be determined with the full error trace (press F8 on the error message, then go to the console and give us a screenshot of that).

chrome-devtools___devtools_bundled_inspector.html_remoteBase=https___chrome-devtools-frontend....png

i've never seen this before so I'm unsure on how to read it exactly.
press F8 on the error message, then go to the console
i've never seen this before so I'm unsure on how to read it exactly.

That is not the Console, it's Elements.
That is not the Console, it's Elements.
Developer Tools - chrome-extension___odlameecjipmbmbejkplpemijjgpljce_index.html 10_20_2022 12...png

my bad, here it is
Looks like Event Click Trigger is attempting to access the command list of an event that doesn't exist.
Looks like Event Click Trigger is attempting to access the command list of an event that doesn't exist.
alright, what's causing it? and how exactly do i stop it from happening?
alright, what's causing it? and how exactly do i stop it from happening?
The fastest way to do this is also going to require some setup, and hopefully these instructions will be understandable enough.

In the console when it crashes, click the underlined text next to Game_Event.list (that says rpg_objects.js 8470). This will take you to a piece of code in the sources tab. Click the line number at 8470 and it should show a blue arrow there; this is a breakpoint. Right click the arrow and you should get "edit breakpoint..." click this and you'll get a small input box. Write "this.page() === undefined" then test play again WITH THE CONSOLE OPEN and it should stop execution at the breakpoint just before it crashes.

Then mouse over "this" in the line it stopped on, and note what the event ID is.
@Trihan I never know that., I should check that next time on the error.

@sanguine1038 how many plugins of yanfly do you use?
maybe usefull to screenshot your plugin database.

as yanfly has a strict order, other plugins can be in between, best ordered
in category yanfly place their list in order.

you can also set "PictureCallCommon" higher or lower if you are able
to click images to do something and cannot read the common event
when clicking on it?
@Trihan I never know that., I should check that next time on the error.

@sanguine1038 how many plugins of yanfly do you use?
maybe usefull to screenshot your plugin database.

as yanfly has a strict order, other plugins can be in between, best ordered
in category yanfly place their list in order.

you can also set "PictureCallCommon" higher or lower if you are able
to click images to do something and cannot read the common event
when clicking on it?
Oh man, conditional breakpoints will change your life. I don't know what I'd do without them.
Yes, confirming your Yanfly plugin order is always a good step. Make sure it conforms to the Yanfly Engine Plugins page.
@sanguine1038 how many plugins of yanfly do you use?
maybe usefull to screenshot your plugin database.
Your Turn to Die_ -Jackleg Partcicipants- - RPG Maker MV 10_20_2022 7_49_07 PM.png

back then i had a problem with lower id images not being covered by higher images and i know it had something to do with PictureCallCommon and GALV_PictureAnims so this is the order that works for me
not entirely sure on your list, but you have 2x "CharacterBusts" ON,
cannot say if it collide to each other or how it is used.

but it not sure if the YEP are in the correct order and "messageBackLog"
seems to be to placed heigher in the list.

check the website or use the updated plugin to see if those are
correct or need to be replaced.

Original thread: https://forums.rpgmakerweb.com/threads/typeerror-cannot-read-property-list.152102/