matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.95k stars 2.66k forks source link

Notice - tempnam(): file created in the system's temporary directory #21372

Open tsteur opened 1 year ago

tsteur commented 1 year ago

Seeing below message in our logs.

Unsure if there's an issue or if it can be avoided or what implications are.

[2023-10-03 13:25:06] piwik.WARNING: /vendor/tecnickcom/tcpdf/include/tcpdf_static.php(266): Notice - tempnam(): file created in the system's temporary directory - Matomo 5.0.0-rc4 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) {"trace":[{"function":"errorHandler","class":"Piwik\ErrorHandler","type":"::"},{"file":"/vendor/tecnickcom/tcpdf/include/tcpdf_static.php","line":266,"function":"tempnam"},{"file":"/vendor/tecnickcom/tcpdf/tcpdf.php","line":6974,"function":"getObjFilename","class":"TCPDF_STATIC","type":"::"},{"file":"/core/ReportRenderer/Pdf.php","line":462,"function":"Image","class":"TCPDF","type":"->"},{"file":"/core/ReportRenderer/Pdf.php","line":331,"function":"paintGraph","class":"Piwik\ReportRenderer\Pdf","type":"->"},{"function":"renderReport","class":"Piwik\ReportRenderer\Pdf","type":"->"},{"file":"/plugins/ScheduledReports/API.php","line":587,"function":"array_walk"},{"file":"/plugins/ScheduledReports/API.php","line":653,"function":"generateReport","class":"Piwik\Plugins\ScheduledReports\API","type":"->"},{"file":"/core/Context.php","line":75,"function":"Piwik\Plugins\ScheduledReports\{closure}","class":"Piwik\Plugins\ScheduledReports\API","type":"->"},{"file":"/plugins/ScheduledReports/API.php","line":728,"function":"changeIdSite","class":"Piwik\Context","type":"::"},{"function":"sendReport","class":"Piwik\Plugins\ScheduledReports\API","type":"->"},{"file":"/core/Scheduler/Scheduler.php","line":309,"function":"call_user_func"},{"file":"/core/Scheduler/Scheduler.php","line":154,"function":"executeTask","class":"Piwik\Scheduler\Scheduler","type":"->"},{"file":"/plugins/CoreAdminHome/API.php","line":76,"function":"run","class":"Piwik\Scheduler\Scheduler","type":"->"},{"file":"/core/CronArchive.php","line":659,"function":"runScheduledTasks","class":"Piwik\Plugins\CoreAdminHome\API","type":"->"}]} {"class":"ScheduledReports","request_id":"20210"}

sgiehl commented 1 year ago

We are actually setting the cache path for tcpdf here: https://github.com/matomo-org/matomo/blob/0d979018ce23e8e0187dd435cc8de99fcf3c3585/plugins/ScheduledReports/config/tcpdf_config.php#L20 So it actually shouldn't use the system temp path. Not sure how that can happen...

tsteur commented 1 year ago

Maybe this is a duplicate of https://github.com/matomo-org/matomo/issues/18879 ?