Body: <p>I'm curing a Joomla instance CiviCRM. Just updated from Joomla 3 to joomla 4.4.1 with CiviCRM 5.68.1. <br />
  Updated too the server debian version from 11 to 12. <br />
  configured cron task with cv version v0.3.48</p>
  <p>/opt/cv api job.execute --user=XXXX --quiet --cwd=/var/www/html/XXXX/htdocs</p>
  <p>Got this message repeated multiple times :</p>
  <blockquote>
  <p>[PHP Warning] Undefined property: CRM_Core_DAO::$contribution_id at /var/www/html/XXXX/htdocs/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Query.php:4664</p>
  </blockquote>
  <p>How can I get rid of this error ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-02T21:16:37.840Z
Comments.Text: Just FYI you're going to see hundreds of various types of php warnings throughout civi if you're using php 8. Civi "works" with php 8, and is recommended, but still has lots of these warnings. This particular one might be hard to fix because it would require investigating which job and which record is causing it. It could be bad data, or a bad saved search, or something else.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-03T09:11:09.490Z
Comments.Text: Thanks for this warning ;)
  So I presume I will ignore crontab messages on a daily basis.
Comments.UserDisplayName: Christophe M.
Tags: <php><cron-job>
Title: cron job with error php Warning - Undefined property: CRM_Core_DAO::$contribution_id
ThreadText: # cron job with error php Warning - Undefined property: CRM_Core_DAO::$contribution_id
  
  (Asked by: username_0 on 2024-01-02)
  
  I'm curing a Joomla instance CiviCRM. Just updated from Joomla 3 to joomla 4.4.1 with CiviCRM 5.68.1.   
  Updated too the server debian version from 11 to 12.   
  configured cron task with cv version v0.3.48
  
  /opt/cv api job.execute --user=XXXX --quiet --cwd=/var/www/html/XXXX/htdocs
  
  Got this message repeated multiple times :
  
  > [PHP Warning] Undefined property: CRM\_Core\_DAO::$contribution\_id at /var/www/html/XXXX/htdocs/administrator/components/com\_civicrm/civicrm/CRM/Contact/BAO/Query.php:4664
  
  How can I get rid of this error ?
  
  **Tags:** php, cron-job
  
  > **Comments:**
  > **username_1**: Just FYI you're going to see hundreds of various types of php warnings throughout civi if you're using php 8. Civi "works" with php 8, and is recommended, but still has lots of these warnings. This particular one might be hard to fix because it would require investigating which job and which record is causing it. It could be bad data, or a bad saved search, or something else.  
  > **username_0**: Thanks for this warning ;) So I presume I will ignore crontab messages on a daily basis.  
  
  ---
  
  ## 0 answers
  
  