• Resolved WP Helping Hand

    (@svenkilcher)


    Hello
    We use the plugin in a store.
    When we paste the shortcode into a code block at Avada we get a fatal error. We have tried several filters but it always triggers an error.
    How can we solve the problem?

    This is the message:

    Fatal error: Uncaught Error: array_intersect(): Argument #1 ($array) must be of type array, string given
    in /var/www/clients/client161/web1342/web/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php on line 1041

    Call stack:

    1. array_intersect()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php:1041
    2. YITH_WCAN_Query::get_query_relevant_term_objects()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php:516
    3. YITH_WCAN_Filter_Tax::get_term_products()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php:454
    4. YITH_WCAN_Filter_Tax::get_term_children()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php:390
    5. YITH_WCAN_Filter_Tax::get_formatted_terms()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php:339
    6. YITH_WCAN_Filter_Tax::has_relevant_terms()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php:46
    7. YITH_WCAN_Filter_Tax::is_relevant()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-preset.php:365
    8. YITH_WCAN_Preset::has_relevant_filters()
      wp-content/plugins/yith-woocommerce-ajax-navigation/templates/shortcodes/filters.php:23
    9. include()
      wp-content/plugins/woocommerce/includes/wc-core-functions.php:345
    10. wc_get_template()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/functions-yith-wcan.php:938
    11. yith_wcan_get_template()
      wp-content/plugins/yith-woocommerce-ajax-navigation/includes/shortcodes/class-yith-wcan-shortcode-filters.php:48
    12. YITH_WCAN_Shortcode_Filters::render()
      wp-includes/shortcodes.php:395
    13. do_shortcode_tag()
    14. preg_replace_callback()
      wp-includes/shortcodes.php:235
    15. do_shortcode()
      wp-content/plugins/fusion-builder/shortcodes/fusion-code-block.php:45
    16. FusionSC_Code_Block::render()
      wp-includes/shortcodes.php:395
    17. do_shortcode_tag()
    18. preg_replace_callback()
      wp-includes/shortcodes.php:235
    19. do_shortcode()
      wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php:561
    20. Fusion_Column_Element::render()
      wp-includes/shortcodes.php:395
    21. do_shortcode_tag()
    22. preg_replace_callback()
      wp-includes/shortcodes.php:235
    23. do_shortcode()
      wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php:123
    24. Fusion_Row_Element::render()
      wp-includes/shortcodes.php:395
    25. do_shortcode_tag()
    26. preg_replace_callback()
      wp-includes/shortcodes.php:235
    27. do_shortcode()
      wp-content/plugins/fusion-builder/shortcodes/fusion-container.php:1078
    28. FusionSC_Container::render()
      wp-includes/shortcodes.php:395
    29. do_shortcode_tag()
    30. preg_replace_callback()
      wp-includes/shortcodes.php:235
    31. do_shortcode()
      wp-includes/class-wp-hook.php:310
    32. WP_Hook::apply_filters()
      wp-includes/plugin.php:205
    33. apply_filters()
      wp-includes/post-template.php:256
    34. the_content()
      wp-content/themes/Avada/100-width.php:23
    35. include()
      wp-includes/template-loader.php:106
    36. require_once()
      wp-blog-header.php:19
    37. require()
      index.php:17

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    which version of the plugin you’re using?

    Which is the PHP version currently installed on your server?

    Thread Starter WP Helping Hand

    (@svenkilcher)

    Hey Allesio
    thanks for your quick reply.
    PHP is in version 8.2.10
    WP is in version 6.3.1
    YITH WooCommerce Ajax Product Filter in version 4.25.2

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    please download the file here and move it at following path:
    wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php

    Please let me know if the problem persists.

    Thread Starter WP Helping Hand

    (@svenkilcher)

    Hey Alessio
    Thanks for the file. I uploaded it and everything is working again.
    Good work.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    happy to see problem is solved now. ??

    Thee version 4.25.3 has been just released and includes the latest fix I provided.

    Have a nice weekend.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error after inserting shortcode for filter’ is closed to new replies.