Problem/Motivation

It would be great if you could implement testing

https://developers.cloudflare.com/turnstile/troubleshooting/testing/

Currently I have hacked the .module file

if ($_SERVER['SERVER_ADDR'] == "127.0.0.1"){
$turnstile_site_key = '1x00000000000000000000AA';
$turnstile_secret_key = '1x0000000000000000000000000000000AA';
}

Let me know what you think.

Comments

JamesRobertson created an issue. See original summary.

greatmatter’s picture

I'd feel a lot more comfortable adding a settings option with separate testing keys; would that work for you?

mortona2k’s picture

@greatmatter I think there should be an option in the settings to set the mode, and it uses the keys from the link.

This is a necessary feature I think, otherwise developing locally can be a pain.

Here's what I used for local dev:

$config['turnstile.settings']['site_key'] = '1x00000000000000000000AA';
$config['turnstile.settings']['secret_key'] = '1x0000000000000000000000000000000AA';
greatmatter’s picture

Status: Active » Fixed
djkozz’s picture

I do not know if it is related or not.

But after updating core to 10.4.4 and turnstile to 1.1.14, I can not longer access my web site. :(

Via Terminal with Composer I downgraded to 11.1.13 but as you can imagine, the web site goes broken. Also I deleted the module, but the result is the same, the web site goes broken. So for now I returned to 11.1.14. But can not longer access it. :'(

Can you please share me some advice on how to solved this issue? Thank you in advance for your attention.

Or the issue is related to this? https://www.drupal.org/sa-contrib-2025-023

greatmatter’s picture

Unfortunately, I'm not sure what's causing your issues. We have several sites that are running this module without any issues.

djkozz’s picture

I understand that is not a general issue. In the mean time, I will restore a backup, do not update Turnstille, and waiting for more feedback from other users.

greatmatter’s picture

Status: Fixed » Closed (fixed)