• Hello,

    I have a looping error on your plugin :

    PHP message: PHP Deprecated: Automatic conversion of false to array is deprecated in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php on line 101
    
    PHP message: PHP Deprecated: Automatic conversion of false to array is deprecated in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php on line 101
    
    PHP message: PHP Deprecated: Automatic conversion of false to array is deprecated in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php on line 101
    
    PHP message: PHP Deprecated: Automatic conversion of false to array is deprecated in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-cache-helper.php on line 101

    Do you know how to resolve these warnings?

    wordpress and yith plugins are up to date, I use PHP 8.1

    Thank you for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,

    thank you for report this. We’ll fix and release a new update of the plugin soon.

    Thread Starter djimmyl

    (@djimmyl)

    Hello Giuseppe,

    Thanks for the quick update.

    For your information with php 8.0 & 8.2 the plugin has many incompatibilities. Some information on my site is no longer displayed.
    Here is the error wit 8.0 :

    2023/08/18 11:29:01 [error] 91102#91102: *3821333 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, string given in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php:1041
    Stack trace:
    #0 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php(1041): array_intersect('14304', Array)
    #1 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(516): YITH_WCAN_Query->get_query_relevant_term_objects('product_cat', 15, false)
    #2 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(454): YITH_WCAN_Filter_Tax->get_term_products(15)
    #3 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(390): YITH_WCAN_Filter_Tax->get_term_children(15)
    #4 /www/bouclettec" while reading response header from upstream, client: 162.55.86.59, server: bouclette.co, request: "GET /mon-type-de-boucle/boucles/page/3?yith_wcan=1&pa_mon-type-de-boucle=boucles&query_type_ma-densite=or&filter_ma-densite=densite-forte HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.0-fpm-boucletteco.sock:", host: "bouclette.co:57405"

    And on 8.2 :

    2023/08/18 11:47:37 [error] 72167#72167: *3823379 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, string given in /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php:1041
    Stack trace:
    #0 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/class-yith-wcan-query.php(1041): array_intersect('14304', Array)
    #1 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(516): YITH_WCAN_Query->get_query_relevant_term_objects('product_cat', 15, false)
    #2 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(454): YITH_WCAN_Filter_Tax->get_term_products(15)
    #3 /www/boucletteco_218/public/wp-content/plugins/yith-woocommerce-ajax-navigation/includes/filters/class-yith-wcan-filter-tax.php(390): YITH_WCAN_Filter_Tax->get_term_children(15)
    #4 /www/bouclettec" while reading response header from upstream, client: 162.55.86.59, server: bouclette.co, request: "GET /mon-type-de-boucle/crepus/page/4?yith_wcan=1&pa_mon-type-de-boucle=crepus&query_type_mon-type-de-boucle=or&filter_mon-type-de-boucle=boucles-frises HTTP/2.0", upstream: "fastcgi://unix:/var/run/php8.2-fpm-boucletteco.sock:", host: "bouclette.co:57405"

    I have to deactivate your plugin to stop getting errors and continue using my site.

    Thank you for your help

    • This reply was modified 1 year, 3 months ago by djimmyl.
    Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,

    thanks for reporting. We’ll check and if necessary send another update.

    Thread Starter djimmyl

    (@djimmyl)

    For exemple, when your plugin is enable, Elementor doesn’t work.
    So all the design is corrupt and the tab modify with elementor doesn’t appaear.

    Thank you,

    Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    We have been able to replicate the issue, but we will need to do some more tests to find the solution.

    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' );

    Let us know if this helped you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Deprecated: Automatic conversion of false to array is deprecated’ is closed to new replies.