I am getting the following error message. Any help would be appreciated:
•Notice: Undefined variable: key in amazon_store_addcart_form() (line 375 of /hsphere/local/home/c0915/resumewritinghowto.com/modules/amazon_store/amazon_store.pages.inc).
•Notice: Undefined index: in amazon_store_addcart_form() (line 375 of /hsphere/local/home/c0915/resumewritinghowto.com/modules/amazon_store/amazon_store.pages.inc).
•Notice: Undefined variable: key in amazon_store_addcart_form() (line 376 of /hsphere/local/home/c0915/resumewritinghowto.com/modules/amazon_store/amazon_store.pages.inc).
•Notice: Undefined index: in amazon_store_addcart_form() (line 376 of /hsphere/local/home/c0915/resumewritinghowto.com/modules/amazon_store/amazon_store.pages.inc).

Comments

pburkett’s picture

Assigned: Unassigned » pburkett
Status: Active » Closed (fixed)

I have found the issue, it was an ISBN that had a problem, it displayed but did not have a price

rfay’s picture

Status: Closed (fixed) » Fixed

thanks for folllowing up, but it really would be nicer to mention the asin that gave you trouble, and what locale you're using. US?

mcurry’s picture

Yes, please provide the ISBN or ASIN for the item in question.

Status: Fixed » Closed (fixed)

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

eljustino’s picture

I'm actually seeing the same behavior on a test site I've set up. Go to http://www.uprisebooks.justinstanley.net/store and search for "chamber" under the category "books" and you can duplicate it pretty easily.

rfay’s picture

Status: Closed (fixed) » Active

Interesting.

If you can put in a dsm() or something to get us the ASIN in question, it's fixable then.

PoetCSW’s picture

I have the same error, being caused when users of the site add links to their books that are now "out of print." The non-profit is a group of writers.

Notice: Undefined variable: key in amazon_store_addcart_form() (line 375 of /home3/mwsadisp/public_html/sites/all/modules/amazon_store/amazon_store.pages.inc).
Notice: Undefined index: in amazon_store_addcart_form() (line 375 of /home3/mwsadisp/public_html/sites/all/modules/amazon_store/amazon_store.pages.inc).
Notice: Undefined variable: key in amazon_store_addcart_form() (line 376 of /home3/mwsadisp/public_html/sites/all/modules/amazon_store/amazon_store.pages.inc).
Notice: Undefined index: in amazon_store_addcart_form() (line 376 of /home3/mwsadisp/public_html/sites/all/modules/amazon_store/amazon_store.pages.inc).

Could we intercept the error to prevent it from displaying? I know the users still want to read the reviews and show that they had a book published. I know I'll never be able to restrict which books are on the site and when they go out of print.

The amazon_store page displays fine, so I just want to mask the errors.

Example link: http://www.mwsadispatches.com/amazon_store/item/0739479199

I'm really pleased with the Amazon and Amazon Store modules. The battle to get the store working was worth the several reinstalls.

rfay’s picture

Title: Error being received in the Store » Error being received in the Store on ASIN 0739479199 with panels

@PoetCSW I think you'll find that your issue will be resolved over in #1257714: Remove support for Merchants in Amazon Store and it will be a result of Amazon changing their API. It looks to me like asin 0739479199 does demonstrate this.

You can just disable messages to the screen (recommended on any production site) at admin/config/development/logging

rfay’s picture

This problem is caused by Amazon no longer really supporting things that they don't sell. The ASIN in your example is not available from Amazon, only used from other sellers... and Amazon doesn't support merchants any more. The probable ASIN you want, and the one that would be found in an amazon store search for Gobbell, is 0891418903

rfay’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new803 bytes

This patch should fix it. The basic problem, though, is that with Amazon's new API change, if you configure Amazon Store for Amazon, you can only get offers for things that are sold by Amazon. If you configure the opposite, you don't get anything Amazon sells. Silly of them.

Would appreciate testing.

PoetCSW’s picture

Thank you so much for everything you are doing!

The settings fixed the issues for users with several views. At the same time, I'll be testing the patch, as well.

Absolutely amazing work.

the_g_bomb’s picture

Status: Needs review » Reviewed & tested by the community

Patch applied cleanly and removes the errors I was receiving.

rfay’s picture

@the_g_bomb, I've just granted you maintainer privs on this project. If you're willing to comaintain it (as you have essentially been doing) I would sure appreciate it.

If you think this (or the other related patches) are ready, you may commit them.

Here's what I ask of comaintainers:
* Subscribe to all issues so you immediately hear about issues
* Work openly in the issue queue so that everybody knows what's going on
* Post commits in the issue queue - either just the hash or the drupalcode link
* Try things out :-) As you always do

Thanks so much. If you're willing to do this it will be a great benefit to this module and very much appreciated by me.

the_g_bomb’s picture

I would be honoured to co-maintain. I am happy to conform to the list of requests and I'll do my best to help out as often as I can.

rfay’s picture

Wow, thanks so much!

the_g_bomb’s picture

Assigned: pburkett » Unassigned
Status: Reviewed & tested by the community » Fixed

Commited #10 - 1e8f3e5

Status: Fixed » Closed (fixed)

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