Hi divijc,
Those are warnings and not errors.
Please set your wp_debug to false to stop getting those ( unless you have a misconfigured server ).
Nevertheless, I will check and fix this on the next version.
Best Regards
Hi again,
Is our plugin functioning properly ( except of the warnings )?
It seems to be a conflict with one of your plugins or your theme.
Try disabling those one by one, and reset your theme to default, so you can trace the conflict.
You can also try to replace your class-wc-smart-cod-public.php with the one in this file:
https://wetransfer.com/downloads/37fdbb885bed8c1d935a1df2ac2a0fec20180214170512/ba6845f098a16d048a1fcb33c5affe8920180214170512/3f33ba
It will eliminate the warning, but I think your issue is a conflict.
Best Regards
Thread Starter
divijc
(@divijc)
Hi, thanks for the prompt reply. It seems to be working fine now, I disabled a recently installed payment gateway.
Will report if I encounter the issue again.
Thread Starter
divijc
(@divijc)
Hi, getting the warning again. I disabled all payment gateways apart from , switched to default 2017 theme – https://imgur.com/a/Y3cGz
Getting it on URLS of this format – (website url)/checkout/order-pay/939/?pay_for_order=true&key=wc_order_5a844441d95fd
Also, smart cod doesn’t work on this page. For example- on checkout page, if cod is disabled due to a condition, it gets enabled on this page and the warning shows up.
Hi again,
The smart cod calculation are not supposed to run outside of the default woocommerce checkout page. What is this order-pay page?
Also, what woocommerce version are you using?
Thread Starter
divijc
(@divijc)
Hi, order pay page is a part of woocommerce plugin as seen here, this is where the customer is redirected to when the payment fails and customer clicks on pay again – https://docs.woocommerce.com/document/woocommerce-endpoints-2-1/#section-5
I am on the latest version of woocommerce – 3.3.1
Hi divijc,
Please replace your wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php
with the one in this wetransfer: https://wetransfer.com/downloads/c0889a9371157b99c2ef55626d82234d20180215211725/96463c20d4ca13ccbce27db18f161e6a20180215211725/6212ed
Let me know if the issue is solved, so I can integrate it in the next plugin version.
Best Regards
Thread Starter
divijc
(@divijc)
Hi, This seems to solve the issue. However, I will text is extensively and update you if the issue arises again.
Thanks!
Thread Starter
divijc
(@divijc)
Hi, will you be including this in the update anytime soon?
Hi,
It will be part of our next update soon.
Best Regards
This is now part of the latest version 🙂
Best Regards