Open nturini-cascinanet opened 1 year ago
I'm interested to know if an update compatible with version 8 will be released in the future.
(view error / line)
In file clases\product.php i comment this line: (line 7093) and the problem are solved. This is not the best solution and i don't know than delete this line may by thorw.
// result is indexed by recordset order and not position. positions start at index 1 so we need an empty element
// array_unshift($result, null); // foreach ($result as &$value) { // $value = $value['id_product']; // }
or this : // result is indexed by recordset order and not position. positions start at index 1 so we need an empty element if ($result !== null) { array_unshift($result, null); foreach ($result as &$value) { if (is_array($value) && isset($value['id_product'])) { $value = $value['id_product']; } } }
This issue is on prestashop. I also apply this fix
array_unshift($result, null);
foreach ($result as $key => &$value) {
if ($value !== null) {
$value = $value['id_product'];
}
}
Trying to add a new product in prestashop 8 i always receive this error
in 1.7.8.x versions the insertion works correctly