Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

upgrade to CF10 has broken my code

Posted on 2014-04-11
5
Medium Priority
?
185 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:David Williamson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
Gurpreet Singh Randhawa earned 2000 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 16

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:David Williamson
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 16

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:David Williamson
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

609 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