This PHP notice appears because you are checking the value of $item['type'] before checking that the item itself is a file rather than a taxonomy term.
Notice: Undefined index: type in views_rss_media_field_formatter_view() (line 174 of /sites/all/modules/contrib/views_rss_media/views_rss_media.field.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | views_rss_media-2472409-2.patch | 528 bytes | casivaagustin |
| #1 | views_rss_media-2472409-1.patch | 942 bytes | danepowell |
Comments
Comment #1
danepowell commentedComment #2
elenat82 commentedThis patch worked for me, I had the same error but on different lines:
Notice: Undefined index: type in views_rss_media_field_formatter_view() (line 183 of /web/app/html/example/sites/all/modules/contrib/views_rss_media/views_rss_media.field.inc).
Notice: Undefined index: type in views_rss_media_field_formatter_view() (line 238 of /web/app/html/example/sites/all/modules/contrib/views_rss_media/views_rss_media.field.inc).
Notice: Undefined index: type in views_rss_media_field_formatter_view() (line 248 of /web/app/html/example/sites/all/modules/contrib/views_rss_media/views_rss_media.field.inc).
Notice: Undefined index: type in views_rss_media_field_formatter_view() (line 260 of /web/app/html/example/sites/all/modules/contrib/views_rss_media/views_rss_media.field.inc).
Comment #3
casivaagustin commentedThe issue happens in different lines of the same function, I did this in order to avoid the warning in all lines
Comment #4
parisekSeems to work as quickfix
Comment #6
gisleFixed in latest development snapshot of the 7.x-1.x branch.