• Resolved fcujorick2

    (@fcujorick2)


    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 609

    Oproepstack:

    1. array_filter()
      wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-display.php:609
    2. WC_Product_Addons_Display::fix_file_uploaded_display()
      wp-includes/class-wp-hook.php:308
    3. WP_Hook::apply_filters()
      wp-includes/plugin.php:205
    4. apply_filters()
      wp-content/plugins/woocommerce/includes/class-wc-order-item.php:302
    5. WC_Order_Item::get_formatted_meta_data()
      wp-content/plugins/woocommerce/includes/class-wc-order-item.php:258
    6. WC_Order_Item::get_all_formatted_meta_data()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item-meta.php:32
    7. require()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php:44
    8. include()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php:73
    9. include()
      wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:40
    10. WC_Meta_Box_Order_Items::output()
      wp-admin/includes/template.php:1409
    11. do_meta_boxes()
      wp-admin/edit-form-advanced.php:688
    12. require()
      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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fcujorick2

    (@fcujorick2)

    Maybe its caused by a ’empty option’.

    I checked some of the error orders, and these product which we ordered had this:

    https://ctrl.vi/i/K4nD436p9

    After deleting this empty option, i’ve test ordered that product and the error disappeared.

    Is there a way to delete all empty options? Now Idea how some has these, but there are hundreds of products with this.

    Plugin Author acowebs

    (@acowebs)

    Seems you mistakenly posted this forum. From the error details, we can see you are using some other product addon plugin. Our plugin path will be woo-custom-product-addons

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error – product add ons – orders in backend’ is closed to new replies.