Media provider not found
wunschradio opened this issue · 9 comments
Hi. This plugin worked great so far. Unfortunately I get the error "media provider not found" in one users directory. The user then has to click on his username in the directory tree. All other users work fine. I checked the folder and it only contains images that the user should be able to upload. I removed the folder and opened the media manager again (logged in as the user) and the error comes up again. So its not a file problem. I can not see any differences to other users.
What could cause the problem?
Thank you in advance.
I removed the folder and opened the media manager again (logged in as the user) and the error comes up again.
It is a shortcoming due to the session storage holding the last selected directory. Usually, if the plugin is applied to some specific groups then the users shouldn't be exposed to this alert. For an admin that could login as another user then it is extremely probable that the alert will be shown (if the admin had navigated to some directory before). Also you can clear the session storage that looks like
I'll have to think if this could be mitigated without some side effects
Sorry I did not describe it clearly. The error persists all the time by this user. So after deleting the folder the plugin creates the new folder but shows the error continuosly. So there was no time between where the error was not shown. So "comes up again" was meant like "still shows up" again,
The user had the same problem and can not login as another user. Other users worked without a problem.
But you are right. It looks like a session problem. Now its working again without me having changed anything.
I thought maybe Joomla 4.2 had to do it, because the problem never occured before and there were some changes in the media component. Any by the way: This plugin is really great. It should become an option in the core as this feature is really needed.
Fwiw I created a PR as it's easier to be fixed there than trying to patch it manually on this plugin
This plugin is really great. It should become an option in the core as this feature is really needed.
Thanks. The idea was to contribute this to Joomla directly (as I did with the install application, the child templates, and a bunch more) but people were against. Thus I keep maintaining this and a few more plugins
Would I need to change the media component? This would get broken on Joomla updates.
Would I need to change the media component? This would get broken on Joomla updates.
Hopefully they will merge that PR, so it would be fixed by the next version of Joomla
Great. Thanks!
@wunschradio it would be great if you could test that PR and report as successful here: https://issues.joomla.org/tracker/joomla-cms/38934
I’m closing the issue as the fix was accepted in the Joomla repo and will be available with their next release
Great. Thank you so much!