Problem/Motivation
After updating Drupal 10.2.7 to 10.3.0 get a PHP Fatal error:
PHP Fatal error: Declaration of Drupal\wpf\Controller\ImageStyleDownloadController::deliver(Symfony\Component\HttpFoundation\Request $request, $scheme, Drupal\image\ImageStyleInterface $image_style) must be compatible with Drupal\image\Controller\ImageStyleDownloadController::deliver(Symfony\Component\HttpFoundation\Request $request, $scheme, Drupal\image\ImageStyleInterface $image_style, string $required_derivative_scheme) in /var/www/html/www/modules/contrib/wpf/src/Controller/ImageStyleDownloadController.php on line 86
Steps to reproduce
After update just run: drush updb or drush cr
Proposed resolution
Make a small patch (0002-wpf.patch)
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 0004-wpf.patch | 2.21 KB | davedg629 |
| #3 | 0002-wpf.patch | 1.14 KB | sutry |
Issue fork wpf-3456349
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 1.0.x
changes, plain diff MR !3
Comments
Comment #2
sutry commentedComment #3
sutry commentedComment #4
sutry commentedThe issue is described here: https://www.drupal.org/node/3346038
and there: https://www.drupal.org/project/drupal/releases/10.3.0#update-info
Comment #6
realityloop commentedAn additional change was required https://git.drupalcode.org/issue/wpf-3456349/-/commit/1b9246944a7436fafb...
Comment #8
davedg629 commentedFor the patch in #6, is there any reason the parent::deliver() code on line 90 was updated to include $required_derivative_scheme but the same parent::deliver() code on line 102 was not updated?
I assume it needs to be updated in both places. I've attached a patch that includes both updates and it's working for me.
Comment #9
ikeigenwijs commented#8 works for us
Comment #10
dj1999 commentedComment #11
dj1999 commentedCommited here.