Cronjob failing

Hi everyone,

I have a Matomo 5.0.0 setup and just added a cronjob as recommended but I keep getting this error that I’m not sure how to resolve.

The cron job is setup as

15  *   *   *   *   /usr/local/bin/php /home/my_user/domains/domain.com/public_html/analytics/console core:archive --url=https://domain.com/analytics/ >> /home/my_user/domains/domain.com/public_html/analytics/logs/cron-matomo-archive.log

And whenever it runs, I get the following error

/usr/local/bin/php: /usr/local/lib/libz.so.1: no version information available (required by /opt/alt/libxml2/usr/lib64/libxml2.so.2)
PHP Fatal error:  Cannot override final method Piwik\Plugin\ConsoleCommand::execute() in /home/my_user/domains/domain.com/public_html/analytics/plugins/CoreConsole/Commands/GenerateAngularComponent.php on line 27

Any suggestion or help is greatly appreciated.

p.s. I have replaced the actual user and domain with my_user and domain respectively for privacy reasons.