Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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
| This issue is related to: | ||||
| ZF-4953 | PHP Notice on item search: Availability is not always set. |
|
|
|
Will be fixed in 1.8 or as of svn r12667.