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
Solved

upgrade to CF10 has broken my code

Posted on 2014-04-11
5
177 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 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why data not loading into APPLICATIONS scope (memory) ? 7 49
Coldfusion Error: The toString method was not found 5 74
Fixing Old Legacy Code 1 41
REReplaceNoCase help 1 43
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

856 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