ddd

piaoling  2012-02-10 14:07:51

Magento Fatal Error: Call to member function getSku() on a non-object

分类: magento调试 magento点滴 80人阅读 评论(0) 收藏 举报

错误描述
Fatal error: Call to a member function getSku() on a non-object in

/path/on/server/app/code/core/Mage/Catalog/Model/Product/Option/Type/Select.php on line 221.

Fatal error: Call to a member function getSku() on a non-object in

app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php on line 710

Fatal error: Call to a member function getSku() on a non-object in ...

解决办法
添加如下文档
/app/code/local/Mage/Catalog/Model/Product/Type/Select.php

/app/code/local/Mage/Catalog/Model/Product/Type/Configurable.php

找到出错位置,进行如下修改


  1. $o$simpleOption->getProduct($product);  
  2. $simple_sku = is_object($o) ? $o->getSku() : null;  
类别 :  默认(751)  |  浏览(3249)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: