My apologies if this is a duplicate bug, couldn't find anything similar when i dug around.. Anywho, after updating drupal (7.18) and mediafront (7.x-2.0-rc3) today i'm getting an odd error, undefined index for 'safe_value'... Here is the exact error:

Notice: Undefined index: safe_value in mediafront_get_node() (line 668 of /srv/http/devsite/drupal-7.14/sites/all/modules/mediafront/mediafront.module).

Here is the contents of $value right before line 668:
Array ( [0] => 1354172400 ) Array ( [0] => Array ( [tid] => 3 ) ) Array ( [0] => 1353999600 ) Array ( [0] => Array ( [tid] => 3 ) ) Array ( [0] => 1353567600 ) Array ( [0] => Array ( [tid] => 3 ) ) Array ( [0] => 1353394800 ) Array ( [0] => Array ( [tid] => 3 ) )

Clearly that key is missing in the array.. Any clue as to why?

Thanks,

-hagan

Comments

drakythe’s picture

Thats a new one, I've never seen that before. What were you doing when the error cropped up?

haganf’s picture

This error only crops up on the frontpage, where i'm using a view with mediafront... I've got a pager on the right side showing 4 thumbnails.. Individually, say a specific media node will not show the error. So i'm only seeing this with views so far. The pager is limited to 4 items plus the main window, which is the same number of errors i'm seeing.. (4).

Other info, i've updated drupal 7.14 -> 7.18 and mediafront 7.x-2.0-beta4 -> 7.x-2.0-rc3

pixelsweatshop’s picture

I am seeing this in the latest dev as well.

Anonymous’s picture

Any update on this I have just encountered the same error code

Notice: Undefined index: safe_value in mediafront_get_node() (line 692 of /var/www/vhosts/***/httpdocs/sites/all/modules/mediafront/mediafront.module).