• Hello,

    I installed the plugin today, it worked all day.

    Tonight i realized there was a critical error in my dashboard. So I connected to WP in Recovery mode and i saw a problem with WP File Upload.

    In my dashboard when i open woocommerce/orders page, it tells me that i have a critical error.

    Log :

    An error of type E_ERROR was caused in line 1523 of the file /home/xtbizjj/www/wp-content/plugins/wp-file-upload/lib/wfu_admin.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/xtbizjj/www/wp-content/plugins/wp-file-upload/lib/wfu_admin.php:1523 Stack trace: #0 /home/xtbizjj/www/wp-content/plugins/wp-file-upload/lib/wfu_admin.php(1523): in_array(‘wfunotification’, ‘order_note’) #1 /home/xtbizjj/www/wp-includes/class-wp-hook.php(308): wfu_exclude_notifications_from_comments(Object(WP_Comment_Query)) #2 /home/xtbizjj/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #3 /home/xtbizjj/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #4 /home/xtbizjj/www/wp-includes/class-wp-comment-query.php(348): do_action_ref_array(‘parse_comment_q…’, Array) #5 /home/xtbizjj/www/wp-includes/class-wp-comment-query.php(381): WP_Comment_Query->parse_query() #6 /home/xtbizjj/www/wp-includes/class-wp-comment-query.php(366): WP_Comment_Query->get_comments() #7 /home/xtbizjj/www/wp-includes/comment.php(250): WP_Comment_Query->query(Array) #8 /home/xtbizjj/www/wp-content/plugins/woocommerce/includes/wc-order-functions.php(1116): get_comments(Array) #9 /home/xtbizjj/www/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(986): wc_get_order_notes(Array) #10 /home/xtbizjj/www/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php(183): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->render_order_status_column(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #11 /home/xtbizjj/www/wp-content/plugins/woocommerce/includes/admin/list-tables/abstract-class-wc-admin-list-table.php(261): WC_Admin_List_Table_Orders->render_order_status_column() #12 /home/xtbizjj/www/wp-includes/class-wp-hook.php(308): WC_Admin_List_Table->render_columns(‘order_status’, 1930) #13 /home/xtbizjj/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #14 /home/xtbizjj/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /home/xtbizjj/www/wp-admin/includes/class-wp-posts-list-table.php(1369): do_action(‘manage_shop_ord…’, ‘order_status’, 1930) #16 /home/xtbizjj/www/wp-admin/includes/class-wp-list-table.php(1559): WP_Posts_List_Table->column_default(Object(WP_Post), ‘order_status’) #17 /home/xtbizjj/www/wp-admin/includes/class-wp-posts-list-table.php(1403): WP_List_Table->single_row_columns(Object(WP_Post)) #18 /home/xtbizjj/www/wp-admin/includes/class-wp-posts-list-table.php(813): WP_Posts_List_Table->single_row(Object(WP_Post), 0) #19 /home/xtbizjj/www/wp-admin/includes/class-wp-posts-list-table.php(789): WP_Posts_List_Table->_display_rows(Array, 0) #20 /home/xtbizjj/www/wp-admin/includes/class-wp-list-table.php(1471): WP_Posts_List_Table->display_rows() #21 /home/xtbizjj/www/wp-admin/includes/class-wp-list-table.php(1398): WP_List_Table->display_rows_or_placeholder() #22 /home/xtbizjj/www/wp-admin/edit.php(487): WP_List_Table->display() #23 {main} thrown

    “The issue seems to be in the wfu_exclude_notifications_from_comments function, specifically with the use of in_array(). It’s trying to search for ‘wfunotification’ in ‘order_note’, which is a string rather than an array. If ‘order_note’ is supposed to be an array, then there might be an issue with how it’s being assigned or created. This is something that the plugin’s author would be able to shed more light on.”

    Anybody could help to resolve this issue ?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter chaiya36210

    (@chaiya36210)

    NB: When i disable it, the error stops. As soon as i activate it, it comes back. However the plug is in use now and functions seems to work.

    Plugin Author nickboss

    (@nickboss)

    Good afternoon, yes there is a bug after the latest release and I am issuing an update right now.

    I will let you know.

    Best Regards

    Nickolas

    Plugin Author nickboss

    (@nickboss)

    Please update to version 4.21.7.

    Let me know if everything works now.

    Nickolas

    Thread Starter chaiya36210

    (@chaiya36210)

    Hi there,

    Yes it seems fixed, will back if anything.

    Thanks so much for quick fix ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical error with woocommerce’ is closed to new replies.