About
Note about the Amazon Plugin of Dokuwiki.
Articles Related
Problem
Call to undefined function: hash_hmac()
The plugin%3Aamazon have an incompatibility problem if you don't have PECL installed.
Fatal error: Call to undefined function: hash_hmac() in .../dokuwiki/lib/plugins/amazon/syntax.php on line 284
Solution
Found in this Forum, replace this line in the file syntax.php :
$signature = base64_encode(hash_hmac("sha256", $string_to_sign, $private_key, True));
by :
$signature = base64_encode(mhash(MHASH_SHA256, $string_to_sign, $private_key));
Patrner ID
PartnerID for the American Amazon store | gerardnico-20 |
PartnerID for the German Amazon store | gerardnico01-21 |
PartnerID for the Japanese Amazon store | |
PartnerID for the British Amazon store | gerardnico0d-21 |
PartnerID for the French Amazon store | gerardnico-21 |
PartnerID for the Canadian Amazon store |