Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

PHP Notice when product has no Featured Image

Home / Forums / Virtue Theme / PHP Notice when product has no Featured Image

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
August 15, 2017 at 1:55 pm

Hi,

I am getting the following notices in my error log.

They only occur when viewing a WooCommerce page that displays products which do not have a Featured Image, such as Product Archives. One entry per product displayed.

[15-Aug-2017 19:49:18 UTC] PHP Notice: Undefined variable: image_id in /wp-content/themes/virtue_premium/lib/custom-woocommerce.php on line 665

The notice does not appear to occur when viewing the individual product page, or the cart/checkout pages.

I hope this helps you track down this issue quickly! My log is getting fairly full with these notices, now that I’ve quelled a few others of my own doing 😉

Thanks

Garry

  • The forum ‘Virtue Theme’ is closed to new topics and replies.