Version is 7.x-1.0-beta5, not 3 as shown above...

When trying to add any item to the shopping cart this error appears:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /system/ajax
StatusText: OK
ResponseText:
Fatal error: Unsupported operand types in /home/pcsuppor/public_html/sites/all/modules/amazon_store/amazon_store.module on line 576

Try for yourself at www.pc-support.uk.com

Comments

pcsupport’s picture

StatusFileSize
new290.36 KB

Screenshot attached.

pancho’s picture

Assigned: Unassigned » pancho
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new861 bytes

Sorry, this bug slipped in with #1068600: Remove MergeCart parameter and rewrite management of cart credentials. Thanks for bringing it up!
The attached one-liner should fix it though - does it work for you?

@Randy: It might be necessary to create a 7.x-1.0-beta3a release. Or should we collect some more fixes and followup with a beta4 in a week or two?

pcsupport’s picture

Status: Needs review » Active

Fixed - Perfect! :)

Thank you very much

pancho’s picture

Status: Active » Fixed
pancho’s picture

Title: Fatal error: Unsupported operand types in /home/abc/public_html/sites/all/modules/amazon_store/amazon_store.module on line 576 » Error adding items to cart when new cart needs to be created

better title

rfay’s picture

@Pancho, I agree we need a release pretty soon to fix this. Otherwise it will be reported again and again. Your call.

pancho’s picture

So I'm gonna release a new beta tonight. I might roll in one or two more fixes and some codestyle stuff, but you can bet I will doublecheck everything this time! :)

rfay’s picture

Figuring out a way to do simpletest is the real answer to (most of) this kind of regression. I think that's a key step for Amazon and Amazon Store. #1007272: Tests for Amazon module

Thanks for the great work.

pancho’s picture

Yeah, tests is something we desperately need to avoid such stupid little regressions.
I think, the 7.x-2 branch should be equipped with tests from the very beginning.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.