Drupal 10.6.9
PHP 8.4.21

Captcha 2.0.10
reCaptcha 8.x-3.4

The reCaptcha displays and behaves as expected. However, when one Submits the form it results in a This page cannot be displayed HTTP Server 500 error. If I switch the Captcha to use image captcha, the form submits successfully.

Any thoughts will be appreciated.

CommentFileSizeAuthor
#4 recaptcha_php8_return_type.patch449 byteszengenuity

Issue fork recaptcha-3603531

Command icon 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:

Comments

bill_redman created an issue. See original summary.

zengenuity made their first commit to this issue’s fork.

zengenuity changed the visibility of the branch 3603531-upon-submit-this to hidden.

zengenuity’s picture

StatusFileSize
new449 bytes

Looks like this has been fixed in the dev branch, but here's a patch until a new release is made.

ericbellot’s picture

I had the same problem with Recaptcha v3.4.0 and Drupal Core v11.3.16. The patch #4 solve the problem.

joegraduate’s picture

Status: Active » Needs review
joegraduate’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3588269: PHP 8.4 bug fix

This sounds like a duplicate of #3588269: PHP 8.4 bug fix.

Like @zengenuity said this is already fixed in 8.x-3.x-dev and also available in the 8.x-3.5-rc1 release.

The commit that was made in the 8.x-3.x-dev can also be used as a patch:
https://git.drupalcode.org/project/recaptcha/-/commit/68b0f86d1e930ed78f...

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.