• These are just some of the lines added to the PHP error log.

    PHP Deprecated: Creation of dynamic property WC_Gateway_Affirm::$public_key is deprecated in /bla-bla-bla/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php on line 100

    PHP Deprecated: Creation of dynamic property WC_Gateway_Affirm::$private_key is deprecated in /bla-bla-bla/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php on line 101

    PHP Deprecated: Creation of dynamic property WC_Gateway_Affirm::$public_key_ca is deprecated in /bla-bla-bla/plugins/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php on line 102

    The log file is growing very fast, so please fix it as soon as possible.

    PHP 8.2.18

Viewing 2 replies - 1 through 2 (of 2 total)
  • Doesn’t look like there is a fix for this yet since we are receiving these notices also. We are using PHP 8.2, I was able to get the messages to go away by declaring all the variables above the __construct in the file “/woocommerce-gateway-affirm/includes/class-wc-gateway-affirm.php“. Like this:

    public $public_key;
    public $private_key;
    public $public_key_ca;
    public $private_key_ca;
    public $region;
    public $debug;
    public $testmode;
    public $auth_only_mode;
    public $checkout_mode;
    public $cancel_url;
    public $custom_cancel_url;
    public $promo_id;
    public $affirm_color;
    public $show_learnmore;
    public $enhanced_analytics;
    public $show_fee;
    public $category_ala;
    public $product_ala;
    public $product_ala_options;
    public $cart_ala;
    public $min;
    public $max;
    public $inline;
    public $partial_capture;
    public $use_site_language;
    
    public function __construct() {
    Thread Starter MisterR

    (@mister_r)

    Yes simplevendor,

    The solution is quite simple. But when you start a topic here, they say to repeat it at woo.com. And then they turn on the bureaucracy (by asking about your site system report, license etc.)

    Unfortunately, the bigger a company becomes, the more stupid rules they create ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.