• Hello Community,
    Recently I bought a Scanventory Plugin for my Clothing Store, currently I have added 142 products and I have a problem with “Log” tab.
    It says “There has been a critical error on your website. Please check your site admin email inbox for instructions.”

    When I start debugging it shows this:

    Fatal error: Uncaught Exception: Invalid product. in /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:165 Stack trace: #0 /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product)) #1 /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(135): WC_Data_Store->read(Object(WC_Product)) #2 /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce-scanventory/classes/admin-tabs/log.php(32): WC_Product->__construct('3503') #3 /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce-scanventory/classes/admin.php(137): require_once('/home/digoyet2/...') #4 /home/digoyet2/brendomania.rs/wp-includes/class-wp-hook.php(287): Scanventory_Admin->main('') #5 /home/digoyet2/brendomania.rs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #6 /home/digoyet2/brendomania.rs/wp-includes/plugin.php(478): WP_H in /home/digoyet2/brendomania.rs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 165
    

    When I follow path and find line 165 it says:

    
    	if ( ! $product->get_id() || ! $post_object || 'product' !== $post_object->post_type ) {
    			throw new Exception( __( 'Invalid product.', 'woocommerce' ) );
    		}
    

    Is there any solution=

    The page I need help with: [log in to see the link]

  • The topic ‘Scanventory Log Error’ is closed to new replies.