I am using Amazon contrib module, and I want to implement it for multiple locales. Once I finished with all configuration, I wanted to do Amazon API test, to check if it will find product on each locale. After placing value for "Amazon product ID", selecting which locale I want i would end up on error page, and this was the message "ArgumentCountError: Too few arguments to function amazon_item_delete(), 1 passed in /var/www/sites/all/modules/contrib/amazon/amazon.admin.inc on line 189". It is related to amazon_item_delete, where we are missing $items['locale'] as the second parameter of this function. Adding that solves this problem, test passed and I got product information from Amazon.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix-too-few-arguments-3039119-2.patch | 461 bytes | adsbisi |
Comments
Comment #2
adsbisi commentedComment #3
adsbisi commentedComment #4
castor-designs commentedI'm having the same issue as described above.
ArgumentCountError: Too few arguments to function amazon_item_delete(), 1 passed in /.../sites/all/modules/amazon/amazon.admin.inc on line 189 and exactly 2 expected in amazon_item_delete() (line 907 of /.../sites/all/modules/amazon/amazon.module).