hash_equals(): Expected $known_string to be a string, null given in Drupal\webp\Controller\ImageStyleDownloadController::deliver()

Created on 1 March 2022, over 2 years ago
Updated 15 August 2023, over 1 year ago

Problem/Motivatio

Generating images gives error
"hash_equals(): Expected known_string to be a string, null given i Drupal\webp\Controller\ImageStyleDownloadController->deliver()", this hits when image-style returns a non-webp and the sanity check then fixes it.

Steps to reproduce

Upload new image to some type of content
Regenerate image styles and empty caches
Reload content

Proposed resolution

The solution I found so far has been to check that the "IMAGE_DERIVATIVE_TOKEN" is not NULL. However not sure this is fully optimal..

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ธ๐Ÿ‡ชSweden VAnnergard

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024