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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...