Viewing 4 replies - 1 through 4 (of 4 total)
  • Same problem here. Export to Excel does not work. Fatal error.

    Same here. It’s an compile error in line 529 of:

    /advanced-cf7-db/admin/class/PHPExcel/Shared/String.php

    Array and string offset access syntax with curly braces is no longer supported.

    It’s due to an update to PHP 8.

    Could you please fix this. Thank you!

    Same error
    it is an incompatibility with PHP 8

    Will be fixed in an update or do we have to fix the code manually?
    thx

    To resolve this issue, you’ll need to modify the code in the String.php, and a bunch of other files in PHPExcel folder, to use supported syntax. Since curly brace array and string offset access is no longer allowed, you’ll need to identify the specific lines of code that are causing the error and update them to use valid syntax.

    Here’s a brief overview of how curly brace array and string offset access is typically used and how it has changed:

    Old syntax (no longer supported):

    $value = $array{0}; // This syntax is no longer supported

    New syntax (supported):

    $value = $array[0]; // Use square brackets for array access

    You’ll need to search for occurrences of curly brace array and string offset access in the files and update them to use the supported syntax.

    i did it and it was a bit tedious, I had to reload several time the page, get the error showing which file I had to modify, and after 15 mins of work the script runs again.

    The most annoying part is when the script begins to run, but the excel has the error instead of the data, but again, you can fix the files that are shown in the error ()at least 4 or 5) and then at the end it works.

    Then better to make a copy of the folder “advanced-cf7-db/admin/class/PHPExcel in case the plugin will be updated and the problem not fixed…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘fatal error when exporting to excel’ is closed to new replies.