Donation page error in CiviCRM 5.37
Overview
I developed a site in Drupal 8 and CiviCRM 5.36.1 earlier this week. This morning I updated to Civi 5.37. I now get an error when trying to use the public donation page: The website encountered an unexpected error. Please try again later. See error log below.
It was working fine prior to the update.
Reproduction steps
Click on the donation link.
Current behaviour
The error in the nginx log (website name and directory changed):
2021/05/06 09:08:12 [error] 1423550#1423550: *4606 FastCGI sent in stderr: "PHP message: Error: Class 'CRM_Utils_ReCAPTCHA' not found in /example/web/vendor/civicrm/civicrm-core/CRM/Contribute/Form/ContributionBase.php on line 845 #0 /example/web/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Main.php(293): CRM_Contribute_Form_ContributionBase->hasToAddForcefully() #1 /example/web/vendor/civicrm/civicrm-core/CRM/Core/Form.php(642): CRM_Contribute_Form_Contribution_Main->buildQuickForm() #2 /example/web/vendor/civicrm/civicrm-core/CRM/Core/QuickForm/Action/Display.php(76): CRM_Core_Form->buildForm() #3 /example/web/vendor/civicrm/civicrm-packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform() #4 /example/web/vendor/civicrm/civicrm-packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle() #5 /example/web/vendor/civicrm/civicrm-core/CRM/Core/Controller.php(347): HTML_QuickForm_Pag" while reading response header from upstream, client: 173.72.20.196, server: www.example.com, request: "GET /civicrm/contribute/transact?reset=1&id=1 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "www.example.com", referrer: "https://www.example.com/"
Expected behaviour
The contribution page should display and collect money from visitors.
Environment information
- CiviCRM: 5.37
- PHP: 7.4.3
- CMS: Drupal 8.9.15
- Database: 5.5.5-10.5.9-MariaDB-1:10.5.9+maria~focal
- Web Server: Nginx 1.18.0
Comments
None.