I am upgrading to CiviCRM 5.56.1 on a Drupal 9 application. I started getting errors on files missing and I realized that the following PEAR packages were missing:
- DB_DataObject
- HTML_QuickForm
- HTML_QuickForm_Controller
I installed the packages with pear install
since these are old packages that are not on packagist.
Question 1: Is there a documentation page listing all PEAR packages required?
Right now, I get a few PHP syntax errors related to those packages, running on PHP 7.4. For example, "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? DataObject.php:4255
and syntax error, unexpected 'new' (T_NEW) in /usr/local/lib/php/HTML/QuickForm/Controller.php on line 213
. These make sense since, for example, HTML_QuickForm_Controller
had its last release in 2009.
Question 2: Am I missing something here? Does CiviCRM has dependencies that do not support recent version of PHP, even though CiviCRM core states that it supports PHP 7.4?
<install_root>/vendor/civicrm/civicrm-packages
. They are not managed with pear but are managed with composer (package civicrm/civicrm-packages), and ultimately pull from github.com/civicrm/civicrm-packages.git. How are you upgrading civi?