View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006257 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2015-11-05 08:11 | 2016-09-05 11:52 |
| Reporter | rhuelsberg | Assigned To | |||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 4.8.7 / 5.1.7 | ||||
| Summary | 0006257: Fatal Error in oxuserbasket::getArticles "Call to a member function getId() on boolean" | ||||
| Description | If 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. | ||||
| Tags | No tags attached. | ||||
| Theme | All | ||||
| Browser | All | ||||
| PHP Version | 5.6 | ||||
| Database Version | Not defined | ||||
|
|
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 |