Answers.Body: <p>That backtrace seems to point to <a href="https://lab.civicrm.org/dev/core/-/commit/b7edabe813db467aff6dd1ea083d798089198655" rel="nofollow noreferrer">this change</a> as the culprit, however after several attempts I've been unable to reproduce that error. We can continue discussion on this issue: <a href="https://lab.civicrm.org/dev/core/-/issues/4458" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/4458</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-28T19:44:58.313Z
Answers.LastActivityDate: 2023-08-04T18:33:52.047Z
Answers.LastEditDate: 2023-08-04T18:33:52.047Z
Answers.UserDisplayName: Coleman
Body: <p>CiviCRM 5.61.2., wordpress.</p>
  <ul>
  <li>Hovering over icons on search results page brings &quot;where was an error processing your request..&quot; message and <strong>Invalid field 'contact_id.is_deceased'</strong> message</li>
  <li>Happens only for &quot;subscribers&quot; wordpress role, even if &quot;CiviCRM: access AJAX API&quot; and &quot;CiviCRM: view all contacts&quot; allowed for everyone ( including anonymous)</li>
  <li>Looks similar to <a href="https://lab.civicrm.org/dev/core/-/issues/2507" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2507</a> at first sight but is not the same</li>
  <li>contact_id.is_deceased is being called in:
  <ul>
  <li>/civicrm/api/v3/Email.php</li>
  <li>/civicrm/CRM/Contact/Form/Task/EmailTrait.php</li>
  <li>/civicrm/CRM/Profile/Page/Dynamic.php
  Additionally, in/wp-content/uploads/civicrm/persist/contribute/dyn/crm-l10n.48bc1baa4052e4cf59989414d9b48136.js - but only on my local copy, remote one ( where the issue happens ) does not have this file.</li>
  </ul>
  </li>
  </ul>
  <p>Backtrace:</p>
  <pre><code>   #line: 711
     trace: {
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:711 {
         Civi\Api4\Query\Api4SelectQuery-&gt;getField($expr, $strict = false)
         › if ($strict &amp;&amp; $field === NULL) {
         ›   throw new \CRM_Core_Exception(&quot;Invalid field '$fieldName'&quot;);
         › }
       }
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:656 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:494 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:464 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:304 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:156 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:171 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOGetAction.php:124 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOGetAction.php:111 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Provider/ActionObjectProvider.php:72 { …}
       wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:158 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php:250 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/Dynamic.php:450 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/Dynamic.php:332 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/View.php:91 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/View.php:159 { …}
  </code></pre>
  <p><strong>What would it be?</strong>
  <a href="https://i.sstatic.net/BKNkk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BKNkk.png" alt="enter image description here" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-27T20:51:07.157Z
Comments.Text: Can you reproduce it on dmaster?  If so, please open an issue at https://lab.civicrm.org/dev/core/-/issues/
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-28T16:39:28.953Z
Comments.Text: Wish I could: none of WP demos available here https://civicrm.org/demo?field_language_value=1&field_cms_demo_value=wordpress allow me to reproduce the exact setup.
Comments.UserDisplayName: yurg
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-04T18:34:14.693Z
Comments.Text: Spoke too soon. I've edited my answer because I can't reproduce. See https://lab.civicrm.org/dev/core/-/issues/4458
Comments.UserDisplayName: Coleman
Tags: <wordpress><api><apiv4>
Title: Invalid field 'contact_id.is_deceased' Apiv4
ThreadText: # Invalid field 'contact_id.is_deceased' Apiv4
  
  (Asked by: username_0 on 2023-07-27)
  
  CiviCRM 5.61.2., wordpress.
  
  Hovering over icons on search results page brings "where was an error processing your request.." message and Invalid field 'contact_id.is_deceased' message
  Happens only for "subscribers" wordpress role, even if "CiviCRM: access AJAX API" and "CiviCRM: view all contacts" allowed for everyone ( including anonymous)
  Looks similar to https://lab.civicrm.org/dev/core/-/issues/2507 at first sight but is not the same
  contact_id.is_deceased is being called in:
  
  /civicrm/api/v3/Email.php
  /civicrm/CRM/Contact/Form/Task/EmailTrait.php
  /civicrm/CRM/Profile/Page/Dynamic.php
  Additionally, in/wp-content/uploads/civicrm/persist/contribute/dyn/crm-l10n.48bc1baa4052e4cf59989414d9b48136.js - but only on my local copy, remote one ( where the issue happens ) does not have this file.
  
  
  
  Backtrace:
     #line: 711
     trace: {
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:711 {
         Civi\Api4\Query\Api4SelectQuery->getField($expr, $strict = false)
         › if ($strict && $field === NULL) {
         ›   throw new \CRM_Core_Exception("Invalid field '$fieldName'");
         › }
       }
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:656 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:494 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:464 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:304 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:156 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Query/Api4SelectQuery.php:171 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOGetAction.php:124 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/DAOGetAction.php:111 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Provider/ActionObjectProvider.php:72 { …}
       wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:158 { …}
       wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php:250 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/Dynamic.php:450 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/Dynamic.php:332 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/View.php:91 { …}
       wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/View.php:159 { …}
  
  What would it be?
  
  **Tags:** wordpress, api, apiv4
  
  > **Comments:**
  > **username_1**: Can you reproduce it on dmaster?  If so, please open an issue at https://lab.civicrm.org/dev/core/-/issues/  
  > **username_0**: Wish I could: none of WP demos available here https://civicrm.org/demo?field_language_value=1&field_cms_demo_value=wordpress allow me to reproduce the exact setup.  
  > **username_2**: Spoke too soon. I've edited my answer because I can't reproduce. See https://lab.civicrm.org/dev/core/-/issues/4458  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-07-28. Score: 3 | Accepted answer
  
  That backtrace seems to point to [this change](https://lab.civicrm.org/dev/core/-/commit/b7edabe813db467aff6dd1ea083d798089198655) as the culprit, however after several attempts I've been unable to reproduce that error. We can continue discussion on this issue: <https://lab.civicrm.org/dev/core/-/issues/4458>
  
  
  ---
  
  