• Resolved Pexle Chris

    (@pexlechris)


    Hello,

    in some cases a Fatal Error is produced because you don’t initilize properly your settings page!

    In method WC_Recaptcha_For_WooCommerce_Backend::admin_settings_page the $settings is array!

    So you need to change the method to this:

    /**
    * Admin Settings Page
    */
    public function admin_settings_page( $settings ) {
    $settings[] = include dirname( __FILE__ ) . '/admin/class-wc-recaptcha-for-woocommerce-settings.php';

    return $settings;
    }

Viewing 1 replies (of 1 total)
  • Plugin Author Tanvirul Haque

    (@tanvirul)

    Hi @pexlechris

    Thank you for reporting this issue. You are completely right, overwriting the $settings array rather than appending to it was causing the fatal error and overriding other settings pages. We will include this fix ($settings[] = ...) in our next update.

    Thanks again for your help in improving the plugin!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.