Fatal error – product add ons – orders in backend
-
Hi,
Since a few weeks we are getting this error on random orders.Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string given
in /var/www/nlkuns-fenoarivo/wordpress/current/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-display.php on line 609Oproepstack:
array_filter()
wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-display.php:609WC_Product_Addons_Display::fix_file_uploaded_display()
wp-includes/class-wp-hook.php:308WP_Hook::apply_filters()
wp-includes/plugin.php:205apply_filters()
wp-content/plugins/woocommerce/includes/class-wc-order-item.php:302WC_Order_Item::get_formatted_meta_data()
wp-content/plugins/woocommerce/includes/class-wc-order-item.php:258WC_Order_Item::get_all_formatted_meta_data()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item-meta.php:32require()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php:44include()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php:73include()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:40WC_Meta_Box_Order_Items::output()
wp-admin/includes/template.php:1409do_meta_boxes()
wp-admin/edit-form-advanced.php:688require()
wp-admin/post.php:206
No idea what causing it and no idea why only on 5 % of the products this problem happens. If I update a specific product on which the error appears and try to order it after updating it, it still happens.
Have tried so disabled and delete some product-add on options but that didnt work either. For example this product is causing the error:
https://www.kunstinkaart.nl/product/greece-landkaart-poster/
These two product options add ons, are on every product on our site. So it’s not a problem that one of these two is causing it.
Let say out of every 30 orders, one has this error.
Customer don’t get a confirmation mail and we don’t see any information in the Woo backend. Like which style they choose or if they put text inside the text-box. Have to call the customer now to ask for it for weeks. Hopefully it can be fixed.The page I need help with: [log in to see the link]
- The topic ‘Fatal error – product add ons – orders in backend’ is closed to new replies.