marinsagovac / woocommerce-tcom-payway

[WORDPRESS] Woocommerce plugin for payment service using PayWay HT payment gateway service
MIT License
26 stars 15 forks source link

PHP Deprecated an PHP Warning #31

Open Marin-Matosevic opened 1 week ago

Marin-Matosevic commented 1 week ago

Hi,

I'm running the latest version of your plugin (1.8.1) on a client website, alongside the latest versions of WordPress and WooCommerce, and the site is running on PHP 8.2.

I’m seeing a lot of log messages in the debug.log file—every page reload generates about a dozen entries, causing the log file to grow significantly over the course of the day. Is there anything I can adjust on my end to minimize these messages (apart from turning off the log file)? :)

Thanks!

PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$domain is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 16
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$curlExtension is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 21
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$ratehrkfixed is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 23
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$tecajnaHnbApi is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 24
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$api_version is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 26
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$shop_id is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 34
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$acq_id is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 35
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$pg_domain is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 36
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$checkout_msg is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 37
PHP Deprecated:  Creation of dynamic property WC_TPAYWAY::$msg is deprecated in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 40

PHP Warning:  Undefined array key "Amount" in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 496
PHP Warning:  Undefined array key "ShoppingCartID" in /plugins/woocommerce-tcom-payway-master/classes/class-wc-tpayway.php on line 502
9jaDevo commented 6 days ago

Can I take up the task? #31 I can fix that. @Marin-Matosevic

jovialcore commented 1 day ago

@Marin-Matosevic I made a pull request for it... It should be reviewed. If reviewed and approved, it should solve this issue.