VX Ace Script Window_Selectable Error

I start a battle then it says this error 🙁

Script 'Window_Selectable' line 61: ZeroDivisionError occured

divided by 0

This is Window_Selectable line 61

def row_max
[(item_max + col_max - 1) / col_max, 1].max
end
Check to make sure there are enemies and they have graphics for them.
Do you have actors in the party?
Is this a test battle or game play?
What scripts do you have?
There has to be something in the code that re-defines #col_max as 0. Or maybe defines it flexible, but the result of calculation is 0 for whatever reason.

If there is a script in your game that uses an object-instance based on Window_Selectable or any class that inherits from it inside battle, it may contain the problem's source. With pure default code I don't think this error could ever happen.

~炬燵あ
Check to make sure there are enemies and they have graphics for them.
Do you have actors in the party?
Is this a test battle or game play?
What scripts do you have?
a script was on that stops battles sorry for wasting your time

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-script-window_selectable-error.146508/