I'm getting a Fatal error message when trying to access the media content from

admin - content - media tab.

I'm using the latest version of Drupal core, and the latest version of Media, as of today.

Any help would be appreciated. Or if you need any more info let me know.

Comments

davebv’s picture

Priority: Normal » Critical

I am having the same problem. The only way to recover drupal was to disable the media module.
The error is:
Cannot access empty property in field/field.attach.inc on line 661

To reproduce the error what I did is install media module (and dependencies). Add a media field in article content type. Go to "content->media" and press the thumbnail viewer.
After these steps the drupal instalation is broken. The only solution has been to disable media module.

I hope this helps to locate the problem.

Thanks for your work!

PS: I change it to critical because with this issue not only the media module is not usable, but the entire drupal installation.

gandhi’s picture

Hi,

i have an other fatal error. Here is the message:

Fatal error: Call to undefined function admin_menu_suppress() in /usr/www/users/xxx/drupal7/sites/all/modules/media/media.module on line 407

I become the message when i try to access:

admin - content - media tab - add file

Scott J’s picture

Drupal 7 Beta 2
Fatal error: Cannot access empty property in /path.../drupal-7/modules/field/field.attach.inc on line 661

JacobSingh’s picture

I don't think Media currently works with Drupal BETA 2.

Dave B, which core version are you working with?

davebv’s picture

I am using 7.x-dev from yesterday (25.oct)

Taxoman’s picture

This is also happening on D7-beta1.

mrfelton’s picture

Same issue here - beta2 of both drupal and media

adam_b’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta1

Me too.

I'm not sure if it's relevant, but I'm also getting:

Notice: Undefined index: field_name in field_attach_load() (line 657 of /[filepath]/modules/field/field.attach.inc).
Notice: Undefined index: field_id in field_attach_load() (line 658 of /[filepath]/modules/field/field.attach.inc).

Using beta2 core and beta1 media.

liakoni’s picture

Same issue here
Drupal 7 Beta 2
Fatal error: Cannot access empty property in /path.../drupal-7/modules/field/field.attach.inc on line 661
and
Notice: Undefined index: field_name in field_attach_load() (line 657 of /[filepath]/modules/field/field.attach.inc).
Notice: Undefined index: field_id in field_attach_load() (line 658 of /[filepath]/modules/field/field.attach.inc).

JacobSingh’s picture

I'm not able to reproduce this with current HEAD of media and BETA2. :(

I'll keep trying, but if anyone feels like debugging a bit, it might help.

Scott J’s picture

No problem for me now with latest media 7 dev on Drupal7 dev.

a_webb’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0-beta2

I get this error -- seems directly related to this forum -- every time i try to install media -- and i have tried to install every one of them for d7 except for the one that specifically says "do not use"

FieldException: Attempt to create an instance of field file on bundle default that already has an instance of that field. in field_create_instance() (line 683 of /var/www/drupal/modules/field/field.crud.inc).

i have to disable to get drupal to work...

fyi I really, really, really want to use rotating banner!

Thanks all--

im using drupal 7 beta 3

JacobSingh’s picture

Read the project page please, especially the part that says "READ THIS"

a_webb’s picture

OK, I feel smarter by the day : )
I will await 7-beta 3 and will once again thank the developers of this "media module suite" for their hard work and patience.

xamanu’s picture

Version: 7.x-1.0-beta2 »
Status: Active » Fixed

Fatal error: Cannot access empty property in /path.../drupal-7/modules/field/field.attach.inc on line 661

I had this error, but after updating to latest drupal dev and media dev version it is fixed. thanx

Status: Fixed » Closed (fixed)

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

nils.destoop’s picture

Status: Closed (fixed) » Active
nils.destoop’s picture

Status: Active » Closed (duplicate)

Issue from core moved to media queue. So this is duplicate now. See #1015580: Media entities : Cannot access empty property in field.attach.inc line 677

prabirchoudhury’s picture

Version: » 7.x-1.0-beta5
Assigned: Unassigned » prabirchoudhury
Status: Closed (duplicate) » Needs work

Hello JacobSHingh

I have follow through the Installation file from the media module and have installed all the modules and API to make the media gallery work but it is giving the sale error

Fatal error: Cannot access empty property in /home/www/creative/hw.creativecomms.co.nz/public/modules/field/field.attach.inc on line 199

please give some proper solutions for that
I am using drupal7

thanks in advanced

alanburke’s picture

Assigned: prabirchoudhury » Unassigned
Status: Needs work » Closed (fixed)

Please open a new issue with your support request.
This issue is fixed & closed.