paytm / Paytm_Woocommerce_Plugin

https://developer.paytm.com/docs/eCommerce-plugin/woocommerce/
3 stars 5 forks source link

Multiple PHP Notices #6

Closed KoolPal closed 3 years ago

KoolPal commented 3 years ago

Hi,

WooCommerce version: 4.7.1 WordPress version: 5.5.3 Paytm WooCommerce Payment Gateway by Paytm – 2.0

In my local debug.log I got 3 warnings when doing a test transaction using test IDs

[02-Dec-2020 17:12:26 UTC] PHP Notice: status was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action('woocommerce_api_wc_paytm'), WP_Hook->do_action, WP_Hook->apply_filters, WC_paytm->check_paytm_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in [path]\wp-includes\functions.php on line 5229

[02-Dec-2020 17:12:28 UTC] PHP Deprecated: WC_Order::reduce_order_stock is deprecated since version 3.0! Use wc_reduce_stock_levels instead. in [path]\wp-includes\functions.php on line 4777

[02-Dec-2020 17:12:28 UTC] PHP Notice: Undefined variable: msg in [path]\wp-content\plugins\paytm-payments\class.paytm.php on line 466

Please check and fix.

Thanks

KoolPal commented 3 years ago

Got one more Notice:

[04-Dec-2020 15:09:00 UTC] PHP Notice: Undefined index: post in [path]\wp-content\plugins\paytm-payments\woo-paytm.php on line 160

Hope someone is looking into these!

abpaytm commented 3 years ago

Got one more Notice:

[04-Dec-2020 15:09:00 UTC] PHP Notice: Undefined index: post in [path]\wp-content\plugins\paytm-payments\woo-paytm.php on line 160

Hope someone is looking into these!

Hi This has been solved . please install our latest plugin . If still face any issue please drop a mail on cmt.ops@paytm.com