Error when printing URI in drupal Views
If you just want to check if it has a value, you can add a check if it exists, so on row 6:

&lt;?php if (isset($fields['fields_photo']-&gt;content) &amp;&amp; $fields['fields_photo']-&gt;content) { ?&gt;


Otherwise do a &lt;?php dpm($fields); ?&gt; to see what is actually available to use for your theme.

It couldn't be that you have set it to "Exclude from display"?