First of all: Thanks for this nice module.
So far it worked great, but I recently set up a new site, where I ran into some problems with the library browser.

The problem is, that in the media browser settings (as well as in the media-module-provided "add media" dialog) the media library is not shown.
On admin/config/media/browser I can only choose to activate "Upload" and "Web".
"Library" and "View Library" are missing.
Also, when adding media to an article, the only option/tab available is "Upload".
It is not possible, to reuse images already present on the server by browsing the library.

I already tried reinstalling the media module (Version 7.x-2.0-unstable7).
The plugins are present in the module folder (in media/includes/), and the file permissions are also ok.. but they just are not recognized.

Any ideas?

Thanks for your help & best regards,

#14 remove-extra-plugin-info-caching-1889422-14.patch2.1 KBDevin Carlson
PASSED: [[SimpleTest]]: [MySQL] 1,007 pass(es).
[ View ]
#13 remove-extra-plugin-info-caching-1889422-13.patch1.68 KBDevin Carlson
PASSED: [[SimpleTest]]: [MySQL] 1,007 pass(es).
[ View ]
#3 media_lib_prob.jpg46.17 KBleliem


wunderbard’s picture

This is the answer I have received ( ):

Posted by Dave Reid on January 12, 2013 at 8:00pm
Status: active » postponed (maintainer needs more info)

The tab was renamed to just 'Library' and the old deprecated 'Library' tab was removed. You may have to double-check your field configuration to check which plugins are enabled to be displayed as well.

= - = - = - = - = - = - =

ParisLiakos’s picture

Check under admin/config/media/browser that the right Enabled browser plugins are checked

leliem’s picture

Thanks for your replies.

However, I'm not sure, if I get you right.
The problem is, that in the first place I am not able to activate the plugins under admin/config/media/browser (see attached screenshot).

There are only "Upload" and "Web" - not "Library" available for activation.
Is there another place (or maybe some table in the db) which controls that behavior, that might be broken?

arthurf’s picture

Do you have the views module installed?

leliem’s picture

Status:Active» Closed (fixed)

Thanks a LOT, arthurf!
That was a hint to the right direction.

The views module was installed and active, but for some reason the media browser view was not activated...

It's working fine now.

tchopshop’s picture

Category:Support request» Bug report
Issue summary:View changes
Status:Closed (fixed)» Active

This happened to me also. Under the field's settings for Enabled browser plugins the only ones available are Upload, Web and YouTube. Other file media fields are working correctly so it is not a matter of Views or the Media browser not being active or set.

It happened to me prior to this but after a few days of using the field I was eventually I was able to go back to the settings and the Library field had appeared. But not the My Library field.

Now it is happening again with a new field.

tchopshop’s picture

Status:Active» Fixed

UPDATE: Clear your cache! I cleared my cache and went back to the field's Edit page and now the browser plugins are appearing.

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

scottalan’s picture

I have recently run across this issue and I'm having to clear cache every so often to get the 'options' to show up. As was stated in #7
This seems to still be an issue.

tom friedhof’s picture

Status:Closed (fixed)» Active

I can confirm that this still seems to be an issue. Clearing cache gets my Library and My Files tab to show back up.

siva.thanush’s picture

I still have this issue.
I couldn't see the option to browse server to upload the files from the server itself instead of uploading it from the local system.
Have anyone figured out a solution to get rid of this.
I tried clearing the cache also but no luck.

kolebas’s picture

I had a similar problem. decision - include views Media browser (it was turned off), and clear the cache

Devin Carlson’s picture

Version:7.x-2.0-unstable7» 7.x-2.x-dev
Status:Active» Needs review
new1.68 KB
PASSED: [[SimpleTest]]: [MySQL] 1,007 pass(es).
[ View ]

I also see this from time to time. I think we can safely remove the extra caching from media_get_browser_plugin_info(). Invoking a hook and an alter isn't an overly taxing operation (core uses the same pattern in token_info(), _trigger_get_all_info(), etc) compared to retrieving a small array from cache and I didn't notice any real change in my testing.

Devin Carlson’s picture

new2.1 KB
PASSED: [[SimpleTest]]: [MySQL] 1,007 pass(es).
[ View ]

Missed a cache clear in media_views_invalidate_cache().

Devin Carlson’s picture

mateomiguel’s picture

I'm getting this issue too. I just updated the Media module from 7.x-2.0-unstable7+60-dev to the latest dev release. I held off on upgrading because I was worried there would be problems. And, there are! I can't see a Library or My Files tab. The Media Browser view is present, its turned on, and it works in the Views UI preview area. But I simply can't see a tab for it in the modal popup window.

mateomiguel’s picture

My issue was apparently because the Library and My Files options were de-selected in admin/structure/types/manage//fields/. I have been going crazy about this, and did not realize that local settings existed there that overrode universal settings set at admin/config/media/browser. So now everything works.

I would encourage anyone else having this problem to check the field settings on their content types to make sure that they have all the relevant options checked.

Devin Carlson’s picture

Status:Needs review» Fixed

While many of these issues are config related, I'm going to commit #14 and see if that helps things. I think the advanced static pattern might be more useful for performance here anyway.

  • Devin Carlson committed 069ba76 on 7.x-2.x
    Issue #1889422 by Devin Carlson: Simplified plugin caching.

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.