composer.json requires php ^7.0 but your php version (8.0.7) does not satisfy that requirement.

Bug #1934212 reported by LisAndi - Andi Becker - http://lisandi.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Triaged
Undecided
Unassigned

Bug Description

root@c3:/_GIT/mahara# make cleanssphp && make ssphp
Cleaning out SimpleSAMLphp...
rm -rf htdocs/auth/saml/extlib/simplesamlphp
Composer already installed...
Updating external dependencies with Composer...
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
43 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Pulling SimpleSAMLphp from download ...
Using version ^1.1 for predis/predis
./composer.json has been updated
Running composer update predis/predis
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php >=7.1 <8.0 but your php version (8.0.7) does not satisfy that requirement.
  Problem 2
    - phpunit/phpunit is locked to version 7.5.20 and an update of this package was not requested.
    - phpunit/phpunit 7.5.20 requires php ^7.1 -> your php version (8.0.7) does not satisfy that requirement.
  Problem 3
    - phpunit/phpunit 7.5.20 requires php ^7.1 -> your php version (8.0.7) does not satisfy that requirement.
    - simplesamlphp/simplesamlphp-test-framework v0.1.2 requires phpunit/phpunit ^6.5|^7.0|^8.0 -> satisfiable by phpunit/phpunit[7.5.20].
    - simplesamlphp/simplesamlphp-test-framework is locked to version v0.1.2 and an update of this package was not requested.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
make: *** [Makefile:114: ssphp] Error 2

is the Error message we receive on an UBUNTU 20.04 system by trying to run
make cleanssphp && make ssphp

from Git

- - -

changing
htdocs/external/composer.json to reflect
{
    "require": {
        "php": "^7.0||^8.0",

and in htdocs/auth/saml/extlib/simplesamlphp/composer.json

from
"require": {
        "php": ">=7.1 <8.0",

to
{
    "require": {
        "php": "^7.0||^8.0",

But still not working and displaying same error

Tags: php8
description: updated
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hi Andi,

Mahara does not yet support PHP 8. We will keep this bug open though for when we can get to reviewing changes for PHP 8.

Thank you
Kristina

Changed in mahara:
status: New → Triaged
tags: added: php8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.