Answers.Body: <p>5.64 moves a whole bunch of stuff into extensions and if the upgrade doesn't go smoothly there can be a mismatch between components and extensions. Check that  both civicontribute component and the new extension are enabled.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-06T22:35:06.000Z
Answers.Text: Thanks. That got me to the solution. I looked at the extensions and the core components were all shown as not installed. I installed CiviContribute, but the Contribution page problem persisted. I disabled the CiviPledge component (still we don't use it) and then all the core component extensions were shown as installed -- and our contribute page worked again. It seems like changing the active components triggered something.
Answers.UserDisplayName: Todd Scott
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-06T15:32:50.777Z
Answers.LastActivityDate: 2023-08-06T15:32:50.777Z
Answers.UserDisplayName: Demerit
Body: <p>Is anyone else experiencing this?</p>
  <p>I upgraded to 5.64.0 and my page with a Contribution shortcode ([civicrm component=&quot;contribution&quot; id=&quot;12&quot; mode=&quot;live&quot; hijack=&quot;0&quot;]) generates a fatal Wordpress error. I confirmed that it works correctly under 5.63.1.</p>
  <blockquote>
  <p>Wordpress sent the following information regarding the fatal eror.
  WordPress version 6.2.2 Active theme: Detroit Greenways (version 1.0)
  Current plugin: CiviCRM (version 5.64.0) PHP version 7.4.33</p>
  <p>Error Details
  ============= An error of type E_ERROR was caused in line 1581 of the file
  /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php.
  Error message: Uncaught Error: Class 'Civi\Api4\ContributionPage' not
  found in
  /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:1581
  Stack trace:
  #0 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Cms.php(142):
  CRM_Utils_System_WordPress-&gt;checkCleanurls()
  #1 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component.php(76):
  CRM_Utils_Check_Component_Cms::checkCleanurls(false)
  #2 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(215):
  CRM_Utils_Check_Component-&gt;checkAll(Array, false)
  #3 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(185):
  CRM_Utils_Check::checkStatus()
  #4 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(93):
  CRM_Utils_Check::checkAll()
  #5 /home/detroi20/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page.php(255):
  CRM_Utils_Check-&gt;showPeriodicAlerts()
  #6 /home/detroi20/public_html/wp-conte</p>
  </blockquote>
  
Tags: <wordpress><civicontribute><contribution-page>
Title: 5.64.0 seems to break ContributePage
ThreadText: # 5.64.0 seems to break ContributePage
  
  (Asked by: username_0 on 2023-08-06)
  
  Is anyone else experiencing this?
  
  I upgraded to 5.64.0 and my page with a Contribution shortcode ([civicrm component="contribution" id="12" mode="live" hijack="0"]) generates a fatal Wordpress error. I confirmed that it works correctly under 5.63.1.
  
  > Wordpress sent the following information regarding the fatal eror.
  > WordPress version 6.2.2 Active theme: Detroit Greenways (version 1.0)
  > Current plugin: CiviCRM (version 5.64.0) PHP version 7.4.33
  >
  > Error Details
  > ============= An error of type E\_ERROR was caused in line 1581 of the file
  > /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php.
  > Error message: Uncaught Error: Class 'Civi\Api4\ContributionPage' not
  > found in
  > /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php:1581
  > Stack trace:
  > #0 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component/Cms.php(142):
  > CRM\_Utils\_System\_WordPress->checkCleanurls()
  > #1 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check/Component.php(76):
  > CRM\_Utils\_Check\_Component\_Cms::checkCleanurls(false)
  > #2 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(215):
  > CRM\_Utils\_Check\_Component->checkAll(Array, false)
  > #3 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(185):
  > CRM\_Utils\_Check::checkStatus()
  > #4 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Check.php(93):
  > CRM\_Utils\_Check::checkAll()
  > #5 /home/detroi20/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Page.php(255):
  > CRM\_Utils\_Check->showPeriodicAlerts()
  > #6 /home/detroi20/public\_html/wp-conte
  
  **Tags:** wordpress, civicontribute, contribution-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-08-06. Score: 2 | Accepted answer
  
  5.64 moves a whole bunch of stuff into extensions and if the upgrade doesn't go smoothly there can be a mismatch between components and extensions. Check that both civicontribute component and the new extension are enabled.
  
  > **Comments:**
  > **username_0**: Thanks. That got me to the solution. I looked at the extensions and the core components were all shown as not installed. I installed CiviContribute, but the Contribution page problem persisted. I disabled the CiviPledge component (still we don't use it) and then all the core component extensions were shown as installed -- and our contribute page worked again. It seems like changing the active components triggered something.  
  
  ---
  
  