Answers.Body: <p><code>CRM_Contact_BAO_Relationship::legacyCreateMultiple()</code> was <a href="https://github.com/civicrm/civicrm-core/pull/25048" rel="nofollow noreferrer">removed last year after being deprecated</a> for seven years. Are you perhaps using Grant Applications? Looks like it still has to be <a href="https://lab.civicrm.org/extensions/grantapplications/-/blob/master/CRM/Grant/Form/Grant/Confirm.php#L724" rel="nofollow noreferrer">removed from there</a>.</p>
  <p>Might want to post an <a href="https://lab.civicrm.org/extensions/grantapplications/-/issues" rel="nofollow noreferrer">issue there</a> and provide a fix if you're able.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-13T16:31:08.200Z
Answers.LastActivityDate: 2023-06-13T16:31:08.200Z
Answers.UserDisplayName: Lars SG
Body: <p>When adding a new individual with a current employer we are getting the following error:</p>
  <blockquote>
  <p>Error thrown</p>
  <p>Call to undefined method
  CRM_Contact_BAO_Relationship::legacyCreateMultiple()</p>
  </blockquote>
  <p>The individual contact is created but no link to the employer. If we try to add the current employer on the contact summary screen we get the following:</p>
  <blockquote>
  <p>Network Error Unable to reach the server. Please refresh this page in
  your browser and try again.</p>
  </blockquote>
  <p>We can add the relationship under the relationship tab.</p>
  <p>We upgraded CiviCRM to 5.61.4 from 5.58.1 and cleared the cache. No change after that. There is nothing in the PHP logs of the CiviCRM logs. Behavior seems to be unique to this site. Nothing has changed recently.</p>
  <p>WordPress site running Version 6.2.2</p>
  <p>Thanks in advance for any thoughts.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-13T16:15:55.027Z
Comments.Text: The site must be having custom code or extension using the function?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-14T18:18:48.753Z
Comments.Text: Did some hunting and found some custom legacy php custom files from a previous developer. Taking that out corrected the problem.
Comments.UserDisplayName: KilakwaBT
Tags: <contacts>
Title: Adding New Contact with Employer
ThreadText: # Adding New Contact with Employer
  
  (Asked by: username_0 on 2023-06-13)
  
  When adding a new individual with a current employer we are getting the following error:
  
  > Error thrown
  >
  > Call to undefined method
  > CRM\_Contact\_BAO\_Relationship::legacyCreateMultiple()
  
  The individual contact is created but no link to the employer. If we try to add the current employer on the contact summary screen we get the following:
  
  > Network Error Unable to reach the server. Please refresh this page in
  > your browser and try again.
  
  We can add the relationship under the relationship tab.
  
  We upgraded CiviCRM to 5.61.4 from 5.58.1 and cleared the cache. No change after that. There is nothing in the PHP logs of the CiviCRM logs. Behavior seems to be unique to this site. Nothing has changed recently.
  
  WordPress site running Version 6.2.2
  
  Thanks in advance for any thoughts.
  
  **Tags:** contacts
  
  > **Comments:**
  > **username_1**: The site must be having custom code or extension using the function?  
  > **username_0**: Did some hunting and found some custom legacy php custom files from a previous developer. Taking that out corrected the problem.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-06-13. Score: 3
  
  `CRM_Contact_BAO_Relationship::legacyCreateMultiple()` was [removed last year after being deprecated](https://github.com/civicrm/civicrm-core/pull/25048) for seven years. Are you perhaps using Grant Applications? Looks like it still has to be [removed from there](https://lab.civicrm.org/extensions/grantapplications/-/blob/master/CRM/Grant/Form/Grant/Confirm.php#L724).
  
  Might want to post an [issue there](https://lab.civicrm.org/extensions/grantapplications/-/issues) and provide a fix if you're able.
  
  
  ---
  
  