Protests have erupted in Pakistan and Afghanistan in recent weeks in anticipation of the film 's release and after the reprinting of cartoons of the Prophet Muhammad in Danish newspapers .