Image not shown, PHP error

Created on 31 March 2023, over 1 year ago
Updated 17 July 2023, 12 months ago

Problem/Motivation

Using Drupal 10.0.7 with PHP 8.1, I can see no image captcha. Instead, I see the following error in the nginx log:
[error] 143292#143292: *92439 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of Drupal\image_captcha\StreamedResponse\CaptchaFontPreviewStreamedResponse::sendContent() must be compatible with Symfony\Component\HttpFoundation\StreamedResponse::sendContent(): static in /var/www/mysite/web/modules/contrib/captcha/image_captcha/src/StreamedResponse/CaptchaFontPreviewStreamedResponse.php on line 40" while reading response header from upstream

Steps to reproduce

I just enabled the Image Captcha Module and tried to see the example at /admin/config/people/captcha/image_captcha

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Image Captcha (image_captcha)

Created by

πŸ‡©πŸ‡ͺGermany beedaddy

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.69.0 2024