PHP version issue on Ubuntu 22.04.5 LTS

Created on 6 November 2024, 9 days ago

Problem/Motivation

Your Composer dependencies require a PHP version ">= 8.1.6". You are running 8.1.2-1ubuntu2.19.

Steps to reproduce

Install the latest version of Commerce Stripe (8.1.2) - this introduces a dependency on PHP for version >= 8.1.6.

The LTS version on Ubuntu 22.04.5 is PHP 8.1.2-1ubuntu2.19 - the site will then not load.

Proposed resolution

Within composer.json - do we absolutely need the minor version 8.1.6? I expect any critical bug fixes will be backported into the Ubuntu Repo?

"require": {
"php": ">=8.1.6",
"drupal/commerce": "^2.40 || ^3",
"stripe/stripe-php": "^7.25 || ^15",
"ext-curl": "*"
},

Will 8.1.2 suffice - does the dependency come from another project downstream?

I've added a composer dependency on our server platform PHP version - to fix it to:

},
"platform": {
"php": "8.1.2"
}

Which then removes the Stripe update - along with the Stripe-PHP update. Would rather stay on the updated branch - but that would mean me updating my entire Server version to Ubuntu '24.04.1 LTS' - which means Wordpress that is on the same server having "beta" support: https://make.wordpress.org/core/handbook/references/php-compatibility-an...

Other workaround would be to use the approach seen here (would rather stay with LTS repos on Ubuntu):

https://www.drupal.org/forum/support/post-installation/2023-01-04/ubuntu... β†’

πŸ’¬ Support request
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom newaytech

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024