• Hello! Our client is using this plugin, after tracing the bug code. It come from the WSCCS because it supplies the following string instead of an array.

    In the admin page, when we edit a page, before the editor is loaded, the following error is displayed:

    Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1424

    We tried to deactivate it and the error is gone.
    While we are not sure why it give this error because it does not appear in other site with similar configuration.

    string(2354) “O:27:”Ankit\WCSSC\Utility\Utility”:2:{s:35:”Ankit\WCSSC\Utility\Utilityplugin”;O:25:”Ankit\WCSSC\SaveShareCart”:6:{s:7:”version”;N;s:32:”Ankit\WCSSC\SaveShareCartadmin”;O:23:”Ankit\WCSSC\Admin\Admin”:1:{s:8:”settings”;N;}s:35:”Ankit\WCSSC\SaveShareCartfrontend”;O:29:”Ankit\WCSSC\Frontend\Frontend”:4:{s:35:”Ankit\WCSSC\Frontend\Frontendutil”;r:1;s:38:”Ankit\WCSSC\Frontend\Frontendenqueue”;O:28:”Ankit\WCSSC\Frontend\Enqueue”:1:{s:34:”Ankit\WCSSC\Frontend\Enqueueutil”;r:1;}s:38:”Ankit\WCSSC\Frontend\Frontendrewrite”;O:28:”Ankit\WCSSC\Frontend\Rewrite”:0:{}s:35:”Ankit\WCSSC\Frontend\Frontendcart”;O:25:”Ankit\WCSSC\Frontend\Cart”:3:{s:34:”Ankit\WCSSC\Frontend\Cartutility”;r:1;s:31:”Ankit\WCSSC\Frontend\Cartcart”;N;s:36:”Ankit\WCSSC\Frontend\Cartload_cart”;N;}}s:35:”Ankit\WCSSC\SaveShareCartsettings”;O:20:”Ankit\WCSSC\Settings”:2:{s:27:”Ankit\WCSSC\Settingstypes”;a:3:{i:0;O:27:”Ankit\WCSSC\Section\General”:1:{s:33:”Ankit\WCSSC\Section\Generalname”;s:7:”general”;}i:1;O:25:”Ankit\WCSSC\Section\Email”:1:{s:31:”Ankit\WCSSC\Section\Emailname”;s:5:”email”;}i:2;O:28:”Ankit\WCSSC\Section\SaveCart”:1:{s:34:”Ankit\WCSSC\Section\SaveCartname”;s:9:”save-cart”;}}s:29:”Ankit\WCSSC\Settingsconfigs”;a:20:{s:11:”wcssc_title”;N;s:19:”wc_wcssc_button_pos”;s:29:”woocommerce_before_cart_table”;s:13:”wcssc_btn_txt”;s:18:”分享購物清單”;s:28:”wcssc_shared_cart_page_title”;s:4:”Cart”;s:14:”wcssc_title_sm”;N;s:11:”wcssc_sm_fb”;s:3:”yes”;s:11:”wcssc_sm_tw”;s:2:”no”;s:11:”wcssc_sm_wp”;s:2:”no”;s:14:”wcssc_sm_skype”;s:2:”no”;s:13:”wcssc_sm_mail”;s:2:”no”;s:18:”wcssc_sm_clipboard”;s:3:”yes”;s:13:”wcssc_sm_save”;s:2:”no”;s:10:”wcssc_misc”;N;s:17:”wcssc_captcha_key”;s:0:””;s:16:”wcssc_email_from”;N;s:21:”wcssc_email_from_name”;N;s:16:”wcssc_email_body”;N;s:17:”wcssc_section_end”;N;s:22:”wcssc_saved_cart_title”;N;s:20:”wcssc_save_cart_name”;N;}}s:32:”Ankit\WCSSC\SaveShareCartutils”;r:1;s:30:”Ankit\WCSSC\SaveShareCartapi”;O:27:”Ankit\WCSSC\API\API_Manager”:3:{s:38:”Ankit\WCSSC\API\API_Managernamespace”;s:8:”wcssc/v1″;s:38:”Ankit\WCSSC\API\API_Managerendpoints”;a:3:{i:0;O:28:”Ankit\WCSSC\Endpoint\GetLink”:0:{}i:1;O:29:”Ankit\WCSSC\Endpoint\SaveCart”:0:{}i:2;O:30:”Ankit\WCSSC\Endpoint\EmailCart”:0:{}}s:36:”Ankit\WCSSC\API\API_Managerutility”;r:1;}}s:41:”Ankit\WCSSC\Utility\Utilitydefault_user”;s:1:”3″;}”

Viewing 1 replies (of 1 total)
  • Plugin Author Ankit Gade

    (@wpgurudev)

    Hi,

    Sorry for inconvenience.

    This might be happening due to conflict with any other plugin.

    If possible, can you please try to deactive all other plugins except woocommerce and wcssc, and check if error persists or not?

    Let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Error of array_intersect_key(): Expected parameter 1 to be an array in admin’ is closed to new replies.