-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Post Event only to activated plugins #4357
Comments
In 04326ba: refs #4357 post event only to activated and loaded plugins. Usually an activated plugin should be loaded anyway, but this seems not to be the case in tests where plugins are sometimes manually unloaded. Another solution would be to remove the plugin from activated plugins list ($pluginsToLoad) when unloadPlugin() is called. Not sure about side effects |
Tests are green but not sure if it is safe to merge... See email |
made a change in master:
|
@thomas, thanks for the investigation. Could you check whether the problem is still found in Piwik, that events are posted to the disabled plugins? If so, i'd like to have this fixed. Otherwise if the problem was fixed somehow, maybe we can close this ticket? |
Fixed and tests are now passing. Had to resort to hacks to make them pass on travis f94ea2e |
Currently, events are posted to all loaded plugins, not all activated plugins.
This results for instance in including JavaScript files of deactivated plugins if merge_assets are disabled, it results in Fatal Errors if a deactivated plugin listens to events and produces a fatal error etc.
The text was updated successfully, but these errors were encountered: