• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HMAC MD5 Hash Error

New Here ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

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 fun...


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
TOPICS
Advanced techniques

Views

617

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 02, 2009 Mar 02, 2009

Copy link to clipboard

Copied

nope, already tried that

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 02, 2009 Mar 02, 2009

Copy link to clipboard

Copied

LATEST
> 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)#">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation