You could also try to Shift-Click your ship or shift-click on the ship entry in the Inventory hangar tree on the left side. That resets the cargohold of the ship and you should be able to accept contracts again. Undocking and docking should also work. I have this issue as well consistently. It is a known bug but CCP is not interested in fixing it because the Shift-Click workaround exists.