Now I know what can cause your issue - did you upgraded K2 to v.2.7? If yes - please upgrade also at least the html/com_k2 directory in your template, because K2 v.2.7 have changed modal dialogs engine and now it is working in a different way with data-k2-modal attributes.