I am getting this error , why

try to run a report it seem to generate ok resault when i request to export or run CSV file.
I get Error 500 place in on empty page with Error 500 server.
Can i get any help on this not sure why i haven’t made any changes.

Hi,

Are there any details about the error in storage/logs

this what see in the log some of the error.
[2022-03-17T01:24:43.354964+00:00] production.ERROR: ErrorException [0] : invoice/vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php [Line 526] => Array and string offset access syntax with curly braces is deprecated {“context”:“PHP”,“user_id”:1,“account_id”:1," ",“method”:“POST”,“user_agent”:“Mozilla/5.0 (OS; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36”,“locale”:“en”,“ip”:“IPaddress”,“count”:5,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“reports”} []
[2022-03-17T01:24:43.355280+00:00] production.ERROR: [stacktrace] 2022-03-17 01:24:43 Array and string offset access syntax with curly braces is deprecated: #0 /invoice/vendor/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php(79): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, ‘Array and strin…’, ‘root’, 526, Array) #1 invoice/vendor/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php(79): require() #2 [internal function]: PHPExcel_Autoloader::load(‘PHPExcel_Shared…’) #3 invoice/vendor/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php(11): spl_autoload_call(‘PHPExcel_Shared…’) #4 invoice/vendor/phpoffice/phpexcel/Classes/PHPExcel/Settings.php(9): require(’/home/citywidet…’) #5 /invoice/vendor/composer/ClassLoader.php(571): include(’/home/citywidet…’) #6 vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile(’/home/citywidet…’) #7 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘PHPExcel_Settin…’) #8 invoice/vendor/maatwebsite/excel/src/Maatwebsite/Excel/ExcelServiceProvider.php(240): spl_autoload_call(‘PHPExcel_Settin…’) #9 invoice/vendor/maatwebsite/excel/src/Maatwebsite/Excel/ExcelServiceProvider.php(103): Maatwebsite\Excel\ExcelServiceProvider->setLocale() #10 invoice/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Maatwebsite\Excel\ExcelServiceProvider->Maatwebsite\Excel{closure}(Object(Illuminate\Foundation\Application), Array) #11 /invoice/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build(Object(Closure)) #12 invoice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\Container\C

I think this is a problem with the library we’re using and PHP 7.4

This info may help: https://stackoverflow.com/a/63617428/497368