I can upload images for banners when the media module pops up. I can't however go to the library to pull one from there. When I click on the library tab an error message pops up saying "Error getting media". I am logged on as administrator.
I looked at the module to see what is being called and found on line 35 of rotating.banner.admin.inc "media_include_browser_js();"
This function is part of media.browser.inc and media.admin.inc.
I see your wtf comment in that section.
Is that what is causing the problem?

Is this helpful or am I just being a pain in your "trailing bits"?

CommentFileSizeAuthor
#9 screenshot1.png593 KBtriple5
#9 screenshot2.png541.37 KBtriple5
#9 screenshot3.png637.09 KBtriple5
#9 screenshot4.png713.84 KBtriple5

Comments

james.elliott’s picture

Have you tried running update.php on your site?

james.elliott’s picture

Project: Rotating Banner » D7 Media
Version: 7.x-7.x-dev » 7.x-1.x-dev

This also belongs in the media issue queue

effulgentsia’s picture

Title: media browser » "Error getting media" when browsing media library for image previously uploaded to Rotating Banner
Status: Active » Postponed (maintainer needs more info)

@MrPhilbert: see #1, are you still getting this error?

Is anyone else who is using Media in conjunction with Rotating Banner seeing this error?

MrPhilbert’s picture

You are up late!

No library errors thank you.
However, when I try to create a banner, I get another fatal error:
* Warning: array_merge() [function.array-merge]: Argument #2 is not an array in rotating_banner_block_configure() (line 198 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).
* Warning: array_merge() [function.array-merge]: Argument #2 is not an array in rotating_banner_block_configure() (line 200 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).
* Notice: Undefined index: fluid in rotating_banner_block_configure() (line 281 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).
* Notice: Undefined index: width in rotating_banner_block_configure() (line 292 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).
* Notice: Undefined index: height in rotating_banner_block_configure() (line 303 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).
* Notice: Undefined index: controls in rotating_banner_block_configure() (line 352 of D:\inetpub\wwwroot\drupal-7.0-beta3\sites\all\modules\rotating_banner\rotating_banner.module).

*Note: I know it says beta3 but it's actually 7.0. That is just the folder that IIS is pointing to with the updated install.

I can add an image (even from the library) but if I save the rotating banner and display it in a block, I get the white screen of death?
I had to back up and delete the banner in order to get the site back.

regent’s picture

Yes I too get this error shown when using Rotating Banner

mthart’s picture

I also get this error, with latest HEAD versions of Media and rotating Banner modules.

rodolfo.flavio’s picture

JacobSingh’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Is this outdated? I think so. Please re-open with steps to reproduce if not.

triple5’s picture

Issue tags: +rotating_banner media_browser_plus media_gallery
StatusFileSize
new713.84 KB
new637.09 KB
new541.37 KB
new593 KB

I have this issue with rotating banners but noticed it in a different moment, after installing media_gallery the media browser did not load correctly in when trying to upload an image to the gallery (see screenshot1.png)
Installed versions:

rotating_banner 7.x-1.0-beta1
media_youtube 7.x-1.0-alpha4
media 7.x-1.0-beta3
media_gallery 7.x-1.0-beta4
Drupal 7.0

As visible this does not work very well, but since it all rises and falls with the rotating banner, I guess this issue should be located there.

I could use the same install without rotating banner and make it work in a subsite.
(see screenshot2.png)

after activation of rotating banner still everything is working as expected.
(screenshot3.png)

So the error seems to be in a different area. this really bugs me, though...
The problem is, that it manifests more in the media-gallery where I cannot add content at all except youtube videos, whereas in the rotating banner it just gives me an error when I try to access the library.
(see screenshot4.png)
in the media gallery the complete popup window / colorbox is not in order, whereas it looks fine in the rotating banner in my first install, however neither the media, nor the rotating banner modules seem to cause the problem.

I tagged this comment in order to be able to track it more easily since this affects the media_gallery and rotating_banner modules and the media_browser_plus while in fact it does not seem to be located here, could this be an issue in some core module?
I am trying to be creative...
However in the install where the error occurs I have many other things installed, I will triage what causes the problem and keep you updated, if possible I will create a link to continue this issue in another module...

triple5’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta3
Priority: Normal » Major
Status: Closed (cannot reproduce) » Needs work

I just reopened this...

bmx269’s picture

I now have the same issue. Started when I tried adding an image to the Rotating Banner modules add image area. This caused and error, and doesn't work anymore for anything where you need access to the media library.

JacobSingh’s picture

Status: Needs work » Closed (cannot reproduce)

Please test w/ dev versions. There is an incompatibility. There will be a media beta-4 release (probably this week). If you still find the problem with dev versions of everything, that's probably it.

triple5’s picture

Version: 7.x-1.0-beta3 » 7.x-1.0-beta4
Status: Closed (cannot reproduce) » Active

I am now using media 7.x-1.0-beta4 and my media-gallery became unusable, also, when trying to add a video or image and loading the library the error turns up again,
Some images or video thumbnails load but then a popup window tells me again: Error getting media.

JacobSingh’s picture

Status: Active » Closed (duplicate)

This is actually because of #1106922: Clean up filenames, standardize on directories and it is already fixed in media_gallery 7.x-1.x: #1122330: Media module moved files around, need to update references

Update to the branch if you want it to work or patch. Another media_gallery release will come sometime soon.

Jayson Wonder’s picture

Well when I try to add a banner image and I click on Libray it is blank. I have images already on my site/default/files/images/banner directory, should I not be able to see these?

Thanks,