• Resolved Karlog-IT ApS

    (@karlogit)


    Hello

    Thanks for a great plugin!

    After the lates update I get a warning in my PHP log:

    [13-Apr-2023 06:20:40 UTC] PHP Warning:  Undefined variable $type in /home/site/public_html/staging/wp-content/plugins/woocommerce/templates/global/quantity-input.php on line 38
    [13-Apr-2023 06:20:40 UTC] PHP Warning:  Undefined variable $readonly in /home/site/public_html/staging/wp-content/plugins/woocommerce/templates/global/quantity-input.php on line 39
    [13-Apr-2023 06:20:40 UTC] PHP Warning:  Undefined variable $readonly in /home/site/public_html/staging/wp-content/plugins/woocommerce/templates/global/quantity-input.php on line 48

    It looks like $type, and $readonly is not always set when loading the quantity-input.php template.

    I am running PHP 8.2/8.1 (Issue do not look to be related to PHP version)

    WooCommerce 7.5.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @karlogit

    Thanks for reaching out!

    I’m sorry to hear that you’re experiencing issues after the latest update.

    Based on the information you’ve provided, it appears that there are PHP warnings related to undefined variables ($type and $readonly) in the quantity-input.php template file.

    As a first step, please make sure that you are running the latest version of WooCommerce by going to Plugins > Installed Plugins.

    Then, please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know how it goes!

    Hi @karlogit ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.

    Cheers!

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

The topic ‘quantity-input.php on line 48 Undefined $readonly’ is closed to new replies.