View Issue Details

IDProjectCategoryView StatusLast Update
0006257OXID eShop (all versions)1. ----- eShop frontend -----public2016-09-05 11:52
Reporterrhuelsberg Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version4.8.7 / 5.1.7 
Summary0006257: Fatal Error in oxuserbasket::getArticles "Call to a member function getId() on boolean"
DescriptionIf user open the frontend, it can be crash by the following fatal error:

PHP Fatal error: Call to a member function getId() on boolean in /htdocs/application/models/oxuserbasket.php on line 135

128: public function getArticles()
129: {
130: $aRes = array();
131: $aItems = $this->getItems();
132: if ( is_array( $aItems ) ) {
133: foreach ( $aItems as $sId => $oItem ) {
134: $oArticle = $oItem->getArticle( $sId );
135: $aRes[$this->_getItemKey($oArticle->getId(), $oItem->getSelList(), $oItem->getPersParams())] = $oArticle;
136: }
137: }
138: return $aRes;
139: }

If the article is not longer persistent in the database, the oxuserbasket could not load this article and the function getArticle($sId) returns false.

TagsNo tags attached.
ThemeAll
BrowserAll
PHP Version5.6
Database VersionNot defined

Activities

QA

2015-12-02 10:34

administrator   ~0011352

Reminder sent to: rhuelsberg

Hello rhuelsberg,

thanks for your report. Unfortunately we could not reproduce the behaviour you described. Could you please provide more information on what has to be done to get the PHP Fatal error: Call to a member function ...?
Best would be if you could write down the steps to reproduce it on our public demoshop: http://demoshop.oxid-esales.com/professional-edition/

Thanks and regards,
QS