Answers.Body: <ul>
  <li>Check that you have set "Verify SSL" to "No" at <code>civicrm/admin/setting/url</code></li>
  <li>Note that CiviCRM is storing absolute URLs in DB <code>civicrm_contact.image_URL</code> - even once your SSL config is fine, you may see images not appear on SSL due to <a href="https://issues.civicrm.org/jira/browse/CRM-14207" rel="nofollow">CRM-14207: Contact's image URL is full &amp; absolute path</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T19:47:42.507Z
Answers.Text: Chris, thanks for the advice. I forgot to mention that I already tried setting Verify SSL to No, but it did not solve the problem. I just checked out CRM-14207, you referenced above, and it seems like others are having very similar issues. That is a good lead for me. I'll report back once i find a solution. tnx.
Answers.UserDisplayName: alonjr
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T20:34:31.753Z
Answers.Text: What you're seeing is coming from [this block in CRM_Contact_Page_View::preprocess()](https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/Page/View.php#L152). The [mentioned image URL](https://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg) is not an image, so you may need to solve that to stop triggering this bug ... But the `getimagesize()` call in that code really should better handle this case by checking the returned result before setting values from it, there's no sense in setting image width and height to zero.
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T20:38:36.173Z
Answers.Text: Those three warnings in your question seem like [CiviCRM is trying to access an HTTP URL *and* verify the returned certificate](https://github.com/civicrm/civicrm-core/blob/4.6/CRM/Contact/Page/View.php#L164) from the same URL (which has no cert because it's not SSL). I don't see what configuration triggers this, but I'm pretty sure that's not going to work out :D
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T18:16:45.033Z
Answers.LastActivityDate: 2015-10-16T18:16:45.033Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I recently introduced SSL across my entire Drupal-Civicrm site. Now when I visit the contact summary page, I'm confronted with warning errors (below) that are clearly related to SSL interfering with accessing the contact's image dimensions. </p>
  
  <p>Note that the image is visible in the summary page but its aspect ratio is wrong (the image is squeezed), confirming that getting the image's dimensions failed (without SSL, the image aspect was correct).</p>
  
  <p>I am using a self-signed certificate as I'm still in the development stage. I tried to disable certificate verification in php.ini (setting the parameters verify_peer=false, allow_self_signed=true, verify_peer_name=false) but it did not solve the issue.</p>
  
  <blockquote>
    <p>Warning: getimagesize(): SSL operation failed with code 1. OpenSSL
    Error messages: error:14090086:SSL
    routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).</p>
    
    <p>Warning: getimagesize(): Failed to enable crypto
    in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).</p>
    
    <p>Warning:
    getimagesize(<a href="http://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&amp;photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg" rel="nofollow">http://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&amp;photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg</a>):
    failed to open stream: operation failed
    in CRM_Contact_Page_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).</p>
  </blockquote>
  
Tags: <contacts><ssl>
Title: SSL introduces warnings related to contact image
ThreadText: # SSL introduces warnings related to contact image
  
  (Asked by: username_0 on 2015-10-16)
  
  I recently introduced SSL across my entire Drupal-Civicrm site. Now when I visit the contact summary page, I'm confronted with warning errors (below) that are clearly related to SSL interfering with accessing the contact's image dimensions.
  
  Note that the image is visible in the summary page but its aspect ratio is wrong (the image is squeezed), confirming that getting the image's dimensions failed (without SSL, the image aspect was correct).
  
  I am using a self-signed certificate as I'm still in the development stage. I tried to disable certificate verification in php.ini (setting the parameters verify\_peer=false, allow\_self\_signed=true, verify\_peer\_name=false) but it did not solve the issue.
  
  > Warning: getimagesize(): SSL operation failed with code 1. OpenSSL
  > Error messages: error:14090086:SSL
  > routines:SSL3\_GET\_SERVER\_CERTIFICATE:certificate verify failed
  > in CRM\_Contact\_Page\_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).
  >
  > Warning: getimagesize(): Failed to enable crypto
  > in CRM\_Contact\_Page\_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).
  >
  > Warning:
  > getimagesize(<http://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg>):
  > failed to open stream: operation failed
  > in CRM\_Contact\_Page\_View->preProcess() (line 164 of /var/www/prod/sites/all/modules/civicrm/CRM/Contact/Page/View.php).
  
  **Tags:** contacts, ssl
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-16. Score: 3
  
  * Check that you have set "Verify SSL" to "No" at `civicrm/admin/setting/url`
  * Note that CiviCRM is storing absolute URLs in DB `civicrm_contact.image_URL` - even once your SSL config is fine, you may see images not appear on SSL due to [CRM-14207: Contact's image URL is full & absolute path](https://issues.civicrm.org/jira/browse/CRM-14207)
  
  > **Comments:**
  > **username_0**: username_1, thanks for the advice. I forgot to mention that I already tried setting Verify SSL to No, but it did not solve the problem. I just checked out CRM-14207, you referenced above, and it seems like others are having very similar issues. That is a good lead for me. I'll report back once i find a solution. tnx.  
  > **username_1**: What you're seeing is coming from [this block in CRM_Contact_Page_View::preprocess()](https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/Page/View.php#L152). The [mentioned image URL](https://abdong.duckdns.org/index.php?q=civicrm/contact/imagefile&photo=500x500bb_3_a5ece8ea35cdb1947316bd7c98d5daf9.jpg) is not an image, so you may need to solve that to stop triggering this bug ... But the `getimagesize()` call in that code really should better handle this case by checking the returned result before setting values from it, there's no sense in setting image width and height to zero.  
  > **username_1**: Those three warnings in your question seem like [CiviCRM is trying to access an HTTP URL *and* verify the returned certificate](https://github.com/civicrm/civicrm-core/blob/4.6/CRM/Contact/Page/View.php#L164) from the same URL (which has no cert because it's not SSL). I don't see what configuration triggers this, but I'm pretty sure that's not going to work out :D  
  
  ---
  
  