Drupal 10 compatibility fixes/ update dependencies for PHP 8.x support

Created on 10 May 2023, over 1 year ago
Updated 29 August 2024, about 2 months ago

Problem/Motivation

Installing this on a site running PHP 8.1 fails due to this requirement: "php": ">=7.1.0"

Steps to reproduce

  1. Set up a site using PHP 8.1
  2. Run composer install drupal/web_page_archive
  3. Install fails with the errors listed below

Problem 1
    - spatie/browsershot[3.26.0, ..., 3.26.3] require php ^7.1 -> your php version (8.1.18) does not satisfy that requirement.
    - drupal/web_page_archive[1.0.0, 2.0.0, ..., 2.12.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but these were not loaded, likely because it conflicts with another require.
    - drupal/accessibility_scanner 2.0.0-beta1 requires drupal/web_page_archive * -> satisfiable by drupal/web_page_archive[1.0.0, 2.0.0, ..., 2.15.0, 4.0.0, ..., 4.1.1].
    - drupal/web_page_archive[2.13.0, ..., 2.15.0, 4.0.0, ..., 4.1.1] require spatie/browsershot ~3.26.0 -> satisfiable by spatie/browsershot[3.26.0, 3.26.1, 3.26.2, 3.26.3].
    - Root composer.json requires drupal/accessibility_scanner ^2.0@beta -> satisfiable by drupal/accessibility_scanner[2.0.0-beta1].

Proposed resolution

  • Update composer dependencies to allow use on PHP 8
  • Update any other composer dependencies as needed
📌 Task
Status

Fixed

Version

4.0

Component

Web Page Archive Base Module

Created by

🇬🇧United Kingdom psebborn

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024