I am not a ColdFusion coder. Doing a favor for a friend who ported his CF site from a Windows server to Unix on GoDaddy.
Site is displaying error:
Cannot find CFML template for custom tag jstk. ColdFusion
attempted looking in the tree of installed custom tags but did not
find a custom tag with this name.
The site as I found it has at document root /CustomTags with the jstk.cfm file and a set of files in cf_jstk
My Googling located this:
You must store custom tag pages in any one of the following:
The same directory as the calling page;
The cfusion\CustomTags directory;
A subdirectory of the cfusion\CustomTags directory;
A directory that you specify in the ColdFusion Administrator
So I have:
- Tried creating placing /CustomTags in /cfusion/CustomTags
- Tried copying /cfusion/CustomTags to above document root
- Tried copying jstk.cfm and subfolders into same directory as calling file(index.cfm)
Update: Per GoDaddy support I have also tried adding the following to no effect: <cfmodule template="CustomTags/jstk.cfm">
Can any one give me some tips on this or should I just tell my guy to look for a CF coder?
Thanks!
I don’t know how GoDaddy is setup, so as a quick test, please do the following:
Create file
test.cfmin the webroot with contents:Create file
testtag.cfmin the webroot with contents:Then in a browser visit the test.cfm page.
You should get two debug dumps, followed by the ‘test’; this will confirm that custom tags in general are working.
If that works move the
testtag.cfmto the CustomTags directory, and see if you get the same behaviour or an error.If this produces an error, for CF8 and above, you can add
<cfset This.CustomTagPaths = "/CustomTags" />inside theApplication.cfcfile (assuming there is a App cfc and not anApplication.cfm) to ensure that directory is checked for tags.It is possible to convert Application.cfm to Application.cfc – how easy this is depends on how complex the code is in there – might be something you could figure out, or might need an experienced CF dev, it depends.
Depending on the outcome of this, we can attempt to debug why the
jstktag isn’t working (unless one of the above solves it).