title: Call to a member function get_cart_subtotal() on a non-object in config-woocommerce/config.php on line 790
body: <p>I'm trying to login into my WordPress Admin panel, and am getting the following error:</p>
  
  <blockquote>
    <p>Call to a member function <code>get_cart_subtotal()</code> on a non-object in <em>/home/spicom/public_html/adwinang.com/wp-content/themes/enfold/config-woocommerce/config.php</em> on line 790</p>
  </blockquote>
  
  <p>This is my code at line 790:</p>
  
  <pre><code>$cart_subtotal = $woocommerce-&gt;cart-&gt;get_cart_subtotal();
  </code></pre>