ArgumentCountError: Too few arguments to function ImageStyleDownloadController::deliver()

Created on 13 September 2024, 7 months ago
Updated 18 September 2024, 7 months ago

Problem/Motivation

On Drupal 10.3.x, PHP 8.3.x, an error is produced in image generation:

ArgumentCountError: Too few arguments to function Drupal\image\Controller\ImageStyleDownloadController::deliver(), 3 passed in web/modules/contrib/auto_retina/src/Controller/RetinaImageStyleDownloadController.php on line 73 and exactly 4 expected in Drupal\image\Controller\ImageStyleDownloadController->deliver() (line 111 of web/core/modules/image/src/Controller/ImageStyleDownloadController.php).

Steps to reproduce

Generate an auto-retina derivative image, then check the log.

Proposed resolution

Pass the correct number of arguments to Drupal\image\Controller\ImageStyleDownloadController->deliver().

Remaining tasks

Patch & review.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇺🇸United States chrisolof

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024