No more visit counting since upgrade to Matomo 5.11.1

Hi,

I cannot see any visit count since the very time I upgraded to Matomo 5.11.1, presumably from Matomo 4.4.1.

Matomo Update History says 4.4.1,4.0.1-b1,3.5.1-b1,3.0.4 (yes, I obviously don’t upgrade often enough)

The “issue” is that… the interface shows a number of warning, but no particular issue, and the upgrade is said to have been successful.

<details>
<summary>Click to view System Check</summary>

### Mandatory checks

#### Version PHP >= 7.2.5:
 ✔ 7.4.33

#### PDO extension:
 ✔ 

#### PDO\MYSQL extension:
 ✔ 

#### MYSQLI extension:
 ✔ 

#### Autres extensions requises:
 ✔ zlib ✔ json ✔ filter ✔ hash ✔ session

#### Fonctions requises:
 ✔ debug_backtrace ✔ escapeshellarg ✔ eval ✔ hash ✔ gzcompress ✔ gzuncompress ✔ pack

#### Configuration PHP requise (php.ini):
 ✔ session.auto_start = 0 ✔ max_execution_time = 0 OR = -1 OR >= 30

etc.

What can I do?

Thanks!

Hi,

I still have no Matomo working; what can I do? Of course deleting everything might be an option, but clearly I’d like to avoid that :stuck_out_tongue:

Hello there,

Can you share the public URL of any website which is connected/integrated with Matomo?

I want to cross if there is any Matomo related error being displayed in console or network tab.

Also note that, when I try to regenerate the code, I get an empty box and the following error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'plugin_name' in 'where clause'

Please take a look at the attached screenshots, Matomo is not working fine. It is throwing 400 bad request error.

@matomonp44 ,
Can you share the Matomo log file if possible? So that I can identify the actual issue with Matomo.

Tons of errors of this form

ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] Exception: /core/Tracker/Db/Pdo/Mysql.php(261): Error query: Error query: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘plugin_name’ in ‘where clause’ In query: SELECT setting_name, setting_value FROM piwik_site_setting WHERE idsite = ? and plugin_name = ? Parameters: array (
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] 0 => 11,
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] 1 => ‘CnilPolicy’,
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] ) In query: SELECT setting_name, setting_value FROM piwik_site_setting WHERE idsite = ? and plugin_name = ? Parameters: array (
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] 0 => 11,
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] 1 => ‘CnilPolicy’,
ERROR Piwik\Tracker\Handler[2026-07-07 11:59:22 UTC] [352c6] ) [Query: ?action_name

Seems like a database structure problem? Presumably when updating?

A successful upgrade doesn’t always mean the reporting data is being processed correctly. Since the problem started immediately after upgrading from Matomo 4.4.1 to 5.11.1, there are a few things I’d check first:

  • Verify whether new visits are actually being tracked by opening Visitors → Real-time and visiting your site yourself.

  • Check whether the archive reports are being generated. If you’re using cron archiving, make sure the archiving job is still running successfully after the upgrade.

  • Review Administration → System → Diagnostics (or the Matomo logs) for any database or archiving errors that may not appear in the basic System Check.

  • Clear the Matomo cache and, if available, trigger Invalidate archived reports so Matomo rebuilds them.

  • Since you’re upgrading across several major versions, it’s also worth running any pending database migrations again to ensure nothing was skipped.

If those don’t reveal the issue, it would help if you could share:

  • Do Real-time Visitors show new visits?

  • Are all websites affected or just one?

  • Is the visit count missing for only new data, or has all historical data disappeared as well?

  • Are you using browser archiving or a cron job for archiving?

Those details should make it much easier to identify whether this is a tracking, archiving, or database migration issue.

  1. Verify whether new visits are actually being tracked by opening Visitors → Real-time and visiting your site yourself.

No, they don’t, it’s all blocked at 14th June 2026. Nothing since.

Review Administration → System → Diagnostics (or the Matomo logs) for any database or archiving errors that may not appear in the basic System Check.

Yes, tons of errors in the logs (see my previous message).
No issue in the diagnosis though.

  1. Are all websites affected or just one?

    All.

  2. Is the visit count missing for only new data, or has all historical data disappeared as well?

    I can see former data.

Are you using browser archiving or a cron job for archiving?

Browser cache.

The log that I posted before show an issue in the database format, probably a failed update? So no data seems to be recorded because all MySQL requests fail.

I’m still stuck!

Is there anything I can do except deleting everything and restarting a fresh install?

Matomo 5 changed some internal archiving logic, and if the upgrade process didn’t fully migrate/re-archive your existing data, the raw visit logs might still be intact in matomo_log_visit but the aggregated reports (what the dashboard actually reads) haven’t been rebuilt yet. Try forcing a re-archive via the CLI:

php console core:archive --force-all-websites --force-all-periods=315576000 --force-date-last-n=1000 --url=https://your-matomo-url

This regenerates the report data from scratch based on raw logs, which is often the fix after a large version jump.

Check for failed migration steps. Since PHP 7.4 is well below what Matomo 5 actually recommends (Matomo 5 wants PHP 7.4+ but really benefits from 8.1+, though 7.4 should still technically work), verify there’s no silent migration failure. Go to Administration > System Check and also check the actual updater log file directly on the server, usually somewhere like tmp/logs/ or check matomo_log_error in phpMyAdmin if enabled, sometimes migrations partially fail without surfacing clearly in the UI “success” message.

Confirm the date range/website selector isn’t the actual issue. Sounds basic, but after major upgrades some users find the dashboard is just defaulting to an unexpected date range or the wrong site ID got selected post-migration. Double check you’re not just looking at an empty date range before assuming it’s a data loss issue.

If raw data really is missing: Check matomo_log_visit table row counts directly via phpMyAdmin/database client, compare against what you’d expect. If the raw logs are there but reports are empty, it’s an archiving issue (fixable via the command above). If raw logs themselves are gone, that’s a much bigger problem pointing to a failed migration script during the version jump, and you’d want to restore from a pre-upgrade database backup if you have one before doing anything else.

Given you jumped multiple major versions at once, I’d genuinely recommend restoring your pre-upgrade backup if available, then upgrading incrementally (4.4.1 → 4.x latest → 5.0 → 5.11.1) rather than troubleshooting forward, large version-skip upgrades are exactly where Matomo’s migration scripts are most likely to hit an edge case they weren’t tested against.

Losing visit counting immediately after upgrading to Matomo 5.11.1 sounds like an important issue, especially if tracking was working normally before the update. It would be helpful to compare the tracking configuration before and after the upgrade and check whether visits are still being received but not processed or reported correctly.