title: Woocommerce force update database stucked
body: <p>After we upgraded woocommerce to the latest version (3.4.4), the message keeps appearing</p>
  
  <p>“WooCommerce data update – Your database is being updated in the background. Taking a while? Click here to run it now.”</p>
  
  <p>When we clicked on the ‘Click here to run it now’, it shows a HTTP 500 error and when we reload the page, it shows the woocommerce general setting page. </p>
  
  <p>I looked at the debug report and its says:</p>
  
  <p>"
  PHP Fatal error: Call to a member function remove_cap() on null in /home/artgrain/public_html/wp-content/plugins/woocommerce/includes/wc-update-functions.php on line 1367
  "</p>
  
  <p>Does anyone knows how to fix this issue? I have someone told me it is my theme outdated but when I deactivated all plugins and theme to install twenty-seventeen only, this error still persists.</p>
  
  <p>I appreciate your help, thank you very much!</p>