Active
Project:
Amazon Store
Version:
7.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2012 at 16:24 UTC
Updated:
15 Jan 2013 at 23:58 UTC
Jump to comment: Most recent file
Hi Guys, We are getting following error after enabling amazon_store module. What could be the issue?
<------------>
Notice: Undefined index: sorts in SearchIndexes->__construct() (line 46 of <..path> /sites/all/modules/amazon_store/searchindexes.inc).
<------------>
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | amazon_store.locale.ca_.txt | 6.43 KB | batsnafu |
| #7 | amazon_store.locale.ca_.inc_.txt | 6.39 KB | batsnafu |
Comments
Comment #1
rfayI can think of two things to do.
1. Visit the Amazon Module configuration page and make sure the locale is set the way you want it, and click "submit" to make sure it gets saved.
2. Remove all the files for Amazon and Amazon Store and then reinstall them.
Interesting that we haven't seen this yet.
Comment #2
outerspace-z commentedOkay, rfay. This is interesting now. If I save the locale of anything other than Canada, the error goes away. So thanks for that. I select Canada error appears again. After Canada if I select US I continue to get the error. But select UK or any other country error goes away and select US back again no error appears. But most certainly if I select Canada as locale the error appears. By the way, I am in Canada if that has anything to do with.
Comment #3
rfaySounds like there's something wrong with locales/amazon_store.locale.ca.inc.
Changing the title to reflect the error. This shouldn't be hard to track down - probably something missing in those arrays.
Comment #4
batsnafu commentedHas anyone flushed this error out yet? I'm not entirely sure where to begin, but I do have this error with 7.x-1.1 using Canada locale and I can see where Baby & Kitchen arrays do not exist in amazon_store.locale.ca.inc as they do here!?
Could that be the missing array(s)?
Comment #5
rfayIf you can just update the CA array and provide a patch, it will go in.
Comment #6
batsnafu commentedI'm not sure how to provide a patch, but I have updated to the following....Unfortunately, I'm still getting the message....there was a "Blended" SearchIndex that I did not add because I could not determine the BrowseNode.
I think I'm getting closer and I'll double check what I have so far!?
{code removed and replaced w/ file below}
Comment #7
batsnafu commentedMy bad, I should have attached that and not pasted the code above but there was a problem w/ the new Kitchen array....I have attached a better version though I'm still seeing the error.
Comment #8
batsnafu commentedAh ha, the existing Video Games array is also missing this line, 'sorts' => array(, which I've added to the attached and believe the Canada locale now works again!! Thanks for listening and hope this helps,
Scott