Solved

upgrade to CF10 has broken my code

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cfpdfform and populate 14 63
Having an issue with NumberFormat 7 58
<cffile cannot delete a file 4 43
dynamic form fields and inserting into database 3 40
PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

20 Experts available now in Live!

Get 1:1 Help Now