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
Persistent notifications aren't removed. Make Error while creating/copying file to warning dismissable #15575
Comments
maybe related to #15498 |
@sgiehl That sounds like the same general issue (notifications in the session don't disappear) |
#12934 is also caused by the same issue. |
To fix this problem we want to fix the generic problem that a persistent notification only seems to disappear when logging out and logging in. You can reproduce this by applying this change diff --git a/plugins/CorePluginsAdmin/PluginInstaller.php b/plugins/CorePluginsAdmin/PluginInstaller.php
index 4619ecca9f..11f10a1ac6 100644
--- a/plugins/CorePluginsAdmin/PluginInstaller.php
+++ b/plugins/CorePluginsAdmin/PluginInstaller.php
@@ -52,6 +52,7 @@ class PluginInstaller
public function installOrUpdatePluginFromMarketplace($pluginName)
{
+ throw new \Exception('foo');
$this->checkMarketplaceIsEnabled();
$this->pluginName = $pluginName; Then go to marketplace, and try to install a plugin. Then go back for example to the marketplace page or the Platform -> API page in the Matomo admin. The notification will always appear again, even if you click on the "x". It seems it is supposed to call a method |
@sgiehl is this one already done maybe? |
Yes. That was actually already fixed with 4.3.0 |
quite low priority, but I wanted to write it down just in case I stumble across it again in the future.
(and maybe the same is true for other error messages and it confuses user)
When developing Matomo doesn't have write permission to
plugins/
. This doesn't matter as it isn't needed for things apart from the marketplace.When one tries to download something from the marketplace this error message appears rightfully:
The issue is that there is no way to get rid of the notification. Pressing the x only closes it with JS, but as it is rendered by Twig it will reappear on every page even when it doesn't matter anymore.
Adding a
static::$session->unsetAll();
tomatomo/core/Notification/Manager.php
Lines 191 to 202 in b16a791
removes it from the session and gets finally rid of the message (ending the session in another way would also work).
The text was updated successfully, but these errors were encountered: