3

Magento 1.7.0.2 Shop에 Mage_GoogleShopping 모듈을 설치하고 구성했습니다. 그러나 나는 이것에 대한 해결책을 발견하지 않은, 문제는 젠토 포럼에 여러 번보고되고있다GoogleShopping Magento 오류 :

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 

: Google 쇼핑에 제품을 추가하려고 할 때, /var/log/system.log 다음과 같은 오류가 표시 .

권한에는 문제가 없습니다. 파일이 존재하지 않습니다.

+0

@Guus : http://stackoverflow.com/questions/14400150/magento-1-7-getmodel-in-script-outside-web-application-fails가이 것과 어떻게 비슷한지 알 수 없습니다. ?? – Alex

+0

네 말이 맞아. 나는 기억할 수 없다. 나는 그것을 지울 것이다. 내 잘못이야. – Guus

답변

1

GoogleShopping-Module은 필요한 모든 속성에 대한 애트리뷰트 모델을 "즉석에서"로드하려고 시도합니다. 이 모델은 마법사에 존재하지 않는 경우/GoogleShopping/모델// ... 오류가 발생합니다 ...

이 클래스 'Mage_GoogleShopping_Model_Type'의 방법 '_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; 
}