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 cfm@maine.com     ******

On Wed, Nov 22, 2000 at 02:21:23PM +0200, Peter Hellman wrote:
> ******    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.

That almost certainly means it cannot find the package MD5.  Try adding
it to the list of modules "use"ed in minivend.  (After you make sure
it is on system.)

This is only place I see it called in mv4.03 and even here it is optional:
Util.pm:# Not very good without MD5
Util.pm:eval {require Digest::MD5 };


-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
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: