New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tcpdf - Warning - array_merge(): Expected parameter 1 to be an array, null given - Matomo 4.1.1 #17182
Comments
@datango Are you using any scheduled reports? Can you try clicking the 'Send report now' link for each on the 'Email Reports' admin page to find which one is causing this error? Can you also provide the core:archive output? And can you let us know if you're using matomo from git or are installing composer dependencies yourself? |
Facing with this issue on Matomo 3.14.1 for sending scheduled reports. The first ones are OK, for the next 6 ones, this error occurs : And for the final reports, these errors occur : Using official matomo Docker image. When I click on "Send report now", the problematic reports are sent without errors. |
Hi @davidlemaitre, thanks for the info! For the reports that failed, would you be able to provide the report configuration found in the "Email Reports" admin page? Is there anything different about the ones that failed compared to the ones that succeeded? (Note: if you do not wish to post that information publicly, you can email me: dizzy@innocraft.com) |
In Matomo 4 the old Mail library has been replaced with a modern one, so this error might be fixed there |
@Findus23 Same on Matomo 4.2.1:
|
@crazy-max I'm not sure how that actually happens for you, but I assume this might be a bug in TCPDF. It actually calls an |
Hi @diosmosis, we have a lot of users configuring scheduled reports keeping the default hour. At different hours, all reports are sent successfully but there are only 2 reports maximum to send. I checked matomo_report db table, I found nothing different between the succeeded reports and the failed ones except for "ts_last_sent" field containing an old date but this is also the case for the last 2 succeeded reports at hour 0. A CSV export of the first failed report with the warning
And a CSV export of the final report causing the ton of warnings (the last one is also about
|
@davidlemaitre Does the |
@sgiehl these errors occur only for some scheduled reports. If I click on "Send report now" or "Download" buttons, nothing to notice in the logs. |
@davidlemaitre which PHP version are you using? Also are you using a cron for archiving? Maybe the log level is different for webserver and cli and so you can see the errors only when triggered through cli and not UI maybe? |
@sgiehl Using official Matomo Docker image version 3.14.1 (PHP 7.4 embedded). A cron is used for archiving every hour.
|
@davidlemaitre could you try if running the command works for you and if the email is sent our correctly:
|
Test email received without errors. My problem is about some reports sent at default hour (majority of users don't change the value in the settings of the report), it seems there errors appear only when there is a lot of reports to send. |
Might it be possible that your mail server cuts the connection when too many emails are sent? |
@davidlemaitre I'm currently facing the same issue with Matomo 3.14.1. How did you fixed it? Thanks. |
Hi @pdavide, I changed the send hour for problematic reports to a quiet hour, no error occurs. |
Thanks @davidlemaitre. |
matomo/vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php(2010)
Warning - array_merge(): Expected parameter 1 to be an array, null given - Matomo 4.1.1
(when running ./console core:archive)
The text was updated successfully, but these errors were encountered: