PHP Fatal error: 'break' not in the 'loop' or 'switch' context

When you try export file and get error like this: Fatal error: 'break' not in the 'loop' or 'switch' context in .../vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php on line 581

To fix this error you need open file: (your store folder)/vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php on line 581 and comment or remove this row:

  • Product Catalog (CSV, Excel) Import Product Catalog (CSV, Excel) Import
  • Functional Blog Functional Blog