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.

CommentFileSizeAuthor
#2 fix-too-few-arguments-3039119-2.patch461 bytesadsbisi

Comments

adsbisi created an issue. See original summary.

adsbisi’s picture

StatusFileSize
new461 bytes
adsbisi’s picture

Status: Patch (to be ported) » Needs review
castor-designs’s picture

I'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).