The error is a bit misleading. The CF compiler tries to parse the code, but does not work due to an unclosed tag / block, so it continues to try to parse to the end of the document, and then it reports an error, since the last thing that was found is a new line that is not closing the tag. which is currently open. So go through the source code and check where you are not closing something. Error before line 31.
it could be something like
<cfif foo eq "Bar"> Still haven't found what I'm looking for.
and then does not have an end tag. Or you might also have a CF style comment
olle source share