• Resolved lexmazter

    (@lexmazter)


    Hello!

    It seems the filter gives a fatal error if no tax is set.

    The fix in my case is easy, just delete the function and everything works fine.

    Error below:

    Fatal error: Uncaught Error: Call to undefined function Perfect_Woocommerce_Brands\is_product_taxonomy() in /home/noktoro/public_html/wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php:206 Stack trace: #0 /home/noktoro/public_html/wp-includes/class-wp-hook.php(288): Perfect_Woocommerce_Brands\Perfect_Woocommerce_Brands->pwb_brand_filter(Object(WP_Query)) #1 /home/noktoro/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array) #2 /home/noktoro/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array) #3 /home/noktoro/public_html/wp-includes/class-wp-query.php(1757): do_action_ref_array('pre_get_posts', Array) #4 /home/noktoro/public_html/wp-includes/class-wp-query.php(3413): WP_Query->get_posts() #5 /home/noktoro/public_html/wp-includes/post.php(2039): WP_Query->query(Array) #6 /home/noktoro/public_html/wp-content/plugins/site-announcements/public/class-cw-site-announcements-public.php(108): get_posts(Array) #7 /home/noktoro/public_html/wp-content/p in /home/noktoro/public_html/wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php on line 206

    • This topic was modified 5 years ago by lexmazter.
    • This topic was modified 5 years ago by lexmazter.
Viewing 1 replies (of 1 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi lexmazter,

    The “Site Announcements” plugin is causing this issue really, they are calling “get_posts” function before they should. You can report this issue to the “Site Announcements” team or use another similar plugin.

    Anyway, we will considere add some extra checks to avoid this issues in next releases.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Filter fatal error when no tax is set’ is closed to new replies.