Answers.Body: <p>It started working, the last action before it did so was me updating the views module.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-13T04:26:53.690Z
Answers.LastActivityDate: 2016-07-13T04:26:53.690Z
Answers.UserDisplayName: Richard Grevers
Answers.Body: <p>I don't have a 4.6.10; but on a CiviCRM 4.7.8 - this is working as below - out of the box - no rewriting and no views-views-fields.tpl.php required.</p>
  
  <p><strong>In CiviCRM:</strong></p>
  
  <p><a href="https://i.sstatic.net/OTdRw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OTdRw.png" alt="enter image description here"></a></p>
  
  <p><strong>In Views:</strong></p>
  
  <p><a href="https://i.sstatic.net/Wxj61.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Wxj61.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-06T03:08:58.833Z
Answers.LastActivityDate: 2016-07-06T03:08:58.833Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I am crafting a view to produce a directory of contacts, with contact_image as one of the fields (rewritten to wrap [IMAGE_URL] in an img element).
  My output is headed by an error for each call to the image fetcher:</p>
  
  <pre><code>Notice: Undefined index: photo in CRM_Contact_Page_ImageFile-&gt;run() (line 44 of /srv/www/htdocs/drupal/sites/all/modules/civicrm/CRM/Contact/Page/ImageFile.php).
  </code></pre>
  
  <p>I'm not certain if this refers to a database or array index. 
  Using CiviCRM version 4.6.10 on Drupal 7.44</p>
  
Tags: <drupal><drupal-views>
Title: Error with photo fields
ThreadText: # Error with photo fields
  
  (Asked by: username_0 on 2016-07-06)
  
  I am crafting a view to produce a directory of contacts, with contact_image as one of the fields (rewritten to wrap [IMAGE_URL] in an img element).
  My output is headed by an error for each call to the image fetcher:
  Notice: Undefined index: photo in CRM_Contact_Page_ImageFile->run() (line 44 of /srv/www/htdocs/drupal/sites/all/modules/civicrm/CRM/Contact/Page/ImageFile.php).
  
  I'm not certain if this refers to a database or array index. 
  Using CiviCRM version 4.6.10 on Drupal 7.44
  
  **Tags:** drupal, drupal-views
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-07-13. Score: 1 | Accepted answer
  
  It started working, the last action before it did so was me updating the views module.
  
  
  ---
  
  ### Answer by username_1 on 2016-07-06. Score: 0
  
  I don't have a 4.6.10; but on a CiviCRM 4.7.8 - this is working as below - out of the box - no rewriting and no views-views-fields.tpl.php required.
  
  **In CiviCRM:**
  
  [![enter image description here](https://i.sstatic.net/OTdRw.png)](https://i.sstatic.net/OTdRw.png)
  
  **In Views:**
  
  [![enter image description here](https://i.sstatic.net/Wxj61.png)](https://i.sstatic.net/Wxj61.png)
  
  
  ---
  
  