I'm not sure but based on the error message you should take a look at your head tag and make sure that it is properly closed. It seems to be telling you that either an opening or closing head tag cannot be found. This is just a guess really, if this is not the problem I'm not sure what it would be.