• Resolved gasmas75

    (@gasmas75)


    Hello,

    Thank you for this great plugin. Everything is working except that the category tree isn’t showing. Just the parent category and if I’m on a child category, the widget doesn’t show at all.

    Show hierarchical is enabled. Also tried to recount terms.

    On my PHP error log I get the following:

    
    
    [22-Mar-2023 21:08:19 UTC] PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore::get_attribute_taxonomies(): Argument #1 ($product) must be of type WC_Product, bool given, called in /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 378 and defined in /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:516
    Stack trace:
    
    0 /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(378): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->get_attribute_taxonomies(false)
    
    1 /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(283): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->create_data_for_variation(Object(WC_Product_Variation))
    
    2 /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php(161): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->create_data_for(Object(WC_Product_Variation))
    
    3 [internal function]: Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->run_update_callback(16806, 1)
    
    4 /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(158): call_user_func_array(Array, Array)
    
    5 /web/user/public_html/siteurl.com/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Internal\ProductAttributesLookup\LookupDataStore->__call('run_update_call…', Array)
    
    6 /web/user/public_html/siteurl.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    
    7 /web/user/public_html/siteurl.com/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    
    8 /web/user/public_html/siteurl.com/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_Action.php(25): do_action_ref_array('woocommerce_run…', Array)
    
    9 /web/user/public_html/siteurl.com/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(26): ActionScheduler_Action->execute()
    
    10 /web/user/public_html/siteurl.com/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(76): ActionScheduler_Abstract_QueueRunner->process_action(37391, 'WP Cron')
    
    11 /web/user/public_html/siteurl.com/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(60): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron')
    
    12 /web/user/public_html/siteurl.com/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run('WP Cron')
    
    13 /web/user/public_html/siteurl.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    
    14 /web/user/public_html/siteurl.com/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    
    15 /web/user/public_html/siteurl.com/wp-cron.php(188): do_action_ref_array('action_schedule…', Array)
    
    16 {main}
    
    thrown in /web/user/public_html/siteurl.com/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 516
    
     

    Any ideas are greatly appreciated.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    Is it displayed categories when hierarchical?option disabled?

    Regards,
    Oleg

    Thread Starter gasmas75

    (@gasmas75)

    Sorry for the late reply. No, no matter what I choose on the settings, I cannot display the hierarchy. Really puzzling.

    Thread Starter gasmas75

    (@gasmas75)

    When I use the /shop the category tree displays correctly showing all shop’s categories. When I am on any product category (with subcategories) I only get the root category without it’s tree

    Thread Starter gasmas75

    (@gasmas75)

    I found the cause for the tree not displaying. Under settings -> Advanced -> Page same as filter -> should be Default.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Category tree not showing’ is closed to new replies.