View Issue Details

IDProjectCategoryView StatusLast Update
0007610OXID eShop (all versions)4.05. Performancepublic2024-03-20 15:16
Reportermf Assigned To 
Status confirmedResolutionopen 
Product Version7.0.2 
Summary0007610: Missing initialization of variable in _loadFromCache method
DescriptionIn the method \OxidEsales\EshopEnterprise\Application\Model\Article::_loadFromCache, in some cases the variable $data is not initialized before it is accessed for the first time.

protected function loadFromCache($articleId)
    $genericCache = $this->getCacheBackend();
    $cacheKey = $this->getCacheKey($articleId);
    $cacheItem = $genericCache->get($cacheKey);

    if ($cacheItem) {
        $data = $cacheItem->getData();

    if (!$data) {
        $data = $this->loadFromDb($articleId);
        $cacheItem = oxNew(CacheItem::class);
        $genericCache->set($cacheKey, $cacheItem);

    return $data;

This is also the case in OXID 6.5.
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined


There are no notes attached to this issue.