Answers.Body: <p>Do you have a <a href="https://civicrm.org/extensions/grant-application-pages" rel="nofollow noreferrer">Grant Application extension</a> or any extension related to CiviGrant installed? If so can you disable the extension, Upgrade CiviCRM, and re-enable the extension?</p>
  <p>Have seen a similar <a href="https://github.com/JMAConsulting/biz.jmaconsulting.grantapplications/issues/184" rel="nofollow noreferrer">issue reported</a> on the Grant application which is now fixed by JMA Consulting but needs some testing. If the error you are facing relates to <a href="https://civicrm.org/extensions/grant-application-pages" rel="nofollow noreferrer">Grant Application extension</a> then can you apply the <a href="https://patch-diff.githubusercontent.com/raw/JMAConsulting/biz.jmaconsulting.grantapplications/pull/185.patch" rel="nofollow noreferrer">patch</a> and Do the Civi upgrade?</p>
  <p>HTH</p>
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-22T14:30:05.670Z
Answers.Text: Yes, We have Grant Application extension enabled. Disabling the extension and doing CiviCRM upgrade worked. Thank you
Answers.UserDisplayName: Freelance User
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-22T10:48:12.523Z
Answers.LastActivityDate: 2022-06-22T10:48:12.523Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>We are unable to upgrade CiviCRM to 5.50.2, get a fatal error with the message Uncaught Error: Class 'CRM_Grant_BAO_Grant' while running the upgrade from UI or drush. We have Grant extension enabled, Any help would be appreciated.</p>
  <p>CiviCRM: 5.46.3
  Drupal: 9.4.0
  PHP: 7.4</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-06-22T10:46:54.710Z
Comments.Text: Can you provide some more details about the error from the php log?
Comments.UserDisplayName: Pradeep Nayak
Tags: <civigrant>
Title: Uncaught Error: Class 'CRM_Grant_BAO_Grant'
ThreadText: # Uncaught Error: Class 'CRM_Grant_BAO_Grant'
  
  (Asked by: username_0 on 2022-06-22)
  
  We are unable to upgrade CiviCRM to 5.50.2, get a fatal error with the message Uncaught Error: Class 'CRM\_Grant\_BAO\_Grant' while running the upgrade from UI or drush. We have Grant extension enabled, Any help would be appreciated.
  
  CiviCRM: 5.46.3
  Drupal: 9.4.0
  PHP: 7.4
  
  **Tags:** civigrant
  
  > **Comments:**
  > **username_1**: Can you provide some more details about the error from the php log?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-06-22. Score: 0
  
  Do you have a [Grant Application extension](https://civicrm.org/extensions/grant-application-pages) or any extension related to CiviGrant installed? If so can you disable the extension, Upgrade CiviCRM, and re-enable the extension?
  
  Have seen a similar [issue reported](https://github.com/JMAConsulting/biz.jmaconsulting.grantapplications/issues/184) on the Grant application which is now fixed by JMA Consulting but needs some testing. If the error you are facing relates to [Grant Application extension](https://civicrm.org/extensions/grant-application-pages) then can you apply the [patch](https://patch-diff.githubusercontent.com/raw/JMAConsulting/biz.jmaconsulting.grantapplications/pull/185.patch) and Do the Civi upgrade?
  
  HTH
  
  username_1
  
  > **Comments:**
  > **username_0**: Yes, We have Grant Application extension enabled. Disabling the extension and doing CiviCRM upgrade worked. Thank you  
  
  ---
  
  