PHP Warnings in server logs wc-template-functions.php
-
I noticed that the following message appears quite often (several times a day) in the server logs:
[Thu Aug 15 18:39:13.449556 2024] [proxy_fcgi:error] [pid 30402:tid 30455] [client xxx.239.24.219:0] AH01071: Got error 'PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1622; PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1623; PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1624; PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1625; PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1634; PHP message: PHP Warning: Trying to access array offset on false in /home/klarsan/web/filtry-do-wody.info/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1634'
I checked these lines in the wc-template-functions.php file
'data-src' => esc_url( $full_src[0] ), 'data-large_image' => esc_url( $full_src[0] ), 'data-large_image_width' => esc_attr( $full_src[1] ), 'data-large_image_height' => esc_attr( $full_src[2] ),
return '<div data-thumb="' . esc_url( $thumbnail_src[0] ) . '" data-thumb-alt="' . esc_attr( $alt_text ) . '" class="woocommerce-product-gallery__image"><a href="' . esc_url( $full_src[0] ) . '">' . $image . '</a></div>';}
What does this warning mean? Is there any way I can fix it?
- You must be logged in to reply to this topic.