Last Successful Archiving Completion error

Last Successful Archiving Completion error Archiving last ran successfully on Wednesday, February 14, 2024 23:39:42 which is 63 days 07:56:08 ago

When researching the solution I discovered a recommendation to add the following cron job: console core:archive

As this had no effect I was told by my server support:

I’ve edited your cron from www-data /usr/bin/php /home/chocola5/public_html/wp-content/plugins/matomo/app/console core:archive --url= > /home/chocola5/public_html/matomo-archive.log to /usr/bin/php /home/chocola5/public_html/wp-content/plugins/matomo/app/console core:archive --url= > /home/chocola5/public_html/matomo-archive.log and that is now successfully running.

The logs for this cron job can be found in /home/chocola5/public_html/matomo-archive.log

The log file is indicating a critical error was triggered on your site and checking the error_logfile shows the following error:

[10-Apr-2024 07:02:05 UTC] PHP Fatal error:  Cannot override final method Piwik\Plugin\ConsoleCommand::execute() in /home/chocola5/public_html/wp-content/plugins/matomo/app/plugins/CoreConsole/Commands/GenerateAngularComponent.php on line 27

Hi Tom, Which plugin are you running with your Wordpress: Matomo for Wordpress or Connect Matomo?

1 Like

The error message indicates that the code seems to have undergone an incomplete update at some point - the code is not all from the same version.

To fix this, you need to do a successful update. If you end up uninstalling and reinstalling the Matomo for Wordpress plugin, be careful. You should ensure to check the “keep data on uninstall” option, otherwise all your data will get deleted.

This guide has some advice:

1 Like