在 Magento 1.8.1.0 中保存产品时出现致命错误
Fatal Error when saving a product in Magento 1.8.1.0
当我尝试编辑库存中的 sku 时。我现在收到此错误消息。不确定现在是否是数据库问题。我们也遇到了优惠券代码无法使用的问题。 Link to old problem
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
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
全部从最新的补丁开始。
真正的问题在于我之前的多店设置。最初我在一个实例中有 3 家商店,我们将其恢复为 1 家商店并从商店视图中删除了这些商店。我加回了一个商店视图,现在我有 2 个,它解决了上面的问题。
当我尝试编辑库存中的 sku 时。我现在收到此错误消息。不确定现在是否是数据库问题。我们也遇到了优惠券代码无法使用的问题。 Link to old problem
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
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
全部从最新的补丁开始。
真正的问题在于我之前的多店设置。最初我在一个实例中有 3 家商店,我们将其恢复为 1 家商店并从商店视图中删除了这些商店。我加回了一个商店视图,现在我有 2 个,它解决了上面的问题。