View Issue Details

IDProjectCategoryView StatusLast Update
0001831OXID eShop (all versions)4.08. Cachepublic2012-12-10 13:38
Reporteravenger Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001831: Invalid argument supplied for foreach() in \core\oxbase.php on line 1016
DescriptionUpdaten form CE 4.2 to CE 4.3.1

This message appears, when the software tries to fetch "oxarticles_allfields_1" from cache, in that code...

foreach ( $aMetaFields as $oVal ) {
  $aRet[strtolower( $oVal->name )] = 0;
}

aMetaFields is "FALSE" instead of being an array....

Wrapping the loop with a check for "is_array" stops the message.

        if (is_array($aMetaFields)) {
          foreach ( $aMetaFields as $oVal ) {
              $aRet[strtolower( $oVal->name )] = 0;
          }

The "tmp"-directory was cleared....
        }
TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

There are no notes attached to this issue.