Solved

upgrade to CF10 has broken my code

Posted on 2014-04-11
5
174 Views
Last Modified: 2014-08-07
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?
0
Comment
Question by:theamzngq
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
Gurpreet Singh Randhawa earned 500 total points
ID: 39995034
There is a utility in the cfadmin to validate your code, just if possible run that and see the possible issues. it is called Code analyzer

Not sure what could be the reason for this happening, but the logs could help when you migrated to new server, did you used any kind of patch or just did it manually

Regards
0
 
LVL 15

Expert Comment

by:Gurpreet Singh Randhawa
ID: 40043606
Have you tried it. Let me know If you are facing any issue
0
 
LVL 2

Author Comment

by:theamzngq
ID: 40050667
I will see if I can find the code analyzer and check my code (even though it's been working on CF9 for years)
0
 
LVL 15

Expert Comment

by:Gurpreet Singh Randhawa
ID: 40052585
The thing is new functions have been introduced in ColdFusion 10, so there might be an issue with those, just try code Analyzer and see what you can see
0
 
LVL 2

Author Comment

by:theamzngq
ID: 40247650
sorry for the delay on this issue.  I still haven't had the time to check the code, I needed to get things working so I removed CF10 and put CF9 in place.  Thanks for your help.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now