Git Product home page Git Product logo

acf-recaptcha's People

Contributors

irvinlim avatar jmarceli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

acf-recaptcha's Issues

error 500

sorry my english is bad.

hi, i have a problem, when i active the plugin and send the form this generate error 500, without using it, when i use it, i try using with the flag,

this is the code

`

		<?php acf_form(array(
			'post_id'		=> 'new_post',
			'post_title' => true,
			'new_post'		=> array(
				'post_type'		=> 'jugadores_habiles',
				'post_status'		=> 'pending',
			),
			'fields' => array(
				'apellido-jugador',
                                      'capt-seguridad',
			),
			'updated_message' => __("Se ha guardado tu mensaje, en poco tiempo validaremos tus datos", 'acf'),
			'submit_value'		=> 'Enviar',
                              'recaptcha' => true
		)); ?>

	<?php endwhile; ?>` 

Validation problems

Hi there, I'm using acf-recaptcha and having problems with validation. It seems mainly a Safari Problem and the value in the function validate_value($valid, $value, $field, $input) { ...} is always empty, therefore the error 'Please click the checkbox.' is shown even if the captcha is checked. I'm using your Plugin together with AdvancedForms Plugin for ACF - don't know if this could be part of the issue. Do you have any idea to solve the problem? Using Mac High Sierra / Safari Version 11.0.2 (13604.4.7.1.3) On Chrome it seams to work...

Error on submit

Hi there, I would love to use this, but I'm getting the following error on form sunbmission:

jquery.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in 0

My form works just fine until I activate the plugin. Does the site have to be on the domain I have created the recaptcha keys for? I'm developing locally on my machine.

EDIT: I'm using jQuery v1.11.3

Add defaults (E_NOTICE)

To suppress php errors, one can turn off debugging, but when developing themes, you most likely will have this on. Workaround:

add_filter( 'default_option_acf_recaptcha', function ( $default ) {
    return (array) $default + [ 'site_key' => '', 'secret_key' => '' ];
});

ReCaptcha false positives

Hi, I'm getting a lot of false positives, Even if my ReCaptcha widget shows successful verification the form is unable to pass server side checks. Here is similar issue described: https://groups.google.com/forum/#!topic/recaptcha/dgBo2HXQsN8

I was wondering if it is a good idea to check for validation errors instead of checking isSuccess() in validate_value method. Quick fix code might look like this:

function validate_value( $valid, $value, $field, $input ){
  if (!strlen($value)) return false;

  $api = new \ReCaptcha\ReCaptcha($field['secret_key']);
  $response = $api->verify($value, $_SERVER['REMOTE_ADDR']);
  if ( $response->isSuccess() ) return $valid;

  $errors = $response->getErrorCodes();
  if ( empty( $errors ) ) return $valid;
  return 'Invalid reCaptcha value ' . $value . ' response isSuccess(): ' . ($response->isSuccess() ? 'true' : 'false' ) . ' errors: ' . json_encode($errors);
}

I'm using ACF 5.4.2 PRO.

ERROR for site owner: Invalid site key

I keep having the ERROR for site owner: Invalid site key message.

  1. I added the site key to the recaptcha setting page
  2. Turn on recaptcha protection on the field group, when saved it turns off again.
    I use it on a frontend form which is loaded like this:
    $args = array( 'post_id' => 'new_post', 'new_post' => array( 'post_type' => 'contact', 'post_status' => 'publish' ), 'return' => '?contact-form-did-send=true', 'submit_value' => __('Send to DoToo team', 'dotoo') ); acf_form($args);
    Also see this post, he has the same issue.
    https://wordpress.org/support/topic/recaptcha-v3-17/#post-11381855

I use a V2 checkbox and have these domains entered:
https://hbosafe.nl
http://hbosafe.test
https://www.hbosafe.nl

Would love to get a reply to know if this is an issue with the plugin or me.

Unable to activate the ACF reCaptcha Protection

I'm trying to use your plugin with ACF 5, but I encountered a problem.

I'm trying to enable the ACF reCAPTCHA Protection for the field group but it doesn't work. After enabling, I save the field group but after that, every time, the ACF reCaptcha Protection is disabled.

I had a look in the PHP log but there's no PHP error. The save of the field group seems to work fine, there's no error and the other params save well.

Capture d’écran 2019-07-31 à 17 50 19

Invisible reCaptcha

Hi

Is it possible to use the Invisible reCaptcha ?
I see only normal or compact for the re_size value, but not invisible.

Thanks !

Advanced Forms / ACF 5.7 compatibility

Hello!
When using this plugin with advanced-forms-pro and ACF 5.7, the validation is somewhat broken... instead of displaying the validation error on top of the reCAPTCHA field, the error appears as a "fullscreen" WordPress error:
image

Also enabling reCAPTCHA at the field group level doesn't show the field on the form.

Sorry, you are not allowed to access this page

I know this may be just only me but after activate the plugin, when I try to go to the settings page of it, I got this message. Does anyone have the same issue and know how to fix it?

screenshot_120117_120600_pm

Thanks,
Minh

Issues with Multiple Recaptchas

I have a page template with acf_form() on it twice. Once is 'form'=> false BECAUSE it is inside another form. How can I get that to work?

Change locale

Hi, thanks for the plugin.

How we can change locale? Maybe is some add_filter for this?

Collision with option pages

I have found an issue with this plugin (v1.0.7)

When the plugin is enabled, I can't save/update option pages.
The empty javascript alert pops up.
With the disabled plugin the options page saves properly.

Using ACF Version 5.5.12 and WP 4.7.4

Cannot Submit Form

Hi,

I have set up the reCAPTCHA field on my contact form which seems to be fine, but when I submit the form I keep getting the error "Please click the checkbox." even though it has been selected. Can you advise me of how to fix this?

Regards

Paul

Conditionally usage

Hi there,

Firstly thank you for your awesome contribution!

I was wondering how I could go about conditionally removing and disabling recaptcha validation on a form. I am using the PHP interface to display a logged in form to a user.

Kind regards,
Fred

How to use Captcha with ACF rule Registration Form and do_action('register_form')

I added the Captcha field to the group of fields used for my enhanced registration form.
The registration form is displayed in my template by using: do_action('register_form')

In the ACF field groups the rule is set to use on Registration Form.

Now if I submit the registration form there are two errors:

  1. I get a new screen just telling me (half untranslated) that the validation failed, but no back button and a quite ugly page.
  2. The user is still created in WordPress

I read about using arguments with acf_form, but I'm not calling acf_form, just do_action('register_form').

How do I handle this?

Thanks!

Validation Problem

Every so often i seem to get this error

Validation failed
value is required

Recaptcha not working

Im having problems with your recaptcha. Im using it like this:

acf_form(array(
'post_id' => 'new_post',
'post_title' => true,
'new_post' => array(
'post_type' => $post_type,
'post_status' => 'draft'
),
'field_groups' => array($post_id, $recaptcha_id)
));

The circle loader keeps going on forever but the page doesn't do anything.
recaptcha

php version 5.x compatibility issue with version 1.3.0

Hi,
We are using your plugin on a site which still uses php 5.x and have an issue with the php code in the latest version.

PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/settings-page.php on line 158

<strong><?php echo __('Plugin Version'); ?></ echo get_plugin_data(ACF_RECAPTCHA_ABSPATH['Version'];

Fix something like this (set to a variable first):

<strong><?php echo __('Plugin Version'); ?></strong>: <?php
$RECAPTCHA_ABSPATH = get_plugin_data(ACF_RECAPTCHA_ABSPATH);
echo $RECAPTCHA_ABSPATH['Version'];
?>

Another issue which isn't related to the php version.
I cannot access the settings page which is linked on the plugins page.
it shows "Sorry, you are not allowed to access this page." even if i am adminstrator.

Url:
/wp-admin/options-general.php?page=acf-recaptcha

The acf field settings page is working as expected.
Url:
/wp-admin/edit.php?post_type=acf-field-group&page=acf-recaptcha

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.