Closed (fixed)
Project:
Amazon Store
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2009 at 16:17 UTC
Updated:
20 Jul 2009 at 13:50 UTC
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
Comment #1
Nodin commentedComment #2
Nodin commentedI 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!
Comment #3
sjl-2 commentedSame 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. ) ) ) ) )
Comment #4
rfayThis 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.
Comment #5
sjl-2 commentedThanks for tracking it down! I really like this module BTW.