Sleep Error

Hey sorry I got one more!

I get cannot read property "subject" of undefined.

I seem to get it when the sleep state is on in a battle, but it won't always happen right away.
Forgot to add this:
Turn off all your plugins and turn them back on one by one to isolate the problem. The order your plugins are in is very important as well.

@fstew123 , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


I've moved this thread to Plugin Support. Thank you.

@fstew123 at first glance of your consollog, I think your plugins arent in the correct
order, might you be able to screenshot your plugin database?
Yes, here they are. Thanks!
Ah, after checking the order on yanfly's site I definitely didn't have them in the right order. it seems to be fixed.. thanks for getting back!
Double-post notice: @fstew123
Moved to: Plugin Support

Sorry! I did it in another post before I saw this. I won't double post moving forward.
99% of issues = the plugin order, if that is correct, one of the notetags or event wrong setup.
otherwise, its something else like a compiitable issue between 1 or more plugins.

but I'm happy it fixed your issue.
try to organize the plugins around this to avoid most issues:

-> main core
-> messages
-> battles
-> game related (save, vehicles etc)
-> miscs
-> utilities

the last one can have them in any order without any issues unless told otherwise
like yanfly, but sometimes, it works better below one plugin creator and not in between.

so read the order correctly so it works on their best 🙂
Thanks it worked!

Original thread: https://forums.rpgmakerweb.com/threads/sleep-error.127088/