Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.8
-
Fix Version/s: Unscheduled
-
Component/s: Core CiviCRM
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
Our hosting provider, provide a shared SSL certificate (i.e. the certificate is associate to the provider domain instead of our domain)
This alow us to use https for back-end connection.
When editing a contact which has a picture on the back-end file the following errors are raised:
Warning: getimagesize() [function.getimagesize]: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Contact.php on line 398
Warning: getimagesize() [function.getimagesize]: Failed to enable crypto in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Contact.php on line 398
Warning: getimagesize(https://www.antibestriathlon.com/media/civicrm/custom/PETIT_S_bastien_2012_6a0590227c1953d2ed40b65c0170bb8f.jpg) [function.getimagesize]: failed to open stream: operation failed in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Contact.php on line 398
=====================
When displaying from directory a contact detail in the frond-end (using http, not https) the following errors are raised :
Warning: getimagesize() [function.getimagesize]: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 956
Warning: getimagesize() [function.getimagesize]: Failed to enable crypto in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 956
Warning: getimagesize(https://www.antibestriathlon.com/media/civicrm/custom/PETIT_S_bastien_2012_6a0590227c1953d2ed40b65c0170bb8f.jpg) [function.getimagesize]: failed to open stream: operation failed in /homez.467/antibest/www/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php on line 956
=================
From my point of view is that the picture path save in the database should not be the full one, but only a relative one, then the URL can be generated corresponding to the context (https or http)