• Whenever I install the plugin I receive the following errors:

    PHP Notice:  Undefined index: site_key in \wp-content\plugins\advanced-custom-fields-recaptcha-field\acf-recaptcha-v5.php on line 14
    
    PHP Notice:  Undefined index: secret_key in \wp-content\plugins\advanced-custom-fields-recaptcha-field\acf-recaptcha-v5.php on line 15
    
    PHP 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 1124

    It pushed down or removed my admin side navigation entirely on every page. I had to manually go in and remove the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same issue +1

    • This reply was modified 6 years, 6 months ago by floris246.

    @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 !

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Broken on install’ is closed to new replies.