Closed (fixed)
Project:
Amazon Product Advertisement API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Mar 2011 at 10:02 UTC
Updated:
3 Jan 2014 at 02:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
panchoObviously you managed to fix the issue yourselves. Did doing some update help, or did you patch your installation? Might be an issue between amazon module and some other contrib module...
Comment #2
00trav commentedI had the exact same issue. It was very strange as it seemed to occur at random (and on pages that were not using the amazon module).
What I think caused it was the amazon asin field being 'hidden' in the teaser view.
Comment #3
00trav commentedI figured out my issue. It seems to relate to the Metatags_quick module. The seemingly random nature of the error is caused by the Metatag description field being empty which then doesn't pass an element to asin_field_formatter_view().
the quick and easy fix is to update the asin_field_formatter_view to add a check and break
However, I don't know if there are other negative implications with this code.....
Granted with this alteration you can probably take out the second !empty check, but I didn't want to modify too far from committed code.
Comment #4
rfayNo patch provided, so this is not "needs review"
It *sure* looks to me like the patch should be done in metatags_quick.
The formatter shouldn't be called here without any asins should it?
Comment #5
dave reidI think I actually have this narrowed down to a problem with the asin field's default formatter:
Note that 'default' is not prefixed *at all* in addition to the rest of the asin formatters named 'details', 'thumbnail', etc. The documentation for hook_field_formatter_info() clearly states: "An array describing the formatter types implemented by the module. The keys are formatter type names. To avoid name clashes, formatter type names should be prefixed with the name of the module that exposes them. The values are arrays describing the formatter type, with the following key/value pairs:"
Comment #6
dave reidComment #7
dave reidPatch attached that prefixes all the formatter keys, and also updates any existing field instances.
Comment #8
dave reidComment #9
rfaydavereid is truly amazing.
How high is your confidence that this will deal successfully with existing installs?
Comment #10
dave reidIt's been tested with two different installs without any error. It would be good to ensure that the field formatter is unaffected though.
Comment #11
rfayCommitted: 1217676
Thanks so much!