• Resolved angelsmoto

    (@angelsmoto)


    Today, the option for the customer to be able to select the delivery method of his order already works perfectly. But when he selects the post office, it works, but a link with an error appears. It works perfectly, but for the client this error appears and I end up thinking it’s bad for him to suspect something and think that something went wrong, but it doesn’t. It’s just an error message, the order is completed correctly.

    Follow the image
    https://uploaddeimagens.com.br/imagens/6zfGfw4

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Diego Versiani

    (@diegoversiani)

    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

    Plugin Author Diego Versiani

    (@diegoversiani)

    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

    Thread Starter angelsmoto

    (@angelsmoto)

    understood! Do you have any tips on how I can hide this message?

    Plugin Author Diego Versiani

    (@diegoversiani)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when selecting delivery method’ is closed to new replies.