Fatal PHP error when viewing Orders
-
Hi – I’m experiencing a fatal error when viewing Orders, specifically when WC outputs the order number of the first row.
The issue is fully resolved when I deactivate your plugin. I’ve also checked for additional conflicts with my custom theme, other plugins, and caching utilities to confirm that the issue is limited to this plugin.Here’s the error in full:
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, array callback must have exactly two members in [REDACTED]/public_html/wp-includes/class-wp-hook.php:326
Stack trace:
#0 [REDACTED]/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#1 [REDACTED]/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#2 [REDACTED]/public_html/wp-admin/includes/class-wp-posts-list-table.php(1398): do_action('manage_shop_ord...', 'order_number', [REDACTED])
#3 [REDACTED]/public_html/wp-admin/includes/class-wp-list-table.php(1802): WP_Posts_List_Table->column_default(Object(WP_Post), 'order_number')
#4 [REDACTED]/public_html/wp-admin/includes/class-wp-posts-list-table.php(1432): WP_List_Table->single_row_columns(Object(WP_Post))
#5 [REDACTED]/public_html/wp-admin/includes/class-wp-posts-list-table.php(834): WP_Posts_List_Table->single_row(Object(WP_Post), 0)
#6 [REDACTED]/public_html/wp-admin/includes/class-wp-posts-list-table.php(810): WP_Posts_List_Table->_display_rows(Array, 0)
#7 [REDACTED]/public_html/wp-admin/includes/class-wp-list-table.php(1712): WP_Posts_List_Table->display_rows()
#8 [REDACTED]/public_html/wp-admin/includes/class-wp-list-table.php(1639): WP_List_Table->display_rows_or_placeholder()
#9 [REDACTED]/public_html/wp-admin/edit.php(503): WP_List_Table->display()
#10 {main}
thrown in [REDACTED]/public_html/wp-includes/class-wp-hook.php on line 326Unfortunately, I’ll need to disable this until it’s patched. Happy to provide more details if I can.
The topic ‘Fatal PHP error when viewing Orders’ is closed to new replies.