Amazon Reviews

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Amazon Reviews

Katzmann, Michael

I cannot seem to get either Guardian reviews or Amazon Reviews to show up on the new version 4 installation.

(I’ve previously had Amazon reviews working).

 

If I enable debugging I can see the REST command that is sent to the Guardian (even though it returned nothing) but there is no sign that any attempt was made to send a request to Amazon.

 

I’ve included the Amazon credentials in locl/config/vufind/config.ini (like …)

 

reviews         = AmazonEditorial:AXYXYXYXYXYXYXYXYXYX,Amazon: AXYXYXYXYXYXYXYXYXYX,Guardian:123123a1-123a-123a-1234-12a34b456cd7

amazonsecret    = abcdEfehIjklm+123456789QRSTuvwXYZopqrstu

amazonassociate = "quickbrownfox-20"

 

to no avail.

 

Is there something else I need to do to get Amazon reviews working  on VuFind 4.0??

 

Michael


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Amazon Reviews

Demian Katz

Michael,

 

I don’t currently have working Amazon credentials to test with, so it is possible that something has broken in the ZendService\Amazon library (which was updated in release 4.0) and it was not noticed. It is also possible that an API has changed on the Amazon side.

 

If you go back to your old version of VuFind, do reviews still work? If so, it may have to do with the Zend client change; if not, it may be an API issue.

 

Either way, if you want to troubleshoot further, I would suggest starting here:

 

https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Content/Reviews/AmazonEditorial.php#L66

 

This is the AmazonEditorial review code. If you add, inside the catch block:

 

var_dump($e->getMessage());

 

you should see the error message coming out of the ZendService_Amazon library. (In my case, it was an HTTP 400 because my credentials were bad – but maybe you’re encountering something else).

 

If the exception message itself is not very helpful, it may be worthwhile to dig into the actual Zend client code that VuFind relies upon. You’ll find the item lookup code here:

 

https://github.com/zendframework/ZendService_Amazon/blob/01f03c0655a939c02792e9c64e5fa5d228093aa2/src/Amazon.php#L154

If you want to try editing these files for testing, you’ll find them inside your vendor directory.

 

I hope this is helpful – please let me know if you need further assistance! If you discover a bug, please let me know and I’ll be happy to help get a fix in place.

 

- Demian

 

From: Katzmann, Michael [mailto:[hidden email]]
Sent: Monday, July 31, 2017 2:07 PM
To: '[hidden email]'
Subject: [VuFind-General] Amazon Reviews

 

I cannot seem to get either Guardian reviews or Amazon Reviews to show up on the new version 4 installation.

(I’ve previously had Amazon reviews working).

 

If I enable debugging I can see the REST command that is sent to the Guardian (even though it returned nothing) but there is no sign that any attempt was made to send a request to Amazon.

 

I’ve included the Amazon credentials in locl/config/vufind/config.ini (like …)

 

reviews         = AmazonEditorial:AXYXYXYXYXYXYXYXYXYX,Amazon: AXYXYXYXYXYXYXYXYXYX,Guardian:123123a1-123a-123a-1234-12a34b456cd7

amazonsecret    = abcdEfehIjklm+123456789QRSTuvwXYZopqrstu

amazonassociate = "quickbrownfox-20"

 

to no avail.

 

Is there something else I need to do to get Amazon reviews working  on VuFind 4.0??

 

Michael


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Loading...