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

[Bug] Error when upgrading Matomo to 5.2.0 plugins/TagManager/Context/BaseContext.php(90): Warning - Undefined array key “isTagFireLimitAllowedInPreviewMode” #22856

Open
4 tasks done
chassi opened this issue Dec 13, 2024 · 7 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@chassi
Copy link

chassi commented Dec 13, 2024

What happened?

Unable to upgrade from Matomo 5.1.2 to 5.2.0. The upgrade stop with an error message regarding a TagManager issue. The only way I found to make Matomo up again is to disable the TagManager plugin by using the matomo console:

php /pathToMatomo/matomo/console plugin:deactivate TagManager

What should happen?

Upgrade finish without error and Matomo works fine again ;-)

How can this be reproduced?

Install a 5.1.2 Matomo server and launch an automatic upgrade using the Matomo back-office

Matomo version

5.2.0

PHP version

8.1

Server operating system

ubuntu 22.04.5 LTS

What browsers are you seeing the problem on?

Other

Computer operating system

linux

Relevant log output

No response

Validations

@chassi chassi added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Dec 13, 2024
@AltamashShaikh
Copy link
Contributor

@chassi It seems you haven't ran the migration, as this new column was added in v5.2.0, does running ./console core:update fixes the issue ?

If not, you need to try below things

  1. Check the version of TagManager plugin in option table - SELECT * FROM matomo_option where option_name='version_TagManager';
  2. If version >5.2.0, update it to 5.1.2 - UPDATE matomo_option set option_value='5.1.2' where option_name='version_TagManager';
  3. Now run /console core:update command again.

@mikkeschiren
Copy link
Contributor

For us - this comes when running ./console core:update - version in database is 5.1.2.

@aw0003
Copy link

aw0003 commented Dec 16, 2024

Same here:

The Update Script “php …/console core:updatephp …/console core:update” produced this error several times:

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:

@mikkeschiren
Copy link
Contributor

Suggested pull request here: matomo-org/tag-manager#958

@MatomoForumNotifications

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

https://forum.matomo.org/t/errror-after-update-to-matomo-5-2/61622/6

@mikkeschiren
Copy link
Contributor

The pull request has now been merged into Tag Manager. Please note that you need to install Tag Manager seperatly as the Matomo repo needs to add Tag Manager from new commit to this repo and a version bump to get it included.

@mikkeschiren
Copy link
Contributor

Note that the fix in Tag Manager is not part of the 5.2.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

5 participants