Im using the media module and in admin/config/media/file-types/manage/video/file-display I get the error message:
Notice: Undefined index: default_formatter in editablefields_field_formatter_default_settings() (line 159 of /var/www/vhosts/localhost/httpdocs/sites/all/modules/editablefields/editablefields.module).
Notice: Undefined index: module in editablefields_field_formatter_settings_form() (line 119 of /var/www/vhosts/localhost/httpdocs/sites/all/modules/editablefields/editablefields.module).
How can this be fixed?
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | editablefields-1275924-13.patch | 1.37 KB | sokru |
| #7 | editablefields-1275924-7.patch | 1.94 KB | OnkelTem |
Comments
Comment #1
aasarava commentedJust wanted to say that yes, I'm seeing the same problem.
Comment #2
lukusI'm getting the same problem here.
Comment #3
froeser commentedHi, I'm getting a similar problem:
Don't quite know if this is a new problem or the same as described above.
Comment #4
johnvI guess this is only for fields from Media module?
Is this still happening with a newer release of Media?
Comment #5
Yuri commentedstill happening ...
Comment #6
johnvThis is the same as #1233688: Notice: Undefined index: module in editablefields_fallback_formatter()
Comment #6.0
johnverror
Comment #7
OnkelTem commentedI'm not sure this is duplicate as the issue being referenced is about disabling some modules (and lacking formatters).
The real reason of this message is that
file_entitymodule reuses field formatter functions by callinghook_field_formatter_settings_form()but doesn't really work with Field API, mocking $parameters and passing NULL as$field. Buteditablefields_field_formatter_settings_form()and othereditablefieldsfunctions doesn't expect $field to be NULL.Please try this simple patch, which avoids doing anything when $field IS NULL.
Comment #8
skylord commentedWorks OK! Thanks!
Comment #9
josebc commentedpatch works
Comment #10
joelpittetIt's not this module is it? https://www.drupal.org/project/mediafield
Comment #11
skylord commentedNo, it'a about https://www.drupal.org/project/media and https://www.drupal.org/project/file_entity
Comment #12
joelpittetThanks I was able to reproduce the error on simplytest.me. The patch needs a bit of clean up, the nested if is not necessary, and just a bit more tidying. I'll do it soon and commit it unless someone else wants to tackle that?
Comment #13
sokru commentedReroll and tidying.