Why was Matthew Gray Gubler in a cast and now on crutches?

Because he injured his knee cap while filming 500 Days of Summer.