Issue Details (XML | Word | Printable)

Key: ZF-2749
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Benjamin Eberlei
Reporter: Ben Scholzen
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

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

Created: 28/Feb/08 02:58 AM   Updated: 15/Nov/08 08:52 AM   Resolved: 15/Nov/08 08:52 AM
Component/s: Zend_Service_Amazon
Affects Version/s: 1.5.0RC1, 1.5.3, 1.6.0RC2, Next Major Release
Fix Version/s: 1.8.0

Time Tracking:
Original Estimate: 1 hour
Original Estimate - 1 hour
Remaining Estimate: 1 hour
Remaining Estimate - 1 hour
Time Spent: Not Specified
Time Spent - Not Specified

Issue Links:
Related
 


 Description  « Hide

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:

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

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.



Benjamin Eberlei added a comment - 15/Nov/08 08:52 AM

Will be fixed in 1.8 or as of svn r12667.