Dokuwiki - Amazon Plugin

Card Puncher Data Processing

Dokuwiki - Amazon Plugin

About

Note about the Amazon Plugin of Dokuwiki.

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





Discover More
Card Puncher Data Processing
DokuWiki

is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It...



Share this page:
Follow us:
Task Runner