ZF-7097: Zend_Service_Amazon_EditorialReview gives an error on missing element

Issue Type: Bug Created: 2009-06-23T06:05:13.000+0000 Last Updated: 2011-08-01T19:44:35.000+0000 Status: Open Fix version(s): Reporter: Walter Huber (whuber) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Service_Amazon

Related issues: Attachments:


When I call the ItemLookup für die ASIN "B002ACP13M" I receive an Notice as it is "Trying to get property of non-object ". On a closer look into the xml data from Amazon it delivers only an Content Tag and no Source Tag...


Posted by Mario Raspe (mraspe) on 2011-08-01T19:44:35.000+0000

I have the same problem with Zend_Service_Amazon_EditorialReview (Trying to get property of non-object...), because the xpath with "Source" isn´t find (in my case). A possible bugfix is the following code (like in Zend_Service_Amazon_CustomerReview):

$result = $xpath->query("./az:$el/text()", $dom); if ($result->length == 1) { $this->$el = (string) $result->item(0)->data; }

I hope, i could help. (Sorry, for my bad english)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.