Posted by Nodin on June 17, 2009 at 4:17pm
4 followers
Jump to:
| Project: | Amazon Store |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Install and enable both Ubercart and Amazon module. Add a product to an Ubercart cart and messages display from Amazon cart message that Cart can't be created. No problems doing the reverse. Everything seems to work otherwise, just bogus error messages display.
Comments
#1
#2
I fixed this on my test install by using;
if (strpos(drupal_get_destination(),'amazon_store') > -1) {
} else {
return TRUE;
}
..around the blocks that test for cart creation and cart update in amazon_store.module. Not sure if this is the best solution!
#3
Same error, thought it was Ubercart at first, but I got this in my logs for each time that I've made a test purchase on Ubercart:
Amazon error returned. Code=AWS.ParameterOutOfRange, Message=The value you specified for Quantity is invalid. Valid values must be between 1 and 999. // ///SimpleXMLElement Object ( [OperationRequest] => SimpleXMLElement Object ( [HTTPHeaders] => SimpleXMLElement Object ( [Header] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => UserAgent [Value] => Drupal (+http://drupal.org/) ) ) ) [RequestId] => 1S74DM9M8A2W9TM4ZWRH [Arguments] => SimpleXMLElement Object ( [Argument] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => AssociateTag [Value] => drupal0a-20 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Service [Value] => AWSECommerceService ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Item.1.OfferListingId [Value] => 1 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Item.1.Quantity [Value] => Array,,0,uc_product ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => HMAC ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Operation [Value] => CartCreate ) ) [6] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => CartId ) ) [7] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => OfferListingId [Value] => 1 ) ) [8] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => AWSAccessKeyId [Value] => 0CD9RCQYM0TBVH55NB82 ) ) [9] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => Version [Value] => 2008-04-07 ) ) [10] => SimpleXMLElement Object ( [@attributes] => Array ( [Name] => MergeCart [Value] => True ) ) ) ) [RequestProcessingTime] => 0.00364899635314941 ) [Cart] => SimpleXMLElement Object ( [Request] => SimpleXMLElement Object ( [IsValid] => False [CartCreateRequest] => SimpleXMLElement Object ( [MergeCart] => True [Items] => SimpleXMLElement Object ( [Item] => SimpleXMLElement Object ( [OfferListingId] => 1 [Quantity] => Array,,0,uc_product ) ) ) [Errors] => SimpleXMLElement Object ( [Error] => SimpleXMLElement Object ( [Code] => AWS.ParameterOutOfRange [Message] => The value you specified for Quantity is invalid. Valid values must be between 1 and 999. ) ) ) ) )
#4
This is actually a bug in Ubercart - see #510382: Ubercart must namespace its hooks. I have worked around it though, and it is fixed in the next release.
#5
Thanks for tracking it down! I really like this module BTW.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.