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

Improve check for provider plugin #19614

Merged
merged 1 commit into from Aug 16, 2022
Merged

Improve check for provider plugin #19614

merged 1 commit into from Aug 16, 2022

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Aug 10, 2022

Description:

If, for some reason, the provider plugin is marked as installed, but not available in the file system, a fatal error might occur while tracking if the default geolocation provider is used.

Check if the class we are trying to use actually exists solves this issue.

refs #19602

Review

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review Stability For issues that make Matomo more stable and reliable to run for sys admins. labels Aug 10, 2022
@sgiehl sgiehl added this to the 4.12.0 milestone Aug 10, 2022
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test by renaming the provider plugin folder and confirming that the method will return false rather than throwing a fatal error.

@bx80 bx80 merged commit 6ff01e7 into 4.x-dev Aug 16, 2022
@bx80 bx80 deleted the m19602 branch August 16, 2022 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Stability For issues that make Matomo more stable and reliable to run for sys admins.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants