Using KTML with ColdFusion 8

In testing our CMS with CF8 I have only found one small issue.  With the editor we licensed of course.  KTML works well with CF8 except for some image and file browsing.  Turns out there is an easy code fix for this however.

You will see an error saying something along the lines of Cannot open Class plugins.modules.image.service.ktml4_mspl_image.  The debugging errors are not accurate as it is a general error if anything goes wrong when calling a function in KTML. After a little poking around I see that there is an error calling one of the functions.  getfileinfo  Turns out CF8 also has a function named getfileinfo and thus the error on CF8 and not CF6 or 7.

To fix this I simply did a search/replace of getfileinfo and changed it to getfileinfoKTML.  Some security preferences may be cached in your browser with the old method name so be sure to clear your cache after you do this.  It is possible they may store the method name in a session as well.

There are three files that will be effected.  ktml4_mspl.image.cfc, ktml4_security.cfc and editimage.js.

Yes, I know the KTML editor is discontinued.  However it works well and you may have many customers using it and if they host at hostmysite or other web hosts you are going to be upgraded to CF8 sooner rather than later.

TweetBacks
Comments
Simon's Gravatar Great post! I'm sure you just saved hours out of my day! Thank you!

I always dread issues with KTML and the imagemagick side of things..
Here's to hoping Adobe fix up KTML a bit!
# Posted By Simon | 9/23/07 11:27 PM
Barbara ONeal's Gravatar Thank you for this post. we just upgraded all of our hosting servers to cf8 and this just suddenly had quit working.
We launch the site to the public tonight. http://www.gnmaa.com
# Posted By Barbara ONeal | 9/26/07 8:26 PM
Russ Hall's Gravatar Thank you for this. We also just upgraded but are still using KTML on some of our old sites. I read this article about a week ago and remembered it when I got the call that it wasn't working this morning. Anyhow, thanks again, you save me a lot of hassle. I don't know how long it would have taken me to prowl that code looking for a solution.
# Posted By Russ Hall | 10/30/07 12:52 PM
Will's Gravatar Thanx so much - saved my life... strangely however - even though the error message has disappeared - the thumbnails are blank... must be someting else still wrong :(
# Posted By Will | 11/10/08 6:45 AM

NAVIGATION

Home
About Me

RSS


Search

Subscribe

Enter your email address to subscribe to this blog.

Recent Entries

New Blog Design
Pre-Conference Training at cf.Objective()
FireFox 3.6 KTML Editor Fix
I am now a part of the Adobe Community Professionals Group
RIAdventure Was a Blas with photos

Recent Comments

submiting a form inside an iframe from outside the iframe
Peter said: I doubt you’re still having this problem over 2 years later, but if anyone else finds this page on t... [More]

FireFox 3.6 KTML Editor Fix
Dario Vargas said: Gracias por publicar la solución a la compatibilidad del KTML a Firefox 3.6 y la solucion al panel d... [More]

Vista Zip Slow and Broken?
betniurbo said: lzCfXK <a href="http://sapiensyckas.com/&...;, [url=http://zynqf... [More]

FireFox 3.6 KTML Editor Fix
Richard said: These fixes have worked on some issues, but any idea why the paragraph button no longer wants to wor... [More]

FireFox 3.6 KTML Editor Fix
joshua said: if I remember right, just change (this.edit.readyState != "complete") to (1 == 0) It is ... [More]

Calendar

Sun Mon Tue Wed Thu Fri Sat
 123456
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28       

Archives By Subject

blogs (31) [RSS]
books (4) [RSS]
Crazy (39) [RSS]
DIY (8) [RSS]
Flex (3) [RSS]
games (10) [RSS]
GRRR (13) [RSS]
Ideas (11) [RSS]
Local (14) [RSS]
LOLpics (2) [RSS]
money (9) [RSS]
music (3) [RSS]
Personal (27) [RSS]
Photos (8) [RSS]
Politics (8) [RSS]
Projects (22) [RSS]
Review (18) [RSS]
RPM (9) [RSS]
Spam (16) [RSS]
Technology (66) [RSS]
Testing (3) [RSS]
TV (15) [RSS]
video (32) [RSS]
Web Dev (217) [RSS]
World of Warcraft (16) [RSS]