quantity-input.php on line 48 Undefined $readonly
-
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 48It 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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘quantity-input.php on line 48 Undefined $readonly’ is closed to new replies.