Answers.Body: <p>Not sure about the error message you pasted but there was an issue related to deleting a contact image which is fixed in recent version.</p>
  <p>You can apply the <a href="https://github.com/civicrm/civicrm-core/pull/30119/files" rel="nofollow noreferrer">patch</a> or upgrade CiviCRM to 5.73.x</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-23T06:55:45.953Z
Answers.LastActivityDate: 2024-05-23T06:55:45.953Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am able to add photo to contact.
  But i am not able to change or delete contact photo.
  This isa an error i am getting.
  thank you</p>
  <h1>WordPress version 6.5.3
  Current plugin: CiviCRM (version 5.72.1)
  PHP version 8.1.16
  Error Details</h1>
  <p>An error of type E_ERROR was caused in line 1086 of the file /home/xxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Contact.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/xxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Contact.php:1086</p>
  
Tags: <user>
Title: Can not edit Contact (user) photo image
ThreadText: # Can not edit Contact (user) photo image
  
  (Asked by: username_0 on 2024-05-23)
  
  I am able to add photo to contact.
  But i am not able to change or delete contact photo.
  This isa an error i am getting.
  thank you
  
  # WordPress version 6.5.3 Current plugin: CiviCRM (version 5.72.1) PHP version 8.1.16 Error Details
  
  An error of type E\_ERROR was caused in line 1086 of the file /home/xxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Contact.php. Error message: Uncaught TypeError: array\_key\_exists(): Argument #2 ($array) must be of type array, null given in /home/xxx/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/Contact.php:1086
  
  **Tags:** user
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-05-23. Score: 0
  
  Not sure about the error message you pasted but there was an issue related to deleting a contact image which is fixed in recent version.
  
  You can apply the [patch](https://github.com/civicrm/civicrm-core/pull/30119/files) or upgrade CiviCRM to 5.73.x
  
  
  ---
  
  