Plugin Contributor
lusp
(@lusp)
Hi @nossileee,
Thank you for the kind words; we do our best to make our plugin useful.
We’ve been trying to reproduce the issue you’ve described in our test environment, unfortunately with no success.
Are there any specific circumstances which need to be met to make it occur? Could you please provide us with some more detailed information about your shop’s environment? I believe that a system status and error logs should shed some light on the situation.
Kind regards,
Luke
Hello!
Do you have access to the table rate plugin to test?
With it active, I have the problem…
The only strange thing is that this is not recorded in the error logs, the critical error only appeared within an order, when it was made with a shipping method, configured through the table rate, and I also lost the external connection with the website , with my ERP.
When you deactivate your plugin, everything works normally again.
Obs: I currently have your plugin removed.
I will send you the system status:
Note 2: I found something.
Please note that the “Prazo PAC” is a shipping method.
[ SNIP! ]
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@nossileee
Please do not post large code or responses like that here, it doesn’t work after ~10 lines or so. It breaks the formatting and makes an unreadable mess.
If you need share that data please use https://gist.github.com/ or https://pastebin.com/ or the like instead and post the link to that paste.
2023-10-30T20:47:05+00:00 CRITICAL Uncaught TypeError: Argument 2 passed to IC\Plugin\CartLinkWooCommerce\Order\DisplayOrderCampaign::modify_meta_value() must be an instance of WC_Meta_Data, array given, called in /home/bhlfitne/public_html/wp-includes/class-wp-hook.php on line 312 and defined in /home/bhlfitne/public_html/wp-content/plugins/cart-link-for-woocommerce/src/Order/DisplayOrderCampaign.php:37
Stack trace: #0 /home/bhlfitne/public_html/wp-includes/class-wp-hook.php(312): IC\Plugin\CartLinkWooCommerce\Order\DisplayOrderCampaign->modify_meta_value(‘Prazo PAC’, Array)
Ready my dear, just 9 lines.
Hi @nossileee,
thank you for your message. Your log was very helpful. We released 1.5.0 of plugin with fix.
Probably table rate plugin broke in but in our plugin we are ready for this type of issues.
I just updated and tested it, and it really worked.
I didn’t have the error.
I think it was 100%.
Thank you very much for the quick support and solution.
You are amazing. 🤩
Plugin Contributor
lusp
(@lusp)
Thank you @nossileee for the confirmation and bringing this to our attention. We’re glad we were able to help : )
Kind regards,
Luke