Jump to content

Edit History

walidkira

walidkira

Hi ,

When this error occurs in my shop, I come up with this solution.


In ProductAssembler.php:111, make this changes.

 

        if ($rows === false) {
            return $rawProduct;
        }
        //  ****
  $mergedData = array_merge($rows[0], $rawProduct);

    if (!is_array($mergedData)) {
        throw new Exception("La méthode addMissingProductFields doit retourner un tableau.");
    }

    return $mergedData;
    // ********
    }

walidkira

walidkira

Hi ,

When this error occurs in my shop, I come up with this solution.


In ProductAssembler.php:111, make changes to this line.
 return array_merge($rows[0], $rawProduct);  ==>  return array_merge($rows, $rawProduct); 
Clean Cache & VAR
return the code as it was before :  array_merge($rows[0], $rawProduct);

×
×
  • Create New...