Solved

upgrade to CF10 has broken my code

Posted on 2014-04-11
5
181 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
[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 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 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: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 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: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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

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…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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