House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

can't figure out cfc error

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Smith
03/12/2010 01:36 PM

I've checked the spelling, cut and paste the reference.  Not sure what is going on...  Works locally but uploading to the live server it is broken. Is there some sort of cache for cfcs? Expression Element HARDLINKQUANITY is undefined in ARGUMENTS. [empty string] 0 [empty string] [empty string] random3bycategory lines in question: <cfinvoke component="redhotkittiescfcs.hardlinkgenerator" method="linkgenerator" returnvariable="itemlink" productid="#qry_random3bycategory.productID#" callkey="#arguments.taxologykey#" hardlinkstring="#qry_random3bycategory.hardlink#" quantity="#qry_random3bycategory.quantity#" hardlinkquantity="#qry_random3bycategory.hardlinkquantity#" self="#arguments.self#"> cfcatch.tagcontext - array 1cfcatch.tagcontext - struct COLUMN 0IDCF_DOTRESOLVER LINE 11RAW_TRACE at cfhardlinkgenerator2ecfc446576818$funcLINKGENERATOR.runFunction(D:\Inetpub\redhotkitties\redhotkittiescfcs\hardlinkgenerator.cfc:11)TEMPLATE D:\Inetpub\redhotkitties\redhotkittiescfcs\hardlinkgenerator.cfc TYPECFML 2cfcatch.tagcontext - struct COLUMN 0ID CFINVOKELINE 31RAW_TRACE at cfrandom3bycategory2ecfc1508842978$funcRANDOM3BYCATEGORY.runFunction(D:\Inetpub\redhotkitties\redhotkittiescfcs\random3bycategory.cfc:31)TEMPLATE D:\Inetpub\redhotkitties\redhotkittiescfcs\random3bycategory.cfc TYPECFML

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Smith
03/12/2010 01:40 PM

missing a t which corrected.  This is on crystaltech.  How do I "reset" the cfc? On Fri, Mar 12, 2010 at 12:34 PM, Matthew Smith <chedderslam@gmail.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/12/2010 01:55 PM

> missing a t which corrected.  This is on crystaltech.  How do I "reset" the > cfc? You shouldn't have to do anything. Just publishing a new file should work, unless you're caching the CFC instance in memory - and it doesn't appear that you're doing that. In some rare cases, you may have to delete the compiled CFC from the server. You can see the name of that CFC from the stack trace: cfhardlinkgenerator2ecfc446576818$funcLINKGENERATOR Each method within a CFC is actually compiled as a separate class. By default, these live in \coldfusion9\wwwroot\WEB-INF\cfclasses, I think. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsit

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/12/2010 01:41 PM

> I've checked the spelling, cut and paste the reference.  Not sure what is > going on...  Works locally but uploading to the live server it is broken. >  Is there some sort of cache for cfcs? > > Expression Element HARDLINKQUANITY is undefined in ARGUMENTS. [empty string] > 0 [empty string] [empty string] You didn't post the CFC, so we can't see for sure. But are you sure you checked the spelling? It's "HARDLINKQUANITY", not "HARDLINKQUANTITY"? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Smith
03/12/2010 01:50 PM

Here's the cfc: <cfcomponent> <cffunction name="linkgenerator" access="public" returntype="string"> <cfargument name="productid" type="numeric" required="yes"> <cfargument name="callkey" type="numeric" required="yes"> <cfargument name="hardlinkstring" type="string" required="yes"> <cfargument name="quantity" type="numeric" required="yes"> <cfargument name="hardlinkquantity" type="numeric" required="yes"> <cfargument name="self" type="string" required="yes">   <cfif len(arguments.hardlinkstring) eq 0 or remote_addr contains "192.168.1" or arguments.hardlinkquanity neq arguments.quantity> <cfset XFA.viewItemDetail = "thegallery.itemDetail"> <cfset itemlink = "#arguments.self#/fuseaction/#XFA.viewItemDetail#/productID/#arguments.productID#/callKey/#arguments.callkey#/index.cfm"> <cfelse> <!--- <cfif remote_addr contains "192.168.1"> <cfset itemlink = "http://redhotkittiesdotcom#arguments.hardlinkstring#"> <cfelse> ---> <cfset itemlink = "http://www.RedHotKitties.com#arguments.hardlinkstring#"> <!--- </cfif> ---> </cfif> <cfreturn itemlink> </cffunction> </cfcomponent> It's working locally.  I've uploaded to the live server and it is broken there.  It's like the reference is cached. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Smith
03/12/2010 01:55 PM

just spotted it.  Sorry.  Thank you for the help. On Fri, Mar 12, 2010 at 12:48 PM, Matthew Smith <chedderslam@gmail.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

July 31, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31