Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.5.0RC1, 1.5.3, 1.6.0RC2, Next Major Release
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Service_Amazon
  • Labels:
    None

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:

<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.

Issue Links

Activity

Hide
Benjamin Eberlei added a comment -

Will be fixed in 1.8 or as of svn r12667.

Show
Benjamin Eberlei added a comment - Will be fixed in 1.8 or as of svn r12667.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
1h
Remaining Estimate - 1 hour
Logged:
Not Specified
Time Spent - Not Specified