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…