PHP error in plugin
-
Hello,
I configured the plugin successfully with the Planzer team, but on checkout, while in tests, I get a Fatal error as follow:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-content/plugins/wc-planzer-shipping/src/WooCommerce/Submodules/OrderAction.php:35 Stack trace: #0 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-content/plugins/wc-planzer-shipping/src/WooCommerce/Submodules/OrderAction.php(35): in_array('none', 'none') #1 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(307): Planzer\WooCommerce\Submodules\OrderAction->handleGenerateDeliveryNoteAction(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #2 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #3 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #4 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(171): do_action('woocommerce_ord...', Object(Automattic\WooCommerce\Admin\Overrides\Order)) #5 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(307): WC_Meta_Box_Order_Actions::save(697, Object(WP_Post)) #6 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(277): do_action('woocommerce_pro...', 697, Object(WP_Post)) #9 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->save_meta_boxes(697, Object(WP_Post)) #10 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #11 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #12 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/post.php(4673): do_action('save_post', 697, Object(WP_Post), true) #13 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-includes/post.php(4775): wp_insert_post(Array, false, true) #14 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-admin/includes/post.php(426): wp_update_post(Array) #15 /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-admin/post.php(227): edit_post() #16 {main} thrown in /home/clients/ca3f80df14df6072191cca67113bfa85/sites/orangexpress.ch/wp-content/plugins/wc-planzer-shipping/src/WooCommerce/Submodules/OrderAction.php on line 35
Do you know where this could come from?
Many thanks and best regards
Fran?ois Leuthold
- The topic ‘PHP error in plugin’ is closed to new replies.