@howdy_mcgee When you enter the keys, the notice disappear.
I use PHP 7.2 on my server and there are more Notice on activation:
Notice: Undefined index: site_key in /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php on line 14
Notice: Undefined index: secret_key in /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php on line 15
Warning: session_start(): Cannot start session when headers already sent in /wp-content/plugins/advanced-forms-pro/api/api-submissions.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php:14) in /wp-admin/includes/misc.php on line 1126
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php:14) in /wp-includes/option.php on line 919
Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php:14) in /wp-includes/option.php on line 920
When the keys saved, then the notices are gone. But new notice appears.
On acf field settings for activation:
Notice: Undefined index: recaptcha in /wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php on line 307
There is a new relase out. I think @irvinlim has fixed the issues. In the update log you can see the changes.
Big thanx @irvinlim !
It’s no longer broken but the notices still appear whenever keys aren’t set.
Notice: Undefined index: site_key in \wp-content\plugins\advanced-custom-fields-recaptcha-field\includes\settings-page.php on line 111
Notice: Undefined index: secret_key in \wp-content\plugins\advanced-custom-fields-recaptcha-field\includes\settings-page.php on line 120
It just needs a check with isset().
<input type="text" class="regular-text code" name="acf_recaptcha[site_key]" value="<?php echo isset( $options['site_key'] ) ? $options['site_key'] : ''; ?>">
It looks pretty gnarly on WAMP php errors since it does a backtrace with a table.