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).

Comments

danepowell’s picture

Status: Active » Needs review
StatusFileSize
new942 bytes
elenat82’s picture

This 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).

casivaagustin’s picture

StatusFileSize
new528 bytes

The issue happens in different lines of the same function, I did this in order to avoid the warning in all lines

parisek’s picture

Status: Needs review » Reviewed & tested by the community

Seems to work as quickfix

  • Dane Powell authored fab5510 on 7.x-1.x
    Issue #2472409 by Dane Powell, casivaagustin: : Undefined index type in...
gisle’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in latest development snapshot of the 7.x-1.x branch.

Status: Fixed » Closed (fixed)

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