You are here:  » No hash function available!

Support Forum



No hash function available!

Submitted by macnpaul on Sat, 2010-01-23 21:47 in

This might be an obvious one, but I have just tried to add Amazon products to my first site but I'm not getting any results showing, I see "No hash function available!" where I'm guessing the amazon product/s would show.

I've double checked my access keys and I seem to have entered them correctly.

What would be causing this?

Thanks,

Paul

Submitted by support on Sat, 2010-01-23 23:44

Hi Paul,

Since Amazon required that URLs are authenticated the Amazon code requires a hash function (to sign the URL); which is not necessarily included in PHP. It is only included natively since PHP version 5.1.2, prior to that version, the mhash library must be compiled in.

If running your site on a later version of PHP is not an option, contact your host and ask if they would be able to compile the mhash library into your PHP installation - and you will then be able to run the Amazon API code...

Cheers,
David.

Submitted by macnpaul on Sun, 2010-01-24 00:18

Thanks David, switched to a later version of PHP as suggested and that fixed it.