Support » Plugin: YITH WooCommerce Wishlist » Warning: array_key_exists

  • Hello,

    I have the error with this plugin.

    ———————————————-
    array_key_exists() expects parameter 2 to be array, string given in /XXX/XXX/nginx/XXX/XXX/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl.php on line 1156
    ———————————————-

    I installed on two sites have encountered the same problem, the previous version does not have this problem.

    The version of WordPress:4.7.4
    The version of “YITH WooCommerce Wishlist”:2.1.1

    Please help me solve this problem, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Open the file at wp-content\plugins\yith-woocommerce-wishlist\includes\class.yith-wcwl.php

    Then edit the line 1156 to

    $rewrite_rules[] = get_option( 'rewrite_rules' );

    Hope this helped.

    Hello

    On the line of 1154, the code is:
    $rewrite_rules = get_option( 'rewrite_rules' );

    I do not know what’s the difference between your code.

    Thank you.

    YITH WooCommerce Wishlist updated to version 2.1.2, the problem is solved.

    Thank you very much, have a nice weekend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: array_key_exists’ is closed to new replies.