Cannot reload the captcha img

Created on 2 January 2024, 12 months ago
Updated 9 August 2024, 4 months ago

Problem/Motivation

hi, my drupal site cannot show the captcha img, prompt the message:
Error: Call to undefined function Drupal\image_captcha\Service\putenv() in Drupal\image_captcha\Service\ImageCaptchaRenderService->printString()

when use the math, the equation shows correct.

I don't know why? Is the captcha web service supported by google.com?

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Image Captcha (image_captcha)

Created by

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.

  • 🇮🇳India aman1248

    Hy @Yan2020 ,Firstly in the captcha settings, choose the image captcha as the default challenge type.
    Then, enable "Add CAPTCHA challenges on all forms" and "Additionally, Enable add CAPTCHA challenges on admin forms."As Mentioned In the ScreenShot Below. Save these settings. Next, navigate to the captcha points section and click on "Add CAPTCHA."
    Enter the machine name of the contact form you've created and select the image challenge type.
    Save these settings. Now, when you open the form in private or a new window, the image captcha will be successfully applied.
    I Have Uploaded All The screenshots For Better Functioning And Understansing.

  • Status changed to Needs review 8 months ago
  • 🇮🇳India aman1248

    Hy @wundo
    please review.
    thanks

  • 🇮🇳India vinai_katiyar Delhi NCR

    Hi @yan2020,
    I also tried to reproduce the issue but didn’t face any issue. It worked for me as expected.
    Attached screenshots for reference.

  • Status changed to Postponed: needs info 4 months ago
  • 🇩🇪Germany Anybody Porta Westfalica
Production build 0.71.5 2024