2012-08-10 4 views
1

내 magento 웹 사이트의 시스템 로그에서 일부 경고가 발생했습니다. 일부는 해결되었지만 일부는 해결되지 않았습니다.다른 종류의 배열 경고가 magento로

시스템 로그는 말한다 : phpfile이라고에서 2012-08-10T13:09:18+00:00 ERR (3): Warning: array_merge(): Argument #1 is not an array in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/App.php on line 395

이 파트 라인 (395)이이 문제는 파일 권한과 관련이 최고

$options = array_merge($options, $cacheInitOptions); 
$this->_cache = Mage::getModel('core/cache', $options); 
$this->_isCacheLocked = false; 
return $this; 

2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::__construct() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Config.php on line 1350 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 105 

Config php. 
    $className = $this->getModelClassName($modelClass); 
     if (class_exists($className)) { 
      Varien_Profiler::start('CORE::create_object_of::'.$className); 
     1350 $obj = new $className($constructArguments); 
      Varien_Profiler::stop('CORE::create_object_of::'.$className); 
      return $obj; 

Cache.php line 105= public function __construct(array $options = array() 

2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::_getBackendOptions() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 119 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 141 

cache.php 
line 119 $backend = $this->_getBackendOptions($options); 
line 141 protected function _getBackendOptions(array $cacheOptions) 


2012-08-10T13:09:18+00:00 ERR (3): Recoverable Error: Argument 1 passed to Mage_Core_Model_Cache::_getFrontendOptions() must be an array, null given, called in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 120 and defined in /var/www/sites/mysite.com/app/code/core/Mage/Core/Model/Cache.php on line 288 

cache.php 
line 120 $frontend = $this->_getFrontendOptions($options); 
line 288 protected function _getFrontendOptions(array $cacheOptions) 

답변

0

에 있습니다. 웹 서버에 캐시 폴더에 대한 읽기/쓰기 권한이 있는지 확인하십시오. 캐시 폴더는 기본적으로 아래에 있습니다.

<webroot>/var/cache/ 

캐시 파일은 파일 소유자에 의해서만 읽기/쓰기로 설정되므로 제한됩니다.

1

local.xml 파일을보고 캐시 태그를 검사하십시오. 내 경우에는 캐시를 비활성화하려는 동안이 태그 (apc, memcahced 등) 내부의 모든 내용을 주석 처리했지만 위와 같은 오류를 준 주석 자체에 태그 자체를 남기지 않았습니다. 그건 당신이 더 이상 어떤 캐시를 사용 후, 물론

<cache> 
<!-- 
    <backend>Apc</backend> 
    .... 
--> 
</cache> 

하지만 적어도 당신은 오류가 어디에서 오는 알 수

<!-- 
<cache> 
<backend>Apc</backend> 
.... 
</cache> 
--> 

하지만이 :

그래서 이것을 시도하지 않는다.