Our guide to midseason TV season & series premieres

Twitter Facebook

A fix for Amazon Reloaded for WordPress and Amazon’s new API

 

Because of Amazon Web Services’ new API rules, all requests need to be signed. The current version (as of this writing) of the Amazon Reloaded for WordPress plugin isn’t updated yet to accommodate for the change, and the author understandably doesn’t have time to update the plugin yet. Honestly, it’s going to take adding new options and security for storing Amazon WS account information and secret key, something the current version doesn’t handle yet.

For now, though, since I need the use of this plugin, I’ve hacked in changes that work. The “real” fix for this would be to add options for storing the keys in the database, of course. Thanks to Alan Capesius for the code snippet for signing the URL.

I’ve uploaded the PHP source file with the changes I’ve made. Keep in mind I did not change any of the credits nor the version number of the plugin, so replacing what you have will be overwritten when a new official version comes out and you choose to update. You will also need to apply to get your own Amazon AWS keys.

Thanks Nick Ohrn for a invaluable plugin!

62 Responses to “A fix for Amazon Reloaded for WordPress and Amazon’s new API”

August 26, 2009 at 8:28 PM

This fix worked like a charm — thanks a lot!

September 3, 2009 at 6:16 PM

Your fix worked like a charm, thanks so much for making it!

September 3, 2009 at 2:16 PM

Your fix worked like a charm, thanks so much for making it!

September 4, 2009 at 1:38 PM

Thanks Keith! I prefer to remain anonymous, so that’s why I put “Guest” as my name.
Anyway, this looks great but I’m not sure how API works. Don’t you have to pay for API? I made an account, but it looks A LOT more complicated than what I thought. It looks like programming stuffs, which I have no idea and. So, would using this force me to be charged w/ any money?
Also, we put the secret key, but Amazon told me on my home page not to… “Never share a secret key or email it..” Putting on the file… Isn’t that bit dangerous?

September 4, 2009 at 1:47 PM

You don’t get charged for having an account, only when you use any of their paid services, like S3.

Yes, it’s not the safest thing to keep these keys stored within the plugin file itself, but it’s all I have time for to get this working for now. Ultimately, the plugin author needs to fix this so that keys are stored in the database. Still not the most secure thing, but better than being in the clear in the file itself.

September 4, 2009 at 9:38 AM

Thanks Keith! I prefer to remain anonymous, so that’s why I put “Guest” as my name.
Anyway, this looks great but I’m not sure how API works. Don’t you have to pay for API? I made an account, but it looks A LOT more complicated than what I thought. It looks like programming stuffs, which I have no idea and. So, would using this force me to be charged w/ any money?
Also, we put the secret key, but Amazon told me on my home page not to… “Never share a secret key or email it..” Putting on the file… Isn’t that bit dangerous?

September 4, 2009 at 9:47 AM

You don’t get charged for having an account, only when you use any of their paid services, like S3.

Yes, it’s not the safest thing to keep these keys stored within the plugin file itself, but it’s all I have time for to get this working for now. Ultimately, the plugin author needs to fix this so that keys are stored in the database. Still not the most secure thing, but better than being in the clear in the file itself.

September 4, 2009 at 4:31 PM

Thank you, Keith! That really clears it up.
I think I will use your awesome plug-in fix. Thank you!

September 4, 2009 at 12:31 PM

Thank you, Keith! That really clears it up.
I think I will use your awesome plug-in fix. Thank you!

September 16, 2009 at 3:26 PM

Hey Keith!

Thanks a lot for fixing the plugin – really good job!
Is there any chance that you can implement the service also for amazon Germany? So your plugin just work with amazon.com but not with germany :-(

Greetings from Germany
Daniel

September 16, 2009 at 5:24 PM

I left a comment above that should address that issue. There’s a URL that should work for you there. Just edit the code and place it in.

September 16, 2009 at 11:26 AM

Hey Keith!

Thanks a lot for fixing the plugin – really good job!
Is there any chance that you can implement the service also for amazon Germany? So your plugin just work with amazon.com but not with germany :-(

Greetings from Germany
Daniel

September 16, 2009 at 1:24 PM

I left a comment above that should address that issue. There’s a URL that should work for you there. Just edit the code and place it in.

September 16, 2009 at 8:06 PM

Hi Keith,

thanks a lot fpr your comment. Didn’t read all the comments carefully, so sorry for may question. It works really great now :)

September 16, 2009 at 4:06 PM

Hi Keith,

thanks a lot fpr your comment. Didn’t read all the comments carefully, so sorry for may question. It works really great now :)

September 18, 2009 at 1:01 PM

I really appreciate you putting this fix out here. I have been trying to figure out how to fix this plugin for a while. I just renamed the old php file and dropped your fix right in. Change the keys for amazon and the plugin worked again.

Thanks for the hard work.
Kenny

September 18, 2009 at 9:01 AM

I really appreciate you putting this fix out here. I have been trying to figure out how to fix this plugin for a while. I just renamed the old php file and dropped your fix right in. Change the keys for amazon and the plugin worked again.

Thanks for the hard work.
Kenny

September 23, 2009 at 1:36 PM

Mhhh… the fix doesn’t work for me (with amazon.de)

Could you please describe step-by-step what to do for a .de-account?

I’ve added Keys and changed the url, but probably messed up by deleting the code Kenji mentioned above.

September 23, 2009 at 9:36 AM

Mhhh… the fix doesn’t work for me (with amazon.de)

Could you please describe step-by-step what to do for a .de-account?

I’ve added Keys and changed the url, but probably messed up by deleting the code Kenji mentioned above.

September 24, 2009 at 2:18 PM

Fantastic fix, works perfectly here. For other folk this is what I did (and nothing more),

1. download the new file
2. remove the existing php file
3. rename the new file to Amazon-Reloaded.php
4. edit Amazon-Reloaded.php and add the two keys
5. on line 191 change the URL to the correct country
6. disable the plugin
7. re-enable the plug
8. go to the plugin settings and put your amazon associate ID in
9. But leave the country set to United States

Should now work.

September 24, 2009 at 10:18 AM

Fantastic fix, works perfectly here. For other folk this is what I did (and nothing more),

1. download the new file
2. remove the existing php file
3. rename the new file to Amazon-Reloaded.php
4. edit Amazon-Reloaded.php and add the two keys
5. on line 191 change the URL to the correct country
6. disable the plugin
7. re-enable the plug
8. go to the plugin settings and put your amazon associate ID in
9. But leave the country set to United States

Should now work.

September 30, 2009 at 11:14 AM

Not for me … :-(

September 30, 2009 at 7:14 AM

Not for me … :-(

October 1, 2009 at 9:03 PM

I habe done all Changes from the last posting but i still receive this error for Amazon.DE:
XXXNUMBERSXXXXEAWS.MinimumParameterRequirementYour request should have atleast 1 of the following parameters: Signature, Timestamp.

(XXXNUMBERSXXXX is replaced from me…., don’t know if those number can be used from someone other to manipulate something)

October 1, 2009 at 5:03 PM

I habe done all Changes from the last posting but i still receive this error for Amazon.DE:
XXXNUMBERSXXXXEAWS.MinimumParameterRequirementYour request should have atleast 1 of the following parameters: Signature, Timestamp.

(XXXNUMBERSXXXX is replaced from me…., don’t know if those number can be used from someone other to manipulate something)

October 3, 2009 at 4:33 AM

I’ve just released a new official version of the plugin that adds the following things.

* Support for adding your own credentials via the WP admin panel
* Support for request signing requirement
* Better searching and display interface (compatible with 2.8)
* Better code quality overall

This release requires PHP5, but that should be OK for most users. Thanks for picking up the slack in the meantime :)

October 3, 2009 at 12:33 AM

I’ve just released a new official version of the plugin that adds the following things.

* Support for adding your own credentials via the WP admin panel
* Support for request signing requirement
* Better searching and display interface (compatible with 2.8)
* Better code quality overall

This release requires PHP5, but that should be OK for most users. Thanks for picking up the slack in the meantime :)

December 15, 2009 at 1:18 PM

After installing the plugin in wordpress and setting up the API, how do you make the script show the Amazon products in a post or static page please?

December 15, 2009 at 8:18 AM

After installing the plugin in wordpress and setting up the API, how do you make the script show the Amazon products in a post or static page please?