Download & Extend

Error being received in the Store on ASIN 0739479199 with panels

Project:Amazon Store
Version:7.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Assigned to:Anonymous» 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

#2

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?

#3

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

#4

Status:fixed» closed (fixed)

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

#5

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.

#6

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.

#7

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.

#8

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

#9

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

#10

Version:7.x-1.0-beta4» 7.x-1.x-dev
Status:active» needs review

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.

AttachmentSize
amazon_store.no_offers_available_1167278_10.patch 803 bytes

#11

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.

#12

Status:needs review» reviewed & tested by the community

Patch applied cleanly and removes the errors I was receiving.

#13

@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.

#14

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.

#15

Wow, thanks so much!

#16

Assigned to:pburkett» Anonymous
Status:reviewed & tested by the community» fixed

Commited #10 - 1e8f3e5

#17

Status:fixed» closed (fixed)

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