Answers.Body: <p>See <a href="https://lab.civicrm.org/dev/core/-/issues/3150" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/3150</a> for some possible ways this can happen and how to fix. Also it can come up with webform if you're using an old version of webform or the contribution was created by an old version of webform.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-26T17:51:35.510Z
Answers.LastActivityDate: 2022-07-26T17:51:35.510Z
Answers.UserDisplayName: Demerit
Body: <p>I am getting the following error when I try to access the contributions of one specific contact record.  The error does not come up when accessing the contributions of other contact records.</p>
  <p>TypeError: Argument 1 passed to CRM_Financial_BAO_Order::setPriceSetID() must be of the type int, null given, called in /var/www/emicrm/htdocs/sites/all/modules/civicrm/CRM/Financial/BAO/Order.php on line 910 in CRM_Financial_BAO_Order-&gt;setPriceSetID() (line 471 of /var/www/emicrm/htdocs/sites/all/modules/civicrm/CRM/Financial/BAO/Order.php).</p>
  <p>We are using CiviCRM 5.51.1. and Drupal 7.91.</p>
  
Tags: <contributions>
Title: Why would I be getting a setPriceSetID error?
ThreadText: # Why would I be getting a setPriceSetID error?
  
  (Asked by: username_0 on 2022-07-26)
  
  I am getting the following error when I try to access the contributions of one specific contact record. The error does not come up when accessing the contributions of other contact records.
  
  TypeError: Argument 1 passed to CRM\_Financial\_BAO\_Order::setPriceSetID() must be of the type int, null given, called in /var/www/emicrm/htdocs/sites/all/modules/civicrm/CRM/Financial/BAO/Order.php on line 910 in CRM\_Financial\_BAO\_Order->setPriceSetID() (line 471 of /var/www/emicrm/htdocs/sites/all/modules/civicrm/CRM/Financial/BAO/Order.php).
  
  We are using CiviCRM 5.51.1. and Drupal 7.91.
  
  **Tags:** contributions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-07-26. Score: -1 | Accepted answer
  
  See <https://lab.civicrm.org/dev/core/-/issues/3150> for some possible ways this can happen and how to fix. Also it can come up with webform if you're using an old version of webform or the contribution was created by an old version of webform.
  
  
  ---
  
  