Body: <p>I'm wondering if anyone is experiencing a similar issue. 
  I upgraded to 5.12 this morning and now it seems contact images are not displaying... </p>
  
  <p>I grabbed the url 
  /wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Ffile&amp;reset=1&amp;filename=imageName.jpg&amp;mime-type=image/jpeg&amp;reauth=1</p>
  
  <p>To see if I could access the image, but it downloads an unreadable file. </p>
  
  <p>I have tried deleting a contact image and uploading a different one with the same results, and it does seem as though the images exist on my file system....</p>
  
  <p>Any thoughts would be appreciated</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-14T02:51:09.050Z
Comments.Text: I've done a little more digging and it doesn't look like a civicrm_file record is being created in the DB.
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-14T03:06:51.180Z
Comments.Text: I've done a little more digging and realised the contact image is stored directly in the civicrm_contact table. 
  the URL for the contact image is stored, however when I follow the link I get the following message 
  You do not have permission to access this content.
  
  So I guess its a privacy setting somewhere? 
  
  civicrm/?page=CiviCRM&amp;q=civicrm%2Fcontact%2Fimagefile&amp;photo=image.jpg
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-14T07:32:42.037Z
Comments.Text: Are you logged in as user 1 or administrator user?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-15T07:32:11.297Z
Comments.Text: I tried as admin and as a generic user.
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-15T21:33:39.960Z
Comments.Text: Can you check if the user role has permission to view uploaded images?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-15T23:44:25.240Z
Comments.Text: Looks like it, although its entirely possible I'm missing something,
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-16T16:34:33.537Z
Comments.Text: I've checked, and given every possible role permission to view uploaded images, and still no love.
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-16T16:38:54.777Z
Comments.Text: Can you try to replicate on https://wpmaster.demo.civicrm.org
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T03:54:58.757Z
Comments.Text: Hi Pradeep thanks for your help with this. I can't seem to replicate the issue. 
  I created custom fields,  a smart group, and a membership type, created a profile, and tried editing the profile and images (both the specific contact image_URL and custom images) upload and display with no issues. 
  I think perhaps I've done something stupid. ;) But I'm not sure how to right this wrong. Is there a way to reset security settings to defaults? Or start with a fresh civicrm install?
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T05:17:35.530Z
Comments.Text: Ok. I had a redirect after submit set for the profile. - when I removed it, added an image and tried to submit I got the following error 
  `Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T05:17:42.510Z
Comments.Text: Warning: getimagesize(): Failed to enable crypto in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187 Warning: getimagesize(https://iakpcivicrm.local/member-dashboard/edit-practitioner-listing/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=figure_2acf5cf3137af5e29362ab3e59724d13.jpg): failed to open stream: operation failed in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187`
Comments.UserDisplayName: Brad
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-18T07:03:09.337Z
Comments.Text: Your SSL certificate is not verified, contact your ssl provider or system admin to get it verified
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-26T03:17:51.707Z
Comments.Text: Thanks - It's a problem with the SSL in Flywheel Local - incase anyone ever develops using the Local App.
Comments.UserDisplayName: Brad
Tags: <wordpress><upgrade>
Title: Upgrade from 5.10 to 5.12 contact images no longer appearing
ThreadText: # Upgrade from 5.10 to 5.12 contact images no longer appearing
  
  (Asked by: username_0 on 2019-04-14)
  
  I'm wondering if anyone is experiencing a similar issue.
  I upgraded to 5.12 this morning and now it seems contact images are not displaying...
  
  I grabbed the url
  /wp-admin/admin.php?page=CiviCRM&q=civicrm%2Ffile&reset=1&filename=imageName.jpg&mime-type=image/jpeg&reauth=1
  
  To see if I could access the image, but it downloads an unreadable file.
  
  I have tried deleting a contact image and uploading a different one with the same results, and it does seem as though the images exist on my file system....
  
  Any thoughts would be appreciated
  
  **Tags:** wordpress, upgrade
  
  > **Comments:**
  > **username_0**: I've done a little more digging and it doesn't look like a civicrm_file record is being created in the DB.  
  > **username_0**: I've done a little more digging and realised the contact image is stored directly in the civicrm_contact table.  the URL for the contact image is stored, however when I follow the link I get the following message  You do not have permission to access this content.  So I guess its a privacy setting somewhere?   civicrm/?page=CiviCRM&amp;q=civicrm%2Fcontact%2Fimagefile&amp;photo=image.jpg  
  > **username_1**: Are you logged in as user 1 or administrator user?  
  > **username_0**: I tried as admin and as a generic user.  
  > **username_1**: Can you check if the user role has permission to view uploaded images?  
  > **username_0**: Looks like it, although its entirely possible I'm missing something,  
  > **username_0**: I've checked, and given every possible role permission to view uploaded images, and still no love.  
  > **username_1**: Can you try to replicate on https://wpmaster.demo.civicrm.org  
  > **username_0**: Hi username_1 thanks for your help with this. I can't seem to replicate the issue.  I created custom fields,  a smart group, and a membership type, created a profile, and tried editing the profile and images (both the specific contact image_URL and custom images) upload and display with no issues.  I think perhaps I've done something stupid. ;) But I'm not sure how to right this wrong. Is there a way to reset security settings to defaults? Or start with a fresh civicrm install?  
  > **username_0**: Ok. I had a redirect after submit set for the profile. - when I removed it, added an image and tried to submit I got the following error  `Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187  
  > **username_0**: Warning: getimagesize(): Failed to enable crypto in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187 Warning: getimagesize(https://iakpcivicrm.local/member-dashboard/edit-practitioner-listing/?page=CiviCRM&q=civicrm%2Fcontact%2Fimagefile&photo=figure_2acf5cf3137af5e29362ab3e59724d13.jpg): failed to open stream: operation failed in /app/public/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 1187`  
  > **username_1**: Your SSL certificate is not verified, contact your ssl provider or system admin to get it verified  
  > **username_0**: Thanks - It's a problem with the SSL in Flywheel Local - incase anyone ever develops using the Local App.  
  
  ---
  
  ## 0 answers
  
  