Php 警告:array_key_exists()要求参数2为数组,字符串在/hermes/bosnacweb01中给出/

Php 警告:array_key_exists()要求参数2为数组,字符串在/hermes/bosnacweb01中给出/,php,wordpress,Php,Wordpress,您好,我的网站上出现了一条错误消息,有人可以帮助我: 警告:array_key_exists期望参数2是数组,字符串在第1156行的/hermes/bosnacweb01/bosnacweb01ac/b1772/ipg.eafricatcom/e-africart.com/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl.php中给出 if( ! array_key_exists( $reg

您好,我的网站上出现了一条错误消息,有人可以帮助我: 警告:array_key_exists期望参数2是数组,字符串在第1156行的/hermes/bosnacweb01/bosnacweb01ac/b1772/ipg.eafricatcom/e-africart.com/wp-content/plugins/yith-woocommerce-wishlist/includes/class.yith-wcwl.php中给出

        if( ! array_key_exists( $regex_paged, $rewrite_rules ) || ! array_key_exists( $regex_paged, $rewrite_rules ) ){
            flush_rewrite_rules();
        }

将YITH WooCommerce Wishlist插件更新为2.1.1版时,您似乎遇到了同样的问题

我将第1156行修改为:$rewrite_rules[]=get_选项'rewrite_rules'


希望这能有所帮助。

请将问题中出现错误的代码的相关部分包括在内,否则我怀疑是否有人能提供帮助!数组_键_存在$regex_分页,$rewrite_规则| |!array_key_exists$regex_paged,$rewrite_rules{flush_rewrite_rules;}请将代码包含在您的问题中,不要作为注释它说$rewrite_rules不是数组。我已经解决了我的问题,谢谢