on our staging environment we upgraded to Drupal 10.2.0 - CiviCRM 5.69.4 - PHP 8.2.15
On the Plesk server for the domain there is a scheduled (cron) job created as: script path = httpdocs/vendor/bin/cv arguments = api job.execute --user=cronuser --cwd=/var/www/vhosts/staging.*./httpdocs --quiet Use PHP version = 8.2.15 on run we got errors in website logging:
mod_fcgid: stderr: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/staging.x.x/httpdocs/vendor/pear/db/DB.php on line 474, referer: https://staging.x.x/admin/reports/status Apache error mod_fcgid: stderr: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/staging.x.x/httpdocs/vendor/pear/db/DB.php on line 547, referer: https://staging.x.x/admin/reports/status Apache error mod_fcgid: stderr: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/staging.x.x/httpdocs/vendor/pear/db/DB.php on line 549, referer: https://staging.x.x/admin/reports/status Apache error mod_fcgid: stderr: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vhosts/staging.x.x/httpdocs/vendor/pear/db/DB.php on line 552, referer: https://staging.x.x/admin/reports/status Apache error
As a workarround I tried decreasing the Jobs PHP version to 8.1.27, but this results in: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0"
Task "httpdocs/vendor/bin/cv" completed with error in 0 seconds, output:
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.27. in /var/www/vhosts/staging.x.x/httpdocs/vendor/composer/platform_check.php on line 28 Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.27. in /var/www/vhosts/staging.x.x/httpdocs/vendor/composer/platform_check.php on line 28