I am in the process of migrating a working application (working for years now) from a CF9 server to a CF10 server. I update CF10 to the latest update, but now my application has weird errors all over the place. Many of them have to do with what seems to be issues with line feeds and comments?! For example, I have a page that has a comment line that looks like this:
<!--- add error message if the end date is before the start date --->
with a line feed above and below it. Worked perfectly in CF9, but now it throws "invalid CFML construct found" If I remove that comment line, put, & refresh, I get "context validation error for the cfif tag". What?! Again, this is code that is currently working on a live production server. If I remove ALL SPACES AND LINES within 3 or so lines of where that comment was, it works perfectly. Again, WTF!?!?!? I can't even add a simple line feed to keep my code "human readable" without getting the cfif context error.
I'm completely baffled, because most of the other pages work just fine, and there are comments and line feeds and spaces all over the freaking place. I though that maybe some special characters snuck in there, but no matter what I try to add (just in that one place, mind you), it won't run without throwing an error.
Along the same lines, it also appears that CF10 doesn't allow single pound signs in a .cfm page even if they're not inside a <cfoutput>. Totally new to me. In case you think I'm a clueless newb, I've been professionally writing CF sites for over 10 years (that doesn't guarantee that I'm not an idiot, of course). I'm using Dreamweaver as my editor, as I have for the last 10+ years.
Can someone please shed some light? Did CF10 just get super crazy picky? I did enable the security profile when installing cause I thought it would be a good idea; could that be related to this unexplainable weirdness?