Mark
Forum Replies Created
-
Okay done. Gonna need a trusted email address to send the log to, too big and too detailed to share here.
Done this, here’s what the logs say:
[23-Apr-2026 07:16:42 UTC] Matomo: Scheduled tasks archive data
[23-Apr-2026 07:16:42 UTC] Starting bootstrap
[23-Apr-2026 07:16:42 UTC] Finished bootstrap
[23-Apr-2026 07:16:42 UTC] starting archiving
[23-Apr-2026 07:16:42 UTC] is multisite
[23-Apr-2026 07:16:42 UTC] not network admin
[23-Apr-2026 07:16:42 UTC] archive main
[23-Apr-2026 07:16:43 UTC] archive errors: 0
[23-Apr-2026 07:16:43 UTC] doneMatomo diagnostics page still says “Warning: Your WordPress site does not appear to have a system cron job set up to run the WordPress cron.”
Scouting for error logs elsewhere, I do find this apache log (IP and domain obscured):
[Fri Apr 17 18:15:18.385910 2026] [error] [pid 508939] mod_authz_core.c(879): [client IP:0] AH01630: client denied by server configuration: /data/sites/web/mydomain/www/wp-content/plugins/matomo/app/config/global.ini.phpOthers reporting this are running into issues that I don’t see (e.g. being locked out of wp-admin) so I don’t think it’s relevant but it’s the only error I can find anywhere.
Here’s the log from the past two days, with debug logging enabled:
[16-Apr-2026 07:29:34 UTC] Matomo: Save settings
[16-Apr-2026 07:29:34 UTC] Matomo: Changed option last_tracking_code_update: 1776324574
[16-Apr-2026 07:29:34 UTC] Matomo: Save settings
[16-Apr-2026 07:29:50 UTC] Matomo: Scheduled tasks perform update
[16-Apr-2026 07:29:50 UTC] Matomo: No settings changed yet
[16-Apr-2026 08:16:55 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 09:23:30 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 10:34:22 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 11:17:23 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 12:25:29 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 13:18:44 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 14:16:35 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 15:34:16 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 16:17:57 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 16:18:52 UTC] Matomo: Scheduled tasks sync all sites and users
[16-Apr-2026 16:18:52 UTC] Matomo: Matomo is now syncing blogId 1
[16-Apr-2026 16:18:52 UTC] Matomo: Matomo site is known for blog (1)... will update
[16-Apr-2026 16:18:52 UTC] Matomo: Matomo will now sync 2 users
[16-Apr-2026 16:39:47 UTC] Automatic updates starting...
[16-Apr-2026 16:39:48 UTC] Automatic updates complete.
[16-Apr-2026 17:30:31 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 18:17:20 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 19:23:06 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 20:18:03 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 21:20:40 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 22:17:09 UTC] Matomo: Scheduled tasks archive data
[16-Apr-2026 23:21:54 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 00:18:22 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 01:17:27 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 02:26:21 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 03:26:03 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 04:28:30 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 04:44:17 UTC] Automatic updates starting...
[17-Apr-2026 04:44:18 UTC] Automatic updates complete.
[17-Apr-2026 05:23:25 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 06:27:16 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 07:18:08 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 08:26:28 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 09:41:49 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 10:19:46 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 11:26:17 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 12:16:37 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 13:38:34 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 14:35:05 UTC] Matomo: Scheduled tasks archive data
[17-Apr-2026 15:19:29 UTC] Matomo: Scheduled tasks archive dataSo: having removed the `
define('DISABLE_WP_CRON', true);from wp-config, everything works as expected and as needed, EXCEPT that Matomo now insistently and wrongly complains that cron isn’t running. It clearly is.Which means we’re back to the issue of my earlier thread: Matomo is running and cron is working but Matomo somehow thinks it isn’t.
Two more days of debug logging, nothing appears in the log unless I trigger wp-cron manually or execute the archive reports task manually.
I have now commented out the line I was advised to add to wp-config.php just to see whether that makes a difference. That means we’re back to square one as in my previous thread: matomo is complaining that “Warning: Your WordPress site does not appear to have a system cron job set up to run the WordPress cron. Matomo uses the WordPress cron to generate reports and to delete temporary data to provide compliance with various privacy regulations (e.g., GDPR).”
I will wait for a day to see what this gives in the debug logs, and whether Matomo does in fact work despite its complaint.
WordPress site health also reports:
A scheduled event has failed
The scheduled event, matomo_scheduled_archive, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.Switching on logging yesterday. Manually archived (first line). Updated Matomo to 5.8.1. Triggered system cron. Debug log now says (changing my domain to mydomain.org):
[13-Apr-2026 08:55:08 UTC] Matomo: Scheduled tasks archive data
[14-Apr-2026 08:03:02 UTC] Matomo: Changed global option version_history: ["5.8.1","5.8.0","5.7.1","5.7.0"]
[14-Apr-2026 08:03:02 UTC] Matomo: Save settings
[14-Apr-2026 08:03:02 UTC] Matomo: Apply tracking code changes:
[14-Apr-2026 08:03:02 UTC] Matomo: Finished tracking code: <!-- Matomo --><script>
(function () {
function initTracking() {
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);_paq.push(['alwaysUseSendBeacon']);_paq.push(['setTrackerUrl', "\/\/mydomain.org\/wp-content\/plugins\/matomo\/app\/matomo.php"]);_paq.push(['setSiteId', '1']);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src="\/\/mydomain.org\/wp-content\/uploads\/matomo\/matomo.js"; s.parentNode.insertBefore(g,s);
}
if (document.prerendering) {
document.addEventListener('prerenderingchange', initTracking, {once: true});
} else {
initTracking();
}
})();
</script>
<!-- End Matomo Code -->
[14-Apr-2026 08:03:02 UTC] Matomo: Finished noscript code: <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//mydomain.org/wp-content/plugins/matomo/app/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
[14-Apr-2026 08:03:02 UTC] Matomo: Changed option last_tracking_code_update: 1776153782
[14-Apr-2026 08:03:02 UTC] Matomo: Save settings
[14-Apr-2026 08:03:02 UTC] Matomo: Scheduled tasks archive data
[14-Apr-2026 08:03:04 UTC] Matomo: Scheduled tasks sync all sites and users
[14-Apr-2026 08:03:04 UTC] Matomo: Matomo is now syncing blogId 1
[14-Apr-2026 08:03:04 UTC] Matomo: Matomo site is known for blog (1)... will update
[14-Apr-2026 08:03:04 UTC] Matomo: Matomo will now sync 2 users
[14-Apr-2026 08:03:05 UTC] Automatic updates starting...
[14-Apr-2026 08:03:05 UTC] Automatic plugin updates starting...
[14-Apr-2026 08:03:05 UTC] Automatic plugin updates complete.
[14-Apr-2026 08:03:05 UTC] Automatic updates complete.
[14-Apr-2026 08:03:06 UTC] Matomo: Scheduled tasks perform update
[14-Apr-2026 08:03:06 UTC] Matomo: No settings changed yet
[14-Apr-2026 08:03:09 UTC] Matomo: Scheduled tasks update geoip databaseSo, in the 22 hours since start of logging, no hourly entries of cron tasks.
I am triggering the cron manually by going to mydomain.org/wp-cron.php . But obviously I want this to run automatically.
Yes. Have just switched on logging again but FYI no archiving of reports until I manually do so under Troubleshooting. Will report back with longer log.
Doing this now (thanks for your patience).
Here is an error that appears atop the Matomo admin pages in WP Dashboard:
Deprecated: Matomo\Dependencies\Less_Functions::__construct(): Implicitly marking parameter $currentFileInfo as nullable is deprecated, the explicit nullable type must be used instead in [my domain]/wp-content/plugins/matomo/app/vendor/prefixed/wikimedia/less.php/lib/Less/Functions.php on line 13And the debug.log says this:
[24-Mar-2026 10:37:53 UTC] Automatic updates starting...
[24-Mar-2026 10:37:53 UTC] Automatic updates complete.
[24-Mar-2026 10:37:53 UTC] Matomo: Scheduled tasks sync all sites and users
[24-Mar-2026 10:37:53 UTC] Matomo: Matomo is now syncing blogId 1
[24-Mar-2026 10:37:53 UTC] Matomo: Matomo site is known for blog (1)... will update
[24-Mar-2026 10:37:53 UTC] Matomo: Matomo will now sync 2 users
[24-Mar-2026 10:37:56 UTC] Matomo: Scheduled tasks perform update
[24-Mar-2026 10:37:56 UTC] Matomo: No settings changed yet
[24-Mar-2026 10:39:02 UTC] PHP Deprecated: Matomo\Dependencies\Less_Functions::__construct(): Implicitly marking parameter $currentFileInfo as nullable is deprecated, the explicit nullable type must be used instead in /[my domain]/wp-content/plugins/matomo/app/vendor/prefixed/wikimedia/less.php/lib/Less/Functions.php on line 13Manually running the archiving works, but the automated archiving doesn’t seem to.
- This reply was modified 2 months, 2 weeks ago by Mark.
As an addition (posting separately because it is tangential).
Regarding this: “So very little changes like adding or removing a “no” can change the whole context of a post.”
I am aware of how words work :D. Look, if I want to play gotcha by surrepetitiously editing blog posts, I will always be able to do that. But that is precisely the kind of edge case that when you center the design around it results in a system that is less usable and more noisy for the most common use cases and for most users. I guess what I am asking is, do we have any agency in determining what counts as an edit, and can the plugin support a level of trust or self-determination in that regard?
Well, let me get this straight. ActivityPub offers a “Post content” setting, where I have the following:
<p><strong>[ap_title]</strong></p>
[ap_excerpt length=1600]
<p>[ap_permalink type="html"]</p>I also have max 1 Media attachment (which will typically be the Featured Image).
So this is the sum total of info that I am assuming is pushed to the Fediverse. So the issue of how to determine what changed is narrowed down, in my use case, to the question: did anything in those 3 fields (4 including the featured image) change? If not (and it never is in the edits I most frequently make), then that doesn’t qualify as an edit to the fediverse post generated according to this template.
What would it take to do a diff to determine whether this is the case? I ask this not knowing the plugin architecture and not knowing the format of the info made available by AP to different fediverse clients, so please bear with my ignorance. But the issue happens often enough to make me not want to federate posts at all for fear of generating a notification torrent.
FWIW, I run multiple websites on the same (virtual) server at the same host, and I am running into this issue only for the most recently installed one — a fresh WP installation with a fresh Matomo install, everything up to date, very few other plugins. So I am at a loss as to how to fix this or where that CRON discrepancy could be coming from.
OMG sorry for being dense, but I really found it hard to wrap my head around the fact that to get rid of a Matomo error message about how my system “does not appear to have a system cron job set up”, I had to go into said system and tell it to “disable WP_CRON” in my wp-config. It feels totally counterintuitive although reading back I see that you did say that and point to the WP developer docs first time around.
Suggestion to rephrase that wordy Matomo message to directly mention the relevant wp-config.php command and explain this does NOT mean you’re disabling all cron jobs, it just means you’re stopping WP from executing them at every page load. And perhaps add something to this effect to the Matomo documentation.
Thank you for your time, it appears it is solved indeed!
The “Closure” message is found in the overview of cron jobs supplied by the WP Crontrol plugin. And Matomo itself still displays these two warnings:
There are some errors in the Matomo Diagnostics System report that may prevent the plugin for working normally.
There are some issues with your system. Matomo will run, but you might experience some minor problems. See below for more information.Checking the system log it also says:
Warning System Cron Set Up: No (Warning: Your WordPress site does not appear to have a system cron job set up to run the WordPress cron. Matomo uses the WordPress cron to generate reports and to delete temporary data to provide compliance with various privacy regulations (e.g., GDPR). Without a system cron job set up, these tasks may be run irregularly or infrequently, which could lead to personal data being retained longer than allowed. To avoid this, we recommend setting up a system cron job to run the WordPress cron regularly. Contact your hosting provider if you require help with this.)
So Matomo thinks a System Cron is not set up.
However, having set debugging to true, I don’t see any PHP errors surfacing.
And I do now see visitor events being registered. So what compels Matomo to complain things are not right?
No, wp-config does not have any line about WP_CRON. In response to your post I just tried *adding* that and and setting it to
falsebut that didn’t make a difference either.Full error message:
Closure in wp-content/plugins/matomo/classes/WpMatomo/ScheduledTasks.php at line 99
WpMatomo\ScheduledTasks->archive()
Closure in wp-content/plugins/matomo/classes/WpMatomo/ScheduledTasks.php at line 112