Unable to install on php8.3 due to ezyang/htmlpurifier version

Created on 27 November 2023, about 1 year ago
Updated 8 December 2023, about 1 year ago

Problem/Motivation

Unable to install webform on an environment running php8.3.0 due to htmlpurifier v4.16.0 only supporting up to php8.2.0

Problem 1
    - ezyang/htmlpurifier v4.16.0 requires php ~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 -> your php version (8.3.0) does not satisfy that requirement.
    - drupal/svg_image_field 2.3.1 requires enshrined/svg-sanitize ~0.15 -> satisfiable by enshrined/svg-sanitize[0.16.0].
    - enshrined/svg-sanitize 0.16.0 requires ezyang/htmlpurifier ^4.16 -> satisfiable by ezyang/htmlpurifier[v4.16.0].
    - drupal/svg_image_field is locked to version 2.3.1 and an update of this package was not requested.

Steps to reproduce

1. Have an environment running php8.3.0
2. Run `composer require 'drupal/webform:^6.2'`
3. Error will occur.

Proposed resolution

Is it possible to bump htmlpurifier to its latest release v4.17.0 (https://github.com/ezyang/htmlpurifier/pull/382) as it adds support fo php8.3?

πŸ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡ΈπŸ‡¬Singapore huijing

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

Comments & Activities

  • Issue created by @huijing
  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The webform module doesn't use ezyang/htmlpurifier

    The error hints the drupal/svg_image_field is requiring ezyang/htmlpurifier.

    Does removing the drupal/svg_image_field dependency fix the issue?

  • πŸ‡ΈπŸ‡¬Singapore huijing

    Oh, I didn't realise that. My project does need svg_image_field though, so far I've worked around it by downgrading back to php8.2, I just thought it was weird that installing webform would trigger the error.

  • Status changed to Closed: works as designed about 1 year ago
Production build 0.71.5 2024