ScreenOrientation plugin gives runtime error

I solved this in this thread: