Hi,

I am using:

File entity 7.x-2.0-unstable6+6-dev
Media 7.x-2.0-unstable6+9-dev
Media Browser Plus (for Media 2.x) 7.x-2.x-dev
Media Field 7.x-2.0-unstable6+9-dev
Media Internet Sources 7.x-2.0-unstable6+9-dev
Media: YouTube 7.x-2.0-rc1
Colorbox 7.x-1.3

I added a multimedia asset field in my content type, added content, chose 'select media' and the little white box pop up (overlay) happens with the rounded corners. Problem is, then nothing happens, it's just blank. I tried in firefox/chrome, same thing.

Disabled media browser plus, and again add content > 'select media' and pop up, WITH the correct media tabs/library/my files etc...

Not sure what is causing this. Any ideas?

Sam.

Comments

das-peter’s picture

Could you try the latest dev please? Today I've fixed some stuff that was broken using the latest media version. E.g. http://drupalcode.org/project/media_browser_plus.git/commit/c77f96e

And if you're working on a development environment I'd recommend to enable the error output of php. A blank page is often result of suppressed error's. While it's discouraged to configure php to display errors to the user on production sites I really recommend to display them on development and test environments.

samwillc’s picture

Hi,

I can give it a try over the weekend to see if it's working. Yes, my errors are turned off because of an annoying one caused by autocomplete tagging and entity, couldn't bear to look at the errors any more every time I saved a node page.

I liked the ability to organise my files into folders so could do with using media browser plus.

Thanks for the reply.

Sam.

samwillc’s picture

Ok, tried this combination.

Using:

Drupal 7.15
Media Browser Plus for Media 2.x (7.x-2.x-dev)
Media (7.x-2.0-unstable6)
Multiple forms (7.x-1.0)
Colorbox (7.x-1.4)

Also, in sites/all/libraries/COLORBOX downloaded and ready to use (Current version: 1.3.20)

Set development to show ALL errors. Flushed cache. Everything seemed to run smooth, enabled media browser plus, all files assigned to root media as expected.

Edited node, edit image, still blank pop up.

Am I using the correct version of media browser plus?

Sam.

---------------------------------------------------------

**the worst is still to come. It's actually screwed all my links too so my views are displaying incorrect links. All my thumbnails which linked to the nodes are now showing the the filename and link to files/media/FILENAME instead of the node i.e. no thumbnail anymore. Not quite was I was expecting.

Uninstalling and going back to square one, media module is fine by itself. It's not worth needing 3 modules (colorbox, multiple forms + media browser plus) just to achieve a nicer UI**

It's 100% one of those "why did I bother!" moments.

Thanks anyway.

Sam.

Roensby’s picture

I have the same issue and use these versions

File entity 7.x-2.0-unstable6
Media 7.x-2.0-unstable6
Media Browser Plus for Media 2.x 7.x-2.x-dev
Colorbox 7.x-1.3
Multiple forms 7.x-1.0

When I try to open the media browser, I get a blank media browser window. Firebug reports a "500 Internal Server Error" on this webpage:
http://[my drupal site].com/media/browser?render=media-popup&types%5B%5D=audio&types%5B%5D=image&types%5B%5D=video&activePlugins=&enabledPlugins%5Bupload%5D=upload&enabledPlugins%5Blibrary%5D=library&enabledPlugins%5Bmedia_internet%5D=media_internet&enabledPlugins%5Bmedia_default--media_browser_1%5D=0&enabledPlugins%5Bmedia_default--media_browser_my_files%5D=0&id=media_wysiwyg&plugins=undefined

Edit: it seems that the above url will load if I remove &enabledPlugins[library]=library

Edit2: and.. solved. It happens that if you have enabled "Library" in admin/config/media/browser you need to disable it and choose Library plus instead.

das-peter’s picture

@CChow Thanks for debugging this. I'll check asap. why &enabledPlugins[library]=library leads to this error. Now that I know what causes the error I should be able to fix it.

das-peter’s picture

Unfortunately I'm able to access media/browser?render=media-popup&types[image]=image&types[video]=video&enabledPlugins[upload]=upload&enabledPlugins[media_default--media_browser_1]=media_default--media_browser_1&enabledPlugins[media_default--media_browser_my_files]=media_default--media_browser_my_files&enabledPlugins[library_plus]=library_plus&enabledPlugins[library]=library&enabledPlugins[media_internet]=media_internet&enabledPlugins[youtube]=youtube&schemes[vimeo]=vimeo&schemes[youtube]=youtube&schemes[public]=public&file_directory=&file_extensions=txt&max_filesize=&uri_scheme=public&plugins=undefined
in my installation. This needs further debugging.
Any watchdog or php error log entries?

Roensby’s picture

Why yes, I hadn't thought to look.
This is what I found in the error log. No watchdog entries.

PHP Fatal error: Cannot instantiate abstract class MediaBrowserLibrary in /sites/all/modules/media/includes/media.browser.inc on line 76

das-peter’s picture

This is odd, I don't know which scenario could trigger this.
The class MediaBrowserLibrary was removed/renamed in favour of MediaBrowserPlugin in one of the newer versions of Media. To ensure MBP works with all versions in 2.x it conditionally declares the MediaBrowserLibrary class.

Only idea I've atm. would be to try to make the conditional class not abstract and define a dummy view() method.
But as I can't reproduce this error atm. I'd appreciate if someone who experiences this error could try this.

njugunakaranja’s picture

Issue summary: View changes

That combination of modules worked magic for me, that was a life saver

salvis’s picture

Status: Active » Closed (outdated)