@tsteur opened this Issue on December 5th 2021 Member

See https://github.com/matomo-org/matomo/issues/18436#issuecomment-985559503

There is most likely also be a regression we should handle in 4.6.2. The problem is the update script, which tries to iterate over all segments here:
https://github.com/matomo-org/matomo/blob/4fe950ae94b0fe3bd13f928544ff876275fe6733/core/Updates/4.6.0-b4.php#L51-L77

We should do a try/catch around the segment construct and simply skip segments that cause an exception.

To prevent an error during update like this:

./console core:update --yes -vvv
*** Update ***
Database Upgrade Required
Your Matomo database is out-of-date, and must be upgraded before you can continue.
Matomo database will be upgraded from version 4.5.0 to the new version 4.6.1.

ERROR [2021-12-01 11:47:55] 51704 Uncaught exception: /matomo/core/Segment.php(215): Segment 'dimension1' is not a supported segment. [Query: , CLI mode: 1]
DEBUG [2021-12-01 11:47:55] 51704 Loaded plugins: (...)

[Exception]
Segment 'dimension1' is not a supported segment.

Exception trace:
(...)
This Issue was closed on December 7th 2021
Powered by GitHub Issue Mirror