Issues

ZF-2749: Zend_Service_Amazon spits Notices while trying to get property of non-object

Issue Type: Bug Created: 2008-02-28T02:58:08.000+0000 Last Updated: 2008-11-15T08:52:13.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Ben Scholzen (dasprid) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Service_Amazon

Related issues: - ZF-4953

Attachments:

Description

When fetching multiple topseller from one browsenode, ordered by salesrank, some items don't have specific properties. Zend_Service_Aamazon does not check for them, and tries to access them even if they are not existent. The result are many notices on the front page, which are not nice. The two different error message I get are:

Notice: Trying to get property of non-object in /var/www/projects/sparia/library/Zend/Service/Amazon/SimilarProduct.php on line 45
Notice: Trying to get property of non-object in /var/www/projects/sparia/library/Zend/Service/Amazon/Offer.php on line 50

The first one, regards to the xpath search for similar products, while the second one is the availability of an offer, which is not always present.

Comments

Posted by Benjamin Eberlei (beberlei) on 2008-11-15T08:52:13.000+0000

Will be fixed in 1.8 or as of svn r12667.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts