Answers.Body: <p>Can you try to apply the <a href="https://github.com/civicrm/civicrm-drupal/pull/653/files" rel="nofollow noreferrer">patch</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-09T21:27:47.497Z
Answers.Text: Yay! That did bring back my CiviGrant Views. I applied it on a site that had already been updated so I did not test to see if the upgrade worked without crashing. I'll try that later or tomorrow. Thanks to so many people for working on this!
Answers.UserDisplayName: Daniel Strum
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-09T16:56:21.740Z
Answers.LastActivityDate: 2022-03-09T16:56:21.740Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>This is a D7 site. It uses CiviGrants and has over 600 of them using lots of custom fields. I am trying to upgrade from 5.46.2 to 5.47.0. When I run the db upgrade using the update url, it freezes right at the end. If I try to run the updates via Drush, I get the error:</p>
  <blockquote>
  <p>WD php: Error: Class 'CRM_Grant_DAO_Grant' not found in
  CRM_Core_PseudoConstant::get() (line 212 of           [error]
  /var/www/dev/web/sites/all/modules/civicrm/CRM/Core/PseudoConstant.php).
  Error: Class 'CRM_Grant_DAO_Grant' not found in
  CRM_Core_PseudoConstant::get() (line 212 of
  /var/www/dev/web/sites/all/modules/civicrm/CRM/Core/PseudoConstant.php).
  Drush command terminated abnormally due to an unrecoverable error.</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-07T16:34:38.923Z
Comments.Text: CiviGrant was moved to an extension in CiviCRM 5.47.  There was a lot of testing to avoid this sort of issue but it looks like you found an issue.  I would go to https://chat.civicrm.org, enter the `~product-maintenance` channel, and point them to this question.  This will get taken pretty seriously.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-07T22:14:23.453Z
Comments.Text: Daniel -> do you have any webform civicrm and/or civicrm entity integration?
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-07T23:48:37.130Z
Comments.Text: @KarinG-SemperIT Yes, I have both Civi-Webform and Civi-Entity. I was thinking I should test the upgrade with them disabled.
Comments.UserDisplayName: Daniel Strum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-07T23:50:03.763Z
Comments.Text: @JonG-MegaphoneTech Thanks for the advice. I will post this on chat.civicrm.org
Comments.UserDisplayName: Daniel Strum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-08T00:39:39.557Z
Comments.Text: For Webform CiviCRM module (my team maintains that) -> download and install https://www.drupal.org/project/webform_civicrm/releases/7.x-5.8 [it's 5.47 compatible].
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-03-08T00:44:03.073Z
Comments.Text: For CiviCRM Entity -> the maintainers have not issued a release yet. Ah I see you found Mattermost. See you there!
Comments.UserDisplayName: KarinG - Semper IT
Tags: <upgrade><civigrant>
Title: Upgrade to 5.47.0 fails on my site with extensive use of CiviGrants
ThreadText: # Upgrade to 5.47.0 fails on my site with extensive use of CiviGrants
  
  (Asked by: username_0 on 2022-03-07)
  
  This is a D7 site. It uses CiviGrants and has over 600 of them using lots of custom fields. I am trying to upgrade from 5.46.2 to 5.47.0. When I run the db upgrade using the update url, it freezes right at the end. If I try to run the updates via Drush, I get the error:
  
  > WD php: Error: Class 'CRM\_Grant\_DAO\_Grant' not found in
  > CRM\_Core\_PseudoConstant::get() (line 212 of [error]
  > /var/www/dev/web/sites/all/modules/civicrm/CRM/Core/PseudoConstant.php).
  > Error: Class 'CRM\_Grant\_DAO\_Grant' not found in
  > CRM\_Core\_PseudoConstant::get() (line 212 of
  > /var/www/dev/web/sites/all/modules/civicrm/CRM/Core/PseudoConstant.php).
  > Drush command terminated abnormally due to an unrecoverable error.
  
  **Tags:** upgrade, civigrant
  
  > **Comments:**
  > **username_1**: CiviGrant was moved to an extension in CiviCRM 5.47.  There was a lot of testing to avoid this sort of issue but it looks like you found an issue.  I would go to https://chat.civicrm.org, enter the `~product-maintenance` channel, and point them to this question.  This will get taken pretty seriously.  
  > **username_2**: Daniel -> do you have any webform civicrm and/or civicrm entity integration?  
  > **username_0**: @KarinG-SemperIT Yes, I have both Civi-Webform and Civi-Entity. I was thinking I should test the upgrade with them disabled.  
  > **username_0**: @JonG-MegaphoneTech Thanks for the advice. I will post this on chat.civicrm.org  
  > **username_2**: For Webform CiviCRM module (my team maintains that) -> download and install https://www.drupal.org/project/webform_civicrm/releases/7.x-5.8 [it's 5.47 compatible].  
  > **username_2**: For CiviCRM Entity -> the maintainers have not issued a release yet. Ah I see you found Mattermost. See you there!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2022-03-09. Score: 2
  
  Can you try to apply the [patch](https://github.com/civicrm/civicrm-drupal/pull/653/files)
  
  > **Comments:**
  > **username_0**: Yay! That did bring back my CiviGrant Views. I applied it on a site that had already been updated so I did not test to see if the upgrade worked without crashing. I'll try that later or tomorrow. Thanks to so many people for working on this!  
  
  ---
  
  