Hi this module edited for me debug for chat GPT 4o
SET ONLY PHP 8.0 (TESTED FOR PHP 8.0) INSTALL MODULE daneaimport.zip FOR PRESTASHOP 8.1.X
I REPEAT! TESTED FOR PRESTASHOP 8.1.x and PHP 8.0
1) FOR PRODUCT PROBLEM line 391: /public_html/prestashop/src/Adapter/Product/QueryHandler/GetProductForEditingHandler.php
Replace this code or replace file:
private function getDetails(Product $product): ProductDetails
{
$isbn = $product->isbn !== null ? $product->isbn : 'Valore predefinito';
$upc = $product->upc !== null ? $product->upc : 'Valore predefinito';
$ean13 = $product->ean13 !== null ? $product->ean13 : 'Valore predefinito';
$mpn = $product->mpn !== null ? $product->mpn : 'Valore predefinito';
$reference = $product->reference !== null ? $product->reference : 'Valore predefinito';
return new ProductDetails($isbn, $upc, $ean13, $mpn, $reference);
}
2) FOR CATEGORY PROBLEM Line 71 : /public_html/prestashop/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php
Replace this code or replace file:
protected function modifyRecords(array $records): array
{
foreach ($records as $key => $record) {
if (is_string($record['description'])) {
$records[$key]['description'] = mb_substr(strip_tags(stripslashes($record['description'])), 0, self:ESCRIPTION_MAX_LENGTH);
}
}
return $records;
}
}
Enjoy Merry Christmas and Thank you for all!
Post automatically merged:
I'm working on the new release 2.5.1 which solves numerous bug fixes. I'll publish it on the forum soon, thanks for your patience.
Attachments
Last edited: