Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a diagnostic: check that the database has all the tables and columns #22614

Open
atom-box opened this issue Sep 24, 2024 · 3 comments
Open
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged

Comments

@atom-box
Copy link
Contributor

atom-box commented Sep 24, 2024

A frequent question on Matomo Forum is "How do I fix the error: Column Not Found"? We received this question in Forum twice per month in 2023 and 2024.

The proposed story here is: make a command line and / or web interface check (on the System Check page), to check that the database has all the tables and columns it should have?

Our user in the Matomo Forum proposed that it could work this way:

All needed information are already there (Mysql.php and mysqls DESCRIBE), but it still is somethat complex to match that together.

@atom-box atom-box added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. To Triage An issue awaiting triage by a Matomo core team member labels Sep 24, 2024
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/sqlstate-42s22-column-not-found-1054-unknown-column-creator-login-in-field-list/30925/7

@atom-box
Copy link
Contributor Author

atom-box commented Sep 24, 2024

(To add some context, the three main things I encounter which give Matomo On Premises a reputation for being "difficult" and "not for everyone" are:

  • errors during core:archive
  • not knowing how and when to run core:invalidate-report-data + core:archive
  • having a broken update.

This story attempts to fix that third thing above, a broken update. )

@randy-innocraft randy-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Sep 24, 2024
@KarthikRaja1388
Copy link

Another customer is facing the same issue during update.
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'botType' in 'field list'

Also the same customer had same issue with Heatmaps and Session recording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. triaged
Projects
None yet
Development

No branches or pull requests

4 participants