Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] MD5 - hexhash



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Peter Hellman (PHELLMAN@brain.syh.fi):
> ******    message to minivend-users from "Peter Hellman" <PHELLMAN@brain.syh.fi>     ******
> 
> Hi!
> I´ve got a problem as follows:
> I´m running Minivend 3.14 and to my catalog.cfg I´ve added:
> ...
> UserTag md5hash Interpolate
> UserTag md5hash HasEndTag
> UserTag md5hash Routine <<EOF
> sub {
> my $val = shift;
> my $hash = MD5->hexhash($val);
> return $hash;
> }
> EOF 
> .....
> 
> This routine is used in several pages, it can look like this:
> ....
> [set name=kund_hash interpolate=1][caps interpolate=1]
> [md5hash interpolate=1][scratch Nyckel][/md5hash][/caps][/set]
> .....
> 
> This is working like a dream!
> Now I´m trying to upgrade to 4.04 on the very same server ....
> ... and my thing doesn´t want to play along at all.
> 
> The minivend server log says:
> [22/November/2000:12:31:42 +0200] botnia 
> /cgi_bin/botnia.cgi/multi/kultaraha1.html Runtime error: Can't locate 
> object method "hexhash" via package "MD5" at (eval 106) line 4.
> 
> What´s gone wrong. Is it something in the very root of mininvend 
> 3.14 and 4.04. I have tried to solve it on my own, but I`m only 
> banging my head against the walls, please help!

I think we just use the Digest::MD5 stuff if it is there.
Try Digest::MD5 or put "use MD5;" above your "sub {" line.

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Be patient. God isn't finished with me yet.  -- unknown
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: