Title: [Plugin: WordPress-Amazon-Associate] Keys InValid since amazon API update
Last modified: August 20, 2016

---

# [Plugin: WordPress-Amazon-Associate] Keys InValid since amazon API update

 *  Resolved [Mike Stop Continues](https://wordpress.org/support/users/mike-stop-continues/)
 * (@mike-stop-continues)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/)
 * Amazon made some changes to their API recently. I would imagine this is to blame,
   as my keys were valid up until just recently. I checked my account and everything
   is fine. I tried a new public/private key pair and they didn’t validate either.
 * Help?
 * Thanks!
 * [http://wordpress.org/extend/plugins/wordpress-amazon-associate/](http://wordpress.org/extend/plugins/wordpress-amazon-associate/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648219)
 * Hi, I’ve done some initial review and the issue does not appear to be related
   to the API. As i see the same version of the plugin working across multiple sites
   but not on some. Upon review it appears that in most cases the issue is that 
   the server time is off causing the request to error out with RequestExpired exception
   from Amazon. I am working on a fix to check for this error and resubmit the request
   based on lookup of gmt time from a time server which is working but I need to
   do some follow up to make sure there is not going to be excessive calls to the
   Time Servers which would cause a denial of service to future requests for the
   time from your host and would end you back in the same situation currently being
   faced.
 * If you have access to your server I would suggest verifying the gmtdate time 
   returns the current time correctly. I noticed on my web host it is off by 20 
   minutes.
 * Hopefully further updates soon,
 * Matthew
 *  Thread Starter [Mike Stop Continues](https://wordpress.org/support/users/mike-stop-continues/)
 * (@mike-stop-continues)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648220)
 * Hi Matt,
 * Unfortunately, gmdate(); indicates the correct time. Is there anything else I
   can try?
 * Thanks for your help!
 *  Plugin Author [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648221)
 * Mike,
 * I’m going to add additional error display to the validation screen in the upcoming
   version so we can see the exact reason your validation is failing.
 * Working on support for locales and looking to have it available by end of week.
 *  Thread Starter [Mike Stop Continues](https://wordpress.org/support/users/mike-stop-continues/)
 * (@mike-stop-continues)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648222)
 * Thanks Matt! That’s excellent news.
 *  Plugin Author [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648223)
 * Mike Version 1.8.0 has been released. After updating let me know the detailed
   error you are receiving so that we can resolve it.
 *  Thread Starter [Mike Stop Continues](https://wordpress.org/support/users/mike-stop-continues/)
 * (@mike-stop-continues)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648224)
 * Matt, I updated to the new version.
 * I distinctly remember getting an InValid message (on account of the capitals)
   when I was working with the plugin last month, but when I tried after updating,
   a js-error prevented getting any validation notification at all. So I tried on
   a test site, and my keys validate. I can only assume that they’re also validating
   on my regular sites now too.
 * Would any of the changes you made account for my (presumably) solved problem?
   In any case, thank you. Here’s the JS error:
 *     ```
       admin.php:700
       Uncaught TypeError: Cannot read property '0' of undefined
       jQuery.ajax.success
       admin.php:700
       f.Callbacks.n
       load-scripts.php:3
       f.Callbacks.o.fireWith
       load-scripts.php:3
       w
       load-scripts.php:5
       f.support.ajax.f.ajaxTransport.send.d
       load-scripts.php:5
       ```
   
 *  Plugin Author [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648225)
 * Mike, what is your website? I can take a quick look and see if i can identify
   why you are getting the js error. if you don’t want to post it here email it 
   to me at [matt@mdbitz.com](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/matt@mdbitz.com?output_format=md)
 *  Plugin Author [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * (@mdbitz)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648273)
 * Marking thread as resolved as keys are now validating.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: WordPress-Amazon-Associate] Keys InValid since amazon API update’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-amazon-associate.svg)
 * [WordPress-Amazon-Associate](https://wordpress.org/plugins/wordpress-amazon-associate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-amazon-associate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-amazon-associate/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-amazon-associate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-amazon-associate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-amazon-associate/reviews/)

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [key](https://wordpress.org/support/topic-tag/key/)
 * [product](https://wordpress.org/support/topic-tag/product/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 8 replies
 * 2 participants
 * Last reply from: [Matthew Denton](https://wordpress.org/support/users/mdbitz/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpress-amazon-associate-keys-invalid-since-amazon-api-update/#post-2648273)
 * Status: resolved