Closed (fixed)
Project:
D7 Media
Version:
7.x-1.3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Mar 2010 at 15:17 UTC
Updated:
20 Apr 2017 at 19:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aaron commentedMay have been related to #775864: Rename table {file} to {file_managed}. Could you confirm this is still a problem after updating to HEAD?
Thanks!
Comment #2
aaron commentedComment #3
robeano commentedThis issue does not seem to be related to #775864: Rename table {file} to {file_managed}. We're running D7-ALPHA4 and media HEAD, and this error continues to display when viewing the Library tab. Firebug produces this error information:
Comment #4
aaron commentedconfirmed. looking at it right now. stoopid moving target...
Comment #5
aaron commentedmarking as critical -- it's an alpha4 blocker.
Comment #6
JacobSingh commentedI'm not seeing this personally nor on Drupalgardens.com
Comment #7
aaron commentedi get this in both alpha-4 and head:
- install drupal 7 alpha4 or head
- install media head, entity DRUPAL-7--1 (or drupal-7-1-0-alpha4), styles DRUPAL-7--1
- go to /admin/content/media/add/from_url
- add an image from somewhere on the internet
- gaze in amazement at the wsod
Comment #8
aaron commentedi've tracked it down to:
$info['entity keys']['bundle'] is 'type', but there's no $entity->type.
Comment #9
aaron commentedso apparently http://api.drupal.org/api/function/hook_file_insert/7 is incorrect; hook_file_insert & hook_file_update must not be a referenced variable. fixed now!
Comment #10
aaron commentedrelated drupal issue at #791986: hook_file_insert/update cannot use a &referenced parameter
Comment #12
robeano commentedTested successfully with HEAD versions of D7, media and DRUPAL-7--1 version of styles. I used a mediaasset field for testing but did not test with wysiwyg.
The browser is really coming along. Great job aaron!
Comment #13
cakka commentedi am using wysiwyg, and get this problem...
Comment #14
KevinC commentedThis issue has raised its ugly head again. Using either Full or Filtered WYSIWYG. Thought it might be number of files as client has 697 media files.
Comment #15
elpino commentedIt's not the number of files, I'm having this problem with less than 10 images.
I am using latest WYSIWYG module with CKEditor and Media 7.x-1.0
Comment #16
mpgeek commentedIssue is marked for 7.x-1.x-dev. Have we tried the latest media-7.x-1.x-dev to see if we have a fix? If not can we get steps to reproduce (perhaps a screenshot)? Not seeing any error with getting media on latest version of this branch.
Comment #17
mpgeek commentedComment #18
techpassion commentedHaving same issue.
This is what I remember:
I was trying to upload an image and it errored out with a out of memory error.
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13056 bytes)"
And ever since then, I cannot browser the library.
I don't know if this helps in any way.
Comment #19
techpassion commentedJust an update to the above. The file that I was trying to upload was actually present in the folder. Every time I tried to upload it, I got an out of memory error, but the file was getting uploaded.
When I deleted all the copies of that image(physical files) I was able to browse the media library again. But I could still see the entries of the deleted files.
Comment #20
_grizly commentedWorks for me. (Currently around line 1063 of media module, sites/all/modules/media/media.module)
Comment #21
opetstudio commentedemergency. please help me. I get the same error for the version 7.x-1.2
when I click on the library tab, javascript alert appears that says "Error getting media.".......pleaseeeeee heeelllllppppp meeeee...!!!!!!!!
Comment #22
Marcus Aurelius commentedSame here. Version 7.x-1.2
Please help...
Comment #23
maen commentedexact the same for me with drupal 7.19!
Comment #24
ictguy@gmail.com commentedSubscribing ... I have the exact same issue. Drupal 7.19 and Media 7.x-1.2.
As soon as I choose library I get the error as per the image in comment #21
Comment #25
ccannon commentedComment #26
ccannon commentedoops, sorry for changing status.
I was having same issue as commented in #21.
I was able to successfully implement the hack in #20 (thanks _grizly) and it is now working. So I can confirm that altering the media.module file as shown in comment #20 resolves the issue with wysiwig editors (at least ckeditor version 3.6) not being able to get media from library.
drupal 7.18
media 7.x-1.3
Comment #27
internet mate commentedSolution from #20 works - thanks!
I had same issue on Drupal 7.20, Media 7.x-1.3 but only on dev (Ubuntu) server.
It was fine on my local virtual (Ubuntu) machine, though - same files and database on both.
Comment #28
marqpdx commentedSolution from #20 works - thanks! much appreciated.
Drupal core 7.21 and Media 7.x.13.
the change is now around line 1084, and i left the following code intact. Mine now looks like:
Comment #29
noslokire commented#20 worked for me as well
Comment #30
sierra_73 commented#20 does not work with me. Help me. I still have " error getting media "
I have Drupal 7.22 and Media 7.x-1.3
Comment #31
Bob123 commentedSame issue,
Drupal: 7.22
Media: 7.x-1.3
Wysiwyg: 7.x-2.2
TinyMCE: 3.5.8
#20 does not work with me neither!
The problem seems to be related to the file sizes:
I deleted (moved) the 3 biggest files (2 150K; 1 850K, and 1 515K) from /sites/default/files/... and now it works.
This is only a very temporary work around: I Need this files!
- Only image (.jpg) files seems to cause the problem. PDF files can be larger.
Please help finding a more definitive solution.
Comment #32
dublutz commentedI have the same problem.
With the same files on first server is working on second it doesn't.
I think this is related to server configuration.
Check Status report and see if there is an warning about MySQL - max allowed packet configuration.
Drupal Database Requirements can be found here:
https://drupal.org/requirements/database
I didn't test it yet because I don't have access to second server, but I will let you know if I have an answer.
Comment #33
Bob123 commentedNo MySQL warning in Status report.
Comment #34
sierra_73 commentedHave still problems in the library, indeed it can open, however, after scroll with 30 pictures and appears again mistake " Error getting Media".
I have very big problems . Please help me . I needed this library.
Comment #35
bember commentedSame issue here.
The problem on my system is caused by this error:
Thus, solution #20 makes sense, but it is paliative.
The function file_info_file_types() is implemented in the file_entity module inside media module folder (modules/contrib/media/file_entity). I've noticed that the enabled file_entity module on my Drupal instalation was another one, located at modules/contrib/file_entity, which does not implement file_info_file_types() function. I've solved the problem by following these steps:
Comment #36
aaron commentedIt sounds as though people may have an issue if they are including the file entity module separately from the module included with the media module for version 7.x-1. Could more people please confirm if this is the case?
Comment #37
Anonymous (not verified) commentedI am having the same issue.
Drupal 7.22
Media 7.x-1.3
File Entity 7.x-1.3
Comment #38
Anonymous (not verified) commentedI fixed my error by running "drush rr" (rebuild registry) command. Yeah!
Comment #39
illuminatico commentedI was able to fix this problem by removing the file_entity module from sites/all/modules/.
The file entity module packaged with media module still exists in sites/all/modules/media
Thanks!
Comment #40
pkeyes commentedI can confirm I was experiencing this error using separate file_entity module. Disabling and removing it, then re-enabling included file_entity module, solved the issue.
Comment #41
GuyRus commentedGetting this error without the file_entity module outside of the media module.
It's weird; was working for just admin until I created another user then broke.. Perms on new user are configured correctly.
Comment #42
Steff Vanhaverbeke commentedWe experienced the same problem: Error getting media in library
The issue was resolved when we deleted the seperate file_entity module, as described by GuyRus
Comment #43
Bob123 commentedI got this error but I had never used the external file entity module: I always used the included 7.x-1.3 module.
So the issue seems not to be related to the external file entity module!
Comment #44
dalehgeist commentedI disabled and removed the external file entity module, enabled the included one, and this did not solve the issue. Version 7.x-1.4
Comment #45
Gil_Gamesh commentedI have this with
File entity 7.x-2.0-alpha3
Media 7.x-1.4
Drupal 7.31
Uninstalling and reinstalling media and File entity didn't help
Comment #46
Gil_Gamesh commentedMy bad.
I had downgraded from Media 7.x-2.0-alpha3 and forgot that 7.x.-1.4 used its own built-in File entity.
When I uninstalled File Entity and deleted it from modules/contrib, it works fine again.
Comment #48
joseph.olstadfixed a while back.