title: Fatal Error when saving a product in Magento 1.8.1.0
body: <p>When I try and edit a sku in our inventory.  I'm now getting this error message.  Not sure if it is a DB issue now.  We also are having a problem with our coupon codes not work either. <a href="https://community.magento.com/t5/Security-Patches/Updated-SUPEE-6788-now-newly-created-promotion-codes-are-not/m-p/21314#U21314" rel="nofollow">Link to old problem</a></p>
  
  <blockquote>
    <p>Fatal error: Call to a member function getId() on a non-object in
    /chroot/home/store/SPORTS.COM/html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php
    on line 587 Warning: include(Mage.php): failed to open stream: No such
    file or directory in
    /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line 93
    Warning: include(Mage.php): failed to open stream: No such file or
    directory in
    /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line 93
    Warning: include(): Failed opening 'Mage.php' for inclusion
    (include_path='/chroot/home/store/SPORTS.COM/html/app/code/local:/chroot/home/store/SPORTS.COM/html/app/code/community:/chroot/home/store/SPORTS.COM/html/app/code/core:/chroot/home/store/SPORTS.COM/html/lib:.:/usr/share/pear:/usr/share/php')
    in /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line
    93 Fatal error: Class 'Mage' not found in
    /chroot/home/store/SPORTS.COM/html/app/code/core/Mage/Core/functions.php
    on line 244 Warning: include(Mage.php): failed to open stream: No such
    file or directory in
    /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line 93
    Warning: include(Mage.php): failed to open stream: No such file or
    directory in
    /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line 93
    Warning: include(): Failed opening 'Mage.php' for inclusion
    (include_path='/chroot/home/store/SPORTS.COM/html/app/code/local:/chroot/home/store/SPORTS.COM/html/app/code/community:/chroot/home/store/SPORTS.COM/html/app/code/core:/chroot/home/store/SPORTS.COM/html/lib:.:/usr/share/pear:/usr/share/php')
    in /chroot/home/store/SPORTS.COM/html/lib/Varien/Autoload.php on line
    93 Fatal error: Class 'Mage' not found in
    /chroot/home/store/SPORTS.COM/html/app/code/core/Mage/Core/Model/Resource/Session.php
    on line 108</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>Fatal error: Call to a member function getId() on a non-object in /chroot/home/sports/SPORTS.COM/html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php on line 587 Fatal error: Undefined class constant 'SEESION_MAX_COOKIE_LIFETIME' in /chroot/home/sports/SPORTS.COM/html/app/code/core/Mage/Core/Model/Resource/Session.php on line 120</code></pre>
  </div>
  </div>
  </p>