I upgraded 3.14.1 to Matomo 4.
Somehow Custom Variables was disabled afterwards. Then noticed:
I'm not sure though. According to this theory I would have also expected that other plugins would have been disabled that were updated through the marketplace. Not sure how it worked for the marketplace plugins but not this one. There must be maybe some extra logic somewhere.
I think this used to work because when the marketplace plugin was updated, it used to reload the plugin see https://github.com/matomo-org/matomo/blob/3.14.1-rc1/plugins/CorePluginsAdmin/PluginInstaller.php#L73-L77
This used to be done in the same request. But since moving this out into a second request, the information is no longer updated. I think this is a regression from https://github.com/matomo-org/matomo/pull/15770
tests look good, will merge and also apply to Matomo 4