Support » Plugin: WordPress Newsletter Plugin - Noptin » Error Log filled with PHP notices

  • Resolved tusharattar


    Dear Team

    After installing the plugin, mu debug.log is full of the following notices

    [14-Feb-2021 18:07:27 UTC] PHP Notice: wc_get_product was called <strong>incorrectly</strong>. wc_get_product should not be called before the woocommerce_init, woocommerce_after_register_taxonomy and woocommerce_after_register_post_type actions have finished. Backtrace: require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Noptin->plugins_loaded, Noptin_Integrations->__construct, Noptin_Abstract_Ecommerce_Integration->__construct, Noptin_Abstract_Integration->__construct, Noptin_WooCommerce->initialize, do_action('woocommerce_update_product'), WP_Hook->do_action, WP_Hook->apply_filters, woosea_on_product_save, wc_get_product, wc_doing_it_wrong Please see <a href="">Debugging in WordPress</a> for more information. (This message was added in version 3.9.) in /home/herbal/public_html/wp-includes/functions.php on line 5311

    Kindly please check and update the plugin accordingly.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.