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 Notice

Home / Forums / Virtue Theme / Undefined Variable Notice

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
September 10, 2020 at 12:13 pm

I am getting the following warning on some pages of my site:
Notice: Undefined variable: img in /home/domains/savewatersantafe.com/docs/wp-content/themes/virtue_premium/lib/widgets/class-kad-image-widget.php on line 87

I tried to turn off the notification with the following in wp-config.php but it did not work:
ini_set(‘display_errors’,’Off’);
ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);

How can I stop the warning from displaying, and how can I fix the root issue?

Thanks.

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