• Resolved lexxlevi

    (@lexxlevi)


    Hi
    the plugin now generates an error message
    Warning: Undefined variable $key in …/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php on line 705

    Warning: Undefined variable $key in …/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php on line 722

    Warning: Undefined variable $key in …/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php on line 705

    Warning: Undefined variable $key in …/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php on line 722

    It doesn’t affect the website, but it would be nice if the error wasn’t visible anymore
    Many thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Lexxlevi,

    Thanks for reaching out to us.

    Okay, we have reviewed that warning is related to the undefined variable.

    We will fix it in our next release version.

    Quick solution: You can do the below small change with mentioned line no to make it work.

    File path: “…/wp-content/plugins/hide-shipping-method-for-woocommerce/public/class-woo-hide-shipping-methods-public.php”

    Line no: 695

    Change

    From: foreach ( $tag_array as $tag ) {

    To: foreach ( $tag_array as $key => $tag ) {

    Hope the given solution work for you.

    Best Regards,
    Hitendra & Dotstore Team

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Lexxlevi,

    Hope you are doing well.

    We have also fixed your query in our latest release version 1.3.2.

    Please upgrade and let us know how it works.

    Best Regards,
    Hitendra & Dotstore Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined variable $key’ is closed to new replies.