title: Call to a member function get_id() on array in... returns Fatal Error
body: <p>I know this is a bit specific, but I'm tearing my hair out over this after lots of (confusing) reading online!</p>
  
  <p><strong>I've somehow broken my Woocommerce install's Stock report</strong>, and can't seem to undo it (I tried disabling all plugins and PHP functions but nothing seemed to work)...<strong>is there a way I can replace the broken file with a fresh copy without messing up my whole (live ecommerce) site?</strong> I'm only a novice when it comes to PHP and stuff and have added too much content since first noticing the error to roll the whole site back!</p>
  
  <p>Thanks in advance for any help you might offer :)</p>
  
  <p><strong>Here's the error I get instead of the relevant reports (all other reports work fine):</strong></p>
  
  <blockquote>
    <p>Fatal error: Uncaught Error: Call to a member function get_id() on array in /home/my-server/public_html/my-website/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php:81 Stack trace: #0 /home/my-server/public_html/my-website/wp-admin/includes/class-wp-list-table.php(1254): WC_Report_Stock->column_default(Object(stdClass), 'product') #1 /home/my-server/public_html/my-website/wp-admin/includes/class-wp-list-table.php(1192): WP_List_Table->single_row_columns(Object(stdClass)) #2 /home/my-server/public_html/my-website/wp-admin/includes/class-wp-list-table.php(1180): WP_List_Table->single_row(Object(stdClass)) #3 /home/my-server/public_html/my-website/wp-admin/includes/class-wp-list-table.php(1165): WP_List_Table->display_rows() #4 /home/my-server/public_html/my-website/wp-admin/includes/class-wp-list-table.php(1097): WP_List_Table->display_rows_or_placeholder() #5 /home/my-server/public_html/my-website/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php(68): WP_List_Table->display() #6 /home/my-server/publ in /home/my-server/public_html/my-website/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php on line 81</p>
  </blockquote>