Skip to main content
Participant
February 26, 2009
Question

HMAC MD5 Hash Error

  • February 26, 2009
  • 2 replies
  • 681 views
i am tryingti implement the linshare affiliate program in Cf
using this method

Linkshare affiliate program in Coldfusion

in this method it talks about the failure of the HMAC MD% function in Coldfusion and uses this java component method to get around it.



http://blog.shortfusion.com/index.cfm/2008/11/21/ColdFusion-HMACMD5-function">Coldfusion HMACMD5 function


i have 90% of this implemented but i cannot get the component recognized by the server and so am stuck on the final stage.

here is the error i am getting.


"Could not find the ColdFusion Component or Interface /components.utils. Ensure that the name is correct and that the component or interface exists.
The error occurred on line 87.
on the /ls_post.cfm page "


The relevant code is attached

i have a components folder sitting in the webroot and a utils.cfc in there containing all the stuff to perform the HASH.

can anyone see why the server is not recognizing the component?

thanks
This topic has been closed for replies.

2 replies

Inspiring
March 3, 2009
> i have a components folder sitting in the webroot and a utils.cfc
> nope, already tried that

Can you create an instance of utils.cfc when directly inside your "components" folder? If you can, use the component's metadata to check the path. Is it what you think it is?

<cfset o = createObject("component", "utils")>
<cfdump var="#getMetaData(o)#">
Inspiring
February 26, 2009
Get rid of the slash so the path consists of dot notation only:

<cfinvoke component="components.utils"
...>

See also the documentation for information about how CF searches for components.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_27.html
Participant
March 2, 2009
nope, already tried that