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

Call to a member function getPluginName() on bool #18370

Closed
zthomas1 opened this issue Nov 23, 2021 · 2 comments
Closed

Call to a member function getPluginName() on bool #18370

zthomas1 opened this issue Nov 23, 2021 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@zthomas1
Copy link

Theme.php line 39

calls getThemeEnabled

If plugins are not loaded yet this will always return false.

self::DEFAULT_THEME is never set.

This is occurring on a clean install where a superuser is being created via API methods in a php script.

@zthomas1 zthomas1 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Nov 23, 2021
@sgiehl
Copy link
Member

sgiehl commented Nov 24, 2021

@zthomas1 I wonder how this can happen. When executing an API methods, all plugins should always be loaded. Did you install Matomo the "normal" way, or are you using some custom script for that?

@zthomas1
Copy link
Author

Thank you for the response, I am using a custom script, this is likely on my end at this point, I'll report back if not.

@sgiehl sgiehl added answered For when a question was asked and we referred to forum or answered it. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants