From 64af7e976e3367e25ce6a183122496f760f5305c Mon Sep 17 00:00:00 2001 From: Samuele Mancuso Date: Thu, 4 Jun 2026 16:15:20 +0200 Subject: [PATCH] fix(import): pass escape arg to fputcsv in CSV example generation PHP 8.4+ deprecates fputcsv() without an explicit $escape parameter. Whoops promotes the deprecation to a thrown exception, aborting createExample(); the import module then returns a JSON error that the frontend navigates to, yielding a 404 on the "Scarica esempio CSV" button. --- src/Importer/CSVImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Importer/CSVImporter.php b/src/Importer/CSVImporter.php index b98496869..251d4cb8f 100644 --- a/src/Importer/CSVImporter.php +++ b/src/Importer/CSVImporter.php @@ -224,7 +224,7 @@ public static function createExample($filepath) fprintf($file, chr(0xEF).chr(0xBB).chr(0xBF)); foreach ($content as $row) { - fputcsv($file, $row, ';'); + fputcsv($file, $row, ';', escape: '\\'); } fclose($file);