Jump to content
  • 0

Billing -> Reports. CSV export broken. JSON is fine.


Question

Posted

JSON works with no issues.   All of the CSV reports produce this error:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

[2024-10-14T16:40:55.045150+00:00] general.ERROR: UnknownException: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/blesta.test.com/htdocs/app/models/report_manager.php:341 Stack trace: #0 /var/www/blesta.test.com/htdocs/vendors/monolog/monolog/src/Monolog/ErrorHandler.php(232): UnknownException::setErrorHandler() #1 [internal function]: Monolog\ErrorHandler->handleError() #2 /var/www/blesta.test.com/htdocs/app/models/report_manager.php(341): str_replace() #3 /var/www/blesta.test.com/htdocs/app/models/report_manager.php(358): ReportManager->formatCsv() #4 /var/www/blesta.test.com/htdocs/app/models/report_manager.php(325): ReportManager->buildCsvRow() #5 /var/www/blesta.test.com/htdocs/app/models/report_manager.php(232): ReportManager->buildCsv() #6 /var/www/blesta.test.com/htdocs/app/controllers/admin_reports.php(43): ReportManager->fetchAll() #7 /var/www/blesta.test.com/htdocs/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminReports->index() #8 /var/www/blesta.test.com/htdocs/index.php(21): Dispatcher::dispatch() #9 {main} 

 

1 answer to this question

Recommended Posts

  • 0
Posted

I'm not able to reproduce this, what version of PHP are you running? What version of Blesta is it?

I tried "Invoice Creation", and "Transactions Applied", with CSV and the report was downloaded. PHP 8.2.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...