Errror after Update to Matomo 5.2

I got the following warning after Updating to Matomo 5.2:

WARNING   [2024-12-13 00:37:00] 361624  /public_html/piwik/plugins/TagManager/Context/BaseContext.php(90): Warning - Undefined array key "isTagFireLimitAllowedInPreviewMode" - Matomo 5.2.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)

The Update Script “php …/console core:updatephp …/console core:update” produced a similar error:

WARNING [2024-12-13 07:17:08] …plugins/TagManager/Context/BaseContext.php(90): Warning - Undefined array key “isTagFireLimitAllowedInPreviewMode” - Matomo 5.2.0 - Please report this message in the Matomo forums:

We have the same Error, To have matomo able to works agin we used the matomo console to disable the TagManager:
php /pathToMatomo/matomo/console plugin:deactivate TagManager

Hi @chassi, @aw23490053, @tsueri
I suggest one of you create an issue at:

Then post here the issue URL

I suffered from the same problem. Deactivating the plug-in via de console and attempting the database upgrade again worked.

php /path/to/matomo/console plugin:deactivate TagManager

Then I activated the plugin again.

php /path/to/matomo/console plugin:activate TagManager

Has this been fixed already in the repository? Is there a bug report with this to contribute to? I presume many people uses the Tag Manager plug-in…

Proposed fix here: https://github.com/matomo-org/tag-manager/pull/958
Issues:
https://github.com/matomo-org/matomo/issues/22856
https://github.com/matomo-org/tag-manager/issues/959

1 Like

I see that it has not been merged, so I guess I am going to keep using the deactivate/activate “trick” for the time being. I’ll keep an eye on the merge request.

Thanks for the link.

1 Like

This is now merged into Tag Manager. But please note that this not yet into Matomo core repo. To get this fix, you need to install the Tag Manager from the repo tag manager repo.

1 Like

The updated Tag Manager is now committed to Matomo repo, so the fix should be part of next release.

1 Like

There is a new release out of Matomo, 5.2.1, but for some reason this fix was not part of it.

1 Like

hello, The fix doesn’t seem to be present in version 5.2.2 update either. How can we resolve this issue directly using TagManager?