Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谷歌购物Magento错误:_Magento_Magento 1.7_Google Shopping Api_Google Shopping - Fatal编程技术网

谷歌购物Magento错误:

谷歌购物Magento错误:,magento,magento-1.7,google-shopping-api,google-shopping,Magento,Magento 1.7,Google Shopping Api,Google Shopping,我已经在Magento 1.7.0.2商店中安装并配置了Mage_Google购物模块。尝试向Google Shopping添加产品时,/var/log/system.log显示以下错误: 2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePrice.php): failed to open stream: No such file or directory i

我已经在Magento 1.7.0.2商店中安装并配置了Mage_Google购物模块。尝试向Google Shopping添加产品时,/var/log/system.log显示以下错误:

2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePrice.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePrice.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/GoogleShopping/Model/Attribute/SalePrice.php' for inclusion (include_path='/path/to/shop/httpdocs/app/code/local:/path/to/shop/httpdocs/app/code/community:/path/to/shop/httpdocs/app/code/core:/path/to/shop/httpdocs/lib:.:')  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateFrom.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateFrom.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateFrom.php' for inclusion (include_path='/path/to/shop/httpdocs/app/code/local:/path/to/shop/httpdocs/app/code/community:/path/to/shop/httpdocs/app/code/core:/path/to/shop/httpdocs/lib:.:')  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateTo.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateTo.php): failed to open stream: No such file or directory in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/GoogleShopping/Model/Attribute/SalePriceEffectiveDateTo.php' for inclusion (include_path='/path/to/shop/httpdocs/app/code/local:/path/to/shop/httpdocs/app/code/community:/path/to/shop/httpdocs/app/code/core:/path/to/shop/httpdocs/lib:.:')  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/Name.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/Name.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/GoogleShopping/Model/Attribute/Name.php' for inclusion (include_path='/path/to/shop/httpdocs/app/code/local:/path/to/shop/httpdocs/app/code/community:/path/to/shop/httpdocs/app/code/core:/path/to/shop/httpdocs/lib:.:')  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/Description.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(Mage/GoogleShopping/Model/Attribute/Description.php): failed to open stream: No such file or directory  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
2012-09-12T12:31:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/GoogleShopping/Model/Attribute/Description.php' for inclusion (include_path='/path/to/shop/httpdocs/app/code/local:/path/to/shop/httpdocs/app/code/community:/path/to/shop/httpdocs/app/code/core:/path/to/shop/httpdocs/lib:.:')  in /path/to/shop/httpdocs/lib/Varien/Autoload.php on line 93
这个问题已经在Magento论坛上被报道了好几次,但是我还没有找到解决这个问题的方法


权限绝对没有问题。这些文件不存在。

谷歌购物模块尝试“动态”加载所有所需属性的属性模型。如果Mage/GoogleShopping/model/Attributes/中不存在此模型。。。发生错误

要覆盖类“Mage\u GoogleShopping\u Model\u Type”中的方法“\u createAttribute”,请为我修复它:

 /**
 * Create attribute instance using attribute's name
 *
 * @param string $name
 * @return Mage_GoogleShopping_Model_Attribute
 */
protected function _createAttribute($name)
{
    $modelName = 'googleshopping/attribute_' . $this->_prepareModelName($name);
    $useDefault = false;

    $className = Mage::app()->getConfig()->getModelClassName($modelName);

    if (class_exists($className)) {
        $attributeModel = Mage::getModel($modelName);
        $useDefault = !$attributeModel;
    } else {
        $useDefault = true;
    }
    if ($useDefault) {
        $attributeModel = Mage::getModel('googleshopping/attribute_default');
    }
    $attributeModel->setName($name);

    return $attributeModel;
}

@古斯:我看不出和这个有什么相似之处??你说得对。我不记得了,我会删除它。我的错。