Title: Fatal PHP error when viewing Orders
Last modified: August 19, 2024

---

# Fatal PHP error when viewing Orders

 *  [Jamie S](https://wordpress.org/support/users/spacedragon/)
 * (@spacedragon)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/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.](https://www.dropbox.com/scl/fi/ajhpa2snci1h57fkotdos/20240819-wc-error-download-pdf-invoices.png?rlkey=pzoyj3skw348hglpuxg0k65f4&dl=0)
   
   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:
 *     ```wp-block-code
       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:326Stack 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 326
       ```
   
 * Unfortunately, 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.

 * ![](https://ps.w.org/wc-order-pdf-download/assets/icon-256x256.png?rev=3068324)
 * [Download PDF Invoices for WooCommerce Orders](https://wordpress.org/plugins/wc-order-pdf-download/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-order-pdf-download/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-order-pdf-download/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-order-pdf-download/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-order-pdf-download/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jamie S](https://wordpress.org/support/users/spacedragon/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-viewing-orders/)
 * Status: not resolved