/core/Archive/DataCollection.php(123): Deprecated

it is a php8.2 error message

WARNING: /core/Archive/DataCollection.php(123): Deprecated - Creation of dynamic property Piwik\Archive\DataCollection::$segment is deprecated - Matomo 4.13.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: VisitsSummary, Action: get, Method: API.get, In CLI mode: false)
1 Like

it is a php8.2 warning message:

WARNING: /core/DataTable/Filter/Truncate.php(60): Deprecated - Creation of dynamic property Piwik\DataTable\Filter\Truncate::$labelSummaryRow is deprecated - Matomo 4.13.0
WARNING: /core/DataTable/Filter/Truncate.php(61): Deprecated - Creation of dynamic property Piwik\DataTable\Filter\Truncate::$columnToSortByBeforeTruncating is deprecated - Matomo 4.13.0
WARNING: /core/DataTable/Filter/Truncate.php(62): Deprecated - Creation of dynamic property Piwik\DataTable\Filter\Truncate::$filterRecursive is deprecated - Matomo 4.13.0 -
WARNING: /core/Plugin/Archiver.php(76): Deprecated - Creation of dynamic property Piwik\Plugins\UserId\Archiver::$maximumRows is deprecated - Matomo 4.13.0
WARNING: /core/DataTable/Filter/Truncate.php(56): Deprecated - Creation of dynamic property Piwik\DataTable\Filter\Truncate::$truncateAfter is deprecated - Matomo 4.13.0 -
1 Like

Same thing here. How to solve this problem?

Already reported in:

Other ones (posted on December, the 31st) just added now:

Fixed in:

@Outline @Bludau_Media_IT_Serv can you check?

I’m not familiar with github, can you tell me what to do in general terms so I can give a try?

Hi @Outline
You could report the changes found at:

in your own files, and check if this fix the warnings…
Red lines: old lines
Green lines: new lines
Dark red/green: highlight on the detailed changes
Don’t worry about blue blocks, they are unchanged reduced blocks (for changes readability)

You may also try to replace the full file content by the one found under … button then View file link, but with the risk to take also other changes not related o this particular fix (and break something else in your Matomo)

Good afternoon @Outline, @Bludau_Media_IT_Serv,
A new version of Matomo including the fix has been released:

1 Like

Hi, I just tried the new version, I have no more errors on the dashboard but when I try to archive :

root@monitor:/home/analytics/www# /usr/bin/php /home/analytics/www/console core:archive --url=https://analytics.site.net/
WARNING [2023-01-17 21:52:39] 23184  /home/analytics/www/core/Console.php(135): Deprecated - Callables of the form ["Piwik\Console", "Symfony\Component\Console\Application::doRun"] are deprecated - Matomo 4.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2023-01-17 21:52:39] 23184  /home/analytics/www/core/CronArchive.php(251): Deprecated - Creation of dynamic property Piwik\CronArchive::$rawLogDao is deprecated - Matomo 4.13.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
INFO [2023-01-17 21:52:39] 23184  ---------------------------
INFO [2023-01-17 21:52:39] 23184  INIT
INFO [2023-01-17 21:52:39] 23184  Running Matomo 4.13.1 as Super User
INFO [2023-01-17 21:52:39] 23184  ---------------------------
INFO [2023-01-17 21:52:39] 23184  NOTES
INFO [2023-01-17 21:52:39] 23184  - Async process archiving supported, using CliMulti.
INFO [2023-01-17 21:52:39] 23184  - Reports for today will be processed at most every 3600 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2023-01-17 21:52:39] 23184  - Archiving was last executed without error 14 min 54s ago.
INFO [2023-01-17 21:52:39] 23184  ---------------------------
INFO [2023-01-17 21:52:39] 23184  START
INFO [2023-01-17 21:52:39] 23184  Starting Matomo reports archiving...
INFO [2023-01-17 21:52:39] 23184  Start processing archives for site 1.
INFO [2023-01-17 21:52:39] 23184    Will invalidate archived reports for today in site ID = 1's timezone (2023-01-17 00:00:00).
INFO [2023-01-17 21:52:39] 23184  Finished archiving for site 1, 0 API requests, Time elapsed: 0.043s [1 / 1 done]
INFO [2023-01-17 21:52:39] 23184  Done archiving!
INFO [2023-01-17 21:52:39] 23184  ---------------------------
INFO [2023-01-17 21:52:39] 23184  SUMMARY
INFO [2023-01-17 21:52:39] 23184  Processed 0 archives.
INFO [2023-01-17 21:52:39] 23184  Total API requests: 0
INFO [2023-01-17 21:52:39] 23184  done: 0 req, 94 ms, no error
INFO [2023-01-17 21:52:39] 23184  Time elapsed: 0.094s
INFO [2023-01-17 21:52:39] 23184  ---------------------------
INFO [2023-01-17 21:52:39] 23184  SCHEDULED TASKS
INFO [2023-01-17 21:52:39] 23184  Starting Scheduled tasks... 
INFO [2023-01-17 21:52:39] 23184  done
INFO [2023-01-17 21:52:39] 23184  ---------------------------
Error: error or warning logs detected, exit 1

I have put php 8.1 back on until it is fixed. I’m still available if you need me to do some testing.

Ticket submitted at:

1 Like