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
Output Segment ID or Name with Exception #18436
Comments
refs #16152 As we don't usually no the segmentId there easily, we could additionally mention the idSite at least at some point and the full segment definition if possible. Technically could also do DB queries to find out the idSegment under circumstances, but depending on the encoding and other things this might not always work etc. |
@tsteur I guess this might 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: matomo/core/Updates/4.6.0-b4.php Lines 51 to 77 in 4fe950a
I guess we should do a try/catch around the segment construct and simply skip segments that cause an exception |
@sgieh it depends how things are solved. If the segment class itself still throughs an exception, and it's eg used in an update script or in a command or anywhere else where it's not caught or handled etc, then it would be still useful to show more information what segment this comes from. |
ah. ok. that makes sense |
When users run a database update and have segments that use unsupported segment conditions (For example when a plugin was removed or a dimension disabled) it results in an exception during the database upgrade.
For example, when a dimension is disabled but used in a segment we will see the following sort of error:
It would be much easier to troubleshoot if we were to output the Segment name or Segment ID that has the unsupported condition.
The text was updated successfully, but these errors were encountered: