ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old November 10th, 2003, 08:59 PM
EHunt7 EHunt7 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 EHunt7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Custom Tag Problems

I have recently moved my web site from a CF5 server to a CFMX server (shared hosting). The site was working fine on CF5. Now when my web page calls a Custom Tag I receive the following error:

Cannot find CFML template for custom tag cartweaver. ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name.
The error occurred on line 22.

I have my custom tags in the same subdirectory as when the site was on the CF5 server. Also, I have tried moving the custom tag to the same directory as the calling page and still I receive the same error.

I am using "cf_customtag" notation and I've tried all the various other alternatives (e.g., CFMODULE TEMPLATE). I've specified the exact path/location of the custom tag and still an error. The error changes somewhat, but it's the same basic error.

Does anyone know what might be causing this? I've tried everything I know to remedy this to no end. I'm starting to believe that the problem is not my code, but some other issue with the cf server and its setup. If so, what do I tell my hosting provider? They believe the issue is with my coding.

Any assistance is appreciated.

Here is the code that throws the error:

<cfif IsDefined ("FORM.SKU") >
<cf_cartweaver action="add"
sku="#FORM.SKU#"
quantity="#FORM.quantity#"
itemid="#FORM.ItemID#"
name="#FORM.Name#"
unitprice="#FORM.UnitPrice#"
descrip="#FORM.Descrip#"
>
</cfif>

Reply With Quote
  #2  
Old November 11th, 2003, 10:00 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
When you call a CF custom tag, the engine first tries to find the file in the same directory where you called the tag. If it doesn't find it there, it looks in the custom tag path. This is usually in something like c:\cfusionmx\customtags.

Make sure that your custom tag is in the customtags directory. The error you are getting is because CF can't find your custom tag.

You may also need to cycle the CF server to confirm this because CF caches the path to all custom tags once it finds them. The only way I know of to flush the cache is to cycle the server.

Reply With Quote
  #3  
Old November 11th, 2003, 10:07 AM
EHunt7 EHunt7 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 EHunt7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
As I stated, my custom tags are in my custom tags directory and I've even tried moving the custom tags to the same directory as the calling template--I thought that would be the easy fix. Neither works.

My host provider has responded to me saying:

My apologies for the delay. I think I may have found a solution to the problem. The path to CustomTags on the ColdFusion 5 server that you were on previously was:

/usr/local/coldfusion/CustomTags

The path to CustomTags on the ColdFusion MX server that you're on now is:

/usr/local/coldfusionmx/CustomTags

If there is a different path that you want us to specify for your custom tags, please let me know. We are unable to make the path on the MX server exactly the same as it was on the 5 server - otherwise the CF admin throws out an error.

I don't know what to tell them. Shouldn't my calling template still find the custom tag even on the CFMX server?

Reply With Quote
  #4  
Old November 12th, 2003, 11:17 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
It should as long as your tags are in the path that your host has specified, "/usr/local/coldfusionmx/CustomTags". Can they (or you) confirm that your tags are in that directory?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Custom Tag Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway