• Resolved tonydobreva

    (@tonydobreva)


    Hello! Since the last update of the plugin, the pages i’ve inserted the filter’s shortcodes, have crushed. My page says that there is fatal error on my site when my fillter is on. I’ll send you the error log, so you can see the problem. I’m working with Divi theme on my website.

    [25-Aug-2023 13:36:34 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php:72
    Stack trace: 0 /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php(1011): YITH_WCAN_Cache_Helper::get() 1 /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(516): YITH_WCAN_Query->get_query_relevant_term_objects() 2 /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(454): YITH_WCAN_Filter_Tax->get_term_products() 3 /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(390): YITH_WCAN_Filter_Tax->get_term_children() 4 /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/ in /home/nikealtd/shop.nikealtd.com/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php on line 72

    • This topic was modified 1 year, 6 months ago by tonydobreva.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m using Astra Theme and after updating plugging I’ve found the same situation, but the error is slightly different:

    Warning: array_intersect(): Expected parameter 1 to be an array, string given in /usr/home/tevaterra.cat/web/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041 Warning: count(): Parameter must be an array or an object that implements Countable in /usr/home/tevaterra.cat/web/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396 Warning: array_intersect(): Expected parameter 1 to be an array, string given in /usr/home/tevaterra.cat/web/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041 Warning: count(): Parameter must be an array or an object that implements Countable in /usr/home/tevaterra.cat/web/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php on line 396

    Not all the filters are crushing the pages, but I’m not able to find the casuistic.

    We really like this plugging, and we were considering buying the Pro version, but we need to be sure that it works properly.

    Any help will be welcome.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    we’re going to release a new version Today, so please update as soonit will be available.

    In the meantime, please, try adding the following PHP code in the functions.php file of your current theme and then check if the issue is solved:

    add_filter( 'yith_wcan_suppress_cache', '__return_true' );

    Thank you for your great cooperation.

    Thread Starter tonydobreva

    (@tonydobreva)

    Hello, after i inserted the code the error is gone. Everything is working like before. Thank you so much for the help!

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    you’re welcome! Don’t hesitate write us whenever you want ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page crushed since last update.’ is closed to new replies.