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

Undefined variable: image_id in virtue_premium/lib/custom-woocommerce.php

Home / Forums / Virtue Theme / Undefined variable: image_id in virtue_premium/lib/custom-woocommerce.php

This topic is: Not a support question
[Not a support question]
Posted in: Virtue Theme
November 24, 2016 at 9:14 am

Hi,

just for your interest. Here’s a stacktrace I got in my errors.log (with WP_DEBUG set to true) on my testing/staging server:

PHP Notice: Undefined variable: image_id in /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/themes/virtue_premium/lib/custom-woocommerce.php on line 540, referer: -admin/options-general.php
PHP Stack trace:, referer:
PHP 1. {main}() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/index.php:0, referer:
PHP 2. require() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/index.php:17, referer:
PHP 3. require_once() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-blog-header.php:19, referer: -admin/options-general.php
PHP 4. include() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-includes/template-loader.php:75, referer: -admin/options-general.php
PHP 5. include() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/themes/virtue_premium/base.php:37, referer: -admin/options-general.php
PHP 6. woocommerce_get_template_part() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/themes/virtue_premium/woocommerce/archive-product.php:115, referer: -admin/options-general.php
PHP 7. wc_get_template_part() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php:190, referer: -admin/options-general.php
PHP 8. load_template() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php:173, referer: -admin/options-general.php
PHP 9. require() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-includes/template.php:574, referer: -admin/options-general.php
PHP 10. do_action() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-content/themes/virtue_premium/woocommerce/content-product.php:83, referer: -admin/options-general.php
PHP 11. call_user_func_array:{/var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-includes/plugin.php:524}() s/plugin.php:524, referer:
PHP 12. kt_woocommerce_template_loop_product_thumbnail() /var/www/mysitecom.2016-11-04-00-13-07/www.mysitecom.de/htdocs/wp-includes/plugin.php:524, referer: -admin/options-general.php

Happens when I
1. Add a simple subscription (Subscription plugin) but maybe also for normal products
2. Do not add a product image
3. Go to the shop page /shop/

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