• c.walter

    (@cwalterpas-solutionsch)


    Hello

    When opening a product detail page, I get two PHP Errors in my debug file:

    PHP Notice: Undefined variable: pattern in /…/wp-content/plugins/woocommerce/templates/global/quantity-input.php on line 24

    PHP Notice: Undefined variable: inputmode in /…/wp-content/plugins/woocommerce/templates/global/quantity-input.php on line 24

    Any idea, why this variable could be undefined? I use the latest Divi-Theme, but I don’t know if this is a theme related problem.

    Regards
    Christoph

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure if some custom function from Divi is causing it. You could add checks like:

    if ( isset($YOUR_ARRAY['inputMode']) ) {
      // do your thing here
    }

    in a child template of quantity-input.php

    Thread Starter c.walter

    (@cwalterpas-solutionsch)

    Thanks for that suggestion – I will try that until I find the cause of the error.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error message when displaying a single product page’ is closed to new replies.