Solved

ColdFusion cf_hmac

Posted on 2010-09-04
4
1,123 Views
Last Modified: 2013-12-24
Ok so I am using this same code on another server.  I have sample code from authorize.net and generate a hash using cf_hmac.  I am getting the error.  

Cannot find CFML template for custom tag hmac.
ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name. If you are using per-application custom tag mappings, ensure that per-application settings are enabled by the administrator.

So I downloaded the hmac.cfm file from another post, used a cfmodule tag to bind to the current document but got another error from within that file.  

I just don't understand how the exact code would work on one server and not another?  Any ideas?
0
Comment
Question by:clayo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 250 total points
ID: 33606190
Look at server one where it is working in what directory is your hmac.cfm and following files:
md5.cfm
ripemd_160.cfm
sha_1.cfm
sha_256.cfm

Copy those files to same directory on second server and give it a try.

0
 

Author Comment

by:clayo
ID: 33606616
So I would need all of these files in the same directory where the tag is being used?
0
 

Author Comment

by:clayo
ID: 33606759
I loaded these files into the directory and now I am getting an error from authorize.net:

(97) This transaction cannot be accepted.

I did a little research and it seems as if this is still an issue with the has being sent.  I did a dump on authorize.net to see what is being passed and the following is what is being passed. The hash is there...  Im just not sure as to what authorize.net is looking for?
0
 

Author Comment

by:clayo
ID: 33606776
I have read in some blogs that this is a time zone issue or server clock issue?  
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question