• pvlchk

    (@pvlchk)


    Hey there, Thanks for the awesome plugin. V0.2 doesn’t work with the latest update – 6.1. The site brakes and only loads in recovery mode.
    Here is the log that is shown when attempting to activate it in recovery mode:

    This plugin failed to load properly and is paused during recovery mode.

    An error of type E_ERROR was caused in line 24 of the file /…/wp-content/plugins/whws-display-in-stock-products-first-for-woocommerce/whws-display-in-stock-products-first-for-woocommerce.php. Error message: Uncaught Error: Call to undefined function is_woocommerce() in /…/wp-content/plugins/whws-display-in-stock-products-first-for-woocommerce/whws-display-in-stock-products-first-for-woocommerce.php:24 Stack trace: #0 /…/wp-includes/class-wp-hook.php(310): whws_display_in_stock_products_first->whws_display_in_stock_products_first_funct(Array) #1 /…/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array) #2 /…/wp-includes/class-wp-query.php(2901): apply_filters_ref_array(‘posts_clauses’, Array) #3 /…/wp-includes/class-wp-query.php(3726): WP_Query->get_posts() #4 /…/wp-includes/post.php(2415): WP_Query->query(Array) #5 /…/wp-content/plugins/woocommerce-product-tabs-pro/public/class-woocommerce-product-tabs-public.php(52): get_posts(Array) #6 /home/chroqkhu/public_html/cts`

Viewing 1 replies (of 1 total)
  • Thread Starter pvlchk

    (@pvlchk)

    Managed to have it working by changing the function checking woocommerce presence

    is_woocommerce()

    to

    class_exists( ‘WooCommerce’ )

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with WP 6.1’ is closed to new replies.