|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
can't figure out cfc error
I've checked the spelling, cut and paste the reference. Not sure what isMatthew Smith 03/12/10 01:36 P missing a t which corrected. This is on crystaltech. How do I "reset" theMatthew Smith 03/12/10 01:40 P > missing a t which corrected. This is on crystaltech. How do I "reset" theDave Watts 03/12/10 01:55 P Thank you, Dave. Appreciated.Matthew Smith 03/12/10 03:21 P > I've checked the spelling, cut and paste the reference. Not sure what isDave Watts 03/12/10 01:41 P Here's the cfc:Matthew Smith 03/12/10 01:50 P just spotted it. Sorry. Thank you for the help.Matthew Smith 03/12/10 01:55 P 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 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 ----- > 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 Thank you, Dave. Appreciated. ----- Excess quoted text cut - see Original Post for more ----- > 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 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 ----- 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 -----
|
July 31, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||