Cookies are disabled so you are redirected back to the picture display view without any count.
And so it cases redirection problems with function header().
A solution is now to enable cookies or otherwise bringing up a suitable error message. For that edit the file ratepic.php and replace row 49 with
redirect_header('displayimage.php?pid='.$pic.'&pos='.(-$pic),2,"Please enable Cookies!");