Answers.Body: <p>At this point, my best guess is that it was due to an update to the divi theme. Specifically, a site development copy isn't exhibiting the behaviour, and that's the difference I can see most readily. Not conclusive.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-06T15:46:25.910Z
Answers.LastActivityDate: 2024-02-06T15:46:25.910Z
Answers.UserDisplayName: Alan Dixon
Body: <p>CiviCRM 5.66.0, Wordpress 6.4.2, php 8.1.12</p>
  <p>From a contact's list of activities, or a search list of activities, clicking on the edit link of an activity generates an edit popup that does not populate the contact fields with names, but instead with the (correct) contact id.</p>
  <p>The behaviour does not occur when opening the edit in a new window, or when using the link to create a new activity, i.e. it's specific to the popup aspect.</p>
  <p>In the browser console, I can see:</p>
  <pre><code>Uncaught SyntaxError: '' string literal contains an unescaped line break
      jQuery 14
      refresh https://crm.kbia.ca/wp-content/plugins/civicrm/civicrm/js/crm.ajax.js?r=G3vOeen_US:329
      jQuery 5
  jquery.min.js:73:10
      jQuery 14
      refresh https://crm.kbia.ca/wp-content/plugins/civicrm/civicrm/js/crm.ajax.js?r=G3vOeen_US:329
      jQuery 5
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-30T23:23:39.473Z
Comments.Text: Does the person's name have an apostrophe in it? Or are there any ajax network calls that have a 200 response code but the actual response is broken somehow.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-01T15:29:46.500Z
Comments.Text: Those are reasonable lines of inquiry, but no.
  1. The behaviour applies to all activities (at least those tested, not including the sheep painted white on one side).
  2. Network tab in console shows all 200 green.
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-01T15:33:10.157Z
Comments.Text: BUT there is a custom extension active on this page which might be related, though it's weird that the error does not occur on the non-ajax edit page. Also notable that the error doesn't occur with Microsoft Edge. I guess I should try disabling the extension and see if the error goes away.
Comments.UserDisplayName: Alan Dixon
Tags: <wordpress><activities><ajax>
Title: editing an activity, shows contact id instead of name, console has "string literal contains an unescaped line break"
ThreadText: # editing an activity, shows contact id instead of name, console has "string literal contains an unescaped line break"
  
  (Asked by: username_0 on 2024-01-30)
  
  CiviCRM 5.66.0, Wordpress 6.4.2, php 8.1.12
  
  From a contact's list of activities, or a search list of activities, clicking on the edit link of an activity generates an edit popup that does not populate the contact fields with names, but instead with the (correct) contact id.
  
  The behaviour does not occur when opening the edit in a new window, or when using the link to create a new activity, i.e. it's specific to the popup aspect.
  
  In the browser console, I can see:
  
  ```
  Uncaught SyntaxError: '' string literal contains an unescaped line break
      jQuery 14
      refresh https://crm.kbia.ca/wp-content/plugins/civicrm/civicrm/js/crm.ajax.js?r=G3vOeen_US:329
      jQuery 5
  jquery.min.js:73:10
      jQuery 14
      refresh https://crm.kbia.ca/wp-content/plugins/civicrm/civicrm/js/crm.ajax.js?r=G3vOeen_US:329
      jQuery 5
  
  ```
  
  **Tags:** wordpress, activities, ajax
  
  > **Comments:**
  > **username_1**: Does the person's name have an apostrophe in it? Or are there any ajax network calls that have a 200 response code but the actual response is broken somehow.  
  > **username_0**: Those are reasonable lines of inquiry, but no. 1. The behaviour applies to all activities (at least those tested, not including the sheep painted white on one side). 2. Network tab in console shows all 200 green.  
  > **username_0**: BUT there is a custom extension active on this page which might be related, though it's weird that the error does not occur on the non-ajax edit page. Also notable that the error doesn't occur with Microsoft Edge. I guess I should try disabling the extension and see if the error goes away.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-02-06. Score: 1
  
  At this point, my best guess is that it was due to an update to the divi theme. Specifically, a site development copy isn't exhibiting the behaviour, and that's the difference I can see most readily. Not conclusive.
  
  
  ---
  
  