[Bug] Plugin on activated does not load configs.php
and results in \DI\NotFoundException
#22141
Open
4 tasks done
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
Milestone
What happened?
If we activate
MarketingCampaignsReporting
plugin and call theMarketingCampaignsReporting::getCampaignParameters()
method from another plugin onCustomJsTracker.manipulateJsTracker
event we get\DI\NotFoundException
as thegetCampaignParameters
tries to getStaticContainer::get('advanced_campaign_reporting.uri_parameters.campaign_name')
, which is set inconfig/config.php
file of the plugin.What should happen?
It should load the
config/config.php
when the plugin is activatedHow can this be reproduced?
MarketingCampaignsReporting
pluginAbTesting
plugin and checkout tov5.1.1
of the pluginMarketingCampaignsReporting
and you can see the error.Matomo version
5.0.3
PHP version
8.1
Server operating system
Linux
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: