Closed (duplicate)
Project:
D7 Media
Version:
7.x-2.0-unstable3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2012 at 14:53 UTC
Updated:
22 Mar 2012 at 02:30 UTC
After updating to dev versions of views,date and media receive the following error when trying to bring up the media form to select media for a new page entry. No files were selected because the form was not loaded.
Fatal error: Out of memory (allocated 57671680) (tried to allocate 17152 bytes) in /modules/system/image.gd.inc on line 237
Views 7.x-3.1+83-dev
Date 7.x-2.1+11-dev
Media 7.x-2.0-unstable3+24-dev
Field entity 7.x-2.0-unstable3+16-dev
Comments
Comment #1
clearwaternazarene commentedUpdate replaced Media 7.x-2.0-unstable3+24-dev
with Media 7.x-1.0-rc3+16-dev (hoping the more stable version would work)
Now the error displayed after clicking on select media button is "Error getting media." which was the original issue I was trying to solve when I upgraded from previous version of Media.
Comment #2
clearwaternazarene commentedUpdate replaced Media 7.x-2.0-unstable3+24-dev
with Media 7.x-1.0-rc3+16-dev (hoping the more stable version would work)
Now the error displayed after clicking on select media button is "Error getting media." which was the original issue I was trying to solve when I upgraded from previous version of Media.
Also if I go to media/browser/list get the following error
Fatal error: Out of memory (allocated 57933824) (tried to allocate 4288 bytes) in modules/system/image.gd.inc on line 237
Comment #3
Fanaile commented"Fatal error: Out of memory (allocated 57933824) (tried to allocate 4288 bytes) in modules/system/image.gd.inc on line 237"
This means that your site is reaching its limit for running PHP scripts. If you have a php.ini file, look for the resources for memory_limit and try raising that. It should look something like this (replace the numbers with what you need):
If you don't have a php.ini file, you can create one and upload it to the root directory of your Drupal installation. Depending on who your host is, you may want to check and see if they have their own limitations placed; I have had issues in the past where I was trying to raise a site's memory_limit to 96MB and the host that the client was using wouldn't allow it higher than 64MB regardless of what the php.ini file said.
Comment #4
dave reidThis is odd. We'll need some help from users experiencing this error helping to debug where this memory issues is coming from.
Comment #5
clearwaternazarene commentedReverted Media back to 7.x-1.0-rc2 - error message from previous version now back as "Error getting media."
At this point short of removing Media and starting over I will wait to see if Media team has any ideas.
Comment #6
dave reidThanks to thsutton he's helped figure out the cause of this bug and we're actively working on this for both 7.x-1.x and 7.x-2.x.
#1447790: image_load makes admin/content/media unusably slow
Comment #7
sdk commentedI am running a drupal multisite environment and all of the D7 installations running Media are affected by this bug. At first I thought it must have to do with a particularly content rich site where the error occurred first, but since the error appears on also newly created sites this mustn't be the reason.
Some observations about the creeping in:
At first everything went smooth but when files started accumulating, whenever I uploaded a file via the content field form, the described error message appeared. Strangely the file was still uploaded and showing up in the media browser but I couldn't access it via the content field browser.
I still could access the Media section in Contents though and choose from previously uploaded material. All of a sudden then not even the Media tab in the Content section was available anymore with the above error msg.
I just want to point out that there seems to be some "gradual" decay. Hope that helps and that you clever ppl find a way to fix this!
Best regards and lots of respect for the efforts.
sdk