• Resolved e dev

    (@efishinsea)


    Any ideas on this? My log is full of them.

    wc_get_product was called incorrectly. 
    
    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('wp-blog-header.php'), 
    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, 
    WPDesk\ShopMagic\Plugin->WPDesk\ShopMagic\{closure}, 
    WPDesk\ShopMagic\Automation\AutomationFactory->initialize_active_automations, 
    WPDesk\ShopMagic\Automation\AutomationFactory->create_automation, 
    WPDesk\ShopMagic\Automation\Automation->initialize,
    WPDesk\ShopMagic\Automation\Automation->get_event,
    WPDesk\ShopMagic\Automation\Automation->create_filter,
    WPDesk\ShopMagic\Automation\AutomationPersistence->get_filters_as_group, 
    WPDesk\ShopMagic\Automation\AutomationPersistence->get_filters_data, 
    WPDesk\ShopMagic\FormField\Serializer\ProductSelectSerializer->serialize, 
    wc_get_product, wc_doing_it_wrong. 
    
    This message was added in version 3.9.
    
    • This topic was modified 3 years, 10 months ago by e dev.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support damianmachnik

    (@damianmachnik)

    Hello,

    thank you for your message. We’ve just released a ShopMagic 2.7, which should resolve this problem.

    Let me know if it worked for you.

    Thread Starter e dev

    (@efishinsea)

    Nope. still broken. If I am not mistaken, it is actually producing the error more rapidly now.

    Plugin Support damianmachnik

    (@damianmachnik)

    Hi there,

    Thank you for your answer. We will check why it’s not working as intended and get back to you. Fortunately, it does not look like a global bug.

    Sorry for any inconvenience caused. We are working hard to solve it.

    Thread Starter e dev

    (@efishinsea)

    Hello.

    Just checking back in. This is still a problem generating GB of log entries.

    [03-Sep-2020 01:53:52 UTC] wc_get_product was called incorrectly. 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('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, do_action('woocommerce_init'), WP_Hook->do_action, WP_Hook->apply_filters, WPDesk\ShopMagic\Plugin->WPDesk\ShopMagic\{closure}, WPDesk\ShopMagic\Automation\AutomationFactory->initialize_active_automations, WPDesk\ShopMagic\Automation\AutomationFactory->create_automation, WPDesk\ShopMagic\Automation\Automation->initialize, WPDesk\ShopMagic\Automation\Automation->get_event, WPDesk\ShopMagic\Automation\Automation->create_filter, WPDesk\ShopMagic\Automation\AutomationPersistence->get_filters_as_group, WPDesk\ShopMagic\Automation\AutomationPersistence->get_filters_data, ShopMagicVendor\WPDesk\Forms\Serializer\ProductSelectSerializer->serialize, wc_get_product, wc_doing_it_wrong. This message was added in version 3.9.
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wc_get_product was called incorrectly’ is closed to new replies.