Hi @angelsmoto,
I’m checking this problem now.
In the meanwhile, you can revert the plugin to the version that was working without errors to avoid users being confused with the messages.
Best,
Diego
Hi @angelsmoto,
I was not able to reproduce the problem on my side. I used the plugins Brazilian Market and Correios to try to reproduce it as this seems to be related to shipping methods.
I checked the code at the line mentioned in the error message, normally, this should not happen because the code is using the expected values and types of data that WooCommerce expects for the chosen shipping methods. Changes to the code to avoid this message does not seem to be needed.
It seems that your website has some customization to the chosen shipping method, either introduced by another plugin or custom code.
PHP Warnings and Error messages are not meant to be shown on Live/Production environments but only for development and debug purposes. On Live/Production environments these messages are usually saved to the PHP error.log file on your hosting environment.
You might want to hide these messages from the frontend of your website so users do not see them.
Unfortunately, I’m not able to provide further investigation as part of the plugin support as I would need to access your website server environment to check what is happening and that is not covered by the plugin support.
I’m closing this topic for now. If you need further assistance, please reply to this topic.
Best,
Diego
understood! Do you have any tips on how I can hide this message?
Hi @angelsmoto,
You’ll need to contact your hosting company for help to configure the server to not display PHP warnings or errors on the frontend.
Please note that PHP warnings and error should still be logged to the error.log file.
Best,
Diego