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

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'description' in 'field list' #19886

Closed
micker opened this issue Oct 19, 2022 · 16 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@micker
Copy link

micker commented Oct 19, 2022

after update to 4.12.1
i have this error when i try to create a new site
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'description' in 'field list'
thanks for any help

@micker micker added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Oct 19, 2022
@feralhawk
Copy link

Same issue here when trying to create a new variable in tag manager. Database reupdate did not solve the problem.

@heurteph-ei
Copy link

Seems to be linked to #19887 and/or matomo-org/tag-manager#557

@MatomoForumNotifications

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

https://forum.matomo.org/t/facebook-pixel-tag-manager-and-complianz/47927/2

@AltamashShaikh
Copy link
Contributor

Hey everyone, Matomo 4.12.2 was released today and should fix the issue.
Closing the issue for now, please let us know here if you are still facing issues after upgrade

@thomasstr
Copy link

thomasstr commented Oct 21, 2022

After update this issue still persists. Also when trying to create triggers in Tag Manager.

@AltamashShaikh
Copy link
Contributor

@thomasstr Did you run ./console core:update after the update ?

@thomasstr
Copy link

Yes, It ran it through the automatically updater. If I can supply with anything else, let me know.

@AltamashShaikh
Copy link
Contributor

Do you have access to your Mysql and command line ?

@thomasstr
Copy link

Do you have access to your Mysql and command line ?

Yes I do.

@AltamashShaikh
Copy link
Contributor

Do you have access to your Mysql and command line ?

Yes I do.

Please check the version of plugin using this query SELECT * FROM matomo_option where option_name='version_tagmanager'
If the option_value is 4.12.2 update it to 4.11.0 chances are that the update didn't run properly
Next execute this command in your cli ./console core:update and check if it fixes the issue or not

@thomasstr
Copy link

It added the columns now. Thanks for the help.

`
./console core:update

*** Update ***

Database Upgrade Required

Your Matomo database is out-of-date, and must be upgraded before you can continue.

The following plugins will be updated: TagManager.

*** Note: this is a Dry Run ***

ALTER TABLE `matomo_tagmanager_tag` ADD COLUMN `description` VARCHAR(1000) NOT NULL DEFAULT '' AFTER `name`;
ALTER TABLE `matomo_tagmanager_trigger` ADD COLUMN `description` VARCHAR(1000) NOT NULL DEFAULT '' AFTER `name`;
ALTER TABLE `matomo_tagmanager_variable` ADD COLUMN `description` VARCHAR(1000) NOT NULL DEFAULT '' AFTER `name`;

*** End of Dry Run ***

A database upgrade is required. Execute update? (y/N) y

Starting the database upgrade process now. This may take a while, so please be patient.

*** Update ***

Database Upgrade Required

Your Matomo database is out-of-date, and must be upgraded before you can continue.

The following plugins will be updated: TagManager.

The database upgrade process may take a while, so please be patient.

Executing ALTER TABLE matomo_tagmanager_tag ADD COLUMN description VARCHAR(1000) NOT NULL DEFAULT '' AFTER name;... Done. [1 / 3]
Executing ALTER TABLE matomo_tagmanager_trigger ADD COLUMN description VARCHAR(1000) NOT NULL DEFAULT '' AFTER name;... Done. [2 / 3]
Executing ALTER TABLE matomo_tagmanager_variable ADD COLUMN description VARCHAR(1000) NOT NULL DEFAULT '' AFTER name;... Done. [3 / 3]

Matomo has been successfully updated!`

@MatomoForumNotifications

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

https://forum.matomo.org/t/mysqli-prepare-error-unknown-column-description-in-field-list/47919/7

@develth
Copy link

develth commented Oct 21, 2022

Please check the version of plugin using this query SELECT * FROM matomo_option where option_name='version_tagmanager' If the option_value is 4.12.2 update it to 4.11.0 chances are that the update didn't run properly Next execute this command in your cli ./console core:update and check if it fixes the issue or not

That solved it for now. Thanks!

@sgiehl sgiehl added this to the 4.12.3 milestone May 16, 2023
@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels May 16, 2023
@MatomoForumNotifications

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

https://forum.matomo.org/t/sql-unknown-column-description/54324/2

@MatomoForumNotifications

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

https://forum.matomo.org/t/tag-manager-create-new-variable-sql-problem/54465/2

@MatomoForumNotifications

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

https://forum.matomo.org/t/problems-updating-from-4-16-0-to-5-0-0/54602/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

8 participants