Tuesday, November 18, 2008

Upgrading From CF5 to CF8

My company recently upgraded one of our servers from CF5 to CF8 and I thought I would share some of the things (that I have found so far) that you should be aware of if you are thinking about upgrading.

1. CF8 is less forgiving when it comes to sloppy/incorrect code. For example, in CF5 the following returns true:
[plain]<cfif FileExists("D:Inetpub\wwwroot\images\image.gif")>[/plain]
, but in CF8 it returns false. That's because of the missing backslash after the colon. It should be:
[plain]<cfif FileExists("D:\Inetpub\wwwroot\images\image.gif")>[/plain]
As another example, consider this, which will run in CF5:
[plain]<cfquery name="order " datasource="datasource">[/plain]
, but in CF8, you get an error because of the space in the name parameter.
2. I had a CFFTP block that would timeout. The connection would open, but when I tried to upload a file, I would get a timeout error. Increasing the timeout (for both the OPEN and PUTFILE) didn't help. I finally fixed it by adding passive="yes" in the CFFTP tag that did the PUTFILE (OPEN had it already).

That's it for now, but as I run across more, I'll post them.

No comments:

Post a Comment