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.
Like this entry? Subscribe to my blog.


Comments (moderation on)
I always dread issues with KTML and the imagemagick side of things..
Here's to hoping Adobe fix up KTML a bit!
We launch the site to the public tonight. http://www.gnmaa.com