• Resolved sommerpalme

    (@sommerpalme)


    Deprecated: Creation of dynamic property EW_Gateway_Wise::$instructions is deprecated in /mnt/web303/e0/39/54622439/htdocs/…/wp-content/plugins/wc-wise-gateway/includes/class-ew-gateway-wise.php on line 62 Deprecated: Creation of dynamic property EW_Gateway_Wise::$account_holder is deprecated in /mnt/web303/e0/39/54622439

    • This topic was modified 1 month, 2 weeks ago by sommerpalme.
Viewing 1 replies (of 1 total)
  • Thread Starter sommerpalme

    (@sommerpalme)

    I have fixed the problem myself, under PHP 8.2, all properties of a class must be pre-defined before they are used in the code. This means that these variables must be explicitly declared in the class EW_Gateway_Wise. Under your path should be found here: wp-content/plugins/wc-wise-gateway/includes/class-ew-gateway-wise.php Here is the code from line 26 for fixing:

    Code Block:

    class EW_Gateway_Wise extends WC_Payment_Gateway {

    /**
    * Payment gateway instructions.
    * @var string
    */
    public $instructions;

    /**
    * Account holder name.
    * @var string
    */
    public $account_holder;

    /**
    * Account details array.
    * @var array
    */
    public $account_details;

    Thank you so much ! ??

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