Problem when trying to create containers after 5.0.1 upgrade

I am receiving the following error message when I am trying to create a new container.

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘ignoreGtmDataLayer’ in ‘field list’

This didn’t occur before version 5.0.1

Does anybody know how to fix this?

/ Mattias

Hi @Moff
Did you try the following command?

$ ./path/to/matomo/console core:update

I will try it. Thank you!

I had the same problem (update from version 4.13.3 to 5.0.3). And a ./console core:update indicated that everything was up to date.
But in the “matomo_tagmanager_container” table, the ignoreGtmDataLayer field was missing.
I manually modified my table:
ALTER TABLE matomo_tagmanager_container ADD ignoreGtmDataLayer tinyint DEFAULT 0 NOT NULL;

1 Like

I tried the core:update command and that didn’t work.
I will try your solution tomorrow and hopfully it will work :slight_smile:

1 Like

We ran into the same problem. The root cause was that TagManager wasn’t activated before (and the tables didn’t exist), but with activating not the newest version was applied.
I lowered the version number for TagManager in the DB
update matomo_option set option_value='4.9.1' where option_name='version_TagManager';
and was then able to perform ./console core:update which modified another three tables.